Skip to content

feat(api): manual updates #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

```python
from gitpod.types import (
AutomationTrigge,
AutomationTrigger,
EnvironmentClass,
FieldValue,
OrganizationRole,
Expand Down
2 changes: 1 addition & 1 deletion src/gitpod/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
UserStatus as UserStatus,
TaskMetadata as TaskMetadata,
TaskExecution as TaskExecution,
AutomationTrigge as AutomationTrigge,
EnvironmentClass as EnvironmentClass,
OrganizationRole as OrganizationRole,
AutomationTrigger as AutomationTrigger,
TaskExecutionSpec as TaskExecutionSpec,
TaskExecutionPhase as TaskExecutionPhase,
TaskExecutionStatus as TaskExecutionStatus,
Expand Down
4 changes: 2 additions & 2 deletions src/gitpod/types/environments/automations/service_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from ...._models import BaseModel
from ...shared.subject import Subject
from ...shared.automation_trigge import AutomationTrigge
from ...shared.automation_trigger import AutomationTrigger

__all__ = ["ServiceMetadata"]

Expand Down Expand Up @@ -128,5 +128,5 @@ class ServiceMetadata(BaseModel):
identify the service in user interactions (e.g. the CLI).
"""

triggered_by: Optional[List[AutomationTrigge]] = FieldInfo(alias="triggeredBy", default=None)
triggered_by: Optional[List[AutomationTrigger]] = FieldInfo(alias="triggeredBy", default=None)
"""triggered_by is a list of trigger that start the service."""
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from ...._utils import PropertyInfo
from ...shared_params.subject import Subject
from ...shared_params.automation_trigge import AutomationTrigge
from ...shared_params.automation_trigger import AutomationTrigger

__all__ = ["ServiceMetadataParam"]

Expand Down Expand Up @@ -129,5 +129,5 @@ class ServiceMetadataParam(TypedDict, total=False):
identify the service in user interactions (e.g. the CLI).
"""

triggered_by: Annotated[Iterable[AutomationTrigge], PropertyInfo(alias="triggeredBy")]
triggered_by: Annotated[Iterable[AutomationTrigger], PropertyInfo(alias="triggeredBy")]
"""triggered_by is a list of trigger that start the service."""
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from ...._utils import PropertyInfo
from .service_phase import ServicePhase
from ...shared_params.runs_on import RunsOn
from ...shared_params.automation_trigge import AutomationTrigge
from ...shared_params.automation_trigger import AutomationTrigger

__all__ = ["ServiceUpdateParams", "Metadata", "MetadataTriggeredBy", "Spec", "SpecCommands", "Status"]

Expand All @@ -34,7 +34,7 @@ class ServiceUpdateParams(TypedDict, total=False):


class MetadataTriggeredBy(TypedDict, total=False):
trigger: Iterable[AutomationTrigge]
trigger: Iterable[AutomationTrigger]


class Metadata(TypedDict, total=False):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from ...._utils import PropertyInfo
from ...shared_params.runs_on import RunsOn
from ...shared_params.automation_trigge import AutomationTrigge
from ...shared_params.automation_trigger import AutomationTrigger

__all__ = ["TaskUpdateParams", "Metadata", "MetadataTriggeredBy", "Spec"]

Expand All @@ -24,7 +24,7 @@ class TaskUpdateParams(TypedDict, total=False):


class MetadataTriggeredBy(TypedDict, total=False):
trigger: Iterable[AutomationTrigge]
trigger: Iterable[AutomationTrigger]


class Metadata(TypedDict, total=False):
Expand Down
2 changes: 1 addition & 1 deletion src/gitpod/types/shared/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
from .user_status import UserStatus as UserStatus
from .task_metadata import TaskMetadata as TaskMetadata
from .task_execution import TaskExecution as TaskExecution
from .automation_trigge import AutomationTrigge as AutomationTrigge
from .environment_class import EnvironmentClass as EnvironmentClass
from .organization_role import OrganizationRole as OrganizationRole
from .automation_trigger import AutomationTrigger as AutomationTrigger
from .task_execution_spec import TaskExecutionSpec as TaskExecutionSpec
from .task_execution_phase import TaskExecutionPhase as TaskExecutionPhase
from .task_execution_status import TaskExecutionStatus as TaskExecutionStatus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

from ..._models import BaseModel

__all__ = ["AutomationTrigge"]
__all__ = ["AutomationTrigger"]


class AutomationTrigge(BaseModel):
class AutomationTrigger(BaseModel):
manual: Optional[bool] = None

post_devcontainer_start: Optional[bool] = FieldInfo(alias="postDevcontainerStart", default=None)
Expand Down
4 changes: 2 additions & 2 deletions src/gitpod/types/shared/task_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from .subject import Subject
from ..._models import BaseModel
from .automation_trigge import AutomationTrigge
from .automation_trigger import AutomationTrigger

__all__ = ["TaskMetadata"]

Expand Down Expand Up @@ -128,5 +128,5 @@ class TaskMetadata(BaseModel):
the task in user interactions (e.g. the CLI).
"""

triggered_by: Optional[List[AutomationTrigge]] = FieldInfo(alias="triggeredBy", default=None)
triggered_by: Optional[List[AutomationTrigger]] = FieldInfo(alias="triggeredBy", default=None)
"""triggered_by is a list of trigger that start the task."""
2 changes: 1 addition & 1 deletion src/gitpod/types/shared_params/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from .task_spec import TaskSpec as TaskSpec
from .field_value import FieldValue as FieldValue
from .task_metadata import TaskMetadata as TaskMetadata
from .automation_trigge import AutomationTrigge as AutomationTrigge
from .environment_class import EnvironmentClass as EnvironmentClass
from .organization_role import OrganizationRole as OrganizationRole
from .automation_trigger import AutomationTrigger as AutomationTrigger
from .task_execution_phase import TaskExecutionPhase as TaskExecutionPhase
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

from ..._utils import PropertyInfo

__all__ = ["AutomationTrigge"]
__all__ = ["AutomationTrigger"]


class AutomationTrigge(TypedDict, total=False):
class AutomationTrigger(TypedDict, total=False):
manual: bool

post_devcontainer_start: Annotated[bool, PropertyInfo(alias="postDevcontainerStart")]
Expand Down
4 changes: 2 additions & 2 deletions src/gitpod/types/shared_params/task_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from .subject import Subject
from ..._utils import PropertyInfo
from .automation_trigge import AutomationTrigge
from .automation_trigger import AutomationTrigger

__all__ = ["TaskMetadata"]

Expand Down Expand Up @@ -129,5 +129,5 @@ class TaskMetadata(TypedDict, total=False):
the task in user interactions (e.g. the CLI).
"""

triggered_by: Annotated[Iterable[AutomationTrigge], PropertyInfo(alias="triggeredBy")]
triggered_by: Annotated[Iterable[AutomationTrigger], PropertyInfo(alias="triggeredBy")]
"""triggered_by is a list of trigger that start the task."""