Beispiel #1
0
        public StorageLinkSystem(StorageLinkConnection storageLinkConnection,
                                 string opaque_ref,
                                 string friendlyName,
                                 StorageLinkServer storageLinkServer,
                                 string storageSystemId,
                                 string serialNumber,
                                 string model,
                                 string fullName,
                                 string storageAdapterId,
                                 StorageLinkEnums.StorageSystemCapabilities capabilities)
            : base(storageLinkConnection, opaque_ref, friendlyName)
        {
            Util.ThrowIfParameterNull(storageLinkServer, "storageLinkServer");
            Util.ThrowIfStringParameterNullOrEmpty(storageSystemId, "storageSystemId");
            Util.ThrowIfStringParameterNullOrEmpty(serialNumber, "serialNumber");
            Util.ThrowIfStringParameterNullOrEmpty(model, "model");
            Util.ThrowIfStringParameterNullOrEmpty(fullName, "fullName");
            Util.ThrowIfStringParameterNullOrEmpty(storageAdapterId, "storageAdapterId");

            StorageLinkServer = storageLinkServer;
            StorageSystemId   = storageSystemId;
            SerialNumber      = serialNumber;
            Model             = model;
            FullName          = fullName;
            Capabilities      = capabilities;
            StorageAdapterId  = storageAdapterId;
        }
Beispiel #2
0
        public StorageLinkVolume(StorageLinkConnection storageLinkConnection, string opaque_ref, StorageLinkServer storageLinkServer, string friendlyName, string storageLinkSystemId, string storageLinkPoolId, uint capacity, uint usedSpace)
            : base(storageLinkConnection, opaque_ref, friendlyName)
        {
            Util.ThrowIfStringParameterNullOrEmpty(storageLinkPoolId, "storageLinkPoolId");
            Util.ThrowIfStringParameterNullOrEmpty(storageLinkSystemId, "storageLinkSystemId");

            StorageLinkServer   = storageLinkServer;
            StorageLinkSystemId = storageLinkSystemId;
            StorageLinkPoolId   = storageLinkPoolId;
            _capacity           = capacity;
            _usedSpace          = usedSpace;
        }
        public StorageLinkRepository(StorageLinkConnection storageLinkConnection, string opaque_ref, string friendlyName, StorageLinkServer server, string storageSystemId, string storagePoolId, StorageLinkEnums.RaidType raidType, StorageLinkEnums.ProvisioningType provisioningType, StorageLinkEnums.ProvisioningOptions provisioningOptions, string hostGroupId)
            : base(storageLinkConnection, opaque_ref, friendlyName)
        {
            Util.ThrowIfParameterNull(server, "server");
            Util.ThrowIfParameterNull(storageSystemId, "storageSystemId");
            Util.ThrowIfParameterNull(storagePoolId, "storagePoolId");
            Util.ThrowIfParameterNull(hostGroupId, "hostGroupId");

            StorageLinkServer   = server;
            StorageLinkSystemId = storageSystemId;
            StorageLinkPoolId   = storagePoolId;
            RaidType            = raidType;
            ProvisioningType    = provisioningType;
            ProvisioningOptions = provisioningOptions;
            HostGroupId         = hostGroupId;
        }