internal ManagedInstanceVulnerabilityAssessment(ArmResource options, ManagedInstanceVulnerabilityAssessmentData resource) : base(options, resource.Id)
 {
     HasData            = true;
     _data              = resource;
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _managedInstanceVulnerabilityAssessmentsRestClient = new ManagedInstanceVulnerabilityAssessmentsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
        internal ManagedInstanceVulnerabilityAssessmentCollection(ArmClient client, ResourceIdentifier id) : base(client, id)
        {
            _managedInstanceVulnerabilityAssessmentClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Sql", ManagedInstanceVulnerabilityAssessmentResource.ResourceType.Namespace, Diagnostics);
            TryGetApiVersion(ManagedInstanceVulnerabilityAssessmentResource.ResourceType, out string managedInstanceVulnerabilityAssessmentApiVersion);
            _managedInstanceVulnerabilityAssessmentRestClient = new ManagedInstanceVulnerabilityAssessmentsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, managedInstanceVulnerabilityAssessmentApiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
        internal ManagedInstanceVulnerabilityAssessmentCollection(ArmResource parent) : base(parent)
        {
            _managedInstanceVulnerabilityAssessmentClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Sql", ManagedInstanceVulnerabilityAssessment.ResourceType.Namespace, DiagnosticOptions);
            ArmClient.TryGetApiVersion(ManagedInstanceVulnerabilityAssessment.ResourceType, out string managedInstanceVulnerabilityAssessmentApiVersion);
            _managedInstanceVulnerabilityAssessmentRestClient = new ManagedInstanceVulnerabilityAssessmentsRestOperations(_managedInstanceVulnerabilityAssessmentClientDiagnostics, Pipeline, DiagnosticOptions.ApplicationId, BaseUri, managedInstanceVulnerabilityAssessmentApiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
 internal ManagedInstanceVulnerabilityAssessment(ArmClientOptions clientOptions, TokenCredential credential, Uri uri, HttpPipeline pipeline, ResourceIdentifier id) : base(clientOptions, credential, uri, pipeline, id)
 {
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _managedInstanceVulnerabilityAssessmentsRestClient = new ManagedInstanceVulnerabilityAssessmentsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
 internal ManagedInstanceVulnerabilityAssessment(ArmResource options, ResourceIdentifier id) : base(options, id)
 {
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _managedInstanceVulnerabilityAssessmentsRestClient = new ManagedInstanceVulnerabilityAssessmentsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
Example #6
0
 internal ManagedInstanceVulnerabilityAssessmentsOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string subscriptionId, Uri endpoint = null)
 {
     RestClient         = new ManagedInstanceVulnerabilityAssessmentsRestOperations(clientDiagnostics, pipeline, subscriptionId, endpoint);
     _clientDiagnostics = clientDiagnostics;
     _pipeline          = pipeline;
 }
 internal ManagedInstanceVulnerabilityAssessmentCollection(ArmResource parent) : base(parent)
 {
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _managedInstanceVulnerabilityAssessmentsRestClient = new ManagedInstanceVulnerabilityAssessmentsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }