GitLFSConfig#

pydantic model mobu.models.business.gitlfs.GitLFSConfig#

Configuration specialization for GitLFS.

Parameters:

data (Any)

Show JSON schema
{
   "title": "GitLFSConfig",
   "description": "Configuration specialization for GitLFS.",
   "type": "object",
   "properties": {
      "type": {
         "const": "GitLFS",
         "title": "Type of business to run",
         "type": "string"
      },
      "options": {
         "$ref": "#/$defs/GitLFSBusinessOptions",
         "title": "Options for the GitLFS Business"
      },
      "restart": {
         "default": false,
         "examples": [
            true
         ],
         "title": "Restart business after failure",
         "type": "boolean"
      }
   },
   "$defs": {
      "GitLFSBusinessOptions": {
         "additionalProperties": false,
         "description": "Options for business that runs git LFS operations.",
         "properties": {
            "error_idle_time": {
               "$ref": "#/$defs/HumanTimedelta",
               "default": "PT1M",
               "examples": [
                  600
               ],
               "title": "How long to wait after an error before restarting"
            },
            "idle_time": {
               "$ref": "#/$defs/HumanTimedelta",
               "default": "PT1M",
               "description": "After each loop executing monkey business, the monkey will pause for this long",
               "examples": [
                  60
               ],
               "title": "How long to wait between business executions"
            },
            "log_level": {
               "$ref": "#/$defs/LogLevel",
               "default": "INFO",
               "title": "Log level for this monkey business"
            },
            "lfs_read_url": {
               "title": "LFS read URL for Git-LFS enabled repo",
               "type": "string"
            },
            "lfs_write_url": {
               "title": "LFS write URL for Git-LFS enabled repo",
               "type": "string"
            }
         },
         "required": [
            "lfs_read_url",
            "lfs_write_url"
         ],
         "title": "GitLFSBusinessOptions",
         "type": "object"
      },
      "HumanTimedelta": {
         "format": "duration",
         "type": "string"
      },
      "LogLevel": {
         "description": "Python logging level.\n\nAny case variation is accepted when converting a string to an enum value\nvia the class constructor.",
         "enum": [
            "DEBUG",
            "INFO",
            "WARNING",
            "ERROR",
            "CRITICAL"
         ],
         "title": "LogLevel",
         "type": "string"
      }
   },
   "additionalProperties": false,
   "required": [
      "type",
      "options"
   ]
}

Config:
  • extra: str = forbid

Fields:
field options: GitLFSBusinessOptions [Required]#
field restart: bool = False#
field type: Literal['GitLFS'] [Required]#