internal ServerDatabaseVulnerabilityAssessmentScan(ArmResource options, VulnerabilityAssessmentScanRecordData resource) : base(options, resource.Id) { HasData = true; _data = resource; _clientDiagnostics = new ClientDiagnostics(ClientOptions); _databaseVulnerabilityAssessmentScansRestClient = new DatabaseVulnerabilityAssessmentScansRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri); }
internal ServerDatabaseVulnerabilityAssessmentScanCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { _serverDatabaseVulnerabilityAssessmentScanDatabaseVulnerabilityAssessmentScansClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Sql", ServerDatabaseVulnerabilityAssessmentScanResource.ResourceType.Namespace, Diagnostics); TryGetApiVersion(ServerDatabaseVulnerabilityAssessmentScanResource.ResourceType, out string serverDatabaseVulnerabilityAssessmentScanDatabaseVulnerabilityAssessmentScansApiVersion); _serverDatabaseVulnerabilityAssessmentScanDatabaseVulnerabilityAssessmentScansRestClient = new DatabaseVulnerabilityAssessmentScansRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, serverDatabaseVulnerabilityAssessmentScanDatabaseVulnerabilityAssessmentScansApiVersion); #if DEBUG ValidateResourceId(Id); #endif }
internal ServerDatabaseVulnerabilityAssessmentScanCollection(ArmResource parent) : base(parent) { _serverDatabaseVulnerabilityAssessmentScanDatabaseVulnerabilityAssessmentScansClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Sql", ServerDatabaseVulnerabilityAssessmentScan.ResourceType.Namespace, DiagnosticOptions); ArmClient.TryGetApiVersion(ServerDatabaseVulnerabilityAssessmentScan.ResourceType, out string serverDatabaseVulnerabilityAssessmentScanDatabaseVulnerabilityAssessmentScansApiVersion); _serverDatabaseVulnerabilityAssessmentScanDatabaseVulnerabilityAssessmentScansRestClient = new DatabaseVulnerabilityAssessmentScansRestOperations(_serverDatabaseVulnerabilityAssessmentScanDatabaseVulnerabilityAssessmentScansClientDiagnostics, Pipeline, DiagnosticOptions.ApplicationId, BaseUri, serverDatabaseVulnerabilityAssessmentScanDatabaseVulnerabilityAssessmentScansApiVersion); #if DEBUG ValidateResourceId(Id); #endif }
internal ServerDatabaseVulnerabilityAssessmentScanCollection(ArmResource parent) : base(parent) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); _databaseVulnerabilityAssessmentScansRestClient = new DatabaseVulnerabilityAssessmentScansRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri); }
internal DatabaseVulnerabilityAssessmentScansOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string subscriptionId, Uri endpoint = null) { RestClient = new DatabaseVulnerabilityAssessmentScansRestOperations(clientDiagnostics, pipeline, subscriptionId, endpoint); _clientDiagnostics = clientDiagnostics; _pipeline = pipeline; }
internal ServerDatabaseVulnerabilityAssessmentScan(ArmClientOptions clientOptions, TokenCredential credential, Uri uri, HttpPipeline pipeline, ResourceIdentifier id) : base(clientOptions, credential, uri, pipeline, id) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); _databaseVulnerabilityAssessmentScansRestClient = new DatabaseVulnerabilityAssessmentScansRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri); }
internal ServerDatabaseVulnerabilityAssessmentScan(ArmResource options, ResourceIdentifier id) : base(options, id) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); _databaseVulnerabilityAssessmentScansRestClient = new DatabaseVulnerabilityAssessmentScansRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri); }