File tree 6 files changed +36
-36
lines changed
scaleway/scaleway/jobs/v1alpha1
scaleway-async/scaleway_async/jobs/v1alpha1 6 files changed +36
-36
lines changed Original file line number Diff line number Diff line change @@ -101,11 +101,11 @@ async def create_job_definition(
101
101
cpu_limit = cpu_limit ,
102
102
memory_limit = memory_limit ,
103
103
image_uri = image_uri ,
104
+ command = command ,
105
+ description = description ,
104
106
region = region ,
105
107
name = name or random_name (prefix = "job" ),
106
108
local_storage_capacity = local_storage_capacity ,
107
- command = command ,
108
- description = description ,
109
109
project_id = project_id ,
110
110
environment_variables = environment_variables ,
111
111
job_timeout = job_timeout ,
Original file line number Diff line number Diff line change @@ -334,18 +334,18 @@ def marshal_CreateJobDefinitionRequest(
334
334
if request .image_uri is not None :
335
335
output ["image_uri" ] = request .image_uri
336
336
337
- if request .name is not None :
338
- output ["name" ] = request .name
339
-
340
- if request .local_storage_capacity is not None :
341
- output ["local_storage_capacity" ] = request .local_storage_capacity
342
-
343
337
if request .command is not None :
344
338
output ["command" ] = request .command
345
339
346
340
if request .description is not None :
347
341
output ["description" ] = request .description
348
342
343
+ if request .name is not None :
344
+ output ["name" ] = request .name
345
+
346
+ if request .local_storage_capacity is not None :
347
+ output ["local_storage_capacity" ] = request .local_storage_capacity
348
+
349
349
if request .project_id is not None :
350
350
output ["project_id" ] = request .project_id or defaults .default_project_id
351
351
Original file line number Diff line number Diff line change @@ -170,29 +170,29 @@ class CreateJobDefinitionRequest:
170
170
Image to use for the job.
171
171
"""
172
172
173
- region : Optional [ Region ]
173
+ command : str
174
174
"""
175
- Region to target . If none is passed will use default region from the config .
175
+ Startup command . If empty or not defined, the image's default command is used .
176
176
"""
177
177
178
- name : Optional [ str ]
178
+ description : str
179
179
"""
180
- Name of the job definition .
180
+ Description of the job.
181
181
"""
182
182
183
- local_storage_capacity : Optional [int ]
183
+ region : Optional [Region ]
184
184
"""
185
- Local storage capacity of the job (in MiB) .
185
+ Region to target. If none is passed will use default region from the config .
186
186
"""
187
187
188
- command : str
188
+ name : Optional [ str ]
189
189
"""
190
- Startup command. If empty or not defined, the image's default command is used .
190
+ Name of the job definition .
191
191
"""
192
192
193
- description : str
193
+ local_storage_capacity : Optional [ int ]
194
194
"""
195
- Description of the job.
195
+ Local storage capacity of the job (in MiB) .
196
196
"""
197
197
198
198
project_id : Optional [str ]
Original file line number Diff line number Diff line change @@ -101,11 +101,11 @@ def create_job_definition(
101
101
cpu_limit = cpu_limit ,
102
102
memory_limit = memory_limit ,
103
103
image_uri = image_uri ,
104
+ command = command ,
105
+ description = description ,
104
106
region = region ,
105
107
name = name or random_name (prefix = "job" ),
106
108
local_storage_capacity = local_storage_capacity ,
107
- command = command ,
108
- description = description ,
109
109
project_id = project_id ,
110
110
environment_variables = environment_variables ,
111
111
job_timeout = job_timeout ,
Original file line number Diff line number Diff line change @@ -334,18 +334,18 @@ def marshal_CreateJobDefinitionRequest(
334
334
if request .image_uri is not None :
335
335
output ["image_uri" ] = request .image_uri
336
336
337
- if request .name is not None :
338
- output ["name" ] = request .name
339
-
340
- if request .local_storage_capacity is not None :
341
- output ["local_storage_capacity" ] = request .local_storage_capacity
342
-
343
337
if request .command is not None :
344
338
output ["command" ] = request .command
345
339
346
340
if request .description is not None :
347
341
output ["description" ] = request .description
348
342
343
+ if request .name is not None :
344
+ output ["name" ] = request .name
345
+
346
+ if request .local_storage_capacity is not None :
347
+ output ["local_storage_capacity" ] = request .local_storage_capacity
348
+
349
349
if request .project_id is not None :
350
350
output ["project_id" ] = request .project_id or defaults .default_project_id
351
351
Original file line number Diff line number Diff line change @@ -170,29 +170,29 @@ class CreateJobDefinitionRequest:
170
170
Image to use for the job.
171
171
"""
172
172
173
- region : Optional [ Region ]
173
+ command : str
174
174
"""
175
- Region to target . If none is passed will use default region from the config .
175
+ Startup command . If empty or not defined, the image's default command is used .
176
176
"""
177
177
178
- name : Optional [ str ]
178
+ description : str
179
179
"""
180
- Name of the job definition .
180
+ Description of the job.
181
181
"""
182
182
183
- local_storage_capacity : Optional [int ]
183
+ region : Optional [Region ]
184
184
"""
185
- Local storage capacity of the job (in MiB) .
185
+ Region to target. If none is passed will use default region from the config .
186
186
"""
187
187
188
- command : str
188
+ name : Optional [ str ]
189
189
"""
190
- Startup command. If empty or not defined, the image's default command is used .
190
+ Name of the job definition .
191
191
"""
192
192
193
- description : str
193
+ local_storage_capacity : Optional [ int ]
194
194
"""
195
- Description of the job.
195
+ Local storage capacity of the job (in MiB) .
196
196
"""
197
197
198
198
project_id : Optional [str ]
You can’t perform that action at this time.
0 commit comments