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); }
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; }
internal CassandraTableResource(ArmClient client, CassandraTableData data) : this(client, data.Id) { HasData = true; _data = data; }