internal ServerDatabaseVulnerabilityAssessment(ArmResource options, DatabaseVulnerabilityAssessmentData resource) : base(options, resource.Id) { HasData = true; _data = resource; _clientDiagnostics = new ClientDiagnostics(ClientOptions); _databaseVulnerabilityAssessmentsRestClient = new DatabaseVulnerabilityAssessmentsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri); }
internal ServerDatabaseVulnerabilityAssessmentCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { _serverDatabaseVulnerabilityAssessmentDatabaseVulnerabilityAssessmentsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Sql", ServerDatabaseVulnerabilityAssessmentResource.ResourceType.Namespace, Diagnostics); TryGetApiVersion(ServerDatabaseVulnerabilityAssessmentResource.ResourceType, out string serverDatabaseVulnerabilityAssessmentDatabaseVulnerabilityAssessmentsApiVersion); _serverDatabaseVulnerabilityAssessmentDatabaseVulnerabilityAssessmentsRestClient = new DatabaseVulnerabilityAssessmentsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, serverDatabaseVulnerabilityAssessmentDatabaseVulnerabilityAssessmentsApiVersion); #if DEBUG ValidateResourceId(Id); #endif }
internal ServerDatabaseVulnerabilityAssessmentCollection(ArmResource parent) : base(parent) { _serverDatabaseVulnerabilityAssessmentDatabaseVulnerabilityAssessmentsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Sql", ServerDatabaseVulnerabilityAssessment.ResourceType.Namespace, DiagnosticOptions); ArmClient.TryGetApiVersion(ServerDatabaseVulnerabilityAssessment.ResourceType, out string serverDatabaseVulnerabilityAssessmentDatabaseVulnerabilityAssessmentsApiVersion); _serverDatabaseVulnerabilityAssessmentDatabaseVulnerabilityAssessmentsRestClient = new DatabaseVulnerabilityAssessmentsRestOperations(_serverDatabaseVulnerabilityAssessmentDatabaseVulnerabilityAssessmentsClientDiagnostics, Pipeline, DiagnosticOptions.ApplicationId, BaseUri, serverDatabaseVulnerabilityAssessmentDatabaseVulnerabilityAssessmentsApiVersion); #if DEBUG ValidateResourceId(Id); #endif }
internal DatabaseVulnerabilityAssessmentsOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string subscriptionId, Uri endpoint = null) { RestClient = new DatabaseVulnerabilityAssessmentsRestOperations(clientDiagnostics, pipeline, subscriptionId, endpoint); _clientDiagnostics = clientDiagnostics; _pipeline = pipeline; }
internal ServerDatabaseVulnerabilityAssessmentCollection(ArmResource parent) : base(parent) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); _databaseVulnerabilityAssessmentsRestClient = new DatabaseVulnerabilityAssessmentsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri); }
internal ServerDatabaseVulnerabilityAssessment(ArmClientOptions clientOptions, TokenCredential credential, Uri uri, HttpPipeline pipeline, ResourceIdentifier id) : base(clientOptions, credential, uri, pipeline, id) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); _databaseVulnerabilityAssessmentsRestClient = new DatabaseVulnerabilityAssessmentsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri); }
internal ServerDatabaseVulnerabilityAssessment(ArmResource options, ResourceIdentifier id) : base(options, id) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); _databaseVulnerabilityAssessmentsRestClient = new DatabaseVulnerabilityAssessmentsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri); }