airflow_pydantic.BashOperatorArgs

pydantic model airflow_pydantic.BashOperatorArgs[source]

Bases: _TaskSpecificArgs

Show JSON schema
{
   "title": "BashOperatorArgs",
   "type": "object",
   "properties": {
      "bash_command": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "description": "bash_command",
         "title": "Bash Command"
      },
      "env": {
         "anyOf": [
            {
               "additionalProperties": {
                  "type": "string"
               },
               "type": "object"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Env"
      },
      "append_env": {
         "anyOf": [
            {
               "type": "boolean"
            },
            {
               "type": "null"
            }
         ],
         "default": false,
         "title": "Append Env"
      },
      "output_encoding": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": "utf-8",
         "title": "Output Encoding"
      },
      "skip_exit_code": {
         "anyOf": [
            {
               "type": "boolean"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Skip Exit Code"
      },
      "skip_on_exit_code": {
         "anyOf": [
            {
               "type": "integer"
            },
            {
               "type": "null"
            }
         ],
         "default": 99,
         "title": "Skip On Exit Code"
      },
      "cwd": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Cwd"
      },
      "output_processor": {
         "anyOf": [
            {},
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Output Processor"
      }
   },
   "additionalProperties": true
}

Fields:
  • append_env (bool | None)

  • bash_command (str | None)

  • cwd (str | None)

  • env (Dict[str, str] | None)

  • output_encoding (str | None)

  • output_processor (object | None)

  • skip_exit_code (bool | None)

  • skip_on_exit_code (int | None)

field bash_command: str | None = None

bash_command

field env: Dict[str, str] | None = None
field append_env: bool | None = False
field output_encoding: str | None = 'utf-8'
field skip_exit_code: bool | None = None
field skip_on_exit_code: int | None = 99
field cwd: str | None = None
field output_processor: Annotated[object, BeforeValidator(func=get_import_path, json_schema_input_type=PydanticUndefined)] | None = None