forked from feldera/feldera
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprogram.py
More file actions
27 lines (21 loc) · 1.04 KB
/
program.py
File metadata and controls
27 lines (21 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from typing import Optional
class Program:
"""
Represents a Feldera SQL program
"""
def __init__(self, name: str, code: str, description: str = None, status: Optional[str] = None, version: Optional[int] = None, id: Optional[str] = None) -> None:
"""
Initializes a new instance of the Program class
:param name: The name of the program
:param code: The SQL code (DDL) for this program
:param description: Optional. Description of the program
:param status: Optional. The status of the program. Not necessary for creation.
:param version: Optional. The version of the program. Not necessary for creation.
:param id: Optional. The id of the program. Not necessary for creation.
"""
self.name: Optional[str] = name
self.code: Optional[str] = code
self.description: Optional[str] = description
self.status: Optional[str] = status
self.version: Optional[int] = version
self.id: Optional[str] = id