Statistics
| Branch: | Revision:

root / asi-http-request-with-pithos / Classes / CloudFiles / ASICloudFilesContainerRequest.h @ be116d22

History | View | Annotate | Download (1.4 kB)

1
//
2
//  ASICloudFilesContainerRequest.h
3
//
4
//  Created by Michael Mayo on 1/6/10.
5
//
6

    
7
#import "ASICloudFilesRequest.h"
8

    
9
@class ASICloudFilesContainer, ASICloudFilesContainerXMLParserDelegate;
10

    
11
@interface ASICloudFilesContainerRequest : ASICloudFilesRequest {
12
        
13
        // Internally used while parsing the response
14
        NSString *currentContent;
15
        NSString *currentElement;
16
        ASICloudFilesContainer *currentObject;
17
        ASICloudFilesContainerXMLParserDelegate *xmlParserDelegate;
18
}
19

    
20
@property (retain) NSString *currentElement;
21
@property (retain) NSString *currentContent;
22
@property (retain) ASICloudFilesContainer *currentObject;
23
@property (retain) ASICloudFilesContainerXMLParserDelegate *xmlParserDelegate;
24

    
25
// HEAD /<api version>/<account>
26
// HEAD operations against an account are performed to retrieve the number of Containers and the total bytes stored in Cloud Files for the account. This information is returned in two custom headers, X-Account-Container-Count and X-Account-Bytes-Used.
27
+ (id)accountInfoRequest;
28
- (NSUInteger)containerCount;
29
- (NSUInteger)bytesUsed;
30

    
31
// GET /<api version>/<account>/<container>
32
// Create a request to list all containers
33
+ (id)listRequest;
34
+ (id)listRequestWithLimit:(NSUInteger)limit marker:(NSString *)marker;
35
- (NSArray *)containers;
36

    
37
// PUT /<api version>/<account>/<container>
38
+ (id)createContainerRequest:(NSString *)containerName;
39

    
40
// DELETE /<api version>/<account>/<container>
41
+ (id)deleteContainerRequest:(NSString *)containerName;
42

    
43
@end