internal ManagedInstanceDatabaseVulnerabilityAssessmentRuleBaseline(ArmResource options, DatabaseVulnerabilityAssessmentRuleBaselineData resource) : base(options, resource.Id)
 {
     HasData            = true;
     _data              = resource;
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _managedDatabaseVulnerabilityAssessmentRuleBaselinesRestClient = new ManagedDatabaseVulnerabilityAssessmentRuleBaselinesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
Exemplo n.º 2
0
        internal ManagedInstanceDatabaseVulnerabilityAssessmentRuleBaseline(ArmClient client, ResourceIdentifier id) : base(client, id)
        {
            _managedInstanceDatabaseVulnerabilityAssessmentRuleBaselineManagedDatabaseVulnerabilityAssessmentRuleBaselinesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Sql", ResourceType.Namespace, DiagnosticOptions);
            TryGetApiVersion(ResourceType, out string managedInstanceDatabaseVulnerabilityAssessmentRuleBaselineManagedDatabaseVulnerabilityAssessmentRuleBaselinesApiVersion);
            _managedInstanceDatabaseVulnerabilityAssessmentRuleBaselineManagedDatabaseVulnerabilityAssessmentRuleBaselinesRestClient = new ManagedDatabaseVulnerabilityAssessmentRuleBaselinesRestOperations(_managedInstanceDatabaseVulnerabilityAssessmentRuleBaselineManagedDatabaseVulnerabilityAssessmentRuleBaselinesClientDiagnostics, Pipeline, DiagnosticOptions.ApplicationId, BaseUri, managedInstanceDatabaseVulnerabilityAssessmentRuleBaselineManagedDatabaseVulnerabilityAssessmentRuleBaselinesApiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
 internal ManagedDatabaseVulnerabilityAssessmentRuleBaselinesOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string subscriptionId, Uri endpoint = null)
 {
     RestClient         = new ManagedDatabaseVulnerabilityAssessmentRuleBaselinesRestOperations(clientDiagnostics, pipeline, subscriptionId, endpoint);
     _clientDiagnostics = clientDiagnostics;
     _pipeline          = pipeline;
 }
 internal ManagedInstanceDatabaseVulnerabilityAssessmentRuleBaselineCollection(ArmResource parent) : base(parent)
 {
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _managedDatabaseVulnerabilityAssessmentRuleBaselinesRestClient = new ManagedDatabaseVulnerabilityAssessmentRuleBaselinesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
 internal ManagedInstanceDatabaseVulnerabilityAssessmentRuleBaseline(ArmClientOptions clientOptions, TokenCredential credential, Uri uri, HttpPipeline pipeline, ResourceIdentifier id) : base(clientOptions, credential, uri, pipeline, id)
 {
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _managedDatabaseVulnerabilityAssessmentRuleBaselinesRestClient = new ManagedDatabaseVulnerabilityAssessmentRuleBaselinesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
 internal ManagedInstanceDatabaseVulnerabilityAssessmentRuleBaseline(ArmResource options, ResourceIdentifier id) : base(options, id)
 {
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _managedDatabaseVulnerabilityAssessmentRuleBaselinesRestClient = new ManagedDatabaseVulnerabilityAssessmentRuleBaselinesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }