Skip to content

Commit 9f43c8c

Browse files
author
actions-user
committed
GitHub Actions OpenAPI Update 2024-06-21 13:28:39s
1 parent 600652c commit 9f43c8c

File tree

6 files changed

+10
-2
lines changed

6 files changed

+10
-2
lines changed

docs/Task.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
1111
**debug** | **bool** | | [optional]
1212
**playbook** | **str** | | [optional]
1313
**environment** | **str** | | [optional]
14+
**secret** | **str** | | [optional]
1415
**limit** | **str** | | [optional]
1516

1617
## Example

docs/TemplateRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
1010
**repository_id** | **int** | | [optional]
1111
**environment_id** | **int** | | [optional]
1212
**view_id** | **int** | | [optional]
13+
**vault_id** | **int** | | [optional]
1314
**name** | **str** | | [optional]
1415
**playbook** | **str** | | [optional]
1516
**arguments** | **str** | | [optional]

semaphore_api/models/task.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ class Task(BaseModel):
3232
debug: Optional[StrictBool] = None
3333
playbook: Optional[StrictStr] = None
3434
environment: Optional[StrictStr] = None
35+
secret: Optional[StrictStr] = None
3536
limit: Optional[StrictStr] = None
36-
__properties: ClassVar[List[str]] = ["id", "template_id", "status", "debug", "playbook", "environment", "limit"]
37+
__properties: ClassVar[List[str]] = ["id", "template_id", "status", "debug", "playbook", "environment", "secret", "limit"]
3738

3839
model_config = ConfigDict(
3940
populate_by_name=True,
@@ -92,6 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
9293
"debug": obj.get("debug"),
9394
"playbook": obj.get("playbook"),
9495
"environment": obj.get("environment"),
96+
"secret": obj.get("secret"),
9597
"limit": obj.get("limit")
9698
})
9799
return _obj

semaphore_api/models/template_request.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class TemplateRequest(BaseModel):
3333
repository_id: Optional[Annotated[int, Field(strict=True, ge=1)]] = None
3434
environment_id: Optional[Annotated[int, Field(strict=True, ge=1)]] = None
3535
view_id: Optional[Annotated[int, Field(strict=True, ge=1)]] = None
36+
vault_id: Optional[Annotated[int, Field(strict=True, ge=1)]] = None
3637
name: Optional[StrictStr] = None
3738
playbook: Optional[StrictStr] = None
3839
arguments: Optional[StrictStr] = None
@@ -41,7 +42,7 @@ class TemplateRequest(BaseModel):
4142
limit: Optional[StrictStr] = None
4243
suppress_success_alerts: Optional[StrictBool] = None
4344
survey_vars: Optional[List[TemplateSurveyVar]] = None
44-
__properties: ClassVar[List[str]] = ["project_id", "inventory_id", "repository_id", "environment_id", "view_id", "name", "playbook", "arguments", "description", "allow_override_args_in_task", "limit", "suppress_success_alerts", "survey_vars"]
45+
__properties: ClassVar[List[str]] = ["project_id", "inventory_id", "repository_id", "environment_id", "view_id", "vault_id", "name", "playbook", "arguments", "description", "allow_override_args_in_task", "limit", "suppress_success_alerts", "survey_vars"]
4546

4647
model_config = ConfigDict(
4748
populate_by_name=True,
@@ -106,6 +107,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
106107
"repository_id": obj.get("repository_id"),
107108
"environment_id": obj.get("environment_id"),
108109
"view_id": obj.get("view_id"),
110+
"vault_id": obj.get("vault_id"),
109111
"name": obj.get("name"),
110112
"playbook": obj.get("playbook"),
111113
"arguments": obj.get("arguments"),

test/test_task.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def make_instance(self, include_optional) -> Task:
4141
debug = True,
4242
playbook = '',
4343
environment = '',
44+
secret = '',
4445
limit = ''
4546
)
4647
else:

test/test_template_request.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ def make_instance(self, include_optional) -> TemplateRequest:
4040
repository_id = 1,
4141
environment_id = 1,
4242
view_id = 1,
43+
vault_id = 1,
4344
name = 'Test',
4445
playbook = 'test.yml',
4546
arguments = '[]',

0 commit comments

Comments
 (0)