-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add type-hints to ensure IDEs provide right auto-completion (#504)
Signed-off-by: Sambhav Kothari <[email protected]>
- Loading branch information
Showing
40 changed files
with
5,438 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
from typing import Optional | ||
|
||
from hera.shared._base_model import BaseModel as BaseModel | ||
|
||
from .io.argoproj.events import v1alpha1 as v1alpha1 | ||
from .io.k8s.apimachinery.pkg.apis.meta import v1 as v1 | ||
|
||
class EventSourceDeletedResponse(BaseModel): ... | ||
|
||
class LogEntry(BaseModel): | ||
event_name: Optional[str] | ||
event_source_name: Optional[str] | ||
event_source_type: Optional[str] | ||
level: Optional[str] | ||
msg: Optional[str] | ||
namespace: Optional[str] | ||
time: Optional[v1.Time] | ||
|
||
class CreateEventSourceRequest(BaseModel): | ||
event_source: Optional[v1alpha1.EventSource] | ||
namespace: Optional[str] | ||
|
||
class EventSourceWatchEvent(BaseModel): | ||
object: Optional[v1alpha1.EventSource] | ||
type: Optional[str] | ||
|
||
class UpdateEventSourceRequest(BaseModel): | ||
event_source: Optional[v1alpha1.EventSource] | ||
name: Optional[str] | ||
namespace: Optional[str] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from typing import Optional | ||
|
||
from hera.shared._base_model import BaseModel as BaseModel | ||
|
||
class Any(BaseModel): | ||
type_url: Optional[str] | ||
value: Optional[str] |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from typing import List, Optional | ||
|
||
from hera.shared._base_model import BaseModel as BaseModel | ||
|
||
from ...google import protobuf as protobuf | ||
|
||
class Error(BaseModel): | ||
code: Optional[int] | ||
details: Optional[List[protobuf.Any]] | ||
error: Optional[str] | ||
message: Optional[str] | ||
|
||
class StreamError(BaseModel): | ||
details: Optional[List[protobuf.Any]] | ||
grpc_code: Optional[int] | ||
http_code: Optional[int] | ||
http_status: Optional[str] | ||
message: Optional[str] |
Empty file.
Empty file.
Oops, something went wrong.