internal ServerDatabaseVulnerabilityAssessmentRuleBaseline(ArmResource options, DatabaseVulnerabilityAssessmentRuleBaselineData resource) : base(options, resource.Id)
 {
     HasData            = true;
     _data              = resource;
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _databaseVulnerabilityAssessmentRuleBaselinesRestClient = new DatabaseVulnerabilityAssessmentRuleBaselinesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
Beispiel #2
0
        internal ServerDatabaseVulnerabilityAssessmentRuleBaseline(ArmClient armClient, ResourceIdentifier id) : base(armClient, id)
        {
            _serverDatabaseVulnerabilityAssessmentRuleBaselineDatabaseVulnerabilityAssessmentRuleBaselinesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Sql", ResourceType.Namespace, DiagnosticOptions);
            ArmClient.TryGetApiVersion(ResourceType, out string serverDatabaseVulnerabilityAssessmentRuleBaselineDatabaseVulnerabilityAssessmentRuleBaselinesApiVersion);
            _serverDatabaseVulnerabilityAssessmentRuleBaselineDatabaseVulnerabilityAssessmentRuleBaselinesRestClient = new DatabaseVulnerabilityAssessmentRuleBaselinesRestOperations(_serverDatabaseVulnerabilityAssessmentRuleBaselineDatabaseVulnerabilityAssessmentRuleBaselinesClientDiagnostics, Pipeline, DiagnosticOptions.ApplicationId, BaseUri, serverDatabaseVulnerabilityAssessmentRuleBaselineDatabaseVulnerabilityAssessmentRuleBaselinesApiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
        internal ServerDatabaseVulnerabilityAssessmentRuleBaselineCollection(ArmClient client, ResourceIdentifier id) : base(client, id)
        {
            _serverDatabaseVulnerabilityAssessmentRuleBaselineDatabaseVulnerabilityAssessmentRuleBaselinesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Sql", ServerDatabaseVulnerabilityAssessmentRuleBaselineResource.ResourceType.Namespace, Diagnostics);
            TryGetApiVersion(ServerDatabaseVulnerabilityAssessmentRuleBaselineResource.ResourceType, out string serverDatabaseVulnerabilityAssessmentRuleBaselineDatabaseVulnerabilityAssessmentRuleBaselinesApiVersion);
            _serverDatabaseVulnerabilityAssessmentRuleBaselineDatabaseVulnerabilityAssessmentRuleBaselinesRestClient = new DatabaseVulnerabilityAssessmentRuleBaselinesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, serverDatabaseVulnerabilityAssessmentRuleBaselineDatabaseVulnerabilityAssessmentRuleBaselinesApiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
Beispiel #4
0
 internal ServerDatabaseVulnerabilityAssessmentRuleBaselineCollection(ArmResource parent) : base(parent)
 {
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _databaseVulnerabilityAssessmentRuleBaselinesRestClient = new DatabaseVulnerabilityAssessmentRuleBaselinesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
 internal ServerDatabaseVulnerabilityAssessmentRuleBaseline(ArmClientOptions clientOptions, TokenCredential credential, Uri uri, HttpPipeline pipeline, ResourceIdentifier id) : base(clientOptions, credential, uri, pipeline, id)
 {
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _databaseVulnerabilityAssessmentRuleBaselinesRestClient = new DatabaseVulnerabilityAssessmentRuleBaselinesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
 internal ServerDatabaseVulnerabilityAssessmentRuleBaseline(ArmResource options, ResourceIdentifier id) : base(options, id)
 {
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _databaseVulnerabilityAssessmentRuleBaselinesRestClient = new DatabaseVulnerabilityAssessmentRuleBaselinesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
Beispiel #7
0
 internal DatabaseVulnerabilityAssessmentRuleBaselinesOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string subscriptionId, Uri endpoint = null)
 {
     RestClient         = new DatabaseVulnerabilityAssessmentRuleBaselinesRestOperations(clientDiagnostics, pipeline, subscriptionId, endpoint);
     _clientDiagnostics = clientDiagnostics;
     _pipeline          = pipeline;
 }