예제 #1
0
 internal CassandraTable(ArmResource options, CassandraTableData resource) : base(options, resource.Id)
 {
     HasData                       = true;
     _data                         = resource;
     _clientDiagnostics            = new ClientDiagnostics(ClientOptions);
     _cassandraResourcesRestClient = new CassandraResourcesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
예제 #2
0
        CassandraTableResource IOperationSource <CassandraTableResource> .CreateResult(Response response, CancellationToken cancellationToken)
        {
            using var document = JsonDocument.Parse(response.ContentStream);
            var data = CassandraTableData.DeserializeCassandraTableData(document.RootElement);

            return(new CassandraTableResource(_client, data));
        }
 internal CassandraTable(ArmClient armClient, CassandraTableData data) : this(armClient, data.Id)
 {
     HasData = true;
     _data   = data;
 }
예제 #4
0
 internal CassandraTableResource(ArmClient client, CassandraTableData data) : this(client, data.Id)
 {
     HasData = true;
     _data   = data;
 }