Exemple #1
0
 internal SqlDatabase(ArmResource options, SqlDatabaseData resource) : base(options, resource.Id)
 {
     HasData                 = true;
     _data                   = resource;
     _clientDiagnostics      = new ClientDiagnostics(ClientOptions);
     _sqlResourcesRestClient = new SqlResourcesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
        SqlDatabaseResource IOperationSource <SqlDatabaseResource> .CreateResult(Response response, CancellationToken cancellationToken)
        {
            using var document = JsonDocument.Parse(response.ContentStream);
            var data = SqlDatabaseData.DeserializeSqlDatabaseData(document.RootElement);

            return(new SqlDatabaseResource(_client, data));
        }
 internal SqlDatabaseResource(ArmClient client, SqlDatabaseData data) : this(client, data.Id)
 {
     HasData = true;
     _data   = data;
 }
 internal SqlDatabase(ArmClient armClient, SqlDatabaseData data) : this(armClient, data.Id)
 {
     HasData = true;
     _data   = data;
 }