Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
342 changes: 342 additions & 0 deletions schemas/python-sdk/repository-config/1.15.0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,342 @@
{
"$defs": {
"InfrahubCheckDefinitionConfig": {
"additionalProperties": false,
"properties": {
"name": {
"description": "The name of the Check Definition",
"title": "Name",
"type": "string"
},
"file_path": {
"description": "The file within the repository with the check code.",
"format": "path",
"title": "File Path",
"type": "string"
},
"parameters": {
"description": "The input parameters required to run this check",
"title": "Parameters",
"type": "object"
},
"targets": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The group to target when running this check, leave blank for global checks",
"title": "Targets"
},
"class_name": {
"default": "Check",
"description": "The name of the check class to run.",
"title": "Class Name",
"type": "string"
}
},
"required": [
"name",
"file_path"
],
"title": "InfrahubCheckDefinitionConfig",
"type": "object"
},
"InfrahubGeneratorDefinitionConfig": {
"additionalProperties": false,
"properties": {
"name": {
"description": "The name of the Generator Definition",
"title": "Name",
"type": "string"
},
"file_path": {
"description": "The file within the repository with the generator code.",
"format": "path",
"title": "File Path",
"type": "string"
},
"query": {
"description": "The GraphQL query to use as input.",
"title": "Query",
"type": "string"
},
"parameters": {
"description": "The input parameters required to run this check",
"title": "Parameters",
"type": "object"
},
"targets": {
"description": "The group to target when running this generator",
"title": "Targets",
"type": "string"
},
"class_name": {
"default": "Generator",
"description": "The name of the generator class to run.",
"title": "Class Name",
"type": "string"
},
"convert_query_response": {
"default": false,
"description": "Decide if the generator should convert the result of the GraphQL query to SDK InfrahubNode objects.",
"title": "Convert Query Response",
"type": "boolean"
},
"execute_in_proposed_change": {
"default": true,
"description": "Decide if the generator should execute in a proposed change.",
"title": "Execute In Proposed Change",
"type": "boolean"
},
"execute_after_merge": {
"default": true,
"description": "Decide if the generator should execute after a merge.",
"title": "Execute After Merge",
"type": "boolean"
}
},
"required": [
"name",
"file_path",
"query",
"targets"
],
"title": "InfrahubGeneratorDefinitionConfig",
"type": "object"
},
"InfrahubJinja2TransformConfig": {
"additionalProperties": false,
"properties": {
"name": {
"description": "The name of the transform",
"title": "Name",
"type": "string"
},
"query": {
"description": "The name of the GraphQL Query",
"title": "Query",
"type": "string"
},
"template_path": {
"description": "The path within the repository of the template file",
"format": "path",
"title": "Template Path",
"type": "string"
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Description for this transform",
"title": "Description"
}
},
"required": [
"name",
"query",
"template_path"
],
"title": "InfrahubJinja2TransformConfig",
"type": "object"
},
"InfrahubPythonTransformConfig": {
"additionalProperties": false,
"properties": {
"name": {
"description": "The name of the Transform",
"title": "Name",
"type": "string"
},
"file_path": {
"description": "The file within the repository with the transform code.",
"format": "path",
"title": "File Path",
"type": "string"
},
"class_name": {
"default": "Transform",
"description": "The name of the transform class to run.",
"title": "Class Name",
"type": "string"
},
"convert_query_response": {
"default": false,
"description": "Decide if the transform should convert the result of the GraphQL query to SDK InfrahubNode objects.",
"title": "Convert Query Response",
"type": "boolean"
}
},
"required": [
"name",
"file_path"
],
"title": "InfrahubPythonTransformConfig",
"type": "object"
},
"InfrahubRepositoryArtifactDefinitionConfig": {
"additionalProperties": false,
"properties": {
"name": {
"description": "The name of the artifact definition",
"title": "Name",
"type": "string"
},
"artifact_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Name of the artifact created from this definition",
"title": "Artifact Name"
},
"parameters": {
"description": "The input parameters required to render this artifact",
"title": "Parameters",
"type": "object"
},
"content_type": {
"description": "The content type of the rendered artifact",
"title": "Content Type",
"type": "string"
},
"targets": {
"description": "The group to target when creating artifacts",
"title": "Targets",
"type": "string"
},
"transformation": {
"description": "The transformation to use.",
"title": "Transformation",
"type": "string"
}
},
"required": [
"name",
"parameters",
"content_type",
"targets",
"transformation"
],
"title": "InfrahubRepositoryArtifactDefinitionConfig",
"type": "object"
},
"InfrahubRepositoryGraphQLConfig": {
"additionalProperties": false,
"properties": {
"name": {
"description": "The name of the GraphQL Query",
"title": "Name",
"type": "string"
},
"file_path": {
"description": "The file within the repository with the query code.",
"format": "path",
"title": "File Path",
"type": "string"
}
},
"required": [
"name",
"file_path"
],
"title": "InfrahubRepositoryGraphQLConfig",
"type": "object"
}
},
"additionalProperties": false,
"properties": {
"check_definitions": {
"description": "User defined checks",
"items": {
"$ref": "#/$defs/InfrahubCheckDefinitionConfig"
},
"title": "Check Definitions",
"type": "array"
},
"schemas": {
"description": "Schema files",
"items": {
"format": "path",
"type": "string"
},
"title": "Schemas",
"type": "array"
},
"jinja2_transforms": {
"description": "Jinja2 data transformations",
"items": {
"$ref": "#/$defs/InfrahubJinja2TransformConfig"
},
"title": "Jinja2 Transforms",
"type": "array"
},
"artifact_definitions": {
"description": "Artifact definitions",
"items": {
"$ref": "#/$defs/InfrahubRepositoryArtifactDefinitionConfig"
},
"title": "Artifact Definitions",
"type": "array"
},
"python_transforms": {
"description": "Python data transformations",
"items": {
"$ref": "#/$defs/InfrahubPythonTransformConfig"
},
"title": "Python Transforms",
"type": "array"
},
"generator_definitions": {
"description": "Generator definitions",
"items": {
"$ref": "#/$defs/InfrahubGeneratorDefinitionConfig"
},
"title": "Generator Definitions",
"type": "array"
},
"queries": {
"description": "GraphQL Queries",
"items": {
"$ref": "#/$defs/InfrahubRepositoryGraphQLConfig"
},
"title": "Queries",
"type": "array"
},
"objects": {
"description": "Objects",
"items": {
"format": "path",
"type": "string"
},
"title": "Objects",
"type": "array"
},
"menus": {
"description": "Menus",
"items": {
"format": "path",
"type": "string"
},
"title": "Menus",
"type": "array"
}
},
"title": "InfrahubRepositoryConfig",
"type": "object"
}
12 changes: 12 additions & 0 deletions schemas/python-sdk/repository-config/develop.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,18 @@
"description": "Decide if the generator should convert the result of the GraphQL query to SDK InfrahubNode objects.",
"title": "Convert Query Response",
"type": "boolean"
},
"execute_in_proposed_change": {
"default": true,
"description": "Decide if the generator should execute in a proposed change.",
"title": "Execute In Proposed Change",
"type": "boolean"
},
"execute_after_merge": {
"default": true,
"description": "Decide if the generator should execute after a merge.",
"title": "Execute After Merge",
"type": "boolean"
}
},
"required": [
Expand Down
2 changes: 1 addition & 1 deletion schemas/python-sdk/repository-config/latest.json