@@ -55,6 +55,9 @@ func (r AutomationTriggerParam) MarshalJSON() (data []byte, err error) {
5555type EnvironmentClass struct {
5656 // id is the unique identifier of the environment class
5757 ID string `json:"id,required"`
58+ // runner_id is the unique identifier of the runner the environment class belongs
59+ // to
60+ RunnerID string `json:"runnerId,required"`
5861 // configuration describes the configuration of the environment class
5962 Configuration []FieldValue `json:"configuration"`
6063 // description is a human readable description of the environment class
@@ -63,22 +66,19 @@ type EnvironmentClass struct {
6366 DisplayName string `json:"displayName"`
6467 // enabled indicates whether the environment class can be used to create new
6568 // environments.
66- Enabled bool `json:"enabled"`
67- // runner_id is the unique identifier of the runner the environment class belongs
68- // to
69- RunnerID string `json:"runnerId"`
70- JSON environmentClassJSON `json:"-"`
69+ Enabled bool `json:"enabled"`
70+ JSON environmentClassJSON `json:"-"`
7171}
7272
7373// environmentClassJSON contains the JSON metadata for the struct
7474// [EnvironmentClass]
7575type environmentClassJSON struct {
7676 ID apijson.Field
77+ RunnerID apijson.Field
7778 Configuration apijson.Field
7879 Description apijson.Field
7980 DisplayName apijson.Field
8081 Enabled apijson.Field
81- RunnerID apijson.Field
8282 raw string
8383 ExtraFields map [string ]apijson.Field
8484}
@@ -94,6 +94,9 @@ func (r environmentClassJSON) RawJSON() string {
9494type EnvironmentClassParam struct {
9595 // id is the unique identifier of the environment class
9696 ID param.Field [string ] `json:"id,required"`
97+ // runner_id is the unique identifier of the runner the environment class belongs
98+ // to
99+ RunnerID param.Field [string ] `json:"runnerId,required"`
97100 // configuration describes the configuration of the environment class
98101 Configuration param.Field [[]FieldValueParam ] `json:"configuration"`
99102 // description is a human readable description of the environment class
@@ -103,9 +106,6 @@ type EnvironmentClassParam struct {
103106 // enabled indicates whether the environment class can be used to create new
104107 // environments.
105108 Enabled param.Field [bool ] `json:"enabled"`
106- // runner_id is the unique identifier of the runner the environment class belongs
107- // to
108- RunnerID param.Field [string ] `json:"runnerId"`
109109}
110110
111111func (r EnvironmentClassParam ) MarshalJSON () (data []byte , err error ) {
@@ -302,7 +302,7 @@ func (r taskJSON) RawJSON() string {
302302}
303303
304304type TaskExecution struct {
305- ID string `json:"id" format:"uuid"`
305+ ID string `json:"id,required " format:"uuid"`
306306 Metadata TaskExecutionMetadata `json:"metadata"`
307307 Spec TaskExecutionSpec `json:"spec"`
308308 Status TaskExecutionStatus `json:"status"`
0 commit comments