All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.resourcemanager.security.implementation.SecurityCenterImpl Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure SDK for Security Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. API spec for Microsoft.Security (Azure Security Center) resource provider. Package tag package-composite-v3.

There is a newer version: 1.0.0
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.security.implementation;

import com.azure.core.annotation.ServiceClient;
import com.azure.core.http.HttpHeaderName;
import com.azure.core.http.HttpHeaders;
import com.azure.core.http.HttpPipeline;
import com.azure.core.http.HttpResponse;
import com.azure.core.http.rest.Response;
import com.azure.core.management.AzureEnvironment;
import com.azure.core.management.exception.ManagementError;
import com.azure.core.management.exception.ManagementException;
import com.azure.core.management.polling.PollResult;
import com.azure.core.management.polling.PollerFactory;
import com.azure.core.util.Context;
import com.azure.core.util.CoreUtils;
import com.azure.core.util.logging.ClientLogger;
import com.azure.core.util.polling.AsyncPollResponse;
import com.azure.core.util.polling.LongRunningOperationStatus;
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.serializer.SerializerAdapter;
import com.azure.core.util.serializer.SerializerEncoding;
import com.azure.resourcemanager.security.fluent.AdvancedThreatProtectionsClient;
import com.azure.resourcemanager.security.fluent.AlertsClient;
import com.azure.resourcemanager.security.fluent.AlertsSuppressionRulesClient;
import com.azure.resourcemanager.security.fluent.AllowedConnectionsClient;
import com.azure.resourcemanager.security.fluent.ApiCollectionsClient;
import com.azure.resourcemanager.security.fluent.ApplicationOperationsClient;
import com.azure.resourcemanager.security.fluent.ApplicationsClient;
import com.azure.resourcemanager.security.fluent.AssessmentsClient;
import com.azure.resourcemanager.security.fluent.AssessmentsMetadatasClient;
import com.azure.resourcemanager.security.fluent.AutoProvisioningSettingsClient;
import com.azure.resourcemanager.security.fluent.AutomationsClient;
import com.azure.resourcemanager.security.fluent.AzureDevOpsOrgsClient;
import com.azure.resourcemanager.security.fluent.AzureDevOpsProjectsClient;
import com.azure.resourcemanager.security.fluent.AzureDevOpsReposClient;
import com.azure.resourcemanager.security.fluent.ComplianceResultsClient;
import com.azure.resourcemanager.security.fluent.CompliancesClient;
import com.azure.resourcemanager.security.fluent.ConnectorsClient;
import com.azure.resourcemanager.security.fluent.CustomAssessmentAutomationsClient;
import com.azure.resourcemanager.security.fluent.CustomEntityStoreAssignmentsClient;
import com.azure.resourcemanager.security.fluent.CustomRecommendationsClient;
import com.azure.resourcemanager.security.fluent.DefenderForStoragesClient;
import com.azure.resourcemanager.security.fluent.DevOpsConfigurationsClient;
import com.azure.resourcemanager.security.fluent.DevOpsOperationResultsClient;
import com.azure.resourcemanager.security.fluent.DevOpsPoliciesClient;
import com.azure.resourcemanager.security.fluent.DevOpsPolicyAssignmentsClient;
import com.azure.resourcemanager.security.fluent.DeviceSecurityGroupsClient;
import com.azure.resourcemanager.security.fluent.DiscoveredSecuritySolutionsClient;
import com.azure.resourcemanager.security.fluent.ExternalSecuritySolutionsClient;
import com.azure.resourcemanager.security.fluent.GitHubOwnersClient;
import com.azure.resourcemanager.security.fluent.GitHubReposClient;
import com.azure.resourcemanager.security.fluent.GitLabGroupsClient;
import com.azure.resourcemanager.security.fluent.GitLabProjectsClient;
import com.azure.resourcemanager.security.fluent.GitLabSubgroupsClient;
import com.azure.resourcemanager.security.fluent.GovernanceAssignmentsClient;
import com.azure.resourcemanager.security.fluent.GovernanceRulesClient;
import com.azure.resourcemanager.security.fluent.HealthReportsClient;
import com.azure.resourcemanager.security.fluent.InformationProtectionPoliciesClient;
import com.azure.resourcemanager.security.fluent.IotSecuritySolutionAnalyticsClient;
import com.azure.resourcemanager.security.fluent.IotSecuritySolutionsAnalyticsAggregatedAlertsClient;
import com.azure.resourcemanager.security.fluent.IotSecuritySolutionsAnalyticsRecommendationsClient;
import com.azure.resourcemanager.security.fluent.IotSecuritySolutionsClient;
import com.azure.resourcemanager.security.fluent.JitNetworkAccessPoliciesClient;
import com.azure.resourcemanager.security.fluent.LocationsClient;
import com.azure.resourcemanager.security.fluent.MdeOnboardingsClient;
import com.azure.resourcemanager.security.fluent.OperationsClient;
import com.azure.resourcemanager.security.fluent.PricingsClient;
import com.azure.resourcemanager.security.fluent.RegulatoryComplianceAssessmentsClient;
import com.azure.resourcemanager.security.fluent.RegulatoryComplianceControlsClient;
import com.azure.resourcemanager.security.fluent.RegulatoryComplianceStandardsClient;
import com.azure.resourcemanager.security.fluent.SecureScoreControlDefinitionsClient;
import com.azure.resourcemanager.security.fluent.SecureScoreControlsClient;
import com.azure.resourcemanager.security.fluent.SecureScoresClient;
import com.azure.resourcemanager.security.fluent.SecurityCenter;
import com.azure.resourcemanager.security.fluent.SecurityConnectorApplicationOperationsClient;
import com.azure.resourcemanager.security.fluent.SecurityConnectorApplicationsClient;
import com.azure.resourcemanager.security.fluent.SecurityConnectorsClient;
import com.azure.resourcemanager.security.fluent.SecurityContactsClient;
import com.azure.resourcemanager.security.fluent.SecurityOperatorsClient;
import com.azure.resourcemanager.security.fluent.SecuritySolutionsClient;
import com.azure.resourcemanager.security.fluent.SecuritySolutionsReferenceDatasClient;
import com.azure.resourcemanager.security.fluent.SecurityStandardsClient;
import com.azure.resourcemanager.security.fluent.SensitivitySettingsClient;
import com.azure.resourcemanager.security.fluent.ServerVulnerabilityAssessmentsClient;
import com.azure.resourcemanager.security.fluent.ServerVulnerabilityAssessmentsSettingsClient;
import com.azure.resourcemanager.security.fluent.SettingsClient;
import com.azure.resourcemanager.security.fluent.SoftwareInventoriesClient;
import com.azure.resourcemanager.security.fluent.SqlVulnerabilityAssessmentBaselineRulesClient;
import com.azure.resourcemanager.security.fluent.SqlVulnerabilityAssessmentScanResultsClient;
import com.azure.resourcemanager.security.fluent.SqlVulnerabilityAssessmentScansClient;
import com.azure.resourcemanager.security.fluent.StandardAssignmentsClient;
import com.azure.resourcemanager.security.fluent.SubAssessmentsClient;
import com.azure.resourcemanager.security.fluent.TasksClient;
import com.azure.resourcemanager.security.fluent.TopologiesClient;
import com.azure.resourcemanager.security.fluent.WorkspaceSettingsClient;
import java.io.IOException;
import java.lang.reflect.Type;
import java.nio.ByteBuffer;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.time.Duration;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

/**
 * Initializes a new instance of the SecurityCenterImpl type.
 */
@ServiceClient(builder = SecurityCenterBuilder.class)
public final class SecurityCenterImpl implements SecurityCenter {
    /**
     * Azure subscription ID.
     */
    private final String subscriptionId;

    /**
     * Gets Azure subscription ID.
     * 
     * @return the subscriptionId value.
     */
    public String getSubscriptionId() {
        return this.subscriptionId;
    }

    /**
     * server parameter.
     */
    private final String endpoint;

    /**
     * Gets server parameter.
     * 
     * @return the endpoint value.
     */
    public String getEndpoint() {
        return this.endpoint;
    }

    /**
     * The HTTP pipeline to send requests through.
     */
    private final HttpPipeline httpPipeline;

    /**
     * Gets The HTTP pipeline to send requests through.
     * 
     * @return the httpPipeline value.
     */
    public HttpPipeline getHttpPipeline() {
        return this.httpPipeline;
    }

    /**
     * The serializer to serialize an object into a string.
     */
    private final SerializerAdapter serializerAdapter;

    /**
     * Gets The serializer to serialize an object into a string.
     * 
     * @return the serializerAdapter value.
     */
    SerializerAdapter getSerializerAdapter() {
        return this.serializerAdapter;
    }

    /**
     * The default poll interval for long-running operation.
     */
    private final Duration defaultPollInterval;

    /**
     * Gets The default poll interval for long-running operation.
     * 
     * @return the defaultPollInterval value.
     */
    public Duration getDefaultPollInterval() {
        return this.defaultPollInterval;
    }

    /**
     * The LocationsClient object to access its operations.
     */
    private final LocationsClient locations;

    /**
     * Gets the LocationsClient object to access its operations.
     * 
     * @return the LocationsClient object.
     */
    public LocationsClient getLocations() {
        return this.locations;
    }

    /**
     * The OperationsClient object to access its operations.
     */
    private final OperationsClient operations;

    /**
     * Gets the OperationsClient object to access its operations.
     * 
     * @return the OperationsClient object.
     */
    public OperationsClient getOperations() {
        return this.operations;
    }

    /**
     * The TasksClient object to access its operations.
     */
    private final TasksClient tasks;

    /**
     * Gets the TasksClient object to access its operations.
     * 
     * @return the TasksClient object.
     */
    public TasksClient getTasks() {
        return this.tasks;
    }

    /**
     * The AutoProvisioningSettingsClient object to access its operations.
     */
    private final AutoProvisioningSettingsClient autoProvisioningSettings;

    /**
     * Gets the AutoProvisioningSettingsClient object to access its operations.
     * 
     * @return the AutoProvisioningSettingsClient object.
     */
    public AutoProvisioningSettingsClient getAutoProvisioningSettings() {
        return this.autoProvisioningSettings;
    }

    /**
     * The CompliancesClient object to access its operations.
     */
    private final CompliancesClient compliances;

    /**
     * Gets the CompliancesClient object to access its operations.
     * 
     * @return the CompliancesClient object.
     */
    public CompliancesClient getCompliances() {
        return this.compliances;
    }

    /**
     * The InformationProtectionPoliciesClient object to access its operations.
     */
    private final InformationProtectionPoliciesClient informationProtectionPolicies;

    /**
     * Gets the InformationProtectionPoliciesClient object to access its operations.
     * 
     * @return the InformationProtectionPoliciesClient object.
     */
    public InformationProtectionPoliciesClient getInformationProtectionPolicies() {
        return this.informationProtectionPolicies;
    }

    /**
     * The WorkspaceSettingsClient object to access its operations.
     */
    private final WorkspaceSettingsClient workspaceSettings;

    /**
     * Gets the WorkspaceSettingsClient object to access its operations.
     * 
     * @return the WorkspaceSettingsClient object.
     */
    public WorkspaceSettingsClient getWorkspaceSettings() {
        return this.workspaceSettings;
    }

    /**
     * The AlertsSuppressionRulesClient object to access its operations.
     */
    private final AlertsSuppressionRulesClient alertsSuppressionRules;

    /**
     * Gets the AlertsSuppressionRulesClient object to access its operations.
     * 
     * @return the AlertsSuppressionRulesClient object.
     */
    public AlertsSuppressionRulesClient getAlertsSuppressionRules() {
        return this.alertsSuppressionRules;
    }

    /**
     * The RegulatoryComplianceStandardsClient object to access its operations.
     */
    private final RegulatoryComplianceStandardsClient regulatoryComplianceStandards;

    /**
     * Gets the RegulatoryComplianceStandardsClient object to access its operations.
     * 
     * @return the RegulatoryComplianceStandardsClient object.
     */
    public RegulatoryComplianceStandardsClient getRegulatoryComplianceStandards() {
        return this.regulatoryComplianceStandards;
    }

    /**
     * The RegulatoryComplianceControlsClient object to access its operations.
     */
    private final RegulatoryComplianceControlsClient regulatoryComplianceControls;

    /**
     * Gets the RegulatoryComplianceControlsClient object to access its operations.
     * 
     * @return the RegulatoryComplianceControlsClient object.
     */
    public RegulatoryComplianceControlsClient getRegulatoryComplianceControls() {
        return this.regulatoryComplianceControls;
    }

    /**
     * The RegulatoryComplianceAssessmentsClient object to access its operations.
     */
    private final RegulatoryComplianceAssessmentsClient regulatoryComplianceAssessments;

    /**
     * Gets the RegulatoryComplianceAssessmentsClient object to access its operations.
     * 
     * @return the RegulatoryComplianceAssessmentsClient object.
     */
    public RegulatoryComplianceAssessmentsClient getRegulatoryComplianceAssessments() {
        return this.regulatoryComplianceAssessments;
    }

    /**
     * The SubAssessmentsClient object to access its operations.
     */
    private final SubAssessmentsClient subAssessments;

    /**
     * Gets the SubAssessmentsClient object to access its operations.
     * 
     * @return the SubAssessmentsClient object.
     */
    public SubAssessmentsClient getSubAssessments() {
        return this.subAssessments;
    }

    /**
     * The ConnectorsClient object to access its operations.
     */
    private final ConnectorsClient connectors;

    /**
     * Gets the ConnectorsClient object to access its operations.
     * 
     * @return the ConnectorsClient object.
     */
    public ConnectorsClient getConnectors() {
        return this.connectors;
    }

    /**
     * The SoftwareInventoriesClient object to access its operations.
     */
    private final SoftwareInventoriesClient softwareInventories;

    /**
     * Gets the SoftwareInventoriesClient object to access its operations.
     * 
     * @return the SoftwareInventoriesClient object.
     */
    public SoftwareInventoriesClient getSoftwareInventories() {
        return this.softwareInventories;
    }

    /**
     * The CustomAssessmentAutomationsClient object to access its operations.
     */
    private final CustomAssessmentAutomationsClient customAssessmentAutomations;

    /**
     * Gets the CustomAssessmentAutomationsClient object to access its operations.
     * 
     * @return the CustomAssessmentAutomationsClient object.
     */
    public CustomAssessmentAutomationsClient getCustomAssessmentAutomations() {
        return this.customAssessmentAutomations;
    }

    /**
     * The CustomEntityStoreAssignmentsClient object to access its operations.
     */
    private final CustomEntityStoreAssignmentsClient customEntityStoreAssignments;

    /**
     * Gets the CustomEntityStoreAssignmentsClient object to access its operations.
     * 
     * @return the CustomEntityStoreAssignmentsClient object.
     */
    public CustomEntityStoreAssignmentsClient getCustomEntityStoreAssignments() {
        return this.customEntityStoreAssignments;
    }

    /**
     * The MdeOnboardingsClient object to access its operations.
     */
    private final MdeOnboardingsClient mdeOnboardings;

    /**
     * Gets the MdeOnboardingsClient object to access its operations.
     * 
     * @return the MdeOnboardingsClient object.
     */
    public MdeOnboardingsClient getMdeOnboardings() {
        return this.mdeOnboardings;
    }

    /**
     * The GovernanceAssignmentsClient object to access its operations.
     */
    private final GovernanceAssignmentsClient governanceAssignments;

    /**
     * Gets the GovernanceAssignmentsClient object to access its operations.
     * 
     * @return the GovernanceAssignmentsClient object.
     */
    public GovernanceAssignmentsClient getGovernanceAssignments() {
        return this.governanceAssignments;
    }

    /**
     * The GovernanceRulesClient object to access its operations.
     */
    private final GovernanceRulesClient governanceRules;

    /**
     * Gets the GovernanceRulesClient object to access its operations.
     * 
     * @return the GovernanceRulesClient object.
     */
    public GovernanceRulesClient getGovernanceRules() {
        return this.governanceRules;
    }

    /**
     * The ApplicationsClient object to access its operations.
     */
    private final ApplicationsClient applications;

    /**
     * Gets the ApplicationsClient object to access its operations.
     * 
     * @return the ApplicationsClient object.
     */
    public ApplicationsClient getApplications() {
        return this.applications;
    }

    /**
     * The ApplicationOperationsClient object to access its operations.
     */
    private final ApplicationOperationsClient applicationOperations;

    /**
     * Gets the ApplicationOperationsClient object to access its operations.
     * 
     * @return the ApplicationOperationsClient object.
     */
    public ApplicationOperationsClient getApplicationOperations() {
        return this.applicationOperations;
    }

    /**
     * The SecurityConnectorApplicationsClient object to access its operations.
     */
    private final SecurityConnectorApplicationsClient securityConnectorApplications;

    /**
     * Gets the SecurityConnectorApplicationsClient object to access its operations.
     * 
     * @return the SecurityConnectorApplicationsClient object.
     */
    public SecurityConnectorApplicationsClient getSecurityConnectorApplications() {
        return this.securityConnectorApplications;
    }

    /**
     * The SecurityConnectorApplicationOperationsClient object to access its operations.
     */
    private final SecurityConnectorApplicationOperationsClient securityConnectorApplicationOperations;

    /**
     * Gets the SecurityConnectorApplicationOperationsClient object to access its operations.
     * 
     * @return the SecurityConnectorApplicationOperationsClient object.
     */
    public SecurityConnectorApplicationOperationsClient getSecurityConnectorApplicationOperations() {
        return this.securityConnectorApplicationOperations;
    }

    /**
     * The DefenderForStoragesClient object to access its operations.
     */
    private final DefenderForStoragesClient defenderForStorages;

    /**
     * Gets the DefenderForStoragesClient object to access its operations.
     * 
     * @return the DefenderForStoragesClient object.
     */
    public DefenderForStoragesClient getDefenderForStorages() {
        return this.defenderForStorages;
    }

    /**
     * The SecurityOperatorsClient object to access its operations.
     */
    private final SecurityOperatorsClient securityOperators;

    /**
     * Gets the SecurityOperatorsClient object to access its operations.
     * 
     * @return the SecurityOperatorsClient object.
     */
    public SecurityOperatorsClient getSecurityOperators() {
        return this.securityOperators;
    }

    /**
     * The SqlVulnerabilityAssessmentBaselineRulesClient object to access its operations.
     */
    private final SqlVulnerabilityAssessmentBaselineRulesClient sqlVulnerabilityAssessmentBaselineRules;

    /**
     * Gets the SqlVulnerabilityAssessmentBaselineRulesClient object to access its operations.
     * 
     * @return the SqlVulnerabilityAssessmentBaselineRulesClient object.
     */
    public SqlVulnerabilityAssessmentBaselineRulesClient getSqlVulnerabilityAssessmentBaselineRules() {
        return this.sqlVulnerabilityAssessmentBaselineRules;
    }

    /**
     * The SqlVulnerabilityAssessmentScansClient object to access its operations.
     */
    private final SqlVulnerabilityAssessmentScansClient sqlVulnerabilityAssessmentScans;

    /**
     * Gets the SqlVulnerabilityAssessmentScansClient object to access its operations.
     * 
     * @return the SqlVulnerabilityAssessmentScansClient object.
     */
    public SqlVulnerabilityAssessmentScansClient getSqlVulnerabilityAssessmentScans() {
        return this.sqlVulnerabilityAssessmentScans;
    }

    /**
     * The SqlVulnerabilityAssessmentScanResultsClient object to access its operations.
     */
    private final SqlVulnerabilityAssessmentScanResultsClient sqlVulnerabilityAssessmentScanResults;

    /**
     * Gets the SqlVulnerabilityAssessmentScanResultsClient object to access its operations.
     * 
     * @return the SqlVulnerabilityAssessmentScanResultsClient object.
     */
    public SqlVulnerabilityAssessmentScanResultsClient getSqlVulnerabilityAssessmentScanResults() {
        return this.sqlVulnerabilityAssessmentScanResults;
    }

    /**
     * The SensitivitySettingsClient object to access its operations.
     */
    private final SensitivitySettingsClient sensitivitySettings;

    /**
     * Gets the SensitivitySettingsClient object to access its operations.
     * 
     * @return the SensitivitySettingsClient object.
     */
    public SensitivitySettingsClient getSensitivitySettings() {
        return this.sensitivitySettings;
    }

    /**
     * The HealthReportsClient object to access its operations.
     */
    private final HealthReportsClient healthReports;

    /**
     * Gets the HealthReportsClient object to access its operations.
     * 
     * @return the HealthReportsClient object.
     */
    public HealthReportsClient getHealthReports() {
        return this.healthReports;
    }

    /**
     * The AutomationsClient object to access its operations.
     */
    private final AutomationsClient automations;

    /**
     * Gets the AutomationsClient object to access its operations.
     * 
     * @return the AutomationsClient object.
     */
    public AutomationsClient getAutomations() {
        return this.automations;
    }

    /**
     * The SecurityContactsClient object to access its operations.
     */
    private final SecurityContactsClient securityContacts;

    /**
     * Gets the SecurityContactsClient object to access its operations.
     * 
     * @return the SecurityContactsClient object.
     */
    public SecurityContactsClient getSecurityContacts() {
        return this.securityContacts;
    }

    /**
     * The SecurityConnectorsClient object to access its operations.
     */
    private final SecurityConnectorsClient securityConnectors;

    /**
     * Gets the SecurityConnectorsClient object to access its operations.
     * 
     * @return the SecurityConnectorsClient object.
     */
    public SecurityConnectorsClient getSecurityConnectors() {
        return this.securityConnectors;
    }

    /**
     * The AzureDevOpsOrgsClient object to access its operations.
     */
    private final AzureDevOpsOrgsClient azureDevOpsOrgs;

    /**
     * Gets the AzureDevOpsOrgsClient object to access its operations.
     * 
     * @return the AzureDevOpsOrgsClient object.
     */
    public AzureDevOpsOrgsClient getAzureDevOpsOrgs() {
        return this.azureDevOpsOrgs;
    }

    /**
     * The AzureDevOpsProjectsClient object to access its operations.
     */
    private final AzureDevOpsProjectsClient azureDevOpsProjects;

    /**
     * Gets the AzureDevOpsProjectsClient object to access its operations.
     * 
     * @return the AzureDevOpsProjectsClient object.
     */
    public AzureDevOpsProjectsClient getAzureDevOpsProjects() {
        return this.azureDevOpsProjects;
    }

    /**
     * The AzureDevOpsReposClient object to access its operations.
     */
    private final AzureDevOpsReposClient azureDevOpsRepos;

    /**
     * Gets the AzureDevOpsReposClient object to access its operations.
     * 
     * @return the AzureDevOpsReposClient object.
     */
    public AzureDevOpsReposClient getAzureDevOpsRepos() {
        return this.azureDevOpsRepos;
    }

    /**
     * The DevOpsConfigurationsClient object to access its operations.
     */
    private final DevOpsConfigurationsClient devOpsConfigurations;

    /**
     * Gets the DevOpsConfigurationsClient object to access its operations.
     * 
     * @return the DevOpsConfigurationsClient object.
     */
    public DevOpsConfigurationsClient getDevOpsConfigurations() {
        return this.devOpsConfigurations;
    }

    /**
     * The DevOpsPoliciesClient object to access its operations.
     */
    private final DevOpsPoliciesClient devOpsPolicies;

    /**
     * Gets the DevOpsPoliciesClient object to access its operations.
     * 
     * @return the DevOpsPoliciesClient object.
     */
    public DevOpsPoliciesClient getDevOpsPolicies() {
        return this.devOpsPolicies;
    }

    /**
     * The DevOpsPolicyAssignmentsClient object to access its operations.
     */
    private final DevOpsPolicyAssignmentsClient devOpsPolicyAssignments;

    /**
     * Gets the DevOpsPolicyAssignmentsClient object to access its operations.
     * 
     * @return the DevOpsPolicyAssignmentsClient object.
     */
    public DevOpsPolicyAssignmentsClient getDevOpsPolicyAssignments() {
        return this.devOpsPolicyAssignments;
    }

    /**
     * The GitHubOwnersClient object to access its operations.
     */
    private final GitHubOwnersClient gitHubOwners;

    /**
     * Gets the GitHubOwnersClient object to access its operations.
     * 
     * @return the GitHubOwnersClient object.
     */
    public GitHubOwnersClient getGitHubOwners() {
        return this.gitHubOwners;
    }

    /**
     * The GitHubReposClient object to access its operations.
     */
    private final GitHubReposClient gitHubRepos;

    /**
     * Gets the GitHubReposClient object to access its operations.
     * 
     * @return the GitHubReposClient object.
     */
    public GitHubReposClient getGitHubRepos() {
        return this.gitHubRepos;
    }

    /**
     * The GitLabGroupsClient object to access its operations.
     */
    private final GitLabGroupsClient gitLabGroups;

    /**
     * Gets the GitLabGroupsClient object to access its operations.
     * 
     * @return the GitLabGroupsClient object.
     */
    public GitLabGroupsClient getGitLabGroups() {
        return this.gitLabGroups;
    }

    /**
     * The GitLabSubgroupsClient object to access its operations.
     */
    private final GitLabSubgroupsClient gitLabSubgroups;

    /**
     * Gets the GitLabSubgroupsClient object to access its operations.
     * 
     * @return the GitLabSubgroupsClient object.
     */
    public GitLabSubgroupsClient getGitLabSubgroups() {
        return this.gitLabSubgroups;
    }

    /**
     * The GitLabProjectsClient object to access its operations.
     */
    private final GitLabProjectsClient gitLabProjects;

    /**
     * Gets the GitLabProjectsClient object to access its operations.
     * 
     * @return the GitLabProjectsClient object.
     */
    public GitLabProjectsClient getGitLabProjects() {
        return this.gitLabProjects;
    }

    /**
     * The DevOpsOperationResultsClient object to access its operations.
     */
    private final DevOpsOperationResultsClient devOpsOperationResults;

    /**
     * Gets the DevOpsOperationResultsClient object to access its operations.
     * 
     * @return the DevOpsOperationResultsClient object.
     */
    public DevOpsOperationResultsClient getDevOpsOperationResults() {
        return this.devOpsOperationResults;
    }

    /**
     * The ComplianceResultsClient object to access its operations.
     */
    private final ComplianceResultsClient complianceResults;

    /**
     * Gets the ComplianceResultsClient object to access its operations.
     * 
     * @return the ComplianceResultsClient object.
     */
    public ComplianceResultsClient getComplianceResults() {
        return this.complianceResults;
    }

    /**
     * The AdvancedThreatProtectionsClient object to access its operations.
     */
    private final AdvancedThreatProtectionsClient advancedThreatProtections;

    /**
     * Gets the AdvancedThreatProtectionsClient object to access its operations.
     * 
     * @return the AdvancedThreatProtectionsClient object.
     */
    public AdvancedThreatProtectionsClient getAdvancedThreatProtections() {
        return this.advancedThreatProtections;
    }

    /**
     * The DeviceSecurityGroupsClient object to access its operations.
     */
    private final DeviceSecurityGroupsClient deviceSecurityGroups;

    /**
     * Gets the DeviceSecurityGroupsClient object to access its operations.
     * 
     * @return the DeviceSecurityGroupsClient object.
     */
    public DeviceSecurityGroupsClient getDeviceSecurityGroups() {
        return this.deviceSecurityGroups;
    }

    /**
     * The IotSecuritySolutionAnalyticsClient object to access its operations.
     */
    private final IotSecuritySolutionAnalyticsClient iotSecuritySolutionAnalytics;

    /**
     * Gets the IotSecuritySolutionAnalyticsClient object to access its operations.
     * 
     * @return the IotSecuritySolutionAnalyticsClient object.
     */
    public IotSecuritySolutionAnalyticsClient getIotSecuritySolutionAnalytics() {
        return this.iotSecuritySolutionAnalytics;
    }

    /**
     * The IotSecuritySolutionsAnalyticsAggregatedAlertsClient object to access its operations.
     */
    private final IotSecuritySolutionsAnalyticsAggregatedAlertsClient iotSecuritySolutionsAnalyticsAggregatedAlerts;

    /**
     * Gets the IotSecuritySolutionsAnalyticsAggregatedAlertsClient object to access its operations.
     * 
     * @return the IotSecuritySolutionsAnalyticsAggregatedAlertsClient object.
     */
    public IotSecuritySolutionsAnalyticsAggregatedAlertsClient getIotSecuritySolutionsAnalyticsAggregatedAlerts() {
        return this.iotSecuritySolutionsAnalyticsAggregatedAlerts;
    }

    /**
     * The IotSecuritySolutionsAnalyticsRecommendationsClient object to access its operations.
     */
    private final IotSecuritySolutionsAnalyticsRecommendationsClient iotSecuritySolutionsAnalyticsRecommendations;

    /**
     * Gets the IotSecuritySolutionsAnalyticsRecommendationsClient object to access its operations.
     * 
     * @return the IotSecuritySolutionsAnalyticsRecommendationsClient object.
     */
    public IotSecuritySolutionsAnalyticsRecommendationsClient getIotSecuritySolutionsAnalyticsRecommendations() {
        return this.iotSecuritySolutionsAnalyticsRecommendations;
    }

    /**
     * The IotSecuritySolutionsClient object to access its operations.
     */
    private final IotSecuritySolutionsClient iotSecuritySolutions;

    /**
     * Gets the IotSecuritySolutionsClient object to access its operations.
     * 
     * @return the IotSecuritySolutionsClient object.
     */
    public IotSecuritySolutionsClient getIotSecuritySolutions() {
        return this.iotSecuritySolutions;
    }

    /**
     * The AllowedConnectionsClient object to access its operations.
     */
    private final AllowedConnectionsClient allowedConnections;

    /**
     * Gets the AllowedConnectionsClient object to access its operations.
     * 
     * @return the AllowedConnectionsClient object.
     */
    public AllowedConnectionsClient getAllowedConnections() {
        return this.allowedConnections;
    }

    /**
     * The DiscoveredSecuritySolutionsClient object to access its operations.
     */
    private final DiscoveredSecuritySolutionsClient discoveredSecuritySolutions;

    /**
     * Gets the DiscoveredSecuritySolutionsClient object to access its operations.
     * 
     * @return the DiscoveredSecuritySolutionsClient object.
     */
    public DiscoveredSecuritySolutionsClient getDiscoveredSecuritySolutions() {
        return this.discoveredSecuritySolutions;
    }

    /**
     * The ExternalSecuritySolutionsClient object to access its operations.
     */
    private final ExternalSecuritySolutionsClient externalSecuritySolutions;

    /**
     * Gets the ExternalSecuritySolutionsClient object to access its operations.
     * 
     * @return the ExternalSecuritySolutionsClient object.
     */
    public ExternalSecuritySolutionsClient getExternalSecuritySolutions() {
        return this.externalSecuritySolutions;
    }

    /**
     * The JitNetworkAccessPoliciesClient object to access its operations.
     */
    private final JitNetworkAccessPoliciesClient jitNetworkAccessPolicies;

    /**
     * Gets the JitNetworkAccessPoliciesClient object to access its operations.
     * 
     * @return the JitNetworkAccessPoliciesClient object.
     */
    public JitNetworkAccessPoliciesClient getJitNetworkAccessPolicies() {
        return this.jitNetworkAccessPolicies;
    }

    /**
     * The SecureScoresClient object to access its operations.
     */
    private final SecureScoresClient secureScores;

    /**
     * Gets the SecureScoresClient object to access its operations.
     * 
     * @return the SecureScoresClient object.
     */
    public SecureScoresClient getSecureScores() {
        return this.secureScores;
    }

    /**
     * The SecureScoreControlsClient object to access its operations.
     */
    private final SecureScoreControlsClient secureScoreControls;

    /**
     * Gets the SecureScoreControlsClient object to access its operations.
     * 
     * @return the SecureScoreControlsClient object.
     */
    public SecureScoreControlsClient getSecureScoreControls() {
        return this.secureScoreControls;
    }

    /**
     * The SecureScoreControlDefinitionsClient object to access its operations.
     */
    private final SecureScoreControlDefinitionsClient secureScoreControlDefinitions;

    /**
     * Gets the SecureScoreControlDefinitionsClient object to access its operations.
     * 
     * @return the SecureScoreControlDefinitionsClient object.
     */
    public SecureScoreControlDefinitionsClient getSecureScoreControlDefinitions() {
        return this.secureScoreControlDefinitions;
    }

    /**
     * The SecuritySolutionsClient object to access its operations.
     */
    private final SecuritySolutionsClient securitySolutions;

    /**
     * Gets the SecuritySolutionsClient object to access its operations.
     * 
     * @return the SecuritySolutionsClient object.
     */
    public SecuritySolutionsClient getSecuritySolutions() {
        return this.securitySolutions;
    }

    /**
     * The SecuritySolutionsReferenceDatasClient object to access its operations.
     */
    private final SecuritySolutionsReferenceDatasClient securitySolutionsReferenceDatas;

    /**
     * Gets the SecuritySolutionsReferenceDatasClient object to access its operations.
     * 
     * @return the SecuritySolutionsReferenceDatasClient object.
     */
    public SecuritySolutionsReferenceDatasClient getSecuritySolutionsReferenceDatas() {
        return this.securitySolutionsReferenceDatas;
    }

    /**
     * The ServerVulnerabilityAssessmentsClient object to access its operations.
     */
    private final ServerVulnerabilityAssessmentsClient serverVulnerabilityAssessments;

    /**
     * Gets the ServerVulnerabilityAssessmentsClient object to access its operations.
     * 
     * @return the ServerVulnerabilityAssessmentsClient object.
     */
    public ServerVulnerabilityAssessmentsClient getServerVulnerabilityAssessments() {
        return this.serverVulnerabilityAssessments;
    }

    /**
     * The TopologiesClient object to access its operations.
     */
    private final TopologiesClient topologies;

    /**
     * Gets the TopologiesClient object to access its operations.
     * 
     * @return the TopologiesClient object.
     */
    public TopologiesClient getTopologies() {
        return this.topologies;
    }

    /**
     * The AssessmentsMetadatasClient object to access its operations.
     */
    private final AssessmentsMetadatasClient assessmentsMetadatas;

    /**
     * Gets the AssessmentsMetadatasClient object to access its operations.
     * 
     * @return the AssessmentsMetadatasClient object.
     */
    public AssessmentsMetadatasClient getAssessmentsMetadatas() {
        return this.assessmentsMetadatas;
    }

    /**
     * The AssessmentsClient object to access its operations.
     */
    private final AssessmentsClient assessments;

    /**
     * Gets the AssessmentsClient object to access its operations.
     * 
     * @return the AssessmentsClient object.
     */
    public AssessmentsClient getAssessments() {
        return this.assessments;
    }

    /**
     * The AlertsClient object to access its operations.
     */
    private final AlertsClient alerts;

    /**
     * Gets the AlertsClient object to access its operations.
     * 
     * @return the AlertsClient object.
     */
    public AlertsClient getAlerts() {
        return this.alerts;
    }

    /**
     * The SettingsClient object to access its operations.
     */
    private final SettingsClient settings;

    /**
     * Gets the SettingsClient object to access its operations.
     * 
     * @return the SettingsClient object.
     */
    public SettingsClient getSettings() {
        return this.settings;
    }

    /**
     * The ServerVulnerabilityAssessmentsSettingsClient object to access its operations.
     */
    private final ServerVulnerabilityAssessmentsSettingsClient serverVulnerabilityAssessmentsSettings;

    /**
     * Gets the ServerVulnerabilityAssessmentsSettingsClient object to access its operations.
     * 
     * @return the ServerVulnerabilityAssessmentsSettingsClient object.
     */
    public ServerVulnerabilityAssessmentsSettingsClient getServerVulnerabilityAssessmentsSettings() {
        return this.serverVulnerabilityAssessmentsSettings;
    }

    /**
     * The ApiCollectionsClient object to access its operations.
     */
    private final ApiCollectionsClient apiCollections;

    /**
     * Gets the ApiCollectionsClient object to access its operations.
     * 
     * @return the ApiCollectionsClient object.
     */
    public ApiCollectionsClient getApiCollections() {
        return this.apiCollections;
    }

    /**
     * The PricingsClient object to access its operations.
     */
    private final PricingsClient pricings;

    /**
     * Gets the PricingsClient object to access its operations.
     * 
     * @return the PricingsClient object.
     */
    public PricingsClient getPricings() {
        return this.pricings;
    }

    /**
     * The SecurityStandardsClient object to access its operations.
     */
    private final SecurityStandardsClient securityStandards;

    /**
     * Gets the SecurityStandardsClient object to access its operations.
     * 
     * @return the SecurityStandardsClient object.
     */
    public SecurityStandardsClient getSecurityStandards() {
        return this.securityStandards;
    }

    /**
     * The StandardAssignmentsClient object to access its operations.
     */
    private final StandardAssignmentsClient standardAssignments;

    /**
     * Gets the StandardAssignmentsClient object to access its operations.
     * 
     * @return the StandardAssignmentsClient object.
     */
    public StandardAssignmentsClient getStandardAssignments() {
        return this.standardAssignments;
    }

    /**
     * The CustomRecommendationsClient object to access its operations.
     */
    private final CustomRecommendationsClient customRecommendations;

    /**
     * Gets the CustomRecommendationsClient object to access its operations.
     * 
     * @return the CustomRecommendationsClient object.
     */
    public CustomRecommendationsClient getCustomRecommendations() {
        return this.customRecommendations;
    }

    /**
     * Initializes an instance of SecurityCenter client.
     * 
     * @param httpPipeline The HTTP pipeline to send requests through.
     * @param serializerAdapter The serializer to serialize an object into a string.
     * @param defaultPollInterval The default poll interval for long-running operation.
     * @param environment The Azure environment.
     * @param subscriptionId Azure subscription ID.
     * @param endpoint server parameter.
     */
    SecurityCenterImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, Duration defaultPollInterval,
        AzureEnvironment environment, String subscriptionId, String endpoint) {
        this.httpPipeline = httpPipeline;
        this.serializerAdapter = serializerAdapter;
        this.defaultPollInterval = defaultPollInterval;
        this.subscriptionId = subscriptionId;
        this.endpoint = endpoint;
        this.locations = new LocationsClientImpl(this);
        this.operations = new OperationsClientImpl(this);
        this.tasks = new TasksClientImpl(this);
        this.autoProvisioningSettings = new AutoProvisioningSettingsClientImpl(this);
        this.compliances = new CompliancesClientImpl(this);
        this.informationProtectionPolicies = new InformationProtectionPoliciesClientImpl(this);
        this.workspaceSettings = new WorkspaceSettingsClientImpl(this);
        this.alertsSuppressionRules = new AlertsSuppressionRulesClientImpl(this);
        this.regulatoryComplianceStandards = new RegulatoryComplianceStandardsClientImpl(this);
        this.regulatoryComplianceControls = new RegulatoryComplianceControlsClientImpl(this);
        this.regulatoryComplianceAssessments = new RegulatoryComplianceAssessmentsClientImpl(this);
        this.subAssessments = new SubAssessmentsClientImpl(this);
        this.connectors = new ConnectorsClientImpl(this);
        this.softwareInventories = new SoftwareInventoriesClientImpl(this);
        this.customAssessmentAutomations = new CustomAssessmentAutomationsClientImpl(this);
        this.customEntityStoreAssignments = new CustomEntityStoreAssignmentsClientImpl(this);
        this.mdeOnboardings = new MdeOnboardingsClientImpl(this);
        this.governanceAssignments = new GovernanceAssignmentsClientImpl(this);
        this.governanceRules = new GovernanceRulesClientImpl(this);
        this.applications = new ApplicationsClientImpl(this);
        this.applicationOperations = new ApplicationOperationsClientImpl(this);
        this.securityConnectorApplications = new SecurityConnectorApplicationsClientImpl(this);
        this.securityConnectorApplicationOperations = new SecurityConnectorApplicationOperationsClientImpl(this);
        this.defenderForStorages = new DefenderForStoragesClientImpl(this);
        this.securityOperators = new SecurityOperatorsClientImpl(this);
        this.sqlVulnerabilityAssessmentBaselineRules = new SqlVulnerabilityAssessmentBaselineRulesClientImpl(this);
        this.sqlVulnerabilityAssessmentScans = new SqlVulnerabilityAssessmentScansClientImpl(this);
        this.sqlVulnerabilityAssessmentScanResults = new SqlVulnerabilityAssessmentScanResultsClientImpl(this);
        this.sensitivitySettings = new SensitivitySettingsClientImpl(this);
        this.healthReports = new HealthReportsClientImpl(this);
        this.automations = new AutomationsClientImpl(this);
        this.securityContacts = new SecurityContactsClientImpl(this);
        this.securityConnectors = new SecurityConnectorsClientImpl(this);
        this.azureDevOpsOrgs = new AzureDevOpsOrgsClientImpl(this);
        this.azureDevOpsProjects = new AzureDevOpsProjectsClientImpl(this);
        this.azureDevOpsRepos = new AzureDevOpsReposClientImpl(this);
        this.devOpsConfigurations = new DevOpsConfigurationsClientImpl(this);
        this.devOpsPolicies = new DevOpsPoliciesClientImpl(this);
        this.devOpsPolicyAssignments = new DevOpsPolicyAssignmentsClientImpl(this);
        this.gitHubOwners = new GitHubOwnersClientImpl(this);
        this.gitHubRepos = new GitHubReposClientImpl(this);
        this.gitLabGroups = new GitLabGroupsClientImpl(this);
        this.gitLabSubgroups = new GitLabSubgroupsClientImpl(this);
        this.gitLabProjects = new GitLabProjectsClientImpl(this);
        this.devOpsOperationResults = new DevOpsOperationResultsClientImpl(this);
        this.complianceResults = new ComplianceResultsClientImpl(this);
        this.advancedThreatProtections = new AdvancedThreatProtectionsClientImpl(this);
        this.deviceSecurityGroups = new DeviceSecurityGroupsClientImpl(this);
        this.iotSecuritySolutionAnalytics = new IotSecuritySolutionAnalyticsClientImpl(this);
        this.iotSecuritySolutionsAnalyticsAggregatedAlerts
            = new IotSecuritySolutionsAnalyticsAggregatedAlertsClientImpl(this);
        this.iotSecuritySolutionsAnalyticsRecommendations
            = new IotSecuritySolutionsAnalyticsRecommendationsClientImpl(this);
        this.iotSecuritySolutions = new IotSecuritySolutionsClientImpl(this);
        this.allowedConnections = new AllowedConnectionsClientImpl(this);
        this.discoveredSecuritySolutions = new DiscoveredSecuritySolutionsClientImpl(this);
        this.externalSecuritySolutions = new ExternalSecuritySolutionsClientImpl(this);
        this.jitNetworkAccessPolicies = new JitNetworkAccessPoliciesClientImpl(this);
        this.secureScores = new SecureScoresClientImpl(this);
        this.secureScoreControls = new SecureScoreControlsClientImpl(this);
        this.secureScoreControlDefinitions = new SecureScoreControlDefinitionsClientImpl(this);
        this.securitySolutions = new SecuritySolutionsClientImpl(this);
        this.securitySolutionsReferenceDatas = new SecuritySolutionsReferenceDatasClientImpl(this);
        this.serverVulnerabilityAssessments = new ServerVulnerabilityAssessmentsClientImpl(this);
        this.topologies = new TopologiesClientImpl(this);
        this.assessmentsMetadatas = new AssessmentsMetadatasClientImpl(this);
        this.assessments = new AssessmentsClientImpl(this);
        this.alerts = new AlertsClientImpl(this);
        this.settings = new SettingsClientImpl(this);
        this.serverVulnerabilityAssessmentsSettings = new ServerVulnerabilityAssessmentsSettingsClientImpl(this);
        this.apiCollections = new ApiCollectionsClientImpl(this);
        this.pricings = new PricingsClientImpl(this);
        this.securityStandards = new SecurityStandardsClientImpl(this);
        this.standardAssignments = new StandardAssignmentsClientImpl(this);
        this.customRecommendations = new CustomRecommendationsClientImpl(this);
    }

    /**
     * Gets default client context.
     * 
     * @return the default client context.
     */
    public Context getContext() {
        return Context.NONE;
    }

    /**
     * Merges default client context with provided context.
     * 
     * @param context the context to be merged with default client context.
     * @return the merged context.
     */
    public Context mergeContext(Context context) {
        return CoreUtils.mergeContexts(this.getContext(), context);
    }

    /**
     * Gets long running operation result.
     * 
     * @param activationResponse the response of activation operation.
     * @param httpPipeline the http pipeline.
     * @param pollResultType type of poll result.
     * @param finalResultType type of final result.
     * @param context the context shared by all requests.
     * @param  type of poll result.
     * @param  type of final result.
     * @return poller flux for poll result and final result.
     */
    public  PollerFlux, U> getLroResult(Mono>> activationResponse,
        HttpPipeline httpPipeline, Type pollResultType, Type finalResultType, Context context) {
        return PollerFactory.create(serializerAdapter, httpPipeline, pollResultType, finalResultType,
            defaultPollInterval, activationResponse, context);
    }

    /**
     * Gets the final result, or an error, based on last async poll response.
     * 
     * @param response the last async poll response.
     * @param  type of poll result.
     * @param  type of final result.
     * @return the final result, or an error.
     */
    public  Mono getLroFinalResultOrError(AsyncPollResponse, U> response) {
        if (response.getStatus() != LongRunningOperationStatus.SUCCESSFULLY_COMPLETED) {
            String errorMessage;
            ManagementError managementError = null;
            HttpResponse errorResponse = null;
            PollResult.Error lroError = response.getValue().getError();
            if (lroError != null) {
                errorResponse = new HttpResponseImpl(lroError.getResponseStatusCode(), lroError.getResponseHeaders(),
                    lroError.getResponseBody());

                errorMessage = response.getValue().getError().getMessage();
                String errorBody = response.getValue().getError().getResponseBody();
                if (errorBody != null) {
                    // try to deserialize error body to ManagementError
                    try {
                        managementError = this.getSerializerAdapter()
                            .deserialize(errorBody, ManagementError.class, SerializerEncoding.JSON);
                        if (managementError.getCode() == null || managementError.getMessage() == null) {
                            managementError = null;
                        }
                    } catch (IOException | RuntimeException ioe) {
                        LOGGER.logThrowableAsWarning(ioe);
                    }
                }
            } else {
                // fallback to default error message
                errorMessage = "Long running operation failed.";
            }
            if (managementError == null) {
                // fallback to default ManagementError
                managementError = new ManagementError(response.getStatus().toString(), errorMessage);
            }
            return Mono.error(new ManagementException(errorMessage, errorResponse, managementError));
        } else {
            return response.getFinalResult();
        }
    }

    private static final class HttpResponseImpl extends HttpResponse {
        private final int statusCode;

        private final byte[] responseBody;

        private final HttpHeaders httpHeaders;

        HttpResponseImpl(int statusCode, HttpHeaders httpHeaders, String responseBody) {
            super(null);
            this.statusCode = statusCode;
            this.httpHeaders = httpHeaders;
            this.responseBody = responseBody == null ? null : responseBody.getBytes(StandardCharsets.UTF_8);
        }

        public int getStatusCode() {
            return statusCode;
        }

        public String getHeaderValue(String s) {
            return httpHeaders.getValue(HttpHeaderName.fromString(s));
        }

        public HttpHeaders getHeaders() {
            return httpHeaders;
        }

        public Flux getBody() {
            return Flux.just(ByteBuffer.wrap(responseBody));
        }

        public Mono getBodyAsByteArray() {
            return Mono.just(responseBody);
        }

        public Mono getBodyAsString() {
            return Mono.just(new String(responseBody, StandardCharsets.UTF_8));
        }

        public Mono getBodyAsString(Charset charset) {
            return Mono.just(new String(responseBody, charset));
        }
    }

    private static final ClientLogger LOGGER = new ClientLogger(SecurityCenterImpl.class);
}