File tree 10 files changed +60
-38
lines changed
scaleway-async/scaleway_async 10 files changed +60
-38
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ async def create_job_definition(
74
74
:param project_id: UUID of the Scaleway Project containing the job.
75
75
:param environment_variables: Environment variables of the job.
76
76
:param job_timeout: Timeout of the job in seconds.
77
- :param cron_schedule:
77
+ :param cron_schedule: Configure a cron for the job.
78
78
:return: :class:`JobDefinition <JobDefinition>`
79
79
80
80
Usage:
@@ -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 ,
106
104
region = region ,
107
105
name = name or random_name (prefix = "job" ),
108
106
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 .command is not None :
338
- output ["command" ] = request .command
339
-
340
- if request .description is not None :
341
- output ["description" ] = request .description
342
-
343
337
if request .name is not None :
344
338
output ["name" ] = request .name
345
339
346
340
if request .local_storage_capacity is not None :
347
341
output ["local_storage_capacity" ] = request .local_storage_capacity
348
342
343
+ if request .command is not None :
344
+ output ["command" ] = request .command
345
+
346
+ if request .description is not None :
347
+ output ["description" ] = request .description
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,16 +170,6 @@ class CreateJobDefinitionRequest:
170
170
Image to use for the job.
171
171
"""
172
172
173
- command : str
174
- """
175
- Startup command. If empty or not defined, the image's default command is used.
176
- """
177
-
178
- description : str
179
- """
180
- Description of the job.
181
- """
182
-
183
173
region : Optional [Region ]
184
174
"""
185
175
Region to target. If none is passed will use default region from the config.
@@ -195,6 +185,16 @@ class CreateJobDefinitionRequest:
195
185
Local storage capacity of the job (in MiB).
196
186
"""
197
187
188
+ command : str
189
+ """
190
+ Startup command. If empty or not defined, the image's default command is used.
191
+ """
192
+
193
+ description : str
194
+ """
195
+ Description of the job.
196
+ """
197
+
198
198
project_id : Optional [str ]
199
199
"""
200
200
UUID of the Scaleway Project containing the job.
@@ -211,6 +211,9 @@ class CreateJobDefinitionRequest:
211
211
"""
212
212
213
213
cron_schedule : Optional [CreateJobDefinitionRequestCronScheduleConfig ]
214
+ """
215
+ Configure a cron for the job.
216
+ """
214
217
215
218
216
219
@dataclass
Original file line number Diff line number Diff line change @@ -367,6 +367,7 @@ async def browse_secrets(
367
367
page : Optional [int ] = None ,
368
368
page_size : Optional [int ] = None ,
369
369
tags : Optional [List [str ]] = None ,
370
+ type_ : Optional [SecretType ] = None ,
370
371
) -> BrowseSecretsResponse :
371
372
"""
372
373
Browse secrets.
@@ -378,6 +379,7 @@ async def browse_secrets(
378
379
:param page:
379
380
:param page_size:
380
381
:param tags: Filter secrets by tags.
382
+ :param type_: Filter by secret type (optional).
381
383
:return: :class:`BrowseSecretsResponse <BrowseSecretsResponse>`
382
384
383
385
Usage:
@@ -402,6 +404,7 @@ async def browse_secrets(
402
404
"prefix" : prefix ,
403
405
"project_id" : project_id or self .client .default_project_id ,
404
406
"tags" : tags ,
407
+ "type" : type_ ,
405
408
},
406
409
)
407
410
Original file line number Diff line number Diff line change @@ -421,6 +421,11 @@ class BrowseSecretsRequest:
421
421
Filter secrets by tags.
422
422
"""
423
423
424
+ type_ : Optional [SecretType ]
425
+ """
426
+ Filter by secret type (optional).
427
+ """
428
+
424
429
425
430
@dataclass
426
431
class BrowseSecretsResponse :
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ def create_job_definition(
74
74
:param project_id: UUID of the Scaleway Project containing the job.
75
75
:param environment_variables: Environment variables of the job.
76
76
:param job_timeout: Timeout of the job in seconds.
77
- :param cron_schedule:
77
+ :param cron_schedule: Configure a cron for the job.
78
78
:return: :class:`JobDefinition <JobDefinition>`
79
79
80
80
Usage:
@@ -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 ,
106
104
region = region ,
107
105
name = name or random_name (prefix = "job" ),
108
106
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 .command is not None :
338
- output ["command" ] = request .command
339
-
340
- if request .description is not None :
341
- output ["description" ] = request .description
342
-
343
337
if request .name is not None :
344
338
output ["name" ] = request .name
345
339
346
340
if request .local_storage_capacity is not None :
347
341
output ["local_storage_capacity" ] = request .local_storage_capacity
348
342
343
+ if request .command is not None :
344
+ output ["command" ] = request .command
345
+
346
+ if request .description is not None :
347
+ output ["description" ] = request .description
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,16 +170,6 @@ class CreateJobDefinitionRequest:
170
170
Image to use for the job.
171
171
"""
172
172
173
- command : str
174
- """
175
- Startup command. If empty or not defined, the image's default command is used.
176
- """
177
-
178
- description : str
179
- """
180
- Description of the job.
181
- """
182
-
183
173
region : Optional [Region ]
184
174
"""
185
175
Region to target. If none is passed will use default region from the config.
@@ -195,6 +185,16 @@ class CreateJobDefinitionRequest:
195
185
Local storage capacity of the job (in MiB).
196
186
"""
197
187
188
+ command : str
189
+ """
190
+ Startup command. If empty or not defined, the image's default command is used.
191
+ """
192
+
193
+ description : str
194
+ """
195
+ Description of the job.
196
+ """
197
+
198
198
project_id : Optional [str ]
199
199
"""
200
200
UUID of the Scaleway Project containing the job.
@@ -211,6 +211,9 @@ class CreateJobDefinitionRequest:
211
211
"""
212
212
213
213
cron_schedule : Optional [CreateJobDefinitionRequestCronScheduleConfig ]
214
+ """
215
+ Configure a cron for the job.
216
+ """
214
217
215
218
216
219
@dataclass
Original file line number Diff line number Diff line change @@ -367,6 +367,7 @@ def browse_secrets(
367
367
page : Optional [int ] = None ,
368
368
page_size : Optional [int ] = None ,
369
369
tags : Optional [List [str ]] = None ,
370
+ type_ : Optional [SecretType ] = None ,
370
371
) -> BrowseSecretsResponse :
371
372
"""
372
373
Browse secrets.
@@ -378,6 +379,7 @@ def browse_secrets(
378
379
:param page:
379
380
:param page_size:
380
381
:param tags: Filter secrets by tags.
382
+ :param type_: Filter by secret type (optional).
381
383
:return: :class:`BrowseSecretsResponse <BrowseSecretsResponse>`
382
384
383
385
Usage:
@@ -402,6 +404,7 @@ def browse_secrets(
402
404
"prefix" : prefix ,
403
405
"project_id" : project_id or self .client .default_project_id ,
404
406
"tags" : tags ,
407
+ "type" : type_ ,
405
408
},
406
409
)
407
410
Original file line number Diff line number Diff line change @@ -421,6 +421,11 @@ class BrowseSecretsRequest:
421
421
Filter secrets by tags.
422
422
"""
423
423
424
+ type_ : Optional [SecretType ]
425
+ """
426
+ Filter by secret type (optional).
427
+ """
428
+
424
429
425
430
@dataclass
426
431
class BrowseSecretsResponse :
You can’t perform that action at this time.
0 commit comments