@@ -99,7 +99,7 @@ async def list_subscriptions_cmd(ctx, status, limit, pretty):
99
99
"--collection_id" ,
100
100
default = None ,
101
101
help =
102
- " Optional collection ID for Sentinel Hub. If omitted, a new collection will be created." ,
102
+ ' Optional collection ID for Sentinel Hub. If omitted, a new collection will be created.' ,
103
103
)
104
104
@pretty
105
105
@click .pass_context
@@ -282,19 +282,21 @@ async def list_subscription_results_cmd(ctx,
282
282
@click .option (
283
283
'--hosting' ,
284
284
type = types .JSON (),
285
- help = 'Hosting JSON. Can be a string, a filename, or - for stdin.' )
285
+ help = 'Hosting JSON. Can be a string, a filename, or - for stdin. Currently, only "sentinel_hub" is supported. ' )
286
286
@click .option (
287
287
'--clip-to-source' ,
288
288
is_flag = True ,
289
289
default = False ,
290
290
help = "Clip to the source geometry without specifying a clip tool." )
291
+ @click .option ("--collection-id" , default = None , help = 'Optional collection ID for Sentinel Hub. If omitted, a new collection will be created.' )
291
292
@pretty
292
293
def request (name ,
293
294
source ,
294
295
delivery ,
295
296
notifications ,
296
297
tools ,
297
298
hosting ,
299
+ collection_id ,
298
300
clip_to_source ,
299
301
pretty ):
300
302
"""Generate a subscriptions request.
@@ -304,12 +306,14 @@ def request(name,
304
306
--clip-to-source option is a preview of the next API version's
305
307
default behavior.
306
308
"""
309
+
307
310
res = subscription_request .build_request (name ,
308
311
source ,
309
312
delivery ,
310
313
notifications = notifications ,
311
314
tools = tools ,
312
315
hosting = hosting ,
316
+ collection_id = collection_id ,
313
317
clip_to_source = clip_to_source )
314
318
echo_json (res , pretty )
315
319
@@ -367,6 +371,7 @@ def request_catalog(item_types,
367
371
time_range_type ,
368
372
pretty ):
369
373
"""Generate a subscriptions request catalog source description."""
374
+
370
375
res = subscription_request .catalog_source (
371
376
item_types ,
372
377
asset_types ,
0 commit comments