示例#1
0
 /// <summary>
 /// Initializes client properties.
 /// </summary>
 private void Initialize()
 {
     ComplianceResults           = new ComplianceResultsOperations(this);
     Pricings                    = new PricingsOperations(this);
     Alerts                      = new AlertsOperations(this);
     Settings                    = new SettingsOperations(this);
     AllowedConnections          = new AllowedConnectionsOperations(this);
     DiscoveredSecuritySolutions = new DiscoveredSecuritySolutionsOperations(this);
     ExternalSecuritySolutions   = new ExternalSecuritySolutionsOperations(this);
     JitNetworkAccessPolicies    = new JitNetworkAccessPoliciesOperations(this);
     Locations                   = new LocationsOperations(this);
     Operations                  = new Operations(this);
     Tasks    = new TasksOperations(this);
     Topology = new TopologyOperations(this);
     AdvancedThreatProtection = new AdvancedThreatProtectionOperations(this);
     AutoProvisioningSettings = new AutoProvisioningSettingsOperations(this);
     Compliances = new CompliancesOperations(this);
     InformationProtectionPolicies = new InformationProtectionPoliciesOperations(this);
     SecurityContacts                = new SecurityContactsOperations(this);
     WorkspaceSettings               = new WorkspaceSettingsOperations(this);
     RegulatoryComplianceStandards   = new RegulatoryComplianceStandardsOperations(this);
     RegulatoryComplianceControls    = new RegulatoryComplianceControlsOperations(this);
     RegulatoryComplianceAssessments = new RegulatoryComplianceAssessmentsOperations(this);
     BaseUri        = new System.Uri("https://management.azure.com");
     AcceptLanguage = "en-US";
     LongRunningOperationRetryTimeout = 30;
     GenerateClientRequestId          = true;
     SerializationSettings            = new JsonSerializerSettings
     {
         Formatting            = Newtonsoft.Json.Formatting.Indented,
         DateFormatHandling    = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
         DateTimeZoneHandling  = Newtonsoft.Json.DateTimeZoneHandling.Utc,
         NullValueHandling     = Newtonsoft.Json.NullValueHandling.Ignore,
         ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
         ContractResolver      = new ReadOnlyJsonContractResolver(),
         Converters            = new List <JsonConverter>
         {
             new Iso8601TimeSpanConverter()
         }
     };
     SerializationSettings.Converters.Add(new TransformationJsonConverter());
     DeserializationSettings = new JsonSerializerSettings
     {
         DateFormatHandling    = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
         DateTimeZoneHandling  = Newtonsoft.Json.DateTimeZoneHandling.Utc,
         NullValueHandling     = Newtonsoft.Json.NullValueHandling.Ignore,
         ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
         ContractResolver      = new ReadOnlyJsonContractResolver(),
         Converters            = new List <JsonConverter>
         {
             new Iso8601TimeSpanConverter()
         }
     };
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <ExternalSecuritySolution>("kind"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <ExternalSecuritySolution>("kind"));
     CustomInitialize();
     DeserializationSettings.Converters.Add(new TransformationJsonConverter());
     DeserializationSettings.Converters.Add(new CloudErrorJsonConverter());
 }
 /// <summary>
 /// Initializes client properties.
 /// </summary>
 private void Initialize()
 {
     ComplianceResults            = new ComplianceResultsOperations(this);
     Pricings                     = new PricingsOperations(this);
     AdvancedThreatProtection     = new AdvancedThreatProtectionOperations(this);
     DeviceSecurityGroups         = new DeviceSecurityGroupsOperations(this);
     IotSecuritySolution          = new IotSecuritySolutionOperations(this);
     IotSecuritySolutionAnalytics = new IotSecuritySolutionAnalyticsOperations(this);
     IotSecuritySolutionsAnalyticsAggregatedAlert = new IotSecuritySolutionsAnalyticsAggregatedAlertOperations(this);
     IotSecuritySolutionsAnalyticsRecommendation  = new IotSecuritySolutionsAnalyticsRecommendationOperations(this);
     Locations  = new LocationsOperations(this);
     Operations = new Operations(this);
     Tasks      = new TasksOperations(this);
     AutoProvisioningSettings = new AutoProvisioningSettingsOperations(this);
     Compliances = new CompliancesOperations(this);
     InformationProtectionPolicies = new InformationProtectionPoliciesOperations(this);
     SecurityContacts                = new SecurityContactsOperations(this);
     WorkspaceSettings               = new WorkspaceSettingsOperations(this);
     RegulatoryComplianceStandards   = new RegulatoryComplianceStandardsOperations(this);
     RegulatoryComplianceControls    = new RegulatoryComplianceControlsOperations(this);
     RegulatoryComplianceAssessments = new RegulatoryComplianceAssessmentsOperations(this);
     SubAssessments                = new SubAssessmentsOperations(this);
     Automations                   = new AutomationsOperations(this);
     AlertsSuppressionRules        = new AlertsSuppressionRulesOperations(this);
     ServerVulnerabilityAssessment = new ServerVulnerabilityAssessmentOperations(this);
     AssessmentsMetadata           = new AssessmentsMetadataOperations(this);
     Assessments                   = new AssessmentsOperations(this);
     AdaptiveApplicationControls   = new AdaptiveApplicationControlsOperations(this);
     AdaptiveNetworkHardenings     = new AdaptiveNetworkHardeningsOperations(this);
     AllowedConnections            = new AllowedConnectionsOperations(this);
     Topology = new TopologyOperations(this);
     JitNetworkAccessPolicies       = new JitNetworkAccessPoliciesOperations(this);
     DiscoveredSecuritySolutions    = new DiscoveredSecuritySolutionsOperations(this);
     SecuritySolutionsReferenceData = new SecuritySolutionsReferenceDataOperations(this);
     ExternalSecuritySolutions      = new ExternalSecuritySolutionsOperations(this);
     SecureScores                  = new SecureScoresOperations(this);
     SecureScoreControls           = new SecureScoreControlsOperations(this);
     SecureScoreControlDefinitions = new SecureScoreControlDefinitionsOperations(this);
     SecuritySolutions             = new SecuritySolutionsOperations(this);
     Connectors = new ConnectorsOperations(this);
     SqlVulnerabilityAssessmentScans         = new SqlVulnerabilityAssessmentScansOperations(this);
     SqlVulnerabilityAssessmentScanResults   = new SqlVulnerabilityAssessmentScanResultsOperations(this);
     SqlVulnerabilityAssessmentBaselineRules = new SqlVulnerabilityAssessmentBaselineRulesOperations(this);
     Alerts              = new AlertsOperations(this);
     Settings            = new SettingsOperations(this);
     IngestionSettings   = new IngestionSettingsOperations(this);
     SoftwareInventories = new SoftwareInventoriesOperations(this);
     BaseUri             = new System.Uri("https://management.azure.com");
     AcceptLanguage      = "en-US";
     LongRunningOperationRetryTimeout = 30;
     GenerateClientRequestId          = true;
     SerializationSettings            = new JsonSerializerSettings
     {
         Formatting            = Newtonsoft.Json.Formatting.Indented,
         DateFormatHandling    = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
         DateTimeZoneHandling  = Newtonsoft.Json.DateTimeZoneHandling.Utc,
         NullValueHandling     = Newtonsoft.Json.NullValueHandling.Ignore,
         ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
         ContractResolver      = new ReadOnlyJsonContractResolver(),
         Converters            = new List <JsonConverter>
         {
             new Iso8601TimeSpanConverter()
         }
     };
     SerializationSettings.Converters.Add(new TransformationJsonConverter());
     DeserializationSettings = new JsonSerializerSettings
     {
         DateFormatHandling    = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
         DateTimeZoneHandling  = Newtonsoft.Json.DateTimeZoneHandling.Utc,
         NullValueHandling     = Newtonsoft.Json.NullValueHandling.Ignore,
         ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
         ContractResolver      = new ReadOnlyJsonContractResolver(),
         Converters            = new List <JsonConverter>
         {
             new Iso8601TimeSpanConverter()
         }
     };
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <CustomAlertRule>("ruleType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <CustomAlertRule>("ruleType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <ResourceDetails>("source"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <ResourceDetails>("source"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <AdditionalData>("assessedResourceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <AdditionalData>("assessedResourceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <AutomationAction>("actionType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <AutomationAction>("actionType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <ExternalSecuritySolution>("kind"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <ExternalSecuritySolution>("kind"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <AuthenticationDetailsProperties>("authenticationType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <AuthenticationDetailsProperties>("authenticationType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <ResourceIdentifier>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <ResourceIdentifier>("type"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <AlertSimulatorRequestProperties>("kind"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <AlertSimulatorRequestProperties>("kind"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <Setting>("kind"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <Setting>("kind"));
     CustomInitialize();
     DeserializationSettings.Converters.Add(new TransformationJsonConverter());
     DeserializationSettings.Converters.Add(new CloudErrorJsonConverter());
 }