/// <summary> /// Initializes a new instance of the <see cref="VMTemplateInfo" /> class. /// </summary> /// <param name="datacenterId">Datacenter id for this VM template. (required).</param> /// <param name="diskSizeInBytes">Sum of capacities of all the virtual disks in the template, in bytes. (required).</param> /// <param name="id">Unique ID representing a VM template. (required).</param> /// <param name="incompatibleReasons">Reasons that may preclude this VM template from being used in full clone desktop pool creation. (required).</param> /// <param name="memoryMb">Memory size of the VM template, in MB (required).</param> /// <param name="name">VM template name. (required).</param> /// <param name="operatingSystem">Operating system. * UNKNOWN: Unknown * WINDOWS_XP: Windows XP * WINDOWS_VISTA: Windows Vista * WINDOWS_7: Windows 7 * WINDOWS_8: Windows 8 * WINDOWS_10: Windows 10 * WINDOWS_SERVER_2003: Windows Server 2003 * WINDOWS_SERVER_2008: Windows Server 2008 * WINDOWS_SERVER_2008_R2: Windows Server 2008 R2 * WINDOWS_SERVER_2012: Windows Server 2012 * WINDOWS_SERVER_2012_R2: Windows Server 2012 R2 * WINDOWS_SERVER_2016_OR_ABOVE: Windows Server 2016 or above * LINUX_OTHER: Linux (other) * LINUX_SERVER_OTHER: Linux server (other) * LINUX_UBUNTU: Linux (Ubuntu) * LINUX_RHEL: Linux (Red Hat Enterprise) * LINUX_SUSE: Linux (Suse) * LINUX_CENTOS: Linux (CentOS) (required).</param> /// <param name="operatingSystemDisplayName">Operating system display name from Virtual Center. (required).</param> /// <param name="path">VM template path. (required).</param> /// <param name="vcenterId">ID of the vCenter to which this VM template belongs to. (required).</param> /// <param name="vgpuType">NVIDIA GRID vGPU type configured on this VM template..</param> public VMTemplateInfo(string datacenterId = default(string), long?diskSizeInBytes = default(long?), string id = default(string), List <IncompatibleReasonsEnum> incompatibleReasons = default(List <IncompatibleReasonsEnum>), int?memoryMb = default(int?), string name = default(string), OperatingSystemEnum operatingSystem = default(OperatingSystemEnum), string operatingSystemDisplayName = default(string), string path = default(string), string vcenterId = default(string), string vgpuType = default(string)) { // to ensure "datacenterId" is required (not null) if (datacenterId == null) { throw new InvalidDataException("datacenterId is a required property for VMTemplateInfo and cannot be null"); } else { this.DatacenterId = datacenterId; } // to ensure "diskSizeInBytes" is required (not null) if (diskSizeInBytes == null) { throw new InvalidDataException("diskSizeInBytes is a required property for VMTemplateInfo and cannot be null"); } else { this.DiskSizeInBytes = diskSizeInBytes; } // to ensure "id" is required (not null) if (id == null) { throw new InvalidDataException("id is a required property for VMTemplateInfo and cannot be null"); } else { this.Id = id; } // to ensure "incompatibleReasons" is required (not null) if (incompatibleReasons == null) { throw new InvalidDataException("incompatibleReasons is a required property for VMTemplateInfo and cannot be null"); } else { this.IncompatibleReasons = incompatibleReasons; } // to ensure "memoryMb" is required (not null) if (memoryMb == null) { throw new InvalidDataException("memoryMb is a required property for VMTemplateInfo and cannot be null"); } else { this.MemoryMb = memoryMb; } // to ensure "name" is required (not null) if (name == null) { throw new InvalidDataException("name is a required property for VMTemplateInfo and cannot be null"); } else { this.Name = name; } // to ensure "operatingSystem" is required (not null) if (operatingSystem == null) { throw new InvalidDataException("operatingSystem is a required property for VMTemplateInfo and cannot be null"); } else { this.OperatingSystem = operatingSystem; } // to ensure "operatingSystemDisplayName" is required (not null) if (operatingSystemDisplayName == null) { throw new InvalidDataException("operatingSystemDisplayName is a required property for VMTemplateInfo and cannot be null"); } else { this.OperatingSystemDisplayName = operatingSystemDisplayName; } // to ensure "path" is required (not null) if (path == null) { throw new InvalidDataException("path is a required property for VMTemplateInfo and cannot be null"); } else { this.Path = path; } // to ensure "vcenterId" is required (not null) if (vcenterId == null) { throw new InvalidDataException("vcenterId is a required property for VMTemplateInfo and cannot be null"); } else { this.VcenterId = vcenterId; } this.VgpuType = vgpuType; }
/// <summary> /// Initializes a new instance of the <see cref="RDSServerMonitorDetails" /> class. /// </summary> /// <param name="agentBuild">Agent build number. (required).</param> /// <param name="agentVersion">Agent version. (required).</param> /// <param name="maxSessionsCountConfigured">Maximum number of sessions for RDS server as configured by administrator. Will be unset if the value is not configured..</param> /// <param name="operatingSystem">Operating System version. * UNKNOWN: Unknown * WINDOWS_SERVER_2003: Windows Server 2003 * WINDOWS_SERVER_2008: Windows Server 2008 * WINDOWS_SERVER_2008_R2: Windows Server 2008 R2 * WINDOWS_SERVER_2012: Windows Server 2012 * WINDOWS_SERVER_2012_R2: Windows Server 2012 R2 * WINDOWS_SERVER_2016_OR_ABOVE: Windows Server 2016 or above * LINUX_SERVER_OTHER: Linux Server (other) (required).</param> /// <param name="state">State of RDS Server. * WAIT_FOR_AGENT: Connection Server is waiting to establish communication with View Agent on a RDS Server. * AGENT_UNREACHABLE: Connection Server cannot establish communication with View Agent on a RDS Server. * AGENT_CONFIG_ERROR: The RDS Server has configuration error. Ex: Remote Desktop Service role is not enabled. * AVAILABLE: The RDS Server is powered on and ready for an active connection. * DISABLED: The RDS Server is disabled. * DISABLE_IN_PROGRESS: Disabled RDS server still has some brokered sessions. It can still accept re-connections. * PROVISIONING: The RDS Server is being provisioned. * PROVISIONING_ERROR: An error occurred during provisioning. * CUSTOMIZING: The RDS Server is being customized. * DELETING: The RDS Server is marked for deletion. It will be deleted soon. * MAINTENANCE: The RDS Server is in maintenance mode. * ERROR: An unknown error occurred in the RDS Server. * PROVISIONED: The RDS Server has been provisioned. * CONNECTED: The RDS Server is in an active session. * DISCONNECTED: The RDS Server is in an active session but is disconnected. * AGENT_ERR_STARTUP_IN_PROGRESS: The Horizon Agent has started on the virtual machine, but other required services such as the display protocol are still starting. * AGENT_ERR_DISABLED: The Horizon Agent is disabled. * AGENT_ERR_INVALID_IP: The Horizon Agent has an invalid IP. * AGENT_ERR_NEED_REBOOT: The Horizon Agent needs reboot. * AGENT_ERR_PROTOCOL_FAILURE: Protocol such as RDP or PCoIP is not enabled. * AGENT_ERR_DOMAIN_FAILURE: The RDS Server has an invalid domain. * AGENT_DRAIN_MODE: The RDS Server is configured for drain mode. * AGENT_DRAIN_UNTIL_RESTART: The RDS Server is configured a mode to drain until restart. * ALREADY_USED: The RDS Server cannot accept new sessions. * IN_PROGRESS: There is a RDS Server operation in progress. * VALIDATING: The connection server is synchronizing state information with the agent. * UNKNOWN: Could not determine the state of the RDS Server. (required).</param> public RDSServerMonitorDetails(string agentBuild = default(string), string agentVersion = default(string), int?maxSessionsCountConfigured = default(int?), OperatingSystemEnum operatingSystem = default(OperatingSystemEnum), StateEnum state = default(StateEnum)) { // to ensure "agentBuild" is required (not null) if (agentBuild == null) { throw new InvalidDataException("agentBuild is a required property for RDSServerMonitorDetails and cannot be null"); } else { this.AgentBuild = agentBuild; } // to ensure "agentVersion" is required (not null) if (agentVersion == null) { throw new InvalidDataException("agentVersion is a required property for RDSServerMonitorDetails and cannot be null"); } else { this.AgentVersion = agentVersion; } // to ensure "operatingSystem" is required (not null) if (operatingSystem == null) { throw new InvalidDataException("operatingSystem is a required property for RDSServerMonitorDetails and cannot be null"); } else { this.OperatingSystem = operatingSystem; } // to ensure "state" is required (not null) if (state == null) { throw new InvalidDataException("state is a required property for RDSServerMonitorDetails and cannot be null"); } else { this.State = state; } this.MaxSessionsCountConfigured = maxSessionsCountConfigured; }
/// <summary> /// Initializes a new instance of the <see cref="VirtualMachineInfo" /> class. /// </summary> /// <param name="hardwareVersion">Hardware version for this VM. (required).</param> /// <param name="id">Unique ID representing a VM. (required).</param> /// <param name="incompatibleReasons">Reasons that may preclude this Virtual Machine from having its snapshots used in linked or instant clone desktop or farm..</param> /// <param name="name">VM name. (required).</param> /// <param name="operatingSystem">Operating system. * UNKNOWN: Unknown * WINDOWS_XP: Windows XP * WINDOWS_VISTA: Windows Vista * WINDOWS_7: Windows 7 * WINDOWS_8: Windows 8 * WINDOWS_10: Windows 10 * WINDOWS_SERVER_2003: Windows Server 2003 * WINDOWS_SERVER_2008: Windows Server 2008 * WINDOWS_SERVER_2008_R2: Windows Server 2008 R2 * WINDOWS_SERVER_2012: Windows Server 2012 * WINDOWS_SERVER_2012_R2: Windows Server 2012 R2 * WINDOWS_SERVER_2016_OR_ABOVE: Windows Server 2016 or above * LINUX_OTHER: Linux (other) * LINUX_SERVER_OTHER: Linux server (other) * LINUX_UBUNTU: Linux (Ubuntu) * LINUX_RHEL: Linux (Red Hat Enterprise) * LINUX_SUSE: Linux (Suse) * LINUX_CENTOS: Linux (CentOS) (required).</param> /// <param name="operatingSystemDisplayName">Operating system display name from Virtual Center. (required).</param> /// <param name="path">VM path. (required).</param> /// <param name="vGputype">Virtual GPU type. (required).</param> public VirtualMachineInfo(int?hardwareVersion = default(int?), string id = default(string), List <IncompatibleReasonsEnum> incompatibleReasons = default(List <IncompatibleReasonsEnum>), string name = default(string), OperatingSystemEnum operatingSystem = default(OperatingSystemEnum), string operatingSystemDisplayName = default(string), string path = default(string), string vGputype = default(string)) { // to ensure "hardwareVersion" is required (not null) if (hardwareVersion == null) { throw new InvalidDataException("hardwareVersion is a required property for VirtualMachineInfo and cannot be null"); } else { this.HardwareVersion = hardwareVersion; } // to ensure "id" is required (not null) if (id == null) { throw new InvalidDataException("id is a required property for VirtualMachineInfo and cannot be null"); } else { this.Id = id; } // to ensure "name" is required (not null) if (name == null) { throw new InvalidDataException("name is a required property for VirtualMachineInfo and cannot be null"); } else { this.Name = name; } // to ensure "operatingSystem" is required (not null) if (operatingSystem == null) { throw new InvalidDataException("operatingSystem is a required property for VirtualMachineInfo and cannot be null"); } else { this.OperatingSystem = operatingSystem; } // to ensure "operatingSystemDisplayName" is required (not null) if (operatingSystemDisplayName == null) { throw new InvalidDataException("operatingSystemDisplayName is a required property for VirtualMachineInfo and cannot be null"); } else { this.OperatingSystemDisplayName = operatingSystemDisplayName; } // to ensure "path" is required (not null) if (path == null) { throw new InvalidDataException("path is a required property for VirtualMachineInfo and cannot be null"); } else { this.Path = path; } // to ensure "vGputype" is required (not null) if (vGputype == null) { throw new InvalidDataException("vGputype is a required property for VirtualMachineInfo and cannot be null"); } else { this.VGputype = vGputype; } this.IncompatibleReasons = incompatibleReasons; }
/// <summary> /// Initializes a new instance of the <see cref="ImageManagementStreamCreateSpec" /> class. /// </summary> /// <param name="additionalDetails">Additional details about image management stream..</param> /// <param name="description">Image management stream description..</param> /// <param name="name">Image management stream name. (required).</param> /// <param name="operatingSystem">Operating system. * UNKNOWN: Unknown * WINDOWS_XP: Windows XP * WINDOWS_VISTA: Windows Vista * WINDOWS_7: Windows 7 * WINDOWS_8: Windows 8 * WINDOWS_10: Windows 10 * WINDOWS_SERVER_2003: Windows Server 2003 * WINDOWS_SERVER_2008: Windows Server 2008 * WINDOWS_SERVER_2008_R2: Windows Server 2008 R2 * WINDOWS_SERVER_2012: Windows Server 2012 * WINDOWS_SERVER_2012_R2: Windows Server 2012 R2 * WINDOWS_SERVER_2016_OR_ABOVE: Windows Server 2016 or above * LINUX_OTHER: Linux (other) * LINUX_SERVER_OTHER: Linux server (other) * LINUX_UBUNTU: Linux (Ubuntu) * LINUX_RHEL: Linux (Red Hat Enterprise) * LINUX_SUSE: Linux (Suse) * LINUX_CENTOS: Linux (CentOS) (required).</param> /// <param name="publisher">Image management stream publisher.</param> /// <param name="source">Image management stream source. * MARKET_PLACE: Image management stream is from market place. * UPLOADED: Image management stream is uploaded. * COPIED_FROM_STREAM: Image management stream is copied from another stream. * COPIED_FROM_VERSION: Image management stream is copied from a version. (required).</param> /// <param name="status">Image management stream status. * AVAILABLE: Image management stream is available for desktop pools/farms to be created. * DELETED: Image management stream is deleted. * DISABLED: Image management stream is disabled and no further desktop pools/farms can be created using the same. * FAILED: Image management stream creation has failed. * IN_PROGRESS: Image management stream creation is in progress. * PARTIALLY_AVAILABLE: Image management version for this stream could not be created in one or more environments. * PENDING: Image management stream is in pending state. (required).</param> public ImageManagementStreamCreateSpec(Dictionary <string, string> additionalDetails = default(Dictionary <string, string>), string description = default(string), string name = default(string), OperatingSystemEnum operatingSystem = default(OperatingSystemEnum), string publisher = default(string), SourceEnum source = default(SourceEnum), StatusEnum status = default(StatusEnum)) { // to ensure "name" is required (not null) if (name == null) { throw new InvalidDataException("name is a required property for ImageManagementStreamCreateSpec and cannot be null"); } else { this.Name = name; } // to ensure "operatingSystem" is required (not null) if (operatingSystem == null) { throw new InvalidDataException("operatingSystem is a required property for ImageManagementStreamCreateSpec and cannot be null"); } else { this.OperatingSystem = operatingSystem; } // to ensure "source" is required (not null) if (source == null) { throw new InvalidDataException("source is a required property for ImageManagementStreamCreateSpec and cannot be null"); } else { this.Source = source; } // to ensure "status" is required (not null) if (status == null) { throw new InvalidDataException("status is a required property for ImageManagementStreamCreateSpec and cannot be null"); } else { this.Status = status; } this.AdditionalDetails = additionalDetails; this.Description = description; this.Publisher = publisher; }
/// <summary> /// Initializes a new instance of the <see cref="BaseVMInfo" /> class. /// </summary> /// <param name="datacenterId">Datacenter id for this VM. (required).</param> /// <param name="id">Unique ID representing a VM. (required).</param> /// <param name="incompatibleReasons">Reasons that may preclude this BaseVM from having its snapshots used in linked or instant clone desktop or farm creation..</param> /// <param name="name">VM name. (required).</param> /// <param name="networkType">Type of network base VM belongs to. * STANDARD_NETWORK: Standard network. * OPAQUE_NETWORK: Opaque network. * DISTRUBUTED_VIRTUAL_PORT_GROUP: DVS port group. (required).</param> /// <param name="operatingSystem">Operating system. * UNKNOWN: Unknown * WINDOWS_XP: Windows XP * WINDOWS_VISTA: Windows Vista * WINDOWS_7: Windows 7 * WINDOWS_8: Windows 8 * WINDOWS_10: Windows 10 * WINDOWS_SERVER_2003: Windows Server 2003 * WINDOWS_SERVER_2008: Windows Server 2008 * WINDOWS_SERVER_2008_R2: Windows Server 2008 R2 * WINDOWS_SERVER_2012: Windows Server 2012 * WINDOWS_SERVER_2012_R2: Windows Server 2012 R2 * WINDOWS_SERVER_2016_OR_ABOVE: Windows Server 2016 or above * LINUX_OTHER: Linux (other) * LINUX_SERVER_OTHER: Linux server (other) * LINUX_UBUNTU: Linux (Ubuntu) * LINUX_RHEL: Linux (Red Hat Enterprise) * LINUX_SUSE: Linux (Suse) * LINUX_CENTOS: Linux (CentOS) (required).</param> /// <param name="operatingSystemDisplayName">Operating system display name from Virtual Center. (required).</param> /// <param name="path">VM path. (required).</param> /// <param name="vcenterId">Virtual Center id for this VM. (required).</param> public BaseVMInfo(string datacenterId = default(string), string id = default(string), List <IncompatibleReasonsEnum> incompatibleReasons = default(List <IncompatibleReasonsEnum>), string name = default(string), NetworkTypeEnum networkType = default(NetworkTypeEnum), OperatingSystemEnum operatingSystem = default(OperatingSystemEnum), string operatingSystemDisplayName = default(string), string path = default(string), string vcenterId = default(string)) { // to ensure "datacenterId" is required (not null) if (datacenterId == null) { throw new InvalidDataException("datacenterId is a required property for BaseVMInfo and cannot be null"); } else { this.DatacenterId = datacenterId; } // to ensure "id" is required (not null) if (id == null) { throw new InvalidDataException("id is a required property for BaseVMInfo and cannot be null"); } else { this.Id = id; } // to ensure "name" is required (not null) if (name == null) { throw new InvalidDataException("name is a required property for BaseVMInfo and cannot be null"); } else { this.Name = name; } // to ensure "networkType" is required (not null) if (networkType == null) { throw new InvalidDataException("networkType is a required property for BaseVMInfo and cannot be null"); } else { this.NetworkType = networkType; } // to ensure "operatingSystem" is required (not null) if (operatingSystem == null) { throw new InvalidDataException("operatingSystem is a required property for BaseVMInfo and cannot be null"); } else { this.OperatingSystem = operatingSystem; } // to ensure "operatingSystemDisplayName" is required (not null) if (operatingSystemDisplayName == null) { throw new InvalidDataException("operatingSystemDisplayName is a required property for BaseVMInfo and cannot be null"); } else { this.OperatingSystemDisplayName = operatingSystemDisplayName; } // to ensure "path" is required (not null) if (path == null) { throw new InvalidDataException("path is a required property for BaseVMInfo and cannot be null"); } else { this.Path = path; } // to ensure "vcenterId" is required (not null) if (vcenterId == null) { throw new InvalidDataException("vcenterId is a required property for BaseVMInfo and cannot be null"); } else { this.VcenterId = vcenterId; } this.IncompatibleReasons = incompatibleReasons; }