@azure/arm-security
Version:
A generated SDK for SecurityCenter.
99 lines • 7.25 kB
JavaScript
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import * as coreClient from "@azure/core-client";
import { MdeOnboardingsImpl, CustomAssessmentAutomationsImpl, CustomEntityStoreAssignmentsImpl, ComplianceResultsImpl, PricingsImpl, AdvancedThreatProtectionImpl, DeviceSecurityGroupsImpl, IotSecuritySolutionImpl, IotSecuritySolutionAnalyticsImpl, IotSecuritySolutionsAnalyticsAggregatedAlertImpl, IotSecuritySolutionsAnalyticsRecommendationImpl, LocationsImpl, OperationsImpl, TasksImpl, AutoProvisioningSettingsImpl, CompliancesImpl, InformationProtectionPoliciesImpl, SecurityContactsImpl, WorkspaceSettingsImpl, RegulatoryComplianceStandardsImpl, RegulatoryComplianceControlsImpl, RegulatoryComplianceAssessmentsImpl, SubAssessmentsImpl, AutomationsImpl, AlertsSuppressionRulesImpl, ServerVulnerabilityAssessmentOperationsImpl, AssessmentsMetadataImpl, AssessmentsImpl, AdaptiveApplicationControlsImpl, AdaptiveNetworkHardeningsImpl, AllowedConnectionsImpl, TopologyImpl, JitNetworkAccessPoliciesImpl, DiscoveredSecuritySolutionsImpl, SecuritySolutionsReferenceDataOperationsImpl, ExternalSecuritySolutionsImpl, SecureScoresImpl, SecureScoreControlsImpl, SecureScoreControlDefinitionsImpl, SecuritySolutionsImpl, ConnectorsImpl, SqlVulnerabilityAssessmentScansImpl, SqlVulnerabilityAssessmentScanResultsImpl, SqlVulnerabilityAssessmentBaselineRulesImpl, AlertsImpl, SettingsImpl, IngestionSettingsImpl, SoftwareInventoriesImpl, SecurityConnectorsImpl } from "./operations";
export class SecurityCenter extends coreClient.ServiceClient {
/**
* Initializes a new instance of the SecurityCenter class.
* @param credentials Subscription credentials which uniquely identify client subscription.
* @param subscriptionId Azure subscription ID
* @param options The parameter options
*/
constructor(credentials, subscriptionId, options) {
var _a, _b;
if (credentials === undefined) {
throw new Error("'credentials' cannot be null");
}
if (subscriptionId === undefined) {
throw new Error("'subscriptionId' cannot be null");
}
// Initializing default values for options
if (!options) {
options = {};
}
const defaults = {
requestContentType: "application/json; charset=utf-8",
credential: credentials
};
const packageDetails = `azsdk-js-arm-security/5.0.0`;
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
: `${packageDetails}`;
if (!options.credentialScopes) {
options.credentialScopes = ["https://management.azure.com/.default"];
}
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
userAgentPrefix
}, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
super(optionsWithDefaults);
// Parameter assignments
this.subscriptionId = subscriptionId;
// Assigning values to Constant parameters
this.$host = options.$host || "https://management.azure.com";
this.mdeOnboardings = new MdeOnboardingsImpl(this);
this.customAssessmentAutomations = new CustomAssessmentAutomationsImpl(this);
this.customEntityStoreAssignments = new CustomEntityStoreAssignmentsImpl(this);
this.complianceResults = new ComplianceResultsImpl(this);
this.pricings = new PricingsImpl(this);
this.advancedThreatProtection = new AdvancedThreatProtectionImpl(this);
this.deviceSecurityGroups = new DeviceSecurityGroupsImpl(this);
this.iotSecuritySolution = new IotSecuritySolutionImpl(this);
this.iotSecuritySolutionAnalytics = new IotSecuritySolutionAnalyticsImpl(this);
this.iotSecuritySolutionsAnalyticsAggregatedAlert = new IotSecuritySolutionsAnalyticsAggregatedAlertImpl(this);
this.iotSecuritySolutionsAnalyticsRecommendation = new IotSecuritySolutionsAnalyticsRecommendationImpl(this);
this.locations = new LocationsImpl(this);
this.operations = new OperationsImpl(this);
this.tasks = new TasksImpl(this);
this.autoProvisioningSettings = new AutoProvisioningSettingsImpl(this);
this.compliances = new CompliancesImpl(this);
this.informationProtectionPolicies = new InformationProtectionPoliciesImpl(this);
this.securityContacts = new SecurityContactsImpl(this);
this.workspaceSettings = new WorkspaceSettingsImpl(this);
this.regulatoryComplianceStandards = new RegulatoryComplianceStandardsImpl(this);
this.regulatoryComplianceControls = new RegulatoryComplianceControlsImpl(this);
this.regulatoryComplianceAssessments = new RegulatoryComplianceAssessmentsImpl(this);
this.subAssessments = new SubAssessmentsImpl(this);
this.automations = new AutomationsImpl(this);
this.alertsSuppressionRules = new AlertsSuppressionRulesImpl(this);
this.serverVulnerabilityAssessmentOperations = new ServerVulnerabilityAssessmentOperationsImpl(this);
this.assessmentsMetadata = new AssessmentsMetadataImpl(this);
this.assessments = new AssessmentsImpl(this);
this.adaptiveApplicationControls = new AdaptiveApplicationControlsImpl(this);
this.adaptiveNetworkHardenings = new AdaptiveNetworkHardeningsImpl(this);
this.allowedConnections = new AllowedConnectionsImpl(this);
this.topology = new TopologyImpl(this);
this.jitNetworkAccessPolicies = new JitNetworkAccessPoliciesImpl(this);
this.discoveredSecuritySolutions = new DiscoveredSecuritySolutionsImpl(this);
this.securitySolutionsReferenceDataOperations = new SecuritySolutionsReferenceDataOperationsImpl(this);
this.externalSecuritySolutions = new ExternalSecuritySolutionsImpl(this);
this.secureScores = new SecureScoresImpl(this);
this.secureScoreControls = new SecureScoreControlsImpl(this);
this.secureScoreControlDefinitions = new SecureScoreControlDefinitionsImpl(this);
this.securitySolutions = new SecuritySolutionsImpl(this);
this.connectors = new ConnectorsImpl(this);
this.sqlVulnerabilityAssessmentScans = new SqlVulnerabilityAssessmentScansImpl(this);
this.sqlVulnerabilityAssessmentScanResults = new SqlVulnerabilityAssessmentScanResultsImpl(this);
this.sqlVulnerabilityAssessmentBaselineRules = new SqlVulnerabilityAssessmentBaselineRulesImpl(this);
this.alerts = new AlertsImpl(this);
this.settings = new SettingsImpl(this);
this.ingestionSettings = new IngestionSettingsImpl(this);
this.softwareInventories = new SoftwareInventoriesImpl(this);
this.securityConnectors = new SecurityConnectorsImpl(this);
}
}
//# sourceMappingURL=securityCenter.js.map