コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the SecuritySettingsInner class.
 /// </summary>
 /// <param name="remoteManagementSettings">The settings for remote
 /// management of a device.</param>
 /// <param name="chapSettings">The Challenge-Handshake Authentication
 /// Protocol (CHAP) settings.</param>
 /// <param name="id">The path ID that uniquely identifies the
 /// object.</param>
 /// <param name="name">The name of the object.</param>
 /// <param name="type">The hierarchical type of the object.</param>
 /// <param name="kind">The Kind of the object. Currently only
 /// Series8000 is supported. Possible values include:
 /// 'Series8000'</param>
 public SecuritySettingsInner(RemoteManagementSettings remoteManagementSettings, ChapSettings chapSettings, string id = default(string), string name = default(string), string type = default(string), Kind?kind = default(Kind?))
     : base(id, name, type, kind)
 {
     RemoteManagementSettings = remoteManagementSettings;
     ChapSettings             = chapSettings;
     CustomInit();
 }
コード例 #2
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (RemoteManagementSettings == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "RemoteManagementSettings");
     }
     if (ChapSettings == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "ChapSettings");
     }
     if (RemoteManagementSettings != null)
     {
         RemoteManagementSettings.Validate();
     }
     if (ChapSettings != null)
     {
         ChapSettings.Validate();
     }
 }
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (RemoteManagementSettings != null)
     {
         RemoteManagementSettings.Validate();
     }
     if (DeviceAdminPassword != null)
     {
         DeviceAdminPassword.Validate();
     }
     if (SnapshotPassword != null)
     {
         SnapshotPassword.Validate();
     }
     if (ChapSettings != null)
     {
         ChapSettings.Validate();
     }
     if (CloudApplianceSettings != null)
     {
         CloudApplianceSettings.Validate();
     }
 }