Пример #1
0
        public static UplinkError uplink_access_override_encryption_key(UplinkAccess access, string bucket, string prefix, UplinkEncryptionKey encryptionKey)
        {
            global::System.IntPtr cPtr = storj_uplinkPINVOKE.uplink_access_override_encryption_key(UplinkAccess.getCPtr(access), new storj_uplinkPINVOKE.SWIGStringMarshal(bucket).swigCPtr, new storj_uplinkPINVOKE.SWIGStringMarshal(prefix).swigCPtr, UplinkEncryptionKey.getCPtr(encryptionKey));
            UplinkError           ret  = (cPtr == global::System.IntPtr.Zero) ? null : new UplinkError(cPtr, false);

            return(ret);
        }
Пример #2
0
        public static UplinkError uplink_revoke_access(UplinkProject project, UplinkAccess access)
        {
            global::System.IntPtr cPtr = storj_uplinkPINVOKE.uplink_revoke_access(UplinkProject.getCPtr(project), UplinkAccess.getCPtr(access));
            UplinkError           ret  = (cPtr == global::System.IntPtr.Zero) ? null : new UplinkError(cPtr, false);

            return(ret);
        }
Пример #3
0
        public static UplinkAccessResult access_share2(UplinkAccess access, UplinkPermission permission)
        {
            UplinkAccessResult ret = new UplinkAccessResult(storj_uplinkPINVOKE.access_share2(UplinkAccess.getCPtr(access), UplinkPermission.getCPtr(permission)), true);

            if (storj_uplinkPINVOKE.SWIGPendingException.Pending)
            {
                throw storj_uplinkPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #4
0
        public static UplinkAccessResult uplink_access_share(UplinkAccess access, UplinkPermission permission, UplinkSharePrefix prefixes, long prefixes_count)
        {
            UplinkAccessResult ret = new UplinkAccessResult(storj_uplinkPINVOKE.uplink_access_share(UplinkAccess.getCPtr(access), UplinkPermission.getCPtr(permission), UplinkSharePrefix.getCPtr(prefixes), prefixes_count), true);

            if (storj_uplinkPINVOKE.SWIGPendingException.Pending)
            {
                throw storj_uplinkPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #5
0
        public static EdgeCredentialsResult edge_register_access(EdgeConfig config, UplinkAccess access, EdgeRegisterAccessOptions options)
        {
            EdgeCredentialsResult ret = new EdgeCredentialsResult(storj_uplinkPINVOKE.edge_register_access(EdgeConfig.getCPtr(config), UplinkAccess.getCPtr(access), EdgeRegisterAccessOptions.getCPtr(options)), true);

            if (storj_uplinkPINVOKE.SWIGPendingException.Pending)
            {
                throw storj_uplinkPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #6
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(UplinkAccess obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Пример #7
0
        public static UplinkProjectResult uplink_open_project(UplinkAccess access)
        {
            UplinkProjectResult ret = new UplinkProjectResult(storj_uplinkPINVOKE.uplink_open_project(UplinkAccess.getCPtr(access)), true);

            return(ret);
        }
Пример #8
0
        public static UplinkStringResult uplink_access_serialize(UplinkAccess access)
        {
            UplinkStringResult ret = new UplinkStringResult(storj_uplinkPINVOKE.uplink_access_serialize(UplinkAccess.getCPtr(access)), true);

            return(ret);
        }
Пример #9
0
        public static UplinkProjectResult uplink_config_open_project(UplinkConfig config, UplinkAccess access)
        {
            UplinkProjectResult ret = new UplinkProjectResult(storj_uplinkPINVOKE.uplink_config_open_project(UplinkConfig.getCPtr(config), UplinkAccess.getCPtr(access)), true);

            if (storj_uplinkPINVOKE.SWIGPendingException.Pending)
            {
                throw storj_uplinkPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }