Example #1
0
        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());
            }
        }
Example #2
0
        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());
        }
Example #3
0
        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());
        }
Example #4
0
        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));
        }
Example #5
0
        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());
        }