File tree 4 files changed +54
-42
lines changed
scaleway/scaleway/jobs/v1alpha1
scaleway-async/scaleway_async/jobs/v1alpha1
4 files changed +54
-42
lines changed Original file line number Diff line number Diff line change @@ -146,18 +146,6 @@ def unmarshal_JobRun(data: Any) -> JobRun:
146
146
if field is not None :
147
147
args ["command" ] = field
148
148
149
- field = data .get ("environment_variables" , None )
150
- if field is not None :
151
- args ["environment_variables" ] = field
152
-
153
- field = data .get ("local_storage_capacity" , None )
154
- if field is not None :
155
- args ["local_storage_capacity" ] = field
156
-
157
- field = data .get ("region" , None )
158
- if field is not None :
159
- args ["region" ] = field
160
-
161
149
field = data .get ("created_at" , None )
162
150
if field is not None :
163
151
args ["created_at" ] = parser .isoparse (field ) if isinstance (field , str ) else field
@@ -180,6 +168,22 @@ def unmarshal_JobRun(data: Any) -> JobRun:
180
168
if field is not None :
181
169
args ["run_duration" ] = field
182
170
171
+ field = data .get ("environment_variables" , None )
172
+ if field is not None :
173
+ args ["environment_variables" ] = field
174
+
175
+ field = data .get ("local_storage_capacity" , None )
176
+ if field is not None :
177
+ args ["local_storage_capacity" ] = field
178
+
179
+ field = data .get ("region" , None )
180
+ if field is not None :
181
+ args ["region" ] = field
182
+
183
+ field = data .get ("started_at" , None )
184
+ if field is not None :
185
+ args ["started_at" ] = parser .isoparse (field ) if isinstance (field , str ) else field
186
+
183
187
return JobRun (** args )
184
188
185
189
Original file line number Diff line number Diff line change @@ -111,15 +111,6 @@ class JobRun:
111
111
112
112
command : str
113
113
114
- environment_variables : Dict [str , str ]
115
-
116
- local_storage_capacity : int
117
-
118
- region : Region
119
- """
120
- Region to target. If none is passed will use default region from the config.
121
- """
122
-
123
114
created_at : Optional [datetime ]
124
115
125
116
updated_at : Optional [datetime ]
@@ -130,6 +121,17 @@ class JobRun:
130
121
131
122
run_duration : Optional [str ]
132
123
124
+ environment_variables : Dict [str , str ]
125
+
126
+ local_storage_capacity : int
127
+
128
+ region : Region
129
+ """
130
+ Region to target. If none is passed will use default region from the config.
131
+ """
132
+
133
+ started_at : Optional [datetime ]
134
+
133
135
134
136
@dataclass
135
137
class UpdateJobDefinitionRequestCronScheduleConfig :
Original file line number Diff line number Diff line change @@ -146,18 +146,6 @@ def unmarshal_JobRun(data: Any) -> JobRun:
146
146
if field is not None :
147
147
args ["command" ] = field
148
148
149
- field = data .get ("environment_variables" , None )
150
- if field is not None :
151
- args ["environment_variables" ] = field
152
-
153
- field = data .get ("local_storage_capacity" , None )
154
- if field is not None :
155
- args ["local_storage_capacity" ] = field
156
-
157
- field = data .get ("region" , None )
158
- if field is not None :
159
- args ["region" ] = field
160
-
161
149
field = data .get ("created_at" , None )
162
150
if field is not None :
163
151
args ["created_at" ] = parser .isoparse (field ) if isinstance (field , str ) else field
@@ -180,6 +168,22 @@ def unmarshal_JobRun(data: Any) -> JobRun:
180
168
if field is not None :
181
169
args ["run_duration" ] = field
182
170
171
+ field = data .get ("environment_variables" , None )
172
+ if field is not None :
173
+ args ["environment_variables" ] = field
174
+
175
+ field = data .get ("local_storage_capacity" , None )
176
+ if field is not None :
177
+ args ["local_storage_capacity" ] = field
178
+
179
+ field = data .get ("region" , None )
180
+ if field is not None :
181
+ args ["region" ] = field
182
+
183
+ field = data .get ("started_at" , None )
184
+ if field is not None :
185
+ args ["started_at" ] = parser .isoparse (field ) if isinstance (field , str ) else field
186
+
183
187
return JobRun (** args )
184
188
185
189
Original file line number Diff line number Diff line change @@ -111,15 +111,6 @@ class JobRun:
111
111
112
112
command : str
113
113
114
- environment_variables : Dict [str , str ]
115
-
116
- local_storage_capacity : int
117
-
118
- region : Region
119
- """
120
- Region to target. If none is passed will use default region from the config.
121
- """
122
-
123
114
created_at : Optional [datetime ]
124
115
125
116
updated_at : Optional [datetime ]
@@ -130,6 +121,17 @@ class JobRun:
130
121
131
122
run_duration : Optional [str ]
132
123
124
+ environment_variables : Dict [str , str ]
125
+
126
+ local_storage_capacity : int
127
+
128
+ region : Region
129
+ """
130
+ Region to target. If none is passed will use default region from the config.
131
+ """
132
+
133
+ started_at : Optional [datetime ]
134
+
133
135
134
136
@dataclass
135
137
class UpdateJobDefinitionRequestCronScheduleConfig :
You can’t perform that action at this time.
0 commit comments