Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StartDynamicScanRequest" /> class.
 /// </summary>
 /// <param name="StartDate">Date when the scan should start, in MM/dd/yyyy HH:mm format (required).</param>
 /// <param name="AssessmentTypeId">The assessment type id to use for the scan (required).</param>
 /// <param name="EntitlementId">The entitlement id to consume for the scan (required).</param>
 /// <param name="EntitlementFrequencyType">The entitlement frequency type to use for the scan (required).</param>
 /// <param name="IsRemediationScan">Indicates if the scan is a remediation scan. If not supplied the default value is false (required).</param>
 /// <param name="IsBundledAssessment">Indicates if the assessment is a bundled assessment. If not supplied legacy behavior will apply.</param>
 /// <param name="ParentAssessmentTypeId">The parent assessment type id for the bundled assessment. If not supplied legacy behavior will apply.</param>
 public StartDynamicScanRequest(DateTime?StartDate = default(DateTime?), int?AssessmentTypeId = default(int?), int?EntitlementId = default(int?), EntitlementFrequencyTypeEnum EntitlementFrequencyType = default(EntitlementFrequencyTypeEnum), bool?IsRemediationScan = default(bool?), bool?IsBundledAssessment = default(bool?), int?ParentAssessmentTypeId = default(int?))
 {
     // to ensure "StartDate" is required (not null)
     if (StartDate == null)
     {
         throw new InvalidDataException("StartDate is a required property for StartDynamicScanRequest and cannot be null");
     }
     else
     {
         this.StartDate = StartDate;
     }
     // to ensure "AssessmentTypeId" is required (not null)
     if (AssessmentTypeId == null)
     {
         throw new InvalidDataException("AssessmentTypeId is a required property for StartDynamicScanRequest and cannot be null");
     }
     else
     {
         this.AssessmentTypeId = AssessmentTypeId;
     }
     // to ensure "EntitlementId" is required (not null)
     if (EntitlementId == null)
     {
         throw new InvalidDataException("EntitlementId is a required property for StartDynamicScanRequest and cannot be null");
     }
     else
     {
         this.EntitlementId = EntitlementId;
     }
     // to ensure "EntitlementFrequencyType" is required (not null)
     if (EntitlementFrequencyType == null)
     {
         throw new InvalidDataException("EntitlementFrequencyType is a required property for StartDynamicScanRequest and cannot be null");
     }
     else
     {
         this.EntitlementFrequencyType = EntitlementFrequencyType;
     }
     // to ensure "IsRemediationScan" is required (not null)
     if (IsRemediationScan == null)
     {
         throw new InvalidDataException("IsRemediationScan is a required property for StartDynamicScanRequest and cannot be null");
     }
     else
     {
         this.IsRemediationScan = IsRemediationScan;
     }
     this.IsBundledAssessment    = IsBundledAssessment;
     this.ParentAssessmentTypeId = ParentAssessmentTypeId;
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GetDynamicScanSetupResponse" /> class.
 /// </summary>
 /// <param name="GeoLocationId">Release Id of the scan to start (required).</param>
 /// <param name="DynamicScanEnvironmentFacingType">Type of environment the server is running in (required).</param>
 /// <param name="Exclusions">Deprecated.</param>
 /// <param name="ExclusionsList">List of exclusions..</param>
 /// <param name="DynamicScanAuthenticationType">Type of authentication required (required).</param>
 /// <param name="PrimaryUserName">Primary username to login with.</param>
 /// <param name="PrimaryUserPassword">Primary account password to login with.</param>
 /// <param name="SecondaryUserName">Secondary username to login with.</param>
 /// <param name="SecondaryUserPassword">Secondary account password to login with.</param>
 /// <param name="OtherUserName">Other username needed to operate the site.</param>
 /// <param name="OtherUserPassword">Other password needed to operate the site.</param>
 /// <param name="VpnRequired">True if VPN connection is required to scan the site.</param>
 /// <param name="VpnUserName">VPN account username.</param>
 /// <param name="VpnPassword">VPN account password.</param>
 /// <param name="MultiFactorAuth">True if client requests a call prior to assessment.</param>
 /// <param name="MultiFactorAuthText">All details required for multi-factor authentication.</param>
 /// <param name="Notes">Additional notes that will help with running a scan.</param>
 /// <param name="RequestCall">True if client requests a call prior to assessment.</param>
 /// <param name="WhitelistRequired">Deprecated.</param>
 /// <param name="WhitelistText">Deprecated.</param>
 /// <param name="DynamicSiteURL">The dynamic site url.</param>
 /// <param name="TimeZone">String value of timezone (required).</param>
 /// <param name="Blockout">Blockout days list. All days and hours will default to checked unless otherwise specified..</param>
 /// <param name="RepeatScheduleType">For scans that are to be run at regular intervals, this specifies how often.</param>
 /// <param name="AssessmentTypeId">Assessment type identifier of the scan.</param>
 /// <param name="AllowFormSubmissions">True to allow form submissions (default), otherwise false...</param>
 /// <param name="AllowSameHostRedirects">True to allow HTTP (:80) and HTTPS (:443) of the specified scan host (default), otherwise false..</param>
 /// <param name="RestrictToDirectoryAndSubdirectories">True to restrict to directory and subdirectories, otherwise false.</param>
 /// <param name="GenerateWAFVirtualPatch">True to generate WAF virtual patch, otherwise false.</param>
 /// <param name="IsWebService">True if this a web service scan.</param>
 /// <param name="WebServiceType">The web service type.</param>
 /// <param name="WebServiceDescriptorURL">WSDL Location URL.</param>
 /// <param name="WebServiceUserName">The web service username.</param>
 /// <param name="WebServicePassword">The web service password.</param>
 /// <param name="WebServiceAPIKey">The web service API key.</param>
 /// <param name="WebServiceAPIPassword">The web service API password.</param>
 /// <param name="EntitlementFrequencyType">The entitlement frequency type (required).</param>
 /// <param name="UserAgentType">The user agent type.</param>
 public GetDynamicScanSetupResponse(int?GeoLocationId = default(int?), DynamicScanEnvironmentFacingTypeEnum DynamicScanEnvironmentFacingType = default(DynamicScanEnvironmentFacingTypeEnum), string Exclusions = default(string), List <Exclusion> ExclusionsList = default(List <Exclusion>), DynamicScanAuthenticationTypeEnum DynamicScanAuthenticationType = default(DynamicScanAuthenticationTypeEnum), string PrimaryUserName = default(string), string PrimaryUserPassword = default(string), string SecondaryUserName = default(string), string SecondaryUserPassword = default(string), string OtherUserName = default(string), string OtherUserPassword = default(string), bool?VpnRequired = default(bool?), string VpnUserName = default(string), string VpnPassword = default(string), bool?MultiFactorAuth = default(bool?), string MultiFactorAuthText = default(string), string Notes = default(string), bool?RequestCall = default(bool?), bool?WhitelistRequired = default(bool?), string WhitelistText = default(string), string DynamicSiteURL = default(string), string TimeZone = default(string), List <BlackoutDay> Blockout = default(List <BlackoutDay>), RepeatScheduleTypeEnum?RepeatScheduleType = default(RepeatScheduleTypeEnum?), int?AssessmentTypeId = default(int?), bool?AllowFormSubmissions = default(bool?), bool?AllowSameHostRedirects = default(bool?), bool?RestrictToDirectoryAndSubdirectories = default(bool?), bool?GenerateWAFVirtualPatch = default(bool?), bool?IsWebService = default(bool?), WebServiceTypeEnum?WebServiceType = default(WebServiceTypeEnum?), string WebServiceDescriptorURL = default(string), string WebServiceUserName = default(string), string WebServicePassword = default(string), string WebServiceAPIKey = default(string), string WebServiceAPIPassword = default(string), EntitlementFrequencyTypeEnum EntitlementFrequencyType = default(EntitlementFrequencyTypeEnum), UserAgentTypeEnum?UserAgentType = default(UserAgentTypeEnum?))
 {
     // to ensure "GeoLocationId" is required (not null)
     if (GeoLocationId == null)
     {
         throw new InvalidDataException("GeoLocationId is a required property for GetDynamicScanSetupResponse and cannot be null");
     }
     else
     {
         this.GeoLocationId = GeoLocationId;
     }
     // to ensure "DynamicScanEnvironmentFacingType" is required (not null)
     if (DynamicScanEnvironmentFacingType == null)
     {
         throw new InvalidDataException("DynamicScanEnvironmentFacingType is a required property for GetDynamicScanSetupResponse and cannot be null");
     }
     else
     {
         this.DynamicScanEnvironmentFacingType = DynamicScanEnvironmentFacingType;
     }
     // to ensure "DynamicScanAuthenticationType" is required (not null)
     if (DynamicScanAuthenticationType == null)
     {
         throw new InvalidDataException("DynamicScanAuthenticationType is a required property for GetDynamicScanSetupResponse and cannot be null");
     }
     else
     {
         this.DynamicScanAuthenticationType = DynamicScanAuthenticationType;
     }
     // to ensure "TimeZone" is required (not null)
     if (TimeZone == null)
     {
         throw new InvalidDataException("TimeZone is a required property for GetDynamicScanSetupResponse and cannot be null");
     }
     else
     {
         this.TimeZone = TimeZone;
     }
     // to ensure "EntitlementFrequencyType" is required (not null)
     if (EntitlementFrequencyType == null)
     {
         throw new InvalidDataException("EntitlementFrequencyType is a required property for GetDynamicScanSetupResponse and cannot be null");
     }
     else
     {
         this.EntitlementFrequencyType = EntitlementFrequencyType;
     }
     this.Exclusions            = Exclusions;
     this.ExclusionsList        = ExclusionsList;
     this.PrimaryUserName       = PrimaryUserName;
     this.PrimaryUserPassword   = PrimaryUserPassword;
     this.SecondaryUserName     = SecondaryUserName;
     this.SecondaryUserPassword = SecondaryUserPassword;
     this.OtherUserName         = OtherUserName;
     this.OtherUserPassword     = OtherUserPassword;
     this.VpnRequired           = VpnRequired;
     this.VpnUserName           = VpnUserName;
     this.VpnPassword           = VpnPassword;
     this.MultiFactorAuth       = MultiFactorAuth;
     this.MultiFactorAuthText   = MultiFactorAuthText;
     this.Notes                  = Notes;
     this.RequestCall            = RequestCall;
     this.WhitelistRequired      = WhitelistRequired;
     this.WhitelistText          = WhitelistText;
     this.DynamicSiteURL         = DynamicSiteURL;
     this.Blockout               = Blockout;
     this.RepeatScheduleType     = RepeatScheduleType;
     this.AssessmentTypeId       = AssessmentTypeId;
     this.AllowFormSubmissions   = AllowFormSubmissions;
     this.AllowSameHostRedirects = AllowSameHostRedirects;
     this.RestrictToDirectoryAndSubdirectories = RestrictToDirectoryAndSubdirectories;
     this.GenerateWAFVirtualPatch = GenerateWAFVirtualPatch;
     this.IsWebService            = IsWebService;
     this.WebServiceType          = WebServiceType;
     this.WebServiceDescriptorURL = WebServiceDescriptorURL;
     this.WebServiceUserName      = WebServiceUserName;
     this.WebServicePassword      = WebServicePassword;
     this.WebServiceAPIKey        = WebServiceAPIKey;
     this.WebServiceAPIPassword   = WebServiceAPIPassword;
     this.UserAgentType           = UserAgentType;
 }