Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
        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
        }
Ejemplo n.º 3
0
        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
        }
Ejemplo n.º 4
0
 internal DatabaseVulnerabilityAssessmentsOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string subscriptionId, Uri endpoint = null)
 {
     RestClient         = new DatabaseVulnerabilityAssessmentsRestOperations(clientDiagnostics, pipeline, subscriptionId, endpoint);
     _clientDiagnostics = clientDiagnostics;
     _pipeline          = pipeline;
 }
Ejemplo n.º 5
0
 internal ServerDatabaseVulnerabilityAssessmentCollection(ArmResource parent) : base(parent)
 {
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _databaseVulnerabilityAssessmentsRestClient = new DatabaseVulnerabilityAssessmentsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
Ejemplo n.º 6
0
 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);
 }
Ejemplo n.º 7
0
 internal ServerDatabaseVulnerabilityAssessment(ArmResource options, ResourceIdentifier id) : base(options, id)
 {
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _databaseVulnerabilityAssessmentsRestClient = new DatabaseVulnerabilityAssessmentsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }