internal RestorableDroppedDatabase(ArmResource options, RestorableDroppedDatabaseData resource) : base(options, resource.Id)
 {
     HasData            = true;
     _data              = resource;
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _restorableDroppedDatabasesRestClient = new RestorableDroppedDatabasesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
        internal RestorableDroppedDatabase(ArmClient client, ResourceIdentifier id) : base(client, id)
        {
            _restorableDroppedDatabaseClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Sql", ResourceType.Namespace, DiagnosticOptions);
            TryGetApiVersion(ResourceType, out string restorableDroppedDatabaseApiVersion);
            _restorableDroppedDatabaseRestClient = new RestorableDroppedDatabasesRestOperations(_restorableDroppedDatabaseClientDiagnostics, Pipeline, DiagnosticOptions.ApplicationId, BaseUri, restorableDroppedDatabaseApiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
Exemple #3
0
 internal RestorableDroppedDatabasesOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string subscriptionId, Uri endpoint = null)
 {
     RestClient         = new RestorableDroppedDatabasesRestOperations(clientDiagnostics, pipeline, subscriptionId, endpoint);
     _clientDiagnostics = clientDiagnostics;
     _pipeline          = pipeline;
 }
 internal RestorableDroppedDatabaseCollection(ArmResource parent) : base(parent)
 {
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _restorableDroppedDatabasesRestClient = new RestorableDroppedDatabasesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
 internal RestorableDroppedDatabase(ArmClientOptions clientOptions, TokenCredential credential, Uri uri, HttpPipeline pipeline, ResourceIdentifier id) : base(clientOptions, credential, uri, pipeline, id)
 {
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _restorableDroppedDatabasesRestClient = new RestorableDroppedDatabasesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
 internal RestorableDroppedDatabase(ArmResource options, ResourceIdentifier id) : base(options, id)
 {
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _restorableDroppedDatabasesRestClient = new RestorableDroppedDatabasesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }