-
Notifications
You must be signed in to change notification settings - Fork 750
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
23 changed files
with
313 additions
and
67 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
...flow-config-service-api/src/main/idl/org.apache.gobblin.service.flowconfigs.restspec.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"name" : "flowconfigs", | ||
"namespace" : "org.apache.gobblin.service", | ||
"path" : "/flowconfigs", | ||
"schema" : "org.apache.gobblin.service.FlowConfig", | ||
"doc" : "Resource for handling flow configuration requests\n\ngenerated from: org.apache.gobblin.service.FlowConfigsResource", | ||
"collection" : { | ||
"identifier" : { | ||
"name" : "id", | ||
"type" : "org.apache.gobblin.service.FlowId", | ||
"params" : "com.linkedin.restli.common.EmptyRecord" | ||
}, | ||
"supports" : [ "create", "delete", "get", "update" ], | ||
"methods" : [ { | ||
"method" : "create", | ||
"doc" : "Create a flow configuration that the service will forward to execution instances for execution" | ||
}, { | ||
"method" : "get", | ||
"doc" : "Retrieve the flow configuration with the given key" | ||
}, { | ||
"method" : "update", | ||
"doc" : "Update the flow configuration with the specified key. Running flows are not affected.\n An error is raised if the flow configuration does not exist." | ||
}, { | ||
"method" : "delete", | ||
"doc" : "Delete a configured flow. Running flows are not affected. The schedule will be removed for scheduled flows." | ||
} ], | ||
"entity" : { | ||
"path" : "/flowconfigs/{id}" | ||
} | ||
} | ||
} |
124 changes: 124 additions & 0 deletions
124
...config-service-api/src/main/snapshot/org.apache.gobblin.service.flowconfigs.snapshot.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
{ | ||
"models" : [ { | ||
"type" : "record", | ||
"name" : "EmptyRecord", | ||
"namespace" : "com.linkedin.restli.common", | ||
"doc" : "An literally empty record. Intended as a marker to indicate the absence of content where a record type is required. If used the underlying DataMap *must* be empty, EmptyRecordValidator is provided to help enforce this. For example, CreateRequest extends Request<EmptyRecord> to indicate it has no response body. Also, a ComplexKeyResource implementation that has no ParamKey should have a signature like XyzResource implements ComplexKeyResource<XyzKey, EmptyRecord, Xyz>.", | ||
"fields" : [ ], | ||
"validate" : { | ||
"com.linkedin.restli.common.EmptyRecordValidator" : { } | ||
} | ||
}, { | ||
"type" : "record", | ||
"name" : "FlowConfig", | ||
"namespace" : "org.apache.gobblin.service", | ||
"doc" : "Defines a flow configuration that can be compiled into Gobblin jobs", | ||
"fields" : [ { | ||
"name" : "id", | ||
"type" : { | ||
"type" : "record", | ||
"name" : "FlowId", | ||
"doc" : "Identifier for a Gobblin as a Service flow", | ||
"fields" : [ { | ||
"name" : "flowName", | ||
"type" : "string", | ||
"doc" : "Name of the flow", | ||
"validate" : { | ||
"strlen" : { | ||
"max" : 128, | ||
"min" : 1 | ||
} | ||
} | ||
}, { | ||
"name" : "flowGroup", | ||
"type" : "string", | ||
"doc" : "Group of the flow. This defines the namespace for the flow.", | ||
"validate" : { | ||
"strlen" : { | ||
"max" : 128, | ||
"min" : 1 | ||
} | ||
} | ||
} ] | ||
}, | ||
"doc" : "Identifier for the flow" | ||
}, { | ||
"name" : "schedule", | ||
"type" : { | ||
"type" : "record", | ||
"name" : "Schedule", | ||
"doc" : "Attributes for defining a job schedule", | ||
"fields" : [ { | ||
"name" : "cronSchedule", | ||
"type" : "string", | ||
"doc" : "Schedule for flow in cron format", | ||
"validate" : { | ||
"org.apache.gobblin.service.validator.CronValidator" : { } | ||
} | ||
}, { | ||
"name" : "runImmediately", | ||
"type" : "boolean", | ||
"doc" : "Set to true to request that a job with a schedule be run immediately in addition to being scheduled", | ||
"default" : false | ||
} ] | ||
}, | ||
"doc" : "Optional schedule for when to execution the flow. If a schedule is not specified then the flow is executed immediately.", | ||
"optional" : true | ||
}, { | ||
"name" : "templateUris", | ||
"type" : "string", | ||
"doc" : "Comma separated list of URIs for templates used in the flow. The template location is defined by the multiproduct that packages the template.", | ||
"validate" : { | ||
"org.apache.gobblin.service.validator.TemplateUriValidator" : { } | ||
} | ||
}, { | ||
"name" : "explain", | ||
"type" : "boolean", | ||
"doc" : "Return the compiled flow as a string. If enabled, the flow is not added.", | ||
"default" : false | ||
}, { | ||
"name" : "owningGroup", | ||
"type" : "string", | ||
"doc" : "Optional string name of group that the requester belongs to for group ownership of flows.", | ||
"optional" : true | ||
}, { | ||
"name" : "properties", | ||
"type" : { | ||
"type" : "map", | ||
"values" : "string" | ||
}, | ||
"doc" : "Properties for the flow. These properties are passed to the compiled Gobblin jobs." | ||
} ] | ||
}, "org.apache.gobblin.service.FlowId", "org.apache.gobblin.service.Schedule" ], | ||
"schema" : { | ||
"name" : "flowconfigs", | ||
"namespace" : "org.apache.gobblin.service", | ||
"path" : "/flowconfigs", | ||
"schema" : "org.apache.gobblin.service.FlowConfig", | ||
"doc" : "Resource for handling flow configuration requests\n\ngenerated from: org.apache.gobblin.service.FlowConfigsResource", | ||
"collection" : { | ||
"identifier" : { | ||
"name" : "id", | ||
"type" : "org.apache.gobblin.service.FlowId", | ||
"params" : "com.linkedin.restli.common.EmptyRecord" | ||
}, | ||
"supports" : [ "create", "delete", "get", "update" ], | ||
"methods" : [ { | ||
"method" : "create", | ||
"doc" : "Create a flow configuration that the service will forward to execution instances for execution" | ||
}, { | ||
"method" : "get", | ||
"doc" : "Retrieve the flow configuration with the given key" | ||
}, { | ||
"method" : "update", | ||
"doc" : "Update the flow configuration with the specified key. Running flows are not affected.\n An error is raised if the flow configuration does not exist." | ||
}, { | ||
"method" : "delete", | ||
"doc" : "Delete a configured flow. Running flows are not affected. The schedule will be removed for scheduled flows." | ||
} ], | ||
"entity" : { | ||
"path" : "/flowconfigs/{id}" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.