/// <summary> /// Initializes a new instance of the SecuritySettingsPatch class. /// </summary> /// <param name="remoteManagementSettings">The remote management /// settings.</param> /// <param name="deviceAdminPassword">The device administrator /// password.</param> /// <param name="snapshotPassword">The snapshot manager /// password.</param> /// <param name="chapSettings">The device CHAP and reverse-CHAP /// settings.</param> /// <param name="cloudApplianceSettings">The cloud appliance /// settings.</param> public SecuritySettingsPatch(RemoteManagementSettingsPatch remoteManagementSettings = default(RemoteManagementSettingsPatch), AsymmetricEncryptedSecret deviceAdminPassword = default(AsymmetricEncryptedSecret), AsymmetricEncryptedSecret snapshotPassword = default(AsymmetricEncryptedSecret), ChapSettings chapSettings = default(ChapSettings), CloudApplianceSettings cloudApplianceSettings = default(CloudApplianceSettings)) { RemoteManagementSettings = remoteManagementSettings; DeviceAdminPassword = deviceAdminPassword; SnapshotPassword = snapshotPassword; ChapSettings = chapSettings; CloudApplianceSettings = cloudApplianceSettings; }
/// <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(); } }
/// <summary> /// Initializes a new instance of the SecuritySettings 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 SecuritySettings(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; }