コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ConnectionServerMonitorInfoV2" /> class.
 /// </summary>
 /// <param name="certificate">Connection Server certificate information. (required).</param>
 /// <param name="connectionCount">Number of connections to this Connection Server..</param>
 /// <param name="csReplications">Connection Server replication status with respect to the Peer Connection Servers in the same cluster..</param>
 /// <param name="defaultCertificate">Indicates whether server has the default certificate..</param>
 /// <param name="details">Details about the Connection Server. (required).</param>
 /// <param name="id">Unique ID of the Connection Server. (required).</param>
 /// <param name="lastUpdatedTimestamp">The timestamp in milliseconds when the last update was obtained. Measured as epoch time..</param>
 /// <param name="name">Connection Server host name or IP address. (required).</param>
 /// <param name="services">Connection Server related Windows services information..</param>
 /// <param name="sessionProtocolData">PCoIP, RDP or BLAST protocol sessions details when clients connect directly to the connection server..</param>
 /// <param name="sessionThreshold">The maximum number of connections allowed for the connection server through the Horizon client. If all of the secure gateways (HTTP(S)/PCOIP/BLAST) are enabled, this field denotes the maximum number of connections allowed for the connection server.If none of the secure gateways(HTTP(S)/PCOIP/BLAST) are enabled, sessionThreshold value will not be set..</param>
 /// <param name="status">Status of the Connection Server. * OK: The Connection Server is working properly. * ERROR: Error occurred when connecting to Connection Server. * NOT_RESPONDING: The Connection Server is not responding. * UNKNOWN: Status of Connection Server is unknown. (required).</param>
 /// <param name="tunnelConnectionCount">Number of connections tunneled through this Connection Server..</param>
 public ConnectionServerMonitorInfoV2(CertificateMonitorInfo certificate = default(CertificateMonitorInfo), int?connectionCount = default(int?), List <ConnectionServerMonitorCSReplication> csReplications = default(List <ConnectionServerMonitorCSReplication>), bool?defaultCertificate = default(bool?), ConnectionServerMonitorDetails details = default(ConnectionServerMonitorDetails), string id = default(string), long?lastUpdatedTimestamp = default(long?), string name = default(string), List <ConnectionServerMonitorServiceStatus> services = default(List <ConnectionServerMonitorServiceStatus>), List <ConnectionServerSessionProtocolData> sessionProtocolData = default(List <ConnectionServerSessionProtocolData>), int?sessionThreshold = default(int?), StatusEnum status = default(StatusEnum), int?tunnelConnectionCount = default(int?))
 {
     // to ensure "certificate" is required (not null)
     if (certificate == null)
     {
         throw new InvalidDataException("certificate is a required property for ConnectionServerMonitorInfoV2 and cannot be null");
     }
     else
     {
         this.Certificate = certificate;
     }
     // to ensure "details" is required (not null)
     if (details == null)
     {
         throw new InvalidDataException("details is a required property for ConnectionServerMonitorInfoV2 and cannot be null");
     }
     else
     {
         this.Details = details;
     }
     // to ensure "id" is required (not null)
     if (id == null)
     {
         throw new InvalidDataException("id is a required property for ConnectionServerMonitorInfoV2 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 ConnectionServerMonitorInfoV2 and cannot be null");
     }
     else
     {
         this.Name = name;
     }
     // to ensure "status" is required (not null)
     if (status == null)
     {
         throw new InvalidDataException("status is a required property for ConnectionServerMonitorInfoV2 and cannot be null");
     }
     else
     {
         this.Status = status;
     }
     this.ConnectionCount       = connectionCount;
     this.CsReplications        = csReplications;
     this.DefaultCertificate    = defaultCertificate;
     this.LastUpdatedTimestamp  = lastUpdatedTimestamp;
     this.Services              = services;
     this.SessionProtocolData   = sessionProtocolData;
     this.SessionThreshold      = sessionThreshold;
     this.TunnelConnectionCount = tunnelConnectionCount;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ViewComposerMonitorConnectionServerV2" /> class.
 /// </summary>
 /// <param name="certificate">Information related to certificate..</param>
 /// <param name="id">Unique ID of the Connection Server. (required).</param>
 /// <param name="lastUpdatedTimestamp">The timestamp in milliseconds when the last update was obtained. Measured as epoch time..</param>
 /// <param name="name">Connection server host name or IP address. (required).</param>
 /// <param name="status">Status of the View Composer with respect to this Connection Server. * OK: The connection to View Composer server is working properly. * MALFORMED_URL: The connection to View Composer server was not possible due to a malformed URL. * ERROR: Error occurred when connecting to View Composer server. * CERT_ERROR: Certificate validation error when connecting to the View Composer server. (required).</param>
 /// <param name="thumbprintAccepted">Indicates if the thumbprint of the View Composer was accepted. (required).</param>
 public ViewComposerMonitorConnectionServerV2(CertificateMonitorInfo certificate = default(CertificateMonitorInfo), string id = default(string), long?lastUpdatedTimestamp = default(long?), string name = default(string), StatusEnum status = default(StatusEnum), bool?thumbprintAccepted = default(bool?))
 {
     // to ensure "id" is required (not null)
     if (id == null)
     {
         throw new InvalidDataException("id is a required property for ViewComposerMonitorConnectionServerV2 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 ViewComposerMonitorConnectionServerV2 and cannot be null");
     }
     else
     {
         this.Name = name;
     }
     // to ensure "status" is required (not null)
     if (status == null)
     {
         throw new InvalidDataException("status is a required property for ViewComposerMonitorConnectionServerV2 and cannot be null");
     }
     else
     {
         this.Status = status;
     }
     // to ensure "thumbprintAccepted" is required (not null)
     if (thumbprintAccepted == null)
     {
         throw new InvalidDataException("thumbprintAccepted is a required property for ViewComposerMonitorConnectionServerV2 and cannot be null");
     }
     else
     {
         this.ThumbprintAccepted = thumbprintAccepted;
     }
     this.Certificate          = certificate;
     this.LastUpdatedTimestamp = lastUpdatedTimestamp;
 }