class AuthTypeSchema(BaseCamelSchema): user = RefOrObject(fields.Str(), required=True) password = RefOrObject(fields.Str(), required=True) @staticmethod def schema_config(): return V1AuthType
class S3TypeSchema(BaseCamelSchema): bucket = RefOrObject(fields.Str(allow_none=True)) key = RefOrObject(fields.Str(allow_none=True)) @staticmethod def schema_config(): return V1S3Type
class EventSchema(BaseCamelSchema): name = RefOrObject(fields.Str(allow_none=True)) kind = RefOrObject(fields.Str(allow_none=True)) @staticmethod def schema_config(): return V1EventType
class WasbTypeSchema(BaseCamelSchema): container = RefOrObject(fields.Str(allow_none=True)) storage_account = RefOrObject(fields.Str(allow_none=True)) path = RefOrObject(fields.Str(allow_none=True)) @staticmethod def schema_config(): return V1WasbType
class UriTypeSchema(BaseCamelSchema): user = RefOrObject(fields.Str(required=True)) password = RefOrObject(fields.Str(required=True)) host = RefOrObject(fields.Str(required=True)) @staticmethod def schema_config(): return V1UriType
class ArtifactsTypeSchema(BaseCamelSchema): files = RefOrObject(fields.List(StrOrList(), allow_none=True)) dirs = RefOrObject(fields.List(StrOrList(), allow_none=True)) workers = RefOrObject(fields.Int(allow_none=True)) @staticmethod def schema_config(): return V1ArtifactsType
class GitTypeSchema(BaseCamelSchema): url = RefOrObject(fields.Str(allow_none=True)) revision = RefOrObject(fields.Str(allow_none=True)) flags = RefOrObject(fields.List(fields.Str(), allow_none=True)) @staticmethod def schema_config(): return V1GitType
class FileTypeSchema(BaseCamelSchema): content = RefOrObject(fields.Str(), required=True) filename = RefOrObject(fields.Str(allow_none=True)) kind = RefOrObject( fields.Str( allow_none=True, validate=validate.OneOf(V1ArtifactKind.allowable_values) ) ) chmod = RefOrObject(fields.Str(allow_none=True)) @staticmethod def schema_config(): return V1FileType
class DockerfileTypeSchema(BaseCamelSchema): image = RefOrObject(fields.Str(), required=True) env = RefOrObject(fields.Dict(keys=fields.Str(), allow_none=True)) path = RefOrObject(fields.List(fields.Str(), allow_none=True)) copy = RefOrObject(fields.List(StrOrList(), allow_none=True)) post_run_copy = RefOrObject(fields.List(StrOrList(), allow_none=True)) run = RefOrObject(fields.List(fields.Str(), allow_none=True)) lang_env = RefOrObject(fields.Str(allow_none=True)) uid = RefOrObject(fields.Int(allow_none=True)) gid = RefOrObject(fields.Int(allow_none=True)) username = RefOrObject(fields.Str(allow_none=True)) filename = RefOrObject(fields.Str(allow_none=True)) workdir = RefOrObject(fields.Str(allow_none=True)) workdir_path = RefOrObject(fields.Str(allow_none=True)) shell = RefOrObject(fields.Str(allow_none=True)) @staticmethod def schema_config(): return V1DockerfileType @validates_schema @check_partial def validate_dockerfile(self, data, **kwargs): validate_image(data.get("image"))