Esempio n. 1
0
 internal RestorableDatabaseAccount(ArmResource options, ResourceIdentifier id) : base(options, id)
 {
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _restorableDatabaseAccountsRestClient   = new RestorableDatabaseAccountsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
     _restorableSqlDatabasesRestClient       = new RestorableSqlDatabasesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
     _restorableSqlContainersRestClient      = new RestorableSqlContainersRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
     _restorableSqlResourcesRestClient       = new RestorableSqlResourcesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
     _restorableMongodbDatabasesRestClient   = new RestorableMongodbDatabasesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
     _restorableMongodbCollectionsRestClient = new RestorableMongodbCollectionsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
     _restorableMongodbResourcesRestClient   = new RestorableMongodbResourcesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
Esempio n. 2
0
 internal RestorableDatabaseAccount(ArmClientOptions clientOptions, TokenCredential credential, Uri uri, HttpPipeline pipeline, ResourceIdentifier id) : base(clientOptions, credential, uri, pipeline, id)
 {
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _restorableDatabaseAccountsRestClient   = new RestorableDatabaseAccountsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
     _restorableSqlDatabasesRestClient       = new RestorableSqlDatabasesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
     _restorableSqlContainersRestClient      = new RestorableSqlContainersRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
     _restorableSqlResourcesRestClient       = new RestorableSqlResourcesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
     _restorableMongodbDatabasesRestClient   = new RestorableMongodbDatabasesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
     _restorableMongodbCollectionsRestClient = new RestorableMongodbCollectionsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
     _restorableMongodbResourcesRestClient   = new RestorableMongodbResourcesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
Esempio n. 3
0
 internal RestorableDatabaseAccount(ArmResource options, RestorableDatabaseAccountData resource) : base(options, resource.Id)
 {
     HasData            = true;
     _data              = resource;
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _restorableDatabaseAccountsRestClient   = new RestorableDatabaseAccountsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
     _restorableSqlDatabasesRestClient       = new RestorableSqlDatabasesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
     _restorableSqlContainersRestClient      = new RestorableSqlContainersRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
     _restorableSqlResourcesRestClient       = new RestorableSqlResourcesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
     _restorableMongodbDatabasesRestClient   = new RestorableMongodbDatabasesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
     _restorableMongodbCollectionsRestClient = new RestorableMongodbCollectionsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
     _restorableMongodbResourcesRestClient   = new RestorableMongodbResourcesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
Esempio n. 4
0
        internal RestorableDatabaseAccount(ArmClient client, ResourceIdentifier id) : base(client, id)
        {
            _restorableDatabaseAccountClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.CosmosDB", ResourceType.Namespace, DiagnosticOptions);
            TryGetApiVersion(ResourceType, out string restorableDatabaseAccountApiVersion);
            _restorableDatabaseAccountRestClient           = new RestorableDatabaseAccountsRestOperations(Pipeline, DiagnosticOptions.ApplicationId, BaseUri, restorableDatabaseAccountApiVersion);
            _restorableSqlDatabasesClientDiagnostics       = new ClientDiagnostics("Azure.ResourceManager.CosmosDB", ProviderConstants.DefaultProviderNamespace, DiagnosticOptions);
            _restorableSqlDatabasesRestClient              = new RestorableSqlDatabasesRestOperations(Pipeline, DiagnosticOptions.ApplicationId, BaseUri);
            _restorableSqlContainersClientDiagnostics      = new ClientDiagnostics("Azure.ResourceManager.CosmosDB", ProviderConstants.DefaultProviderNamespace, DiagnosticOptions);
            _restorableSqlContainersRestClient             = new RestorableSqlContainersRestOperations(Pipeline, DiagnosticOptions.ApplicationId, BaseUri);
            _restorableSqlResourcesClientDiagnostics       = new ClientDiagnostics("Azure.ResourceManager.CosmosDB", ProviderConstants.DefaultProviderNamespace, DiagnosticOptions);
            _restorableSqlResourcesRestClient              = new RestorableSqlResourcesRestOperations(Pipeline, DiagnosticOptions.ApplicationId, BaseUri);
            _restorableMongodbDatabasesClientDiagnostics   = new ClientDiagnostics("Azure.ResourceManager.CosmosDB", ProviderConstants.DefaultProviderNamespace, DiagnosticOptions);
            _restorableMongodbDatabasesRestClient          = new RestorableMongodbDatabasesRestOperations(Pipeline, DiagnosticOptions.ApplicationId, BaseUri);
            _restorableMongodbCollectionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.CosmosDB", ProviderConstants.DefaultProviderNamespace, DiagnosticOptions);
            _restorableMongodbCollectionsRestClient        = new RestorableMongodbCollectionsRestOperations(Pipeline, DiagnosticOptions.ApplicationId, BaseUri);
            _restorableMongodbResourcesClientDiagnostics   = new ClientDiagnostics("Azure.ResourceManager.CosmosDB", ProviderConstants.DefaultProviderNamespace, DiagnosticOptions);
            _restorableMongodbResourcesRestClient          = new RestorableMongodbResourcesRestOperations(Pipeline, DiagnosticOptions.ApplicationId, BaseUri);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }