Beispiel #1
0
 internal DeletedServer(ArmResource options, DeletedServerData resource) : base(options, resource.Id)
 {
     HasData                   = true;
     _data                     = resource;
     _clientDiagnostics        = new ClientDiagnostics(ClientOptions);
     _deletedServersRestClient = new DeletedServersRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
Beispiel #2
0
        internal DeletedServer(ArmClient client, ResourceIdentifier id) : base(client, id)
        {
            _deletedServerClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Sql", ResourceType.Namespace, DiagnosticOptions);
            TryGetApiVersion(ResourceType, out string deletedServerApiVersion);
            _deletedServerRestClient = new DeletedServersRestOperations(_deletedServerClientDiagnostics, Pipeline, DiagnosticOptions.ApplicationId, BaseUri, deletedServerApiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
        internal DeletedServerCollection(ArmResource parent, string locationName) : base(parent)
        {
            _deletedServerClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Sql", DeletedServer.ResourceType.Namespace, DiagnosticOptions);
            ArmClient.TryGetApiVersion(DeletedServer.ResourceType, out string deletedServerApiVersion);
            _deletedServerRestClient = new DeletedServersRestOperations(_deletedServerClientDiagnostics, Pipeline, DiagnosticOptions.ApplicationId, BaseUri, deletedServerApiVersion);
            _locationName            = locationName;
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
        internal DeletedServerCollection(ArmClient client, ResourceIdentifier id, string locationName) : base(client, id)
        {
            _locationName = locationName;
            _deletedServerClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Sql", DeletedServerResource.ResourceType.Namespace, Diagnostics);
            TryGetApiVersion(DeletedServerResource.ResourceType, out string deletedServerApiVersion);
            _deletedServerRestClient = new DeletedServersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, deletedServerApiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
Beispiel #5
0
 internal DeletedServerCollection(ArmResource parent) : base(parent)
 {
     _clientDiagnostics        = new ClientDiagnostics(ClientOptions);
     _deletedServersRestClient = new DeletedServersRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
Beispiel #6
0
 internal DeletedServer(ArmClientOptions clientOptions, TokenCredential credential, Uri uri, HttpPipeline pipeline, ResourceIdentifier id) : base(clientOptions, credential, uri, pipeline, id)
 {
     _clientDiagnostics        = new ClientDiagnostics(ClientOptions);
     _deletedServersRestClient = new DeletedServersRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
Beispiel #7
0
 internal DeletedServer(ArmResource options, ResourceIdentifier id) : base(options, id)
 {
     _clientDiagnostics        = new ClientDiagnostics(ClientOptions);
     _deletedServersRestClient = new DeletedServersRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }