2929 help = "The http port number." ,
3030 default = 80 ,
3131 show_default = True )
32+ @click .option ('--https-port' , '-s' ,
33+ type = click .INT ,
34+ help = "The https port number."
35+ )
3236@click .option ('--protocol' , '-P' ,
3337 type = click .STRING ,
3438 help = "The protocol used by the origin." ,
3539 default = 'http' ,
3640 show_default = True )
3741@click .option ('--optimize-for' , '-o' ,
38- type = click .Choice (['web' , 'video' , 'file' ]),
42+ type = click .Choice (['web' , 'video' , 'file' , 'dynamic' ]),
3943 help = "Performance configuration" ,
4044 default = 'web' ,
4145 show_default = True )
46+ @click .option ('--dynamic-path' , '-d' ,
47+ help = "The path that Akamai edge servers periodically fetch the test object from. example = /detection-test-object.html" )
48+ @click .option ('--compression' , '-i' ,
49+ help = "Enable or disable compression of JPEG images for requests over certain network conditions." ,
50+ show_default = True )
51+ @click .option ('--prefetching' , '-g' ,
52+ help = "Enable or disable the embedded object prefetching feature." ,
53+ show_default = True )
4254@click .option ('--extensions' , '-e' ,
4355 type = click .STRING ,
4456 help = "File extensions that can be stored in the CDN, example: 'jpg, png, pdf'" )
5062 show_default = True )
5163@environment .pass_env
5264def cli (env , unique_id , origin , path , origin_type , header ,
53- bucket_name , port , protocol , optimize_for , extensions , cache_query ):
65+ bucket_name , port , https_port , protocol , optimize_for ,
66+ dynamic_path , compression , prefetching ,
67+ extensions , cache_query ):
5468 """Create an origin path for an existing CDN mapping.
5569
5670 For more information see the following documentation: \n
@@ -62,10 +76,12 @@ def cli(env, unique_id, origin, path, origin_type, header,
6276 if origin_type == 'storage' and not bucket_name :
6377 raise exceptions .ArgumentError ('[-b | --bucket-name] is required when [-t | --origin-type] is "storage"' )
6478
65- result = manager .add_origin (unique_id , origin , path , origin_type = origin_type ,
66- header = header , port = port , protocol = protocol ,
79+ result = manager .add_origin (unique_id , origin , path , dynamic_path , origin_type = origin_type ,
80+ header = header , port = port , https_port = https_port , protocol = protocol ,
6781 bucket_name = bucket_name , file_extensions = extensions ,
68- optimize_for = optimize_for , cache_query = cache_query )
82+ optimize_for = optimize_for ,
83+ compression = compression , prefetching = prefetching ,
84+ cache_query = cache_query )
6985
7086 table = formatting .Table (['Item' , 'Value' ])
7187 table .align ['Item' ] = 'r'
0 commit comments