/// <summary> /// Initializes a new instance of the <see cref="CreatePhysicalClusterParameters" /> class. /// </summary> /// <param name="clusterName">Specifies the name of the new Cluster. (required).</param> /// <param name="encryptionConfig">encryptionConfig.</param> /// <param name="ipmiConfig">ipmiConfig (required).</param> /// <param name="metadataFaultTolerance">Specifies the metadata fault tolerance..</param> /// <param name="networkConfig">networkConfig (required).</param> /// <param name="nodeConfigs">Specifies the configuration for the nodes in the new cluster. (required).</param> public CreatePhysicalClusterParameters(string clusterName = default(string), EncryptionConfiguration encryptionConfig = default(EncryptionConfiguration), IpmiConfiguration ipmiConfig = default(IpmiConfiguration), int?metadataFaultTolerance = default(int?), NetworkConfiguration networkConfig = default(NetworkConfiguration), List <PhysicalNodeConfiguration> nodeConfigs = default(List <PhysicalNodeConfiguration>)) { this.ClusterName = clusterName; // to ensure "ipmiConfig" is required (not null) if (ipmiConfig == null) { throw new InvalidDataException("ipmiConfig is a required property for CreatePhysicalClusterParameters and cannot be null"); } else { this.IpmiConfig = ipmiConfig; } this.MetadataFaultTolerance = metadataFaultTolerance; // to ensure "networkConfig" is required (not null) if (networkConfig == null) { throw new InvalidDataException("networkConfig is a required property for CreatePhysicalClusterParameters and cannot be null"); } else { this.NetworkConfig = networkConfig; } this.NodeConfigs = nodeConfigs; this.EncryptionConfig = encryptionConfig; this.MetadataFaultTolerance = metadataFaultTolerance; }
/// <summary> /// Initializes a new instance of the <see cref="CreateCloudClusterParameters" /> class. /// </summary> /// <param name="clusterName">Specifies the name of the new Cluster. (required).</param> /// <param name="encryptionConfig">encryptionConfig.</param> /// <param name="metadataFaultTolerance">Specifies the metadata fault tolerance..</param> /// <param name="networkConfig">networkConfig (required).</param> /// <param name="nodeIps">Specifies the configuration for the nodes in the new cluster. (required).</param> public CreateCloudClusterParameters(string clusterName = default(string), EncryptionConfiguration encryptionConfig = default(EncryptionConfiguration), int?metadataFaultTolerance = default(int?), CloudNetworkConfiguration networkConfig = default(CloudNetworkConfiguration), List <string> nodeIps = default(List <string>)) { this.ClusterName = clusterName; this.MetadataFaultTolerance = metadataFaultTolerance; // to ensure "networkConfig" is required (not null) if (networkConfig == null) { throw new InvalidDataException("networkConfig is a required property for CreateCloudClusterParameters and cannot be null"); } else { this.NetworkConfig = networkConfig; } this.NodeIps = nodeIps; this.EncryptionConfig = encryptionConfig; this.MetadataFaultTolerance = metadataFaultTolerance; }