api: datstore status: introduce proper structs and restore compatibility
by moving the properties of the storage status out again to the top
level object
also introduce proper structs for the types used, to get type-safety
and better documentation for the api calls
this changes the backup counts from an array of [groups,snapshots] to
an object/struct with { groups, snapshots } and include 'other' types
(though we do not have any at this moment)
this way it is better documented
this also adapts the ui code to cope with the api changes
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
			
			
This commit is contained in:
		
				
					committed by
					
						 Thomas Lamprecht
						Thomas Lamprecht
					
				
			
			
				
	
			
			
			
						parent
						
							9e733dae48
						
					
				
				
					commit
					14e0862509
				
			| @ -1674,7 +1674,7 @@ async fn status(param: Value) -> Result<Value, Error> { | ||||
|     let path = format!("api2/json/admin/datastore/{}/status", repo.store()); | ||||
|  | ||||
|     let mut result = client.get(&path, None).await?; | ||||
|     let mut data = result["data"]["storage"].take(); | ||||
|     let mut data = result["data"].take(); | ||||
|  | ||||
|     record_repository(&repo); | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user