public List <string> Execute(object options) { AzmiArgumentsClass opt; try { opt = (AzmiArgumentsClass)options; } catch (Exception ex) { throw AzmiException.WrongObject(ex); } if (String.IsNullOrEmpty(opt.blob) && String.IsNullOrEmpty(opt.container)) { throw new AzmiException("You must specify either blob or container url"); } else if ((!String.IsNullOrEmpty(opt.blob)) && (!String.IsNullOrEmpty(opt.container))) { throw new AzmiException("Cannot use both container and blob url"); } if (String.IsNullOrEmpty(opt.blob)) { return(SetBlob.setBlob_byContainer(opt.file, opt.container, opt.identity, opt.force).ToStringList()); } else { return(SetBlob.setBlob_byBlob(opt.file, opt.blob, opt.identity, opt.force).ToStringList()); } }
public List <string> Execute(object options) { AzmiArgumentsClass opt; try { opt = (AzmiArgumentsClass)options; } catch (Exception ex) { throw AzmiException.WrongObject(ex); } return(Execute(opt.blob, opt.file, opt.identity, opt.ifNewer, opt.deleteAfterCopy).ToStringList()); }
public List <string> Execute(object options) { AzmiArgumentsClass opt; try { opt = (AzmiArgumentsClass)options; } catch (Exception ex) { throw AzmiException.WrongObject(ex); } return(Execute(opt.endpoint, opt.identity, opt.jwtformat).ToStringList()); }
public List <string> Execute(object options) { AzmiArgumentsClass opt; try { opt = (AzmiArgumentsClass)options; } catch (Exception ex) { throw AzmiException.WrongObject(ex); } return(Execute(opt.container, opt.identity, opt.prefix, opt.exclude)); }
public List <string> Execute(object options) { AzmiArgumentsClass opt; try { opt = (AzmiArgumentsClass)options; } catch (Exception ex) { throw AzmiException.WrongObject(ex); } return(Execute(opt.certificate, opt.file, opt.identity).ToStringList()); }