-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdeployment_create_params.py
More file actions
68 lines (43 loc) · 1.83 KB
/
Copy pathdeployment_create_params.py
File metadata and controls
68 lines (43 loc) · 1.83 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from __future__ import annotations
from typing import Dict
from typing_extensions import Literal, Required, TypedDict
from .._types import FileTypes
__all__ = ["DeploymentCreateParams", "Source", "SourceAuth"]
class DeploymentCreateParams(TypedDict, total=False):
entrypoint_rel_path: str
"""Relative path to the entrypoint of the application"""
env_vars: Dict[str, str]
"""Map of environment variables to set for the deployed application.
Each key-value pair represents an environment variable.
"""
file: FileTypes
"""ZIP file containing the application source directory"""
force: bool
"""Allow overwriting an existing app version"""
region: Literal["aws.us-east-1a"]
"""Region for deployment. Currently we only support "aws.us-east-1a" """
source: Source
"""Source from which to fetch application code."""
version: str
"""Version of the application. Can be any string."""
class SourceAuth(TypedDict, total=False):
"""Authentication for private repositories."""
token: Required[str]
"""GitHub PAT or installation access token"""
method: Required[Literal["github_token"]]
"""Auth method"""
class Source(TypedDict, total=False):
"""Source from which to fetch application code."""
entrypoint: Required[str]
"""Relative path to the application entrypoint within the selected path."""
ref: Required[str]
"""Git ref (branch, tag, or commit SHA) to fetch."""
type: Required[Literal["github"]]
"""Source type identifier."""
url: Required[str]
"""Base repository URL (without blob/tree suffixes)."""
auth: SourceAuth
"""Authentication for private repositories."""
path: str
"""Path within the repo to deploy (omit to use repo root)."""