diff --git a/prebuilt-tasks/pom.xml b/prebuilt-tasks/pom.xml index 1ed1e5496..e6a037f3e 100644 --- a/prebuilt-tasks/pom.xml +++ b/prebuilt-tasks/pom.xml @@ -190,6 +190,11 @@ ${fabric8.version} test + + io.fabric8 + generator-annotations + ${fabric8.version} + diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/VmMigrationWorkFlowConfiguration.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/VmMigrationWorkFlowConfiguration.java similarity index 93% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/VmMigrationWorkFlowConfiguration.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/VmMigrationWorkFlowConfiguration.java index 1d7a1333e..a7894fab6 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/VmMigrationWorkFlowConfiguration.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/VmMigrationWorkFlowConfiguration.java @@ -1,12 +1,12 @@ -package com.redhat.parodos.examples.vmmigration; +package com.redhat.parodos.vmmigration; import java.util.List; -import com.redhat.parodos.examples.vmmigration.assessment.VmMigrationWorkFlowTask; -import com.redhat.parodos.examples.vmmigration.checker.MigrationStatusWorkFlowChecker; -import com.redhat.parodos.examples.vmmigration.checker.PlanStatusWorkFlowChecker; -import com.redhat.parodos.examples.vmmigration.constants.Constants; -import com.redhat.parodos.examples.vmmigration.task.CreateMigrationWorkFlowTask; +import com.redhat.parodos.vmmigration.assessment.VmMigrationWorkFlowTask; +import com.redhat.parodos.vmmigration.checker.MigrationStatusWorkFlowChecker; +import com.redhat.parodos.vmmigration.checker.PlanStatusWorkFlowChecker; +import com.redhat.parodos.vmmigration.constants.Constants; +import com.redhat.parodos.vmmigration.task.CreateMigrationWorkFlowTask; import com.redhat.parodos.workflow.annotation.Assessment; import com.redhat.parodos.workflow.annotation.Checker; import com.redhat.parodos.workflow.annotation.Infrastructure; @@ -20,10 +20,8 @@ import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; -import org.springframework.context.annotation.PropertySource; @Configuration -@PropertySource("classpath:git.properties") public class VmMigrationWorkFlowConfiguration { // Assessment workflow diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/assessment/VmMigrationWorkFlowTask.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/assessment/VmMigrationWorkFlowTask.java similarity index 92% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/assessment/VmMigrationWorkFlowTask.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/assessment/VmMigrationWorkFlowTask.java index d9e860614..58ca4d331 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/assessment/VmMigrationWorkFlowTask.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/assessment/VmMigrationWorkFlowTask.java @@ -1,10 +1,10 @@ -package com.redhat.parodos.examples.vmmigration.assessment; +package com.redhat.parodos.vmmigration.assessment; import java.util.List; -import com.redhat.parodos.examples.vmmigration.constants.Constants; -import com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.Plan; -import com.redhat.parodos.examples.vmmigration.util.Kubernetes; +import com.redhat.parodos.vmmigration.constants.Constants; +import com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.Plan; +import com.redhat.parodos.vmmigration.util.Kubernetes; import com.redhat.parodos.workflow.context.WorkContextDelegate; import com.redhat.parodos.workflow.exception.MissingParameterException; import com.redhat.parodos.workflow.option.WorkFlowOption; @@ -55,7 +55,6 @@ public WorkReport execute(WorkContext workContext) { String caCert = getOptionalParameterValue(Constants.KUBERNETES_CA_CERT_PARAMETER_NAME, ""); String vmName = getRequiredParameterValue(Constants.VM_NAME_PARAMETER_NAME); - Config config = Kubernetes.buildKubernetesClient(apiUrl, token, caCert); try (KubernetesClient client = getKubernetesClient(apiUrl, token, caCert)) { // Create forklift plan Plan plan = Kubernetes.createPlan(vmName, storageName, networkName, namespaceName, diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/checker/MigrationStatusWorkFlowChecker.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/checker/MigrationStatusWorkFlowChecker.java similarity index 78% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/checker/MigrationStatusWorkFlowChecker.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/checker/MigrationStatusWorkFlowChecker.java index 27dba6a29..f11ce00f3 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/checker/MigrationStatusWorkFlowChecker.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/checker/MigrationStatusWorkFlowChecker.java @@ -1,12 +1,12 @@ -package com.redhat.parodos.examples.vmmigration.checker; +package com.redhat.parodos.vmmigration.checker; import java.util.List; -import com.redhat.parodos.examples.vmmigration.constants.Constants; -import com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.Migration; -import com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.MigrationStatus; -import com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.Conditions; -import com.redhat.parodos.examples.vmmigration.util.Kubernetes; +import com.redhat.parodos.vmmigration.constants.Constants; +import com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.Migration; +import com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.MigrationStatus; +import com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.Conditions; +import com.redhat.parodos.vmmigration.util.Kubernetes; import com.redhat.parodos.workflow.exception.MissingParameterException; import com.redhat.parodos.workflow.task.checker.BaseWorkFlowCheckerTask; import com.redhat.parodos.workflows.work.DefaultWorkReport; @@ -34,7 +34,7 @@ public WorkReport checkWorkFlowStatus(WorkContext workContext) { String token = getRequiredParameterValue(Constants.KUBERNETES_TOKEN_PARAMETER_NAME); String caCert = getOptionalParameterValue(Constants.KUBERNETES_CA_CERT_PARAMETER_NAME, ""); - try (KubernetesClient client = getKubernetesClient(apiUrl, token, caCert)) { + try (KubernetesClient client = getKubernetesClient(apiUrl, token, caCert)) { MixedOperation, Resource> migrationClient = client .resources(Migration.class); @@ -58,8 +58,9 @@ public WorkReport checkWorkFlowStatus(WorkContext workContext) { return new DefaultWorkReport(WorkStatus.FAILED, workContext); } - public KubernetesClient getKubernetesClient(String apiUrl, String token, String caCert) { + public KubernetesClient getKubernetesClient(String apiUrl, String token, String caCert) { Config config = Kubernetes.buildKubernetesClient(apiUrl, token, caCert); return new KubernetesClientBuilder().withConfig(config).build(); } + } diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/checker/PlanStatusWorkFlowChecker.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/checker/PlanStatusWorkFlowChecker.java similarity index 89% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/checker/PlanStatusWorkFlowChecker.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/checker/PlanStatusWorkFlowChecker.java index 641d34cf9..9d3283fd1 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/checker/PlanStatusWorkFlowChecker.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/checker/PlanStatusWorkFlowChecker.java @@ -1,14 +1,14 @@ -package com.redhat.parodos.examples.vmmigration.checker; +package com.redhat.parodos.vmmigration.checker; import java.time.Instant; import java.time.temporal.ChronoUnit; import java.util.List; -import com.redhat.parodos.examples.vmmigration.constants.Constants; -import com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.Plan; -import com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.PlanStatus; -import com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.Conditions; -import com.redhat.parodos.examples.vmmigration.util.Kubernetes; +import com.redhat.parodos.vmmigration.constants.Constants; +import com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.Plan; +import com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.PlanStatus; +import com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.Conditions; +import com.redhat.parodos.vmmigration.util.Kubernetes; import com.redhat.parodos.workflow.exception.MissingParameterException; import com.redhat.parodos.workflow.task.checker.BaseWorkFlowCheckerTask; import com.redhat.parodos.workflows.work.DefaultWorkReport; diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/constants/Constants.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/constants/Constants.java similarity index 98% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/constants/Constants.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/constants/Constants.java index 8861b2eb2..d2d13be10 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/constants/Constants.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/constants/Constants.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.constants; +package com.redhat.parodos.vmmigration.constants; import java.util.List; diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/Migration.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/Migration.java similarity index 68% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/Migration.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/Migration.java index ad26b0234..1f308e53e 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/Migration.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/Migration.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1; @io.fabric8.kubernetes.model.annotation.Version(value = "v1beta1", storage = true, served = true) @io.fabric8.kubernetes.model.annotation.Group("forklift.konveyor.io") @@ -6,7 +6,7 @@ @io.fabric8.kubernetes.model.annotation.Plural("migrations") @javax.annotation.processing.Generated("io.fabric8.java.generator.CRGeneratorRunner") public class Migration extends - io.fabric8.kubernetes.client.CustomResource + io.fabric8.kubernetes.client.CustomResource implements io.fabric8.kubernetes.api.model.Namespaced { } diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/MigrationSpec.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/MigrationSpec.java similarity index 70% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/MigrationSpec.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/MigrationSpec.java index 68a595afe..ca276e342 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/MigrationSpec.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/MigrationSpec.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "cancel", "cutover", "plan" }) @@ -13,14 +13,14 @@ public class MigrationSpec implements io.fabric8.kubernetes.api.model.Kubernetes @com.fasterxml.jackson.annotation.JsonProperty("cancel") @com.fasterxml.jackson.annotation.JsonPropertyDescription("List of VMs which will have their imports canceled.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private java.util.List cancel; + private java.util.List cancel; - public java.util.List getCancel() { + public java.util.List getCancel() { return cancel; } public void setCancel( - java.util.List cancel) { + java.util.List cancel) { this.cancel = cancel; } @@ -48,14 +48,13 @@ public void setCutover(String cutover) { @io.fabric8.generator.annotation.Required() @com.fasterxml.jackson.annotation.JsonPropertyDescription("Reference to the associated Plan.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationspec.Plan plan; + private com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationspec.Plan plan; - public com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationspec.Plan getPlan() { + public com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationspec.Plan getPlan() { return plan; } - public void setPlan( - com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationspec.Plan plan) { + public void setPlan(com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationspec.Plan plan) { this.plan = plan; } diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/MigrationStatus.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/MigrationStatus.java similarity index 75% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/MigrationStatus.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/MigrationStatus.java index 6d87b5060..dae5ccfe3 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/MigrationStatus.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/MigrationStatus.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "completed", "conditions", "observedGeneration", "started", @@ -30,14 +30,14 @@ public void setCompleted(String completed) { @com.fasterxml.jackson.annotation.JsonProperty("conditions") @com.fasterxml.jackson.annotation.JsonPropertyDescription("List of conditions.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private java.util.List conditions; + private java.util.List conditions; - public java.util.List getConditions() { + public java.util.List getConditions() { return conditions; } public void setConditions( - java.util.List conditions) { + java.util.List conditions) { this.conditions = conditions; } @@ -79,14 +79,14 @@ public void setStarted(String started) { @com.fasterxml.jackson.annotation.JsonProperty("vms") @com.fasterxml.jackson.annotation.JsonPropertyDescription("VM status") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private java.util.List vms; + private java.util.List vms; - public java.util.List getVms() { + public java.util.List getVms() { return vms; } public void setVms( - java.util.List vms) { + java.util.List vms) { this.vms = vms; } diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/Plan.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/Plan.java similarity index 69% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/Plan.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/Plan.java index 7d2c57bd3..dc39536d6 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/Plan.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/Plan.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1; @io.fabric8.kubernetes.model.annotation.Version(value = "v1beta1", storage = true, served = true) @io.fabric8.kubernetes.model.annotation.Group("forklift.konveyor.io") @@ -6,7 +6,7 @@ @io.fabric8.kubernetes.model.annotation.Plural("plans") @javax.annotation.processing.Generated("io.fabric8.java.generator.CRGeneratorRunner") public class Plan extends - io.fabric8.kubernetes.client.CustomResource + io.fabric8.kubernetes.client.CustomResource implements io.fabric8.kubernetes.api.model.Namespaced { } diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/PlanSpec.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/PlanSpec.java similarity index 73% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/PlanSpec.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/PlanSpec.java index 378ad2095..d8eefb61b 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/PlanSpec.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/PlanSpec.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "archived", "description", "map", "provider", "targetNamespace", @@ -47,13 +47,13 @@ public void setDescription(String description) { @io.fabric8.generator.annotation.Required() @com.fasterxml.jackson.annotation.JsonPropertyDescription("Resource mapping.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.Map map; + private com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.Map map; - public com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.Map getMap() { + public com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.Map getMap() { return map; } - public void setMap(com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.Map map) { + public void setMap(com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.Map map) { this.map = map; } @@ -64,14 +64,14 @@ public void setMap(com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forkl @io.fabric8.generator.annotation.Required() @com.fasterxml.jackson.annotation.JsonPropertyDescription("Providers.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.Provider provider; + private com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.Provider provider; - public com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.Provider getProvider() { + public com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.Provider getProvider() { return provider; } public void setProvider( - com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.Provider provider) { + com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.Provider provider) { this.provider = provider; } @@ -98,14 +98,14 @@ public void setTargetNamespace(String targetNamespace) { @com.fasterxml.jackson.annotation.JsonProperty("transferNetwork") @com.fasterxml.jackson.annotation.JsonPropertyDescription("The network attachment definition that should be used for disk transfer.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.TransferNetwork transferNetwork; + private com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.TransferNetwork transferNetwork; - public com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.TransferNetwork getTransferNetwork() { + public com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.TransferNetwork getTransferNetwork() { return transferNetwork; } public void setTransferNetwork( - com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.TransferNetwork transferNetwork) { + com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.TransferNetwork transferNetwork) { this.transferNetwork = transferNetwork; } @@ -116,14 +116,14 @@ public void setTransferNetwork( @io.fabric8.generator.annotation.Required() @com.fasterxml.jackson.annotation.JsonPropertyDescription("List of VMs.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private java.util.List vms; + private java.util.List vms; - public java.util.List getVms() { + public java.util.List getVms() { return vms; } public void setVms( - java.util.List vms) { + java.util.List vms) { this.vms = vms; } diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/PlanStatus.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/PlanStatus.java similarity index 68% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/PlanStatus.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/PlanStatus.java index a0e4eba30..d4f68527a 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/PlanStatus.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/PlanStatus.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "conditions", "migration", "observedGeneration" }) @@ -13,14 +13,14 @@ public class PlanStatus implements io.fabric8.kubernetes.api.model.KubernetesRes @com.fasterxml.jackson.annotation.JsonProperty("conditions") @com.fasterxml.jackson.annotation.JsonPropertyDescription("List of conditions.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private java.util.List conditions; + private java.util.List conditions; - public java.util.List getConditions() { + public java.util.List getConditions() { return conditions; } public void setConditions( - java.util.List conditions) { + java.util.List conditions) { this.conditions = conditions; } @@ -30,14 +30,14 @@ public void setConditions( @com.fasterxml.jackson.annotation.JsonProperty("migration") @com.fasterxml.jackson.annotation.JsonPropertyDescription("Migration") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.Migration migration; + private com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.Migration migration; - public com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.Migration getMigration() { + public com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.Migration getMigration() { return migration; } public void setMigration( - com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.Migration migration) { + com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.Migration migration) { this.migration = migration; } diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationspec/Cancel.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationspec/Cancel.java similarity index 94% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationspec/Cancel.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationspec/Cancel.java index a4bd5bc3a..50b4c730e 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationspec/Cancel.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationspec/Cancel.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationspec; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationspec; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "id", "name", "type" }) diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationspec/Plan.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationspec/Plan.java similarity index 98% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationspec/Plan.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationspec/Plan.java index 7a5aaede6..626bb5041 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationspec/Plan.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationspec/Plan.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationspec; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationspec; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "apiVersion", "fieldPath", "kind", "name", "namespace", diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/Conditions.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/Conditions.java similarity index 97% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/Conditions.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/Conditions.java index 9a0369740..5943aafc6 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/Conditions.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/Conditions.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "category", "durable", "items", "lastTransitionTime", "message", diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/Vms.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/Vms.java similarity index 72% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/Vms.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/Vms.java index de5613a60..78ce4ab06 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/Vms.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/Vms.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "completed", "conditions", "error", "hooks", "id", "name", @@ -30,14 +30,14 @@ public void setCompleted(String completed) { @com.fasterxml.jackson.annotation.JsonProperty("conditions") @com.fasterxml.jackson.annotation.JsonPropertyDescription("List of conditions.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private java.util.List conditions; + private java.util.List conditions; - public java.util.List getConditions() { + public java.util.List getConditions() { return conditions; } public void setConditions( - java.util.List conditions) { + java.util.List conditions) { this.conditions = conditions; } @@ -47,14 +47,14 @@ public void setConditions( @com.fasterxml.jackson.annotation.JsonProperty("error") @com.fasterxml.jackson.annotation.JsonPropertyDescription("Errors") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.Error error; + private com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.Error error; - public com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.Error getError() { + public com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.Error getError() { return error; } public void setError( - com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.Error error) { + com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.Error error) { this.error = error; } @@ -64,14 +64,14 @@ public void setError( @com.fasterxml.jackson.annotation.JsonProperty("hooks") @com.fasterxml.jackson.annotation.JsonPropertyDescription("Enable hooks.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private java.util.List hooks; + private java.util.List hooks; - public java.util.List getHooks() { + public java.util.List getHooks() { return hooks; } public void setHooks( - java.util.List hooks) { + java.util.List hooks) { this.hooks = hooks; } @@ -131,14 +131,14 @@ public void setPhase(String phase) { @io.fabric8.generator.annotation.Required() @com.fasterxml.jackson.annotation.JsonPropertyDescription("Migration pipeline.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private java.util.List pipeline; + private java.util.List pipeline; - public java.util.List getPipeline() { + public java.util.List getPipeline() { return pipeline; } public void setPipeline( - java.util.List pipeline) { + java.util.List pipeline) { this.pipeline = pipeline; } @@ -196,14 +196,13 @@ public void setType(String type) { @com.fasterxml.jackson.annotation.JsonProperty("warm") @com.fasterxml.jackson.annotation.JsonPropertyDescription("Warm migration status") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.Warm warm; + private com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.Warm warm; - public com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.Warm getWarm() { + public com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.Warm getWarm() { return warm; } - public void setWarm( - com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.Warm warm) { + public void setWarm(com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.Warm warm) { this.warm = warm; } diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/Conditions.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/Conditions.java similarity index 97% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/Conditions.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/Conditions.java index 2983cd595..207d24d4a 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/Conditions.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/Conditions.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "category", "durable", "items", "lastTransitionTime", "message", diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/Error.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/Error.java similarity index 92% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/Error.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/Error.java index 0175d9775..7a9c8e6a2 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/Error.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/Error.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "phase", "reasons" }) diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/vms/Hooks.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/Hooks.java similarity index 74% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/vms/Hooks.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/Hooks.java index 9abc59ccc..70343ae69 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/vms/Hooks.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/Hooks.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.vms; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "hook", "step" }) @@ -14,14 +14,14 @@ public class Hooks implements io.fabric8.kubernetes.api.model.KubernetesResource @io.fabric8.generator.annotation.Required() @com.fasterxml.jackson.annotation.JsonPropertyDescription("Hook reference.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.vms.hooks.Hook hook; + private com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.hooks.Hook hook; - public com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.vms.hooks.Hook getHook() { + public com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.hooks.Hook getHook() { return hook; } public void setHook( - com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.vms.hooks.Hook hook) { + com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.hooks.Hook hook) { this.hook = hook; } diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/Pipeline.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/Pipeline.java similarity index 78% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/Pipeline.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/Pipeline.java index beab1c3f7..2d5a9a20a 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/Pipeline.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/Pipeline.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "annotations", "completed", "description", "error", "name", @@ -62,14 +62,14 @@ public void setDescription(String description) { @com.fasterxml.jackson.annotation.JsonProperty("error") @com.fasterxml.jackson.annotation.JsonPropertyDescription("Error.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.pipeline.Error error; + private com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.pipeline.Error error; - public com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.pipeline.Error getError() { + public com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.pipeline.Error getError() { return error; } public void setError( - com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.pipeline.Error error) { + com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.pipeline.Error error) { this.error = error; } @@ -113,14 +113,14 @@ public void setPhase(String phase) { @io.fabric8.generator.annotation.Required() @com.fasterxml.jackson.annotation.JsonPropertyDescription("Progress.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.pipeline.Progress progress; + private com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.pipeline.Progress progress; - public com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.pipeline.Progress getProgress() { + public com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.pipeline.Progress getProgress() { return progress; } public void setProgress( - com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.pipeline.Progress progress) { + com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.pipeline.Progress progress) { this.progress = progress; } @@ -162,14 +162,14 @@ public void setStarted(String started) { @com.fasterxml.jackson.annotation.JsonProperty("tasks") @com.fasterxml.jackson.annotation.JsonPropertyDescription("Nested tasks.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private java.util.List tasks; + private java.util.List tasks; - public java.util.List getTasks() { + public java.util.List getTasks() { return tasks; } public void setTasks( - java.util.List tasks) { + java.util.List tasks) { this.tasks = tasks; } diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/Warm.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/Warm.java similarity index 81% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/Warm.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/Warm.java index 5fc36de29..5c491dd5c 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/Warm.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/Warm.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "consecutiveFailures", "failures", "nextPrecopyAt", "precopies", @@ -48,14 +48,14 @@ public void setNextPrecopyAt(String nextPrecopyAt) { @com.fasterxml.jackson.annotation.JsonProperty("precopies") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private java.util.List precopies; + private java.util.List precopies; - public java.util.List getPrecopies() { + public java.util.List getPrecopies() { return precopies; } public void setPrecopies( - java.util.List precopies) { + java.util.List precopies) { this.precopies = precopies; } diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/vms/hooks/Hook.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/hooks/Hook.java similarity index 98% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/vms/hooks/Hook.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/hooks/Hook.java index 337c1c4a7..afd86ac69 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/vms/hooks/Hook.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/hooks/Hook.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.vms.hooks; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.hooks; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "apiVersion", "fieldPath", "kind", "name", "namespace", diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/Error.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/pipeline/Error.java similarity index 91% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/Error.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/pipeline/Error.java index 11754b458..95f4296b4 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/Error.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/pipeline/Error.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.pipeline; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "phase", "reasons" }) diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/pipeline/Progress.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/pipeline/Progress.java similarity index 92% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/pipeline/Progress.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/pipeline/Progress.java index f5cc6293c..2b2d6ce2f 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/pipeline/Progress.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/pipeline/Progress.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.pipeline; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.pipeline; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "completed", "total" }) diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/pipeline/Tasks.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/pipeline/Tasks.java similarity index 82% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/pipeline/Tasks.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/pipeline/Tasks.java index acaf2a93c..3fd5122c0 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/pipeline/Tasks.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/pipeline/Tasks.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.pipeline; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.pipeline; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "annotations", "completed", "description", "error", "name", @@ -62,14 +62,14 @@ public void setDescription(String description) { @com.fasterxml.jackson.annotation.JsonProperty("error") @com.fasterxml.jackson.annotation.JsonPropertyDescription("Error.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.pipeline.tasks.Error error; + private com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.pipeline.tasks.Error error; - public com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.pipeline.tasks.Error getError() { + public com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.pipeline.tasks.Error getError() { return error; } public void setError( - com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.pipeline.tasks.Error error) { + com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.pipeline.tasks.Error error) { this.error = error; } @@ -113,14 +113,14 @@ public void setPhase(String phase) { @io.fabric8.generator.annotation.Required() @com.fasterxml.jackson.annotation.JsonPropertyDescription("Progress.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.pipeline.tasks.Progress progress; + private com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.pipeline.tasks.Progress progress; - public com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.pipeline.tasks.Progress getProgress() { + public com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.pipeline.tasks.Progress getProgress() { return progress; } public void setProgress( - com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.pipeline.tasks.Progress progress) { + com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.pipeline.tasks.Progress progress) { this.progress = progress; } diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/pipeline/Error.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/pipeline/tasks/Error.java similarity index 91% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/pipeline/Error.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/pipeline/tasks/Error.java index 4f3ec6006..0ca97eaac 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/pipeline/Error.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/pipeline/tasks/Error.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.pipeline; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.pipeline.tasks; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "phase", "reasons" }) diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/pipeline/Progress.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/pipeline/tasks/Progress.java similarity index 92% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/pipeline/Progress.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/pipeline/tasks/Progress.java index 2ccf4ac08..68912fc57 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/pipeline/Progress.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/pipeline/tasks/Progress.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.pipeline; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.pipeline.tasks; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "completed", "total" }) diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/warm/Precopies.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/warm/Precopies.java similarity index 92% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/warm/Precopies.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/warm/Precopies.java index de0184ea3..507438008 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/warm/Precopies.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/warm/Precopies.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.warm; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.warm; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "end", "snapshot", "start" }) diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/Map.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/Map.java similarity index 61% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/Map.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/Map.java index 83e6b74e8..8eb531d0a 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/Map.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/Map.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "network", "storage" }) @@ -14,14 +14,14 @@ public class Map implements io.fabric8.kubernetes.api.model.KubernetesResource { @io.fabric8.generator.annotation.Required() @com.fasterxml.jackson.annotation.JsonPropertyDescription("Network.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.map.Network network; + private com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.map.Network network; - public com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.map.Network getNetwork() { + public com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.map.Network getNetwork() { return network; } public void setNetwork( - com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.map.Network network) { + com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.map.Network network) { this.network = network; } @@ -32,14 +32,14 @@ public void setNetwork( @io.fabric8.generator.annotation.Required() @com.fasterxml.jackson.annotation.JsonPropertyDescription("Storage.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.map.Storage storage; + private com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.map.Storage storage; - public com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.map.Storage getStorage() { + public com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.map.Storage getStorage() { return storage; } public void setStorage( - com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.map.Storage storage) { + com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.map.Storage storage) { this.storage = storage; } diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/Provider.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/Provider.java similarity index 60% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/Provider.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/Provider.java index c5cd7fa19..6929bffa2 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/Provider.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/Provider.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "destination", "source" }) @@ -14,14 +14,14 @@ public class Provider implements io.fabric8.kubernetes.api.model.KubernetesResou @io.fabric8.generator.annotation.Required() @com.fasterxml.jackson.annotation.JsonPropertyDescription("Destination.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.provider.Destination destination; + private com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.provider.Destination destination; - public com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.provider.Destination getDestination() { + public com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.provider.Destination getDestination() { return destination; } public void setDestination( - com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.provider.Destination destination) { + com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.provider.Destination destination) { this.destination = destination; } @@ -32,14 +32,14 @@ public void setDestination( @io.fabric8.generator.annotation.Required() @com.fasterxml.jackson.annotation.JsonPropertyDescription("Source.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.provider.Source source; + private com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.provider.Source source; - public com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.provider.Source getSource() { + public com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.provider.Source getSource() { return source; } public void setSource( - com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.provider.Source source) { + com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.provider.Source source) { this.source = source; } diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/TransferNetwork.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/TransferNetwork.java similarity index 98% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/TransferNetwork.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/TransferNetwork.java index 781c4cf3f..de720650e 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/TransferNetwork.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/TransferNetwork.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "apiVersion", "fieldPath", "kind", "name", "namespace", diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/Vms.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/Vms.java similarity index 82% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/Vms.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/Vms.java index 160271bb5..e0330d804 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/Vms.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/Vms.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "hooks", "id", "name", "type" }) @@ -13,14 +13,14 @@ public class Vms implements io.fabric8.kubernetes.api.model.KubernetesResource { @com.fasterxml.jackson.annotation.JsonProperty("hooks") @com.fasterxml.jackson.annotation.JsonPropertyDescription("Enable hooks.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private java.util.List hooks; + private java.util.List hooks; - public java.util.List getHooks() { + public java.util.List getHooks() { return hooks; } public void setHooks( - java.util.List hooks) { + java.util.List hooks) { this.hooks = hooks; } diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/map/Network.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/map/Network.java similarity index 98% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/map/Network.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/map/Network.java index 602ecc59f..65c19ccab 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/map/Network.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/map/Network.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.map; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.map; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "apiVersion", "fieldPath", "kind", "name", "namespace", diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/map/Storage.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/map/Storage.java similarity index 98% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/map/Storage.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/map/Storage.java index fc7590be0..9762a019a 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/map/Storage.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/map/Storage.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.map; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.map; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "apiVersion", "fieldPath", "kind", "name", "namespace", diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/provider/Destination.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/provider/Destination.java similarity index 98% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/provider/Destination.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/provider/Destination.java index 15b70316e..5001b28dd 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/provider/Destination.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/provider/Destination.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.provider; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.provider; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "apiVersion", "fieldPath", "kind", "name", "namespace", diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/provider/Source.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/provider/Source.java similarity index 98% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/provider/Source.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/provider/Source.java index 1e32fa591..54423110d 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/provider/Source.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/provider/Source.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.provider; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.provider; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "apiVersion", "fieldPath", "kind", "name", "namespace", diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/Hooks.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/vms/Hooks.java similarity index 71% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/Hooks.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/vms/Hooks.java index 5bf2ece0b..419ebda9f 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/Hooks.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/vms/Hooks.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.vms; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "hook", "step" }) @@ -14,14 +14,13 @@ public class Hooks implements io.fabric8.kubernetes.api.model.KubernetesResource @io.fabric8.generator.annotation.Required() @com.fasterxml.jackson.annotation.JsonPropertyDescription("Hook reference.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.hooks.Hook hook; + private com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.vms.hooks.Hook hook; - public com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.hooks.Hook getHook() { + public com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.vms.hooks.Hook getHook() { return hook; } - public void setHook( - com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.hooks.Hook hook) { + public void setHook(com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.vms.hooks.Hook hook) { this.hook = hook; } diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/hooks/Hook.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/vms/hooks/Hook.java similarity index 98% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/hooks/Hook.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/vms/hooks/Hook.java index 69d4a29f8..ee102a05f 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/hooks/Hook.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planspec/vms/hooks/Hook.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.hooks; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.vms.hooks; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "apiVersion", "fieldPath", "kind", "name", "namespace", diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/Conditions.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/Conditions.java similarity index 97% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/Conditions.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/Conditions.java index bc47c3476..f841d3aa5 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/Conditions.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/Conditions.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "category", "durable", "items", "lastTransitionTime", "message", diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/Migration.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/Migration.java similarity index 69% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/Migration.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/Migration.java index f77af5cb4..b77b1c42e 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/Migration.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/Migration.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "completed", "history", "started", "vms" }) @@ -29,14 +29,14 @@ public void setCompleted(String completed) { @com.fasterxml.jackson.annotation.JsonProperty("history") @com.fasterxml.jackson.annotation.JsonPropertyDescription("History") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private java.util.List history; + private java.util.List history; - public java.util.List getHistory() { + public java.util.List getHistory() { return history; } public void setHistory( - java.util.List history) { + java.util.List history) { this.history = history; } @@ -62,14 +62,14 @@ public void setStarted(String started) { @com.fasterxml.jackson.annotation.JsonProperty("vms") @com.fasterxml.jackson.annotation.JsonPropertyDescription("VM status") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private java.util.List vms; + private java.util.List vms; - public java.util.List getVms() { + public java.util.List getVms() { return vms; } public void setVms( - java.util.List vms) { + java.util.List vms) { this.vms = vms; } diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/History.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/History.java similarity index 53% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/History.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/History.java index 628e71532..3312f7b80 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/History.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/History.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "conditions", "map", "migration", "plan", "provider" }) @@ -13,14 +13,14 @@ public class History implements io.fabric8.kubernetes.api.model.KubernetesResour @com.fasterxml.jackson.annotation.JsonProperty("conditions") @com.fasterxml.jackson.annotation.JsonPropertyDescription("List of conditions.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private java.util.List conditions; + private java.util.List conditions; - public java.util.List getConditions() { + public java.util.List getConditions() { return conditions; } public void setConditions( - java.util.List conditions) { + java.util.List conditions) { this.conditions = conditions; } @@ -31,14 +31,14 @@ public void setConditions( @io.fabric8.generator.annotation.Required() @com.fasterxml.jackson.annotation.JsonPropertyDescription("Map.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.Map map; + private com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.Map map; - public com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.Map getMap() { + public com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.Map getMap() { return map; } public void setMap( - com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.Map map) { + com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.Map map) { this.map = map; } @@ -49,14 +49,14 @@ public void setMap( @io.fabric8.generator.annotation.Required() @com.fasterxml.jackson.annotation.JsonPropertyDescription("Migration") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.Migration migration; + private com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.Migration migration; - public com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.Migration getMigration() { + public com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.Migration getMigration() { return migration; } public void setMigration( - com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.Migration migration) { + com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.Migration migration) { this.migration = migration; } @@ -67,14 +67,14 @@ public void setMigration( @io.fabric8.generator.annotation.Required() @com.fasterxml.jackson.annotation.JsonPropertyDescription("Plan") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.Plan plan; + private com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.Plan plan; - public com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.Plan getPlan() { + public com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.Plan getPlan() { return plan; } public void setPlan( - com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.Plan plan) { + com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.Plan plan) { this.plan = plan; } @@ -85,14 +85,14 @@ public void setPlan( @io.fabric8.generator.annotation.Required() @com.fasterxml.jackson.annotation.JsonPropertyDescription("Provider") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.Provider provider; + private com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.Provider provider; - public com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.Provider getProvider() { + public com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.Provider getProvider() { return provider; } public void setProvider( - com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.Provider provider) { + com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.Provider provider) { this.provider = provider; } diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/Vms.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/Vms.java similarity index 73% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/Vms.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/Vms.java index ad1a90204..947ae2d49 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/Vms.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/Vms.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "completed", "conditions", "error", "hooks", "id", "name", @@ -30,14 +30,14 @@ public void setCompleted(String completed) { @com.fasterxml.jackson.annotation.JsonProperty("conditions") @com.fasterxml.jackson.annotation.JsonPropertyDescription("List of conditions.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private java.util.List conditions; + private java.util.List conditions; - public java.util.List getConditions() { + public java.util.List getConditions() { return conditions; } public void setConditions( - java.util.List conditions) { + java.util.List conditions) { this.conditions = conditions; } @@ -47,14 +47,14 @@ public void setConditions( @com.fasterxml.jackson.annotation.JsonProperty("error") @com.fasterxml.jackson.annotation.JsonPropertyDescription("Errors") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.Error error; + private com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.Error error; - public com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.Error getError() { + public com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.Error getError() { return error; } public void setError( - com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.Error error) { + com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.Error error) { this.error = error; } @@ -64,14 +64,14 @@ public void setError( @com.fasterxml.jackson.annotation.JsonProperty("hooks") @com.fasterxml.jackson.annotation.JsonPropertyDescription("Enable hooks.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private java.util.List hooks; + private java.util.List hooks; - public java.util.List getHooks() { + public java.util.List getHooks() { return hooks; } public void setHooks( - java.util.List hooks) { + java.util.List hooks) { this.hooks = hooks; } @@ -131,14 +131,14 @@ public void setPhase(String phase) { @io.fabric8.generator.annotation.Required() @com.fasterxml.jackson.annotation.JsonPropertyDescription("Migration pipeline.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private java.util.List pipeline; + private java.util.List pipeline; - public java.util.List getPipeline() { + public java.util.List getPipeline() { return pipeline; } public void setPipeline( - java.util.List pipeline) { + java.util.List pipeline) { this.pipeline = pipeline; } @@ -196,14 +196,14 @@ public void setType(String type) { @com.fasterxml.jackson.annotation.JsonProperty("warm") @com.fasterxml.jackson.annotation.JsonPropertyDescription("Warm migration status") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.Warm warm; + private com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.Warm warm; - public com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.Warm getWarm() { + public com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.Warm getWarm() { return warm; } public void setWarm( - com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.Warm warm) { + com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.Warm warm) { this.warm = warm; } diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/Conditions.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/Conditions.java similarity index 97% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/Conditions.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/Conditions.java index ad759429a..a9515ff07 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/Conditions.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/Conditions.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "category", "durable", "items", "lastTransitionTime", "message", diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/Map.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/Map.java similarity index 59% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/Map.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/Map.java index 1513ec3ad..1760d9508 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/Map.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/Map.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "network", "storage" }) @@ -14,14 +14,14 @@ public class Map implements io.fabric8.kubernetes.api.model.KubernetesResource { @io.fabric8.generator.annotation.Required() @com.fasterxml.jackson.annotation.JsonPropertyDescription("Snapshot object reference.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.map.Network network; + private com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.map.Network network; - public com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.map.Network getNetwork() { + public com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.map.Network getNetwork() { return network; } public void setNetwork( - com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.map.Network network) { + com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.map.Network network) { this.network = network; } @@ -32,14 +32,14 @@ public void setNetwork( @io.fabric8.generator.annotation.Required() @com.fasterxml.jackson.annotation.JsonPropertyDescription("Snapshot object reference.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.map.Storage storage; + private com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.map.Storage storage; - public com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.map.Storage getStorage() { + public com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.map.Storage getStorage() { return storage; } public void setStorage( - com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.map.Storage storage) { + com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.map.Storage storage) { this.storage = storage; } diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/Migration.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/Migration.java similarity index 95% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/Migration.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/Migration.java index becc5d829..795779df8 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/Migration.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/Migration.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "generation", "name", "namespace", "uid" }) diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/Plan.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/Plan.java similarity index 95% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/Plan.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/Plan.java index c78c5f5d8..00b6e4f2f 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/Plan.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/Plan.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "generation", "name", "namespace", "uid" }) diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/Provider.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/Provider.java similarity index 58% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/Provider.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/Provider.java index f544c32d4..dc9283225 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/Provider.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/Provider.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "destination", "source" }) @@ -14,14 +14,14 @@ public class Provider implements io.fabric8.kubernetes.api.model.KubernetesResou @io.fabric8.generator.annotation.Required() @com.fasterxml.jackson.annotation.JsonPropertyDescription("Snapshot object reference.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.provider.Destination destination; + private com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.provider.Destination destination; - public com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.provider.Destination getDestination() { + public com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.provider.Destination getDestination() { return destination; } public void setDestination( - com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.provider.Destination destination) { + com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.provider.Destination destination) { this.destination = destination; } @@ -32,14 +32,14 @@ public void setDestination( @io.fabric8.generator.annotation.Required() @com.fasterxml.jackson.annotation.JsonPropertyDescription("Snapshot object reference.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.provider.Source source; + private com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.provider.Source source; - public com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.provider.Source getSource() { + public com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.provider.Source getSource() { return source; } public void setSource( - com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.provider.Source source) { + com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.provider.Source source) { this.source = source; } diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/map/Network.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/map/Network.java similarity index 95% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/map/Network.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/map/Network.java index 5e6d9d371..41145bbb4 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/map/Network.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/map/Network.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.map; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.map; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "generation", "name", "namespace", "uid" }) diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/map/Storage.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/map/Storage.java similarity index 95% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/map/Storage.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/map/Storage.java index ed91d011c..f4eaa8085 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/map/Storage.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/map/Storage.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.map; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.map; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "generation", "name", "namespace", "uid" }) diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/provider/Destination.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/provider/Destination.java similarity index 95% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/provider/Destination.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/provider/Destination.java index 436d44846..aa2de8825 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/provider/Destination.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/provider/Destination.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.provider; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.provider; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "generation", "name", "namespace", "uid" }) diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/provider/Source.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/provider/Source.java similarity index 95% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/provider/Source.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/provider/Source.java index be908adbb..07cd33931 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/provider/Source.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/provider/Source.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.provider; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history.provider; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "generation", "name", "namespace", "uid" }) diff --git a/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/Conditions.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/Conditions.java new file mode 100644 index 000000000..a1a0fc361 --- /dev/null +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/Conditions.java @@ -0,0 +1,143 @@ +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms; + +@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) +@com.fasterxml.jackson.annotation.JsonPropertyOrder({ "category", "durable", "items", "lastTransitionTime", "message", + "reason", "status", "type" }) +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + using = com.fasterxml.jackson.databind.JsonDeserializer.None.class) +@javax.annotation.processing.Generated("io.fabric8.java.generator.CRGeneratorRunner") +public class Conditions implements io.fabric8.kubernetes.api.model.KubernetesResource { + + /** + * The condition category. + */ + @com.fasterxml.jackson.annotation.JsonProperty("category") + @io.fabric8.generator.annotation.Required() + @com.fasterxml.jackson.annotation.JsonPropertyDescription("The condition category.") + @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) + private String category; + + public String getCategory() { + return category; + } + + public void setCategory(String category) { + this.category = category; + } + + /** + * The condition is durable - never un-staged. + */ + @com.fasterxml.jackson.annotation.JsonProperty("durable") + @com.fasterxml.jackson.annotation.JsonPropertyDescription("The condition is durable - never un-staged.") + @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) + private Boolean durable; + + public Boolean getDurable() { + return durable; + } + + public void setDurable(Boolean durable) { + this.durable = durable; + } + + /** + * A list of items referenced in the `Message`. + */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + @com.fasterxml.jackson.annotation.JsonPropertyDescription("A list of items referenced in the `Message`.") + @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) + private java.util.List items; + + public java.util.List getItems() { + return items; + } + + public void setItems(java.util.List items) { + this.items = items; + } + + /** + * When the last status transition occurred. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lastTransitionTime") + @io.fabric8.generator.annotation.Required() + @com.fasterxml.jackson.annotation.JsonPropertyDescription("When the last status transition occurred.") + @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) + private String lastTransitionTime; + + public String getLastTransitionTime() { + return lastTransitionTime; + } + + public void setLastTransitionTime(String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; + } + + /** + * The human readable description of the condition. + */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + @com.fasterxml.jackson.annotation.JsonPropertyDescription("The human readable description of the condition.") + @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) + private String message; + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + /** + * The reason for the condition or transition. + */ + @com.fasterxml.jackson.annotation.JsonProperty("reason") + @com.fasterxml.jackson.annotation.JsonPropertyDescription("The reason for the condition or transition.") + @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) + private String reason; + + public String getReason() { + return reason; + } + + public void setReason(String reason) { + this.reason = reason; + } + + /** + * The condition status [true,false]. + */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + @io.fabric8.generator.annotation.Required() + @com.fasterxml.jackson.annotation.JsonPropertyDescription("The condition status [true,false].") + @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) + private String status; + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + /** + * The condition type. + */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + @io.fabric8.generator.annotation.Required() + @com.fasterxml.jackson.annotation.JsonPropertyDescription("The condition type.") + @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) + private String type; + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + +} diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/pipeline/Error.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/Error.java similarity index 91% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/pipeline/Error.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/Error.java index 143781568..47fdbf7fe 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/pipeline/Error.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/Error.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.pipeline; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "phase", "reasons" }) diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/Hooks.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/Hooks.java similarity index 73% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/Hooks.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/Hooks.java index 6a1ca709f..b3fe1fb8f 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/Hooks.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/Hooks.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "hook", "step" }) @@ -14,14 +14,14 @@ public class Hooks implements io.fabric8.kubernetes.api.model.KubernetesResource @io.fabric8.generator.annotation.Required() @com.fasterxml.jackson.annotation.JsonPropertyDescription("Hook reference.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.hooks.Hook hook; + private com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.hooks.Hook hook; - public com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.hooks.Hook getHook() { + public com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.hooks.Hook getHook() { return hook; } public void setHook( - com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.hooks.Hook hook) { + com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.hooks.Hook hook) { this.hook = hook; } diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/Pipeline.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/Pipeline.java similarity index 77% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/Pipeline.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/Pipeline.java index fdfa8fad8..03cefc3a0 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/Pipeline.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/Pipeline.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "annotations", "completed", "description", "error", "name", @@ -62,14 +62,14 @@ public void setDescription(String description) { @com.fasterxml.jackson.annotation.JsonProperty("error") @com.fasterxml.jackson.annotation.JsonPropertyDescription("Error.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.pipeline.Error error; + private com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.pipeline.Error error; - public com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.pipeline.Error getError() { + public com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.pipeline.Error getError() { return error; } public void setError( - com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.pipeline.Error error) { + com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.pipeline.Error error) { this.error = error; } @@ -113,14 +113,14 @@ public void setPhase(String phase) { @io.fabric8.generator.annotation.Required() @com.fasterxml.jackson.annotation.JsonPropertyDescription("Progress.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.pipeline.Progress progress; + private com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.pipeline.Progress progress; - public com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.pipeline.Progress getProgress() { + public com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.pipeline.Progress getProgress() { return progress; } public void setProgress( - com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.pipeline.Progress progress) { + com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.pipeline.Progress progress) { this.progress = progress; } @@ -162,14 +162,14 @@ public void setStarted(String started) { @com.fasterxml.jackson.annotation.JsonProperty("tasks") @com.fasterxml.jackson.annotation.JsonPropertyDescription("Nested tasks.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private java.util.List tasks; + private java.util.List tasks; - public java.util.List getTasks() { + public java.util.List getTasks() { return tasks; } public void setTasks( - java.util.List tasks) { + java.util.List tasks) { this.tasks = tasks; } diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/Warm.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/Warm.java similarity index 80% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/Warm.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/Warm.java index f964aea80..96e0c84e6 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/Warm.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/Warm.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "consecutiveFailures", "failures", "nextPrecopyAt", "precopies", @@ -48,14 +48,14 @@ public void setNextPrecopyAt(String nextPrecopyAt) { @com.fasterxml.jackson.annotation.JsonProperty("precopies") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private java.util.List precopies; + private java.util.List precopies; - public java.util.List getPrecopies() { + public java.util.List getPrecopies() { return precopies; } public void setPrecopies( - java.util.List precopies) { + java.util.List precopies) { this.precopies = precopies; } diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/hooks/Hook.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/hooks/Hook.java similarity index 98% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/hooks/Hook.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/hooks/Hook.java index ea4e57a46..3a0462dbd 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/hooks/Hook.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/hooks/Hook.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.hooks; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.hooks; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "apiVersion", "fieldPath", "kind", "name", "namespace", diff --git a/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/pipeline/Error.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/pipeline/Error.java new file mode 100644 index 000000000..fbfcd5921 --- /dev/null +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/pipeline/Error.java @@ -0,0 +1,36 @@ +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.pipeline; + +@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) +@com.fasterxml.jackson.annotation.JsonPropertyOrder({ "phase", "reasons" }) +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + using = com.fasterxml.jackson.databind.JsonDeserializer.None.class) +@javax.annotation.processing.Generated("io.fabric8.java.generator.CRGeneratorRunner") +public class Error implements io.fabric8.kubernetes.api.model.KubernetesResource { + + @com.fasterxml.jackson.annotation.JsonProperty("phase") + @io.fabric8.generator.annotation.Required() + @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) + private String phase; + + public String getPhase() { + return phase; + } + + public void setPhase(String phase) { + this.phase = phase; + } + + @com.fasterxml.jackson.annotation.JsonProperty("reasons") + @io.fabric8.generator.annotation.Required() + @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) + private java.util.List reasons; + + public java.util.List getReasons() { + return reasons; + } + + public void setReasons(java.util.List reasons) { + this.reasons = reasons; + } + +} diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/pipeline/tasks/Progress.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/pipeline/Progress.java similarity index 92% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/pipeline/tasks/Progress.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/pipeline/Progress.java index b09438eed..e1aeaf1ea 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/pipeline/tasks/Progress.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/pipeline/Progress.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.pipeline.tasks; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.pipeline; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "completed", "total" }) diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/pipeline/Tasks.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/pipeline/Tasks.java similarity index 81% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/pipeline/Tasks.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/pipeline/Tasks.java index 44aa31710..48134998a 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/pipeline/Tasks.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/pipeline/Tasks.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.pipeline; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.pipeline; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "annotations", "completed", "description", "error", "name", @@ -62,14 +62,14 @@ public void setDescription(String description) { @com.fasterxml.jackson.annotation.JsonProperty("error") @com.fasterxml.jackson.annotation.JsonPropertyDescription("Error.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.pipeline.tasks.Error error; + private com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.pipeline.tasks.Error error; - public com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.pipeline.tasks.Error getError() { + public com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.pipeline.tasks.Error getError() { return error; } public void setError( - com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.pipeline.tasks.Error error) { + com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.pipeline.tasks.Error error) { this.error = error; } @@ -113,14 +113,14 @@ public void setPhase(String phase) { @io.fabric8.generator.annotation.Required() @com.fasterxml.jackson.annotation.JsonPropertyDescription("Progress.") @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.pipeline.tasks.Progress progress; + private com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.pipeline.tasks.Progress progress; - public com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.pipeline.tasks.Progress getProgress() { + public com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.pipeline.tasks.Progress getProgress() { return progress; } public void setProgress( - com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.pipeline.tasks.Progress progress) { + com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.pipeline.tasks.Progress progress) { this.progress = progress; } diff --git a/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/pipeline/tasks/Error.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/pipeline/tasks/Error.java new file mode 100644 index 000000000..5e0fb8d0f --- /dev/null +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/pipeline/tasks/Error.java @@ -0,0 +1,36 @@ +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.pipeline.tasks; + +@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) +@com.fasterxml.jackson.annotation.JsonPropertyOrder({ "phase", "reasons" }) +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + using = com.fasterxml.jackson.databind.JsonDeserializer.None.class) +@javax.annotation.processing.Generated("io.fabric8.java.generator.CRGeneratorRunner") +public class Error implements io.fabric8.kubernetes.api.model.KubernetesResource { + + @com.fasterxml.jackson.annotation.JsonProperty("phase") + @io.fabric8.generator.annotation.Required() + @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) + private String phase; + + public String getPhase() { + return phase; + } + + public void setPhase(String phase) { + this.phase = phase; + } + + @com.fasterxml.jackson.annotation.JsonProperty("reasons") + @io.fabric8.generator.annotation.Required() + @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) + private java.util.List reasons; + + public java.util.List getReasons() { + return reasons; + } + + public void setReasons(java.util.List reasons) { + this.reasons = reasons; + } + +} diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/pipeline/tasks/Progress.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/pipeline/tasks/Progress.java similarity index 91% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/pipeline/tasks/Progress.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/pipeline/tasks/Progress.java index 41eb4d648..a6e66caac 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/pipeline/tasks/Progress.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/pipeline/tasks/Progress.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.pipeline.tasks; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.pipeline.tasks; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "completed", "total" }) diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/warm/Precopies.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/warm/Precopies.java similarity index 92% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/warm/Precopies.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/warm/Precopies.java index 1f490e591..339b95deb 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/warm/Precopies.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/warm/Precopies.java @@ -1,4 +1,4 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.warm; +package com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.warm; @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) @com.fasterxml.jackson.annotation.JsonPropertyOrder({ "end", "snapshot", "start" }) diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/task/CreateMigrationWorkFlowTask.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/task/CreateMigrationWorkFlowTask.java similarity index 91% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/task/CreateMigrationWorkFlowTask.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/task/CreateMigrationWorkFlowTask.java index b2c7b2662..fdfa7a75d 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/task/CreateMigrationWorkFlowTask.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/task/CreateMigrationWorkFlowTask.java @@ -1,11 +1,11 @@ -package com.redhat.parodos.examples.vmmigration.task; +package com.redhat.parodos.vmmigration.task; import java.util.List; -import com.redhat.parodos.examples.vmmigration.constants.Constants; -import com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.Migration; -import com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.Plan; -import com.redhat.parodos.examples.vmmigration.util.Kubernetes; +import com.redhat.parodos.vmmigration.constants.Constants; +import com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.Migration; +import com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.Plan; +import com.redhat.parodos.vmmigration.util.Kubernetes; import com.redhat.parodos.workflow.exception.MissingParameterException; import com.redhat.parodos.workflow.parameter.WorkParameter; import com.redhat.parodos.workflow.task.infrastructure.BaseInfrastructureWorkFlowTask; diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/util/Kubernetes.java b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/util/Kubernetes.java similarity index 68% rename from workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/util/Kubernetes.java rename to prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/util/Kubernetes.java index 91b4a2c62..c9b80e307 100644 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/util/Kubernetes.java +++ b/prebuilt-tasks/src/main/java/com/redhat/parodos/vmmigration/util/Kubernetes.java @@ -1,18 +1,18 @@ -package com.redhat.parodos.examples.vmmigration.util; +package com.redhat.parodos.vmmigration.util; import java.util.List; -import com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.Migration; -import com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.MigrationSpec; -import com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.Plan; -import com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.PlanSpec; -import com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.Map; -import com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.Provider; -import com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.Vms; -import com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.map.Network; -import com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.map.Storage; -import com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.provider.Destination; -import com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.provider.Source; +import com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.Migration; +import com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.MigrationSpec; +import com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.Plan; +import com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.PlanSpec; +import com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.Map; +import com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.Provider; +import com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.Vms; +import com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.map.Network; +import com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.map.Storage; +import com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.provider.Destination; +import com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planspec.provider.Source; import io.fabric8.kubernetes.api.model.ObjectMeta; import io.fabric8.kubernetes.client.Config; import io.fabric8.kubernetes.client.ConfigBuilder; @@ -47,7 +47,7 @@ public static Config buildKubernetesClient(String apiUrl, String token, String c } public static Migration createMigration(String planName, String namespace) { - com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationspec.Plan plan = new com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationspec.Plan(); + com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationspec.Plan plan = new com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationspec.Plan(); plan.setName(planName); plan.setNamespace(namespace); ObjectMeta metadata = new ObjectMeta(null, null, null, null, null, null, null, null, null, planName, namespace, @@ -107,7 +107,7 @@ public static Plan createPlan(String vmName, String storageName, String networkN ObjectMeta metadata = new ObjectMeta(null, null, null, null, null, null, null, null, null, "%s-%s".formatted(vmName, generatedString), namespaceName, null, null, null, null); - com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.Plan plan = new com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.Plan(); + com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.Plan plan = new com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.Plan(); plan.setMetadata(metadata); plan.setSpec(spec); return plan; diff --git a/workflow-examples/src/test/java/com/redhat/parodos/examples/vmmigration/assessment/VmMigrationWorkFlowTaskTest.java b/prebuilt-tasks/src/test/java/com/redhat/parodos/tasks/vmmigration/assessment/VmMigrationWorkFlowTaskTest.java similarity index 63% rename from workflow-examples/src/test/java/com/redhat/parodos/examples/vmmigration/assessment/VmMigrationWorkFlowTaskTest.java rename to prebuilt-tasks/src/test/java/com/redhat/parodos/tasks/vmmigration/assessment/VmMigrationWorkFlowTaskTest.java index 6b023231c..fd1ed0dc1 100644 --- a/workflow-examples/src/test/java/com/redhat/parodos/examples/vmmigration/assessment/VmMigrationWorkFlowTaskTest.java +++ b/prebuilt-tasks/src/test/java/com/redhat/parodos/tasks/vmmigration/assessment/VmMigrationWorkFlowTaskTest.java @@ -1,43 +1,38 @@ -package com.redhat.parodos.examples.vmmigration.assessment; - -import static org.assertj.core.api.BDDAssertions.then; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; -import static org.mockito.ArgumentMatchers.eq; -import static org.mockito.Mockito.doReturn; -import static org.mockito.Mockito.spy; +package com.redhat.parodos.tasks.vmmigration.assessment; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.UUID; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -import com.redhat.parodos.examples.base.BaseInfrastructureWorkFlowTaskTest; -import com.redhat.parodos.examples.vmmigration.constants.Constants; -import com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.Plan; -import com.redhat.parodos.examples.vmmigration.task.CreateMigrationWorkFlowTask; -import com.redhat.parodos.examples.vmmigration.util.Kubernetes; +import com.redhat.parodos.vmmigration.assessment.VmMigrationWorkFlowTask; +import com.redhat.parodos.vmmigration.constants.Constants; +import com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.Plan; +import com.redhat.parodos.vmmigration.util.Kubernetes; import com.redhat.parodos.workflow.consts.WorkFlowConstants; import com.redhat.parodos.workflow.context.WorkContextDelegate; import com.redhat.parodos.workflow.option.WorkFlowOption; -import com.redhat.parodos.workflow.task.infrastructure.BaseInfrastructureWorkFlowTask; import com.redhat.parodos.workflow.utils.WorkContextUtils; import com.redhat.parodos.workflows.work.WorkContext; import com.redhat.parodos.workflows.work.WorkReport; import com.redhat.parodos.workflows.work.WorkStatus; - import io.fabric8.kubernetes.api.model.KubernetesResourceList; import io.fabric8.kubernetes.client.dsl.MixedOperation; import io.fabric8.kubernetes.client.dsl.Resource; import io.fabric8.openshift.client.OpenShiftClient; -import io.fabric8.openshift.client.OpenShiftConfig; import io.fabric8.openshift.client.server.mock.OpenShiftServer; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; + +import static org.assertj.core.api.BDDAssertions.then; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertTrue; +import static org.mockito.ArgumentMatchers.eq; +import static org.mockito.Mockito.doReturn; +import static org.mockito.Mockito.spy; -public class VmMigrationWorkFlowTaskTest extends BaseInfrastructureWorkFlowTaskTest { +public class VmMigrationWorkFlowTaskTest { private static WorkContext ctx; @@ -51,15 +46,16 @@ public class VmMigrationWorkFlowTaskTest extends BaseInfrastructureWorkFlowTaskT Constants.DESTINATION_PROVIDER_TYPE_PARAMETER_NAME, Constants.SOURCE_PROVIDER_TYPE_PARAMETER_NAME, Constants.KUBERNETES_CA_CERT_PARAMETER_NAME, Constants.VM_NAME_PARAMETER_NAME }; - private List vmOptions; + private List vmOptions; + @Before public void setUp() { - this.vmOptions=List.of(new WorkFlowOption.Builder("vmMigrationOption", + this.vmOptions = List.of(new WorkFlowOption.Builder("vmMigrationOption", "vmMigrationWorkFlow" + WorkFlowConstants.INFRASTRUCTURE_WORKFLOW) - .addToDetails("this is the flow to migrate the VM to OCP Virtualization") - .displayName("VM Migration to OCP Virtualization") - .setDescription("this is the flow to migrate the VM to OCP Virtualization").build()); + .addToDetails("this is the flow to migrate the VM to OCP Virtualization") + .displayName("VM Migration to OCP Virtualization") + .setDescription("this is the flow to migrate the VM to OCP Virtualization").build()); this.vmMigrationWorkFlowTask = spy((VmMigrationWorkFlowTask) new VmMigrationWorkFlowTask(this.vmOptions)); @@ -85,18 +81,14 @@ public void tearDown() { mockServer.after(); } - @Override - protected BaseInfrastructureWorkFlowTask getConcretePersonImplementation() { - return new CreateMigrationWorkFlowTask(); - } - @Test public void executeSuccess() { // given - Plan expectedPlan = Kubernetes.createPlan(Constants.VM_NAME_PARAMETER_NAME, Constants.STORAGE_NAME_PARAMETER_NAME, - Constants.NETWORK_NAME_PARAMETER_NAME, Constants.NAMESPACE_NAME_PARAMETER_NAME, - Constants.DESTINATION_PROVIDER_TYPE_PARAMETER_NAME, Constants.SOURCE_PROVIDER_TYPE_PARAMETER_NAME); + Plan expectedPlan = Kubernetes.createPlan(Constants.VM_NAME_PARAMETER_NAME, + Constants.STORAGE_NAME_PARAMETER_NAME, Constants.NETWORK_NAME_PARAMETER_NAME, + Constants.NAMESPACE_NAME_PARAMETER_NAME, Constants.DESTINATION_PROVIDER_TYPE_PARAMETER_NAME, + Constants.SOURCE_PROVIDER_TYPE_PARAMETER_NAME); // when vmMigrationWorkFlowTask.preExecute(ctx); WorkReport workReport = this.vmMigrationWorkFlowTask.execute(ctx); @@ -104,26 +96,26 @@ public void executeSuccess() { // then assertEquals(WorkStatus.COMPLETED, workReport.getStatus()); // validate plans - OpenShiftClient client= mockServer.getOpenShiftMockServer().createOpenShiftClient(); - MixedOperation, Resource> planClient = client - .resources(Plan.class); - KubernetesResourceList plans= planClient.inNamespace(Constants.NAMESPACE_NAME_PARAMETER_NAME).list(); - assertEquals(plans.getItems().size(),1); + OpenShiftClient client = mockServer.getOpenShiftMockServer().createOpenShiftClient(); + MixedOperation, Resource> planClient = client.resources(Plan.class); + KubernetesResourceList plans = planClient.inNamespace(Constants.NAMESPACE_NAME_PARAMETER_NAME).list(); + assertEquals(plans.getItems().size(), 1); Plan actualPlan = plans.getItems().get(0); then(actualPlan.getSpec()).usingRecursiveComparison().isEqualTo(expectedPlan.getSpec()); assertTrue(actualPlan.getMetadata().getName().startsWith(Constants.VM_NAME_PARAMETER_NAME)); - Map params = WorkContextUtils.getAllParameters(ctx,Constants.PLAN_NAME_PARAMETER_NAME); - assertEquals(params.get(Constants.PLAN_NAME_PARAMETER_NAME),actualPlan.getMetadata().getName()); + Map params = WorkContextUtils.getAllParameters(ctx, Constants.PLAN_NAME_PARAMETER_NAME); + assertEquals(params.get(Constants.PLAN_NAME_PARAMETER_NAME), actualPlan.getMetadata().getName()); // kubeconfig - params = WorkContextUtils.getAllParameters(ctx,Constants.KUBERNETES_API_SERVER_URL_PARAMETER_NAME); - OpenShiftConfig config = OpenShiftConfig.wrap(client.getConfiguration()); - assertEquals(params.get(Constants.KUBERNETES_API_SERVER_URL_PARAMETER_NAME),Constants.KUBERNETES_API_SERVER_URL_PARAMETER_NAME); - assertEquals(params.get(Constants.KUBERNETES_TOKEN_PARAMETER_NAME),Constants.KUBERNETES_TOKEN_PARAMETER_NAME); - assertEquals(params.get(Constants.NAMESPACE_NAME_PARAMETER_NAME),Constants.NAMESPACE_NAME_PARAMETER_NAME); - assertEquals(params.get(Constants.KUBERNETES_CA_CERT_PARAMETER_NAME),Constants.KUBERNETES_CA_CERT_PARAMETER_NAME); + params = WorkContextUtils.getAllParameters(ctx, Constants.KUBERNETES_API_SERVER_URL_PARAMETER_NAME); + assertEquals(params.get(Constants.KUBERNETES_API_SERVER_URL_PARAMETER_NAME), + Constants.KUBERNETES_API_SERVER_URL_PARAMETER_NAME); + assertEquals(params.get(Constants.KUBERNETES_TOKEN_PARAMETER_NAME), Constants.KUBERNETES_TOKEN_PARAMETER_NAME); + assertEquals(params.get(Constants.NAMESPACE_NAME_PARAMETER_NAME), Constants.NAMESPACE_NAME_PARAMETER_NAME); + assertEquals(params.get(Constants.KUBERNETES_CA_CERT_PARAMETER_NAME), + Constants.KUBERNETES_CA_CERT_PARAMETER_NAME); } } diff --git a/workflow-examples/src/test/java/com/redhat/parodos/examples/vmmigration/checker/MigrationStatusWorkFlowCheckerTest.java b/prebuilt-tasks/src/test/java/com/redhat/parodos/tasks/vmmigration/checker/MigrationStatusWorkFlowCheckerTest.java similarity index 73% rename from workflow-examples/src/test/java/com/redhat/parodos/examples/vmmigration/checker/MigrationStatusWorkFlowCheckerTest.java rename to prebuilt-tasks/src/test/java/com/redhat/parodos/tasks/vmmigration/checker/MigrationStatusWorkFlowCheckerTest.java index 936cb09fe..907a5af91 100644 --- a/workflow-examples/src/test/java/com/redhat/parodos/examples/vmmigration/checker/MigrationStatusWorkFlowCheckerTest.java +++ b/prebuilt-tasks/src/test/java/com/redhat/parodos/tasks/vmmigration/checker/MigrationStatusWorkFlowCheckerTest.java @@ -1,23 +1,19 @@ -package com.redhat.parodos.examples.vmmigration.checker; +package com.redhat.parodos.tasks.vmmigration.checker; -import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.UUID; -import com.redhat.parodos.examples.base.BaseInfrastructureWorkFlowTaskTest; -import com.redhat.parodos.examples.vmmigration.constants.Constants; -import com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.Migration; -import com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.MigrationStatus; -import com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.Conditions; -import com.redhat.parodos.examples.vmmigration.task.CreateMigrationWorkFlowTask; -import com.redhat.parodos.examples.vmmigration.util.Kubernetes; +import com.redhat.parodos.vmmigration.checker.MigrationStatusWorkFlowChecker; +import com.redhat.parodos.vmmigration.constants.Constants; +import com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.Migration; +import com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.MigrationStatus; +import com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.Conditions; +import com.redhat.parodos.vmmigration.util.Kubernetes; import com.redhat.parodos.workflow.context.WorkContextDelegate; -import com.redhat.parodos.workflow.task.infrastructure.BaseInfrastructureWorkFlowTask; import com.redhat.parodos.workflows.work.WorkContext; import com.redhat.parodos.workflows.work.WorkReport; import com.redhat.parodos.workflows.work.WorkStatus; -import io.fabric8.kubernetes.api.model.StatusDetails; import io.fabric8.openshift.client.server.mock.OpenShiftServer; import org.junit.After; import org.junit.Before; @@ -29,7 +25,9 @@ import static org.mockito.Mockito.doReturn; import static org.mockito.Mockito.spy; -public class MigrationStatusWorkFlowCheckerTest extends BaseInfrastructureWorkFlowTaskTest { +public class MigrationStatusWorkFlowCheckerTest { + + private String workflowTestName = "workflowName"; private static WorkContext ctx; @@ -39,11 +37,12 @@ public class MigrationStatusWorkFlowCheckerTest extends BaseInfrastructureWorkFl private static final String[] requiredParamKeys = { Constants.KUBERNETES_API_SERVER_URL_PARAMETER_NAME, Constants.KUBERNETES_TOKEN_PARAMETER_NAME, Constants.NAMESPACE_NAME_PARAMETER_NAME, - Constants.KUBERNETES_CA_CERT_PARAMETER_NAME, Constants.MIGRATION_NAME_PARAMETER_NAME}; + Constants.KUBERNETES_CA_CERT_PARAMETER_NAME, Constants.MIGRATION_NAME_PARAMETER_NAME }; @Before public void setUp() { - this.migrationStatusWorkFlowChecker = spy((MigrationStatusWorkFlowChecker) new MigrationStatusWorkFlowChecker()); + this.migrationStatusWorkFlowChecker = spy( + (MigrationStatusWorkFlowChecker) new MigrationStatusWorkFlowChecker()); migrationStatusWorkFlowChecker.setBeanName("migrationStatusWorkFlowChecker"); ctx = new WorkContext(); @@ -69,17 +68,13 @@ public void tearDown() { mockServer.after(); } - @Override - protected BaseInfrastructureWorkFlowTask getConcretePersonImplementation() { - return new CreateMigrationWorkFlowTask(); - } - @Test public void executeSuccessFirstCondition() { // given -Migration expectedMigration = Kubernetes.createMigration(Constants.MIGRATION_NAME_PARAMETER_NAME,Constants.NAMESPACE_NAME_PARAMETER_NAME); - + Migration expectedMigration = Kubernetes.createMigration(Constants.MIGRATION_NAME_PARAMETER_NAME, + Constants.NAMESPACE_NAME_PARAMETER_NAME); + expectedMigration.getMetadata().setName(workflowTestName); MigrationStatus status = new MigrationStatus(); Conditions condition = new Conditions(); @@ -99,12 +94,13 @@ public void executeSuccessFirstCondition() { assertEquals(WorkStatus.COMPLETED, workReport.getStatus()); } - @Test + @Test public void executeSuccessOnSecondCondition() { // given -Migration expectedMigration = Kubernetes.createMigration(Constants.MIGRATION_NAME_PARAMETER_NAME,Constants.NAMESPACE_NAME_PARAMETER_NAME); - + Migration expectedMigration = Kubernetes.createMigration(Constants.MIGRATION_NAME_PARAMETER_NAME, + Constants.NAMESPACE_NAME_PARAMETER_NAME); + expectedMigration.getMetadata().setName(workflowTestName); MigrationStatus status = new MigrationStatus(); Conditions condition1 = new Conditions(); @@ -113,7 +109,7 @@ public void executeSuccessOnSecondCondition() { Conditions condition2 = new Conditions(); condition2.setType("Succeeded"); condition2.setStatus("True"); - status.setConditions(List.of(condition1,condition2)); + status.setConditions(List.of(condition1, condition2)); expectedMigration.setStatus(status); mockServer.expect().get() .withPath("/apis/forklift.konveyor.io/v1beta1/namespaces/%s/migrations/%s" @@ -131,7 +127,8 @@ public void executeSuccessOnSecondCondition() { public void executeFail() { // given - Migration migration = Kubernetes.createMigration(Constants.MIGRATION_NAME_PARAMETER_NAME,Constants.NAMESPACE_NAME_PARAMETER_NAME); + Migration migration = Kubernetes.createMigration(Constants.MIGRATION_NAME_PARAMETER_NAME, + Constants.NAMESPACE_NAME_PARAMETER_NAME); migration.getMetadata().setName(workflowTestName); MigrationStatus status = new MigrationStatus(); Conditions condition = new Conditions(); diff --git a/workflow-examples/src/test/java/com/redhat/parodos/examples/vmmigration/checker/PlanStatusWorkFlowCheckerTest.java b/prebuilt-tasks/src/test/java/com/redhat/parodos/tasks/vmmigration/checker/PlanStatusWorkFlowCheckerTest.java similarity index 87% rename from workflow-examples/src/test/java/com/redhat/parodos/examples/vmmigration/checker/PlanStatusWorkFlowCheckerTest.java rename to prebuilt-tasks/src/test/java/com/redhat/parodos/tasks/vmmigration/checker/PlanStatusWorkFlowCheckerTest.java index 821371dad..ace2521b7 100644 --- a/workflow-examples/src/test/java/com/redhat/parodos/examples/vmmigration/checker/PlanStatusWorkFlowCheckerTest.java +++ b/prebuilt-tasks/src/test/java/com/redhat/parodos/tasks/vmmigration/checker/PlanStatusWorkFlowCheckerTest.java @@ -1,19 +1,17 @@ -package com.redhat.parodos.examples.vmmigration.checker; +package com.redhat.parodos.tasks.vmmigration.checker; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.UUID; -import com.redhat.parodos.examples.base.BaseInfrastructureWorkFlowTaskTest; -import com.redhat.parodos.examples.vmmigration.constants.Constants; -import com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.Plan; -import com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.PlanStatus; -import com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.Conditions; -import com.redhat.parodos.examples.vmmigration.task.CreateMigrationWorkFlowTask; -import com.redhat.parodos.examples.vmmigration.util.Kubernetes; +import com.redhat.parodos.vmmigration.checker.PlanStatusWorkFlowChecker; +import com.redhat.parodos.vmmigration.constants.Constants; +import com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.Plan; +import com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.PlanStatus; +import com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.Conditions; +import com.redhat.parodos.vmmigration.util.Kubernetes; import com.redhat.parodos.workflow.context.WorkContextDelegate; -import com.redhat.parodos.workflow.task.infrastructure.BaseInfrastructureWorkFlowTask; import com.redhat.parodos.workflows.work.WorkContext; import com.redhat.parodos.workflows.work.WorkReport; import com.redhat.parodos.workflows.work.WorkStatus; @@ -29,7 +27,9 @@ import static org.mockito.Mockito.doReturn; import static org.mockito.Mockito.spy; -public class PlanStatusWorkFlowCheckerTest extends BaseInfrastructureWorkFlowTaskTest { +public class PlanStatusWorkFlowCheckerTest { + + private String workflowTestName = "workflowName"; private static WorkContext ctx; @@ -69,11 +69,6 @@ public void tearDown() { mockServer.after(); } - @Override - protected BaseInfrastructureWorkFlowTask getConcretePersonImplementation() { - return new CreateMigrationWorkFlowTask(); - } - @Test public void executeSuccess() { diff --git a/workflow-examples/src/test/java/com/redhat/parodos/examples/vmmigration/task/CreateMigrationWorkFlowTaskTest.java b/prebuilt-tasks/src/test/java/com/redhat/parodos/tasks/vmmigration/task/CreateMigrationWorkFlowTaskTest.java similarity index 67% rename from workflow-examples/src/test/java/com/redhat/parodos/examples/vmmigration/task/CreateMigrationWorkFlowTaskTest.java rename to prebuilt-tasks/src/test/java/com/redhat/parodos/tasks/vmmigration/task/CreateMigrationWorkFlowTaskTest.java index 3a116bced..9950a3bcc 100644 --- a/workflow-examples/src/test/java/com/redhat/parodos/examples/vmmigration/task/CreateMigrationWorkFlowTaskTest.java +++ b/prebuilt-tasks/src/test/java/com/redhat/parodos/tasks/vmmigration/task/CreateMigrationWorkFlowTaskTest.java @@ -1,38 +1,35 @@ -package com.redhat.parodos.examples.vmmigration.task; - -import static org.assertj.core.api.BDDAssertions.then; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; -import static org.mockito.ArgumentMatchers.eq; -import static org.mockito.Mockito.doReturn; -import static org.mockito.Mockito.spy; +package com.redhat.parodos.tasks.vmmigration.task; import java.util.HashMap; import java.util.UUID; -import org.assertj.core.api.Assertions; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -import com.redhat.parodos.examples.base.BaseInfrastructureWorkFlowTaskTest; -import com.redhat.parodos.examples.vmmigration.constants.Constants; -import com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.Migration; -import com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.Plan; -import com.redhat.parodos.examples.vmmigration.util.Kubernetes; +import com.redhat.parodos.vmmigration.constants.Constants; +import com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.Migration; +import com.redhat.parodos.vmmigration.dto.io.konveyor.forklift.v1beta1.Plan; +import com.redhat.parodos.vmmigration.task.CreateMigrationWorkFlowTask; +import com.redhat.parodos.vmmigration.util.Kubernetes; import com.redhat.parodos.workflow.context.WorkContextDelegate; -import com.redhat.parodos.workflow.task.infrastructure.BaseInfrastructureWorkFlowTask; import com.redhat.parodos.workflows.work.WorkContext; import com.redhat.parodos.workflows.work.WorkReport; import com.redhat.parodos.workflows.work.WorkStatus; - import io.fabric8.kubernetes.api.model.KubernetesResourceList; import io.fabric8.kubernetes.client.dsl.MixedOperation; import io.fabric8.kubernetes.client.dsl.Resource; import io.fabric8.openshift.client.OpenShiftClient; import io.fabric8.openshift.client.server.mock.OpenShiftServer; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; -public class CreateMigrationWorkFlowTaskTest extends BaseInfrastructureWorkFlowTaskTest { +import static org.assertj.core.api.Assertions.assertThat; +import static org.assertj.core.api.BDDAssertions.then; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertTrue; +import static org.mockito.ArgumentMatchers.eq; +import static org.mockito.Mockito.doReturn; +import static org.mockito.Mockito.spy; + +public class CreateMigrationWorkFlowTaskTest { private static WorkContext ctx; @@ -40,8 +37,6 @@ public class CreateMigrationWorkFlowTaskTest extends BaseInfrastructureWorkFlowT private CreateMigrationWorkFlowTask createMigrationWorkFlowTask; - - private static final String[] requiredParamKeys = { Constants.KUBERNETES_API_SERVER_URL_PARAMETER_NAME, Constants.KUBERNETES_TOKEN_PARAMETER_NAME, Constants.STORAGE_NAME_PARAMETER_NAME, Constants.NETWORK_NAME_PARAMETER_NAME, Constants.NAMESPACE_NAME_PARAMETER_NAME, @@ -67,38 +62,32 @@ public void setUp() { doReturn(mockServer.getKubernetesClient()).when(this.createMigrationWorkFlowTask).getKubernetesClient( eq(Constants.KUBERNETES_API_SERVER_URL_PARAMETER_NAME), eq(Constants.KUBERNETES_TOKEN_PARAMETER_NAME), eq(Constants.KUBERNETES_CA_CERT_PARAMETER_NAME)); - } + } @After public void tearDown() { mockServer.after(); } - @Override - protected BaseInfrastructureWorkFlowTask getConcretePersonImplementation() { - return new CreateMigrationWorkFlowTask(); - } - @Test public void executeSuccess() { // given - Plan expectedPlan = Kubernetes.createPlan(Constants.VM_NAME_PARAMETER_NAME, Constants.STORAGE_NAME_PARAMETER_NAME, - Constants.NETWORK_NAME_PARAMETER_NAME, Constants.NAMESPACE_NAME_PARAMETER_NAME, - Constants.DESTINATION_PROVIDER_TYPE_PARAMETER_NAME, Constants.SOURCE_PROVIDER_TYPE_PARAMETER_NAME); + Plan expectedPlan = Kubernetes.createPlan(Constants.VM_NAME_PARAMETER_NAME, + Constants.STORAGE_NAME_PARAMETER_NAME, Constants.NETWORK_NAME_PARAMETER_NAME, + Constants.NAMESPACE_NAME_PARAMETER_NAME, Constants.DESTINATION_PROVIDER_TYPE_PARAMETER_NAME, + Constants.SOURCE_PROVIDER_TYPE_PARAMETER_NAME); // when createMigrationWorkFlowTask.preExecute(ctx); WorkReport workReport = this.createMigrationWorkFlowTask.execute(ctx); // then assertEquals(WorkStatus.COMPLETED, workReport.getStatus()); - - OpenShiftClient client= mockServer.getOpenShiftMockServer().createOpenShiftClient(); + OpenShiftClient client = mockServer.getOpenShiftMockServer().createOpenShiftClient(); // validate plans - MixedOperation, Resource> planClient = client - .resources(Plan.class); - KubernetesResourceList plans= planClient.inNamespace(Constants.NAMESPACE_NAME_PARAMETER_NAME).list(); - assertEquals(plans.getItems().size(),1); + MixedOperation, Resource> planClient = client.resources(Plan.class); + KubernetesResourceList plans = planClient.inNamespace(Constants.NAMESPACE_NAME_PARAMETER_NAME).list(); + assertEquals(plans.getItems().size(), 1); Plan actualPlan = plans.getItems().get(0); then(actualPlan.getSpec()).usingRecursiveComparison().isEqualTo(expectedPlan.getSpec()); @@ -107,12 +96,15 @@ public void executeSuccess() { // validate migration MixedOperation, Resource> migrationClient = client .resources(Migration.class); - KubernetesResourceList migrations = migrationClient.inNamespace(Constants.NAMESPACE_NAME_PARAMETER_NAME).list(); - assertEquals(migrations.getItems().size(),1); + KubernetesResourceList migrations = migrationClient + .inNamespace(Constants.NAMESPACE_NAME_PARAMETER_NAME).list(); + assertEquals(migrations.getItems().size(), 1); Migration actualMigration = migrations.getItems().get(0); - Migration expectedMigration = Kubernetes.createMigration(actualPlan.getMetadata().getName(),Constants.NAMESPACE_NAME_PARAMETER_NAME); - Assertions.assertThat(actualMigration.getSpec()).usingRecursiveComparison().isEqualTo(expectedMigration.getSpec()); - assertEquals(expectedMigration.getMetadata().getName(),actualMigration.getMetadata().getName()); + Migration expectedMigration = Kubernetes.createMigration(actualPlan.getMetadata().getName(), + Constants.NAMESPACE_NAME_PARAMETER_NAME); + + assertThat(actualMigration.getSpec()).usingRecursiveComparison().isEqualTo(expectedMigration.getSpec()); + assertEquals(expectedMigration.getMetadata().getName(), actualMigration.getMetadata().getName()); } diff --git a/workflow-examples/pom.xml b/workflow-examples/pom.xml index 60c8c46ea..f3626d04a 100644 --- a/workflow-examples/pom.xml +++ b/workflow-examples/pom.xml @@ -92,27 +92,6 @@ org.mockito mockito-inline - - io.fabric8 - kubernetes-client - ${fabric8.version} - - - io.fabric8 - openshift-client - ${fabric8.version} - - - io.fabric8 - openshift-server-mock - ${fabric8.version} - test - - - io.fabric8 - generator-annotations - ${fabric8.version} - diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/pipeline/tasks/Error.java b/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/pipeline/tasks/Error.java deleted file mode 100644 index 6371c6951..000000000 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/migrationstatus/vms/pipeline/tasks/Error.java +++ /dev/null @@ -1,36 +0,0 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.migrationstatus.vms.pipeline.tasks; - -@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) -@com.fasterxml.jackson.annotation.JsonPropertyOrder({ "phase", "reasons" }) -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - using = com.fasterxml.jackson.databind.JsonDeserializer.None.class) -@javax.annotation.processing.Generated("io.fabric8.java.generator.CRGeneratorRunner") -public class Error implements io.fabric8.kubernetes.api.model.KubernetesResource { - - @com.fasterxml.jackson.annotation.JsonProperty("phase") - @io.fabric8.generator.annotation.Required() - @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private String phase; - - public String getPhase() { - return phase; - } - - public void setPhase(String phase) { - this.phase = phase; - } - - @com.fasterxml.jackson.annotation.JsonProperty("reasons") - @io.fabric8.generator.annotation.Required() - @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private java.util.List reasons; - - public java.util.List getReasons() { - return reasons; - } - - public void setReasons(java.util.List reasons) { - this.reasons = reasons; - } - -} diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/Conditions.java b/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/Conditions.java deleted file mode 100644 index 113ecc17a..000000000 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/history/Conditions.java +++ /dev/null @@ -1,143 +0,0 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.history; - -@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) -@com.fasterxml.jackson.annotation.JsonPropertyOrder({ "category", "durable", "items", "lastTransitionTime", "message", - "reason", "status", "type" }) -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - using = com.fasterxml.jackson.databind.JsonDeserializer.None.class) -@javax.annotation.processing.Generated("io.fabric8.java.generator.CRGeneratorRunner") -public class Conditions implements io.fabric8.kubernetes.api.model.KubernetesResource { - - /** - * The condition category. - */ - @com.fasterxml.jackson.annotation.JsonProperty("category") - @io.fabric8.generator.annotation.Required() - @com.fasterxml.jackson.annotation.JsonPropertyDescription("The condition category.") - @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private String category; - - public String getCategory() { - return category; - } - - public void setCategory(String category) { - this.category = category; - } - - /** - * The condition is durable - never un-staged. - */ - @com.fasterxml.jackson.annotation.JsonProperty("durable") - @com.fasterxml.jackson.annotation.JsonPropertyDescription("The condition is durable - never un-staged.") - @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private Boolean durable; - - public Boolean getDurable() { - return durable; - } - - public void setDurable(Boolean durable) { - this.durable = durable; - } - - /** - * A list of items referenced in the `Message`. - */ - @com.fasterxml.jackson.annotation.JsonProperty("items") - @com.fasterxml.jackson.annotation.JsonPropertyDescription("A list of items referenced in the `Message`.") - @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private java.util.List items; - - public java.util.List getItems() { - return items; - } - - public void setItems(java.util.List items) { - this.items = items; - } - - /** - * When the last status transition occurred. - */ - @com.fasterxml.jackson.annotation.JsonProperty("lastTransitionTime") - @io.fabric8.generator.annotation.Required() - @com.fasterxml.jackson.annotation.JsonPropertyDescription("When the last status transition occurred.") - @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private String lastTransitionTime; - - public String getLastTransitionTime() { - return lastTransitionTime; - } - - public void setLastTransitionTime(String lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - } - - /** - * The human readable description of the condition. - */ - @com.fasterxml.jackson.annotation.JsonProperty("message") - @com.fasterxml.jackson.annotation.JsonPropertyDescription("The human readable description of the condition.") - @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private String message; - - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - /** - * The reason for the condition or transition. - */ - @com.fasterxml.jackson.annotation.JsonProperty("reason") - @com.fasterxml.jackson.annotation.JsonPropertyDescription("The reason for the condition or transition.") - @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private String reason; - - public String getReason() { - return reason; - } - - public void setReason(String reason) { - this.reason = reason; - } - - /** - * The condition status [true,false]. - */ - @com.fasterxml.jackson.annotation.JsonProperty("status") - @io.fabric8.generator.annotation.Required() - @com.fasterxml.jackson.annotation.JsonPropertyDescription("The condition status [true,false].") - @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private String status; - - public String getStatus() { - return status; - } - - public void setStatus(String status) { - this.status = status; - } - - /** - * The condition type. - */ - @com.fasterxml.jackson.annotation.JsonProperty("type") - @io.fabric8.generator.annotation.Required() - @com.fasterxml.jackson.annotation.JsonPropertyDescription("The condition type.") - @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private String type; - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - -} diff --git a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/pipeline/tasks/Error.java b/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/pipeline/tasks/Error.java deleted file mode 100644 index aaa69ded6..000000000 --- a/workflow-examples/src/main/java/com/redhat/parodos/examples/vmmigration/dto/io/konveyor/forklift/v1beta1/planstatus/migration/vms/pipeline/tasks/Error.java +++ /dev/null @@ -1,36 +0,0 @@ -package com.redhat.parodos.examples.vmmigration.dto.io.konveyor.forklift.v1beta1.planstatus.migration.vms.pipeline.tasks; - -@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) -@com.fasterxml.jackson.annotation.JsonPropertyOrder({ "phase", "reasons" }) -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - using = com.fasterxml.jackson.databind.JsonDeserializer.None.class) -@javax.annotation.processing.Generated("io.fabric8.java.generator.CRGeneratorRunner") -public class Error implements io.fabric8.kubernetes.api.model.KubernetesResource { - - @com.fasterxml.jackson.annotation.JsonProperty("phase") - @io.fabric8.generator.annotation.Required() - @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private String phase; - - public String getPhase() { - return phase; - } - - public void setPhase(String phase) { - this.phase = phase; - } - - @com.fasterxml.jackson.annotation.JsonProperty("reasons") - @io.fabric8.generator.annotation.Required() - @com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) - private java.util.List reasons; - - public java.util.List getReasons() { - return reasons; - } - - public void setReasons(java.util.List reasons) { - this.reasons = reasons; - } - -}