ConoHaNet.Objects.Servers.ServerResizeDetails.ServerResizeDetails C# (CSharp) Method

ServerResizeDetails() public method

Initializes a new instance of the ServerResizeDetails class with the specified details.
/// If is . /// /// If is empty. ///
public ServerResizeDetails ( string flavor, DiskConfiguration diskConfig ) : System
flavor string The new flavor. This is obtained from Flavor.Id.
diskConfig DiskConfiguration The disk configuration. If the value is , the default configuration for the specified image is used.
return System
        public ServerResizeDetails(string flavor, DiskConfiguration diskConfig)
        {
            if (flavor == null)
                throw new ArgumentNullException("flavor");
            if (string.IsNullOrEmpty(flavor))
                throw new ArgumentException("flavor cannot be empty");

            Flavor = flavor;
            DiskConfig = diskConfig;
        }
    }
ServerResizeDetails