예제 #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());
            }
        }
예제 #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());
        }
예제 #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());
        }
예제 #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));
        }
예제 #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());
        }