Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
igpetrov committed Feb 26, 2024
1 parent 73f9e95 commit e101f14
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 960 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,10 @@
},
"type" : "Dropdown",
"choices" : [ {
"name" : "FILE",
"name" : "Create file from template",
"value" : "FILE"
}, {
"name" : "FOLDER",
"name" : "Create folder",
"value" : "FOLDER"
} ]
}, {
Expand All @@ -184,7 +184,7 @@
"id" : "resource.parent",
"label" : "Parent folder ID",
"description" : "Your resources will be created here. If left empty, a new resource will appear in the root folder",
"optional" : false,
"optional" : true,
"feel" : "optional",
"group" : "operationDetails",
"binding" : {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,10 @@
},
"type" : "Dropdown",
"choices" : [ {
"name" : "FILE",
"name" : "Create file from template",
"value" : "FILE"
}, {
"name" : "FOLDER",
"name" : "Create folder",
"value" : "FOLDER"
} ]
}, {
Expand All @@ -179,7 +179,7 @@
"id" : "resource.parent",
"label" : "Parent folder ID",
"description" : "Your resources will be created here. If left empty, a new resource will appear in the root folder",
"optional" : false,
"optional" : true,
"feel" : "optional",
"group" : "operationDetails",
"binding" : {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@
*/
package io.camunda.connector.gdrive.model.request;

import static io.camunda.connector.generator.java.annotation.TemplateProperty.PropertyType.Dropdown;

import com.fasterxml.jackson.databind.JsonNode;
import io.camunda.connector.generator.dsl.Property.FeelMode;
import io.camunda.connector.generator.java.annotation.TemplateProperty;
import io.camunda.connector.generator.java.annotation.TemplateProperty.DropdownPropertyChoice;
import io.camunda.connector.generator.java.annotation.TemplateProperty.PropertyCondition;
import io.camunda.connector.generator.java.annotation.TemplateProperty.PropertyConstraints;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
Expand All @@ -21,8 +25,13 @@ public class Resource {
id = "type",
label = "Operation",
group = "operation",
feel = FeelMode.optional,
defaultValue = "FOLDER")
type = Dropdown,
defaultValue = "FOLDER",
constraints = @PropertyConstraints(notEmpty = true),
choices = {
@DropdownPropertyChoice(label = "Create folder", value = "FOLDER"),
@DropdownPropertyChoice(label = "Create file from template", value = "FILE")
})
@NotNull
private Type type;

Expand All @@ -41,6 +50,7 @@ public class Resource {
"Your resources will be created here. "
+ "If left empty, a new resource will appear in the root folder",
group = "operationDetails",
optional = true,
feel = FeelMode.optional)
private String parent;

Expand Down
Loading

0 comments on commit e101f14

Please sign in to comment.