Skip to content

Commit 3c638d4

Browse files
authored
feat(serverless): add support for name (#1461)
1 parent 719b436 commit 3c638d4

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

api/container/v1beta1/container_sdk.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,8 @@ type Cron struct {
662662
//
663663
// Default value: unknown
664664
Status CronStatus `json:"status"`
665+
666+
Name string `json:"name"`
665667
}
666668

667669
// Domain: domain
@@ -1546,6 +1548,8 @@ type CreateCronRequest struct {
15461548
Schedule string `json:"schedule"`
15471549

15481550
Args *scw.JSONObject `json:"args"`
1551+
1552+
Name *string `json:"name"`
15491553
}
15501554

15511555
// CreateCron: create a new cron
@@ -1594,6 +1598,8 @@ type UpdateCronRequest struct {
15941598
Schedule *string `json:"schedule"`
15951599

15961600
Args *scw.JSONObject `json:"args"`
1601+
1602+
Name *string `json:"name"`
15971603
}
15981604

15991605
// UpdateCron: update an existing cron

api/function/v1beta1/function_sdk.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -897,6 +897,8 @@ type Cron struct {
897897
//
898898
// Default value: unknown
899899
Status CronStatus `json:"status"`
900+
901+
Name string `json:"name"`
900902
}
901903

902904
// Domain: domain
@@ -2113,6 +2115,8 @@ type CreateCronRequest struct {
21132115
Schedule string `json:"schedule"`
21142116

21152117
Args *scw.JSONObject `json:"args"`
2118+
2119+
Name *string `json:"name"`
21162120
}
21172121

21182122
// CreateCron: create a new cron
@@ -2161,6 +2165,8 @@ type UpdateCronRequest struct {
21612165
Schedule *string `json:"schedule"`
21622166

21632167
Args *scw.JSONObject `json:"args"`
2168+
2169+
Name *string `json:"name"`
21642170
}
21652171

21662172
// UpdateCron: update an existing cron

0 commit comments

Comments
 (0)