1package blobs
2
3type AccessTier string
4
5var (
6	Archive AccessTier = "Archive"
7	Cool    AccessTier = "Cool"
8	Hot     AccessTier = "Hot"
9)
10
11type ArchiveStatus string
12
13var (
14	None                   ArchiveStatus = ""
15	RehydratePendingToCool ArchiveStatus = "rehydrate-pending-to-cool"
16	RehydratePendingToHot  ArchiveStatus = "rehydrate-pending-to-hot"
17)
18
19type BlockListType string
20
21var (
22	All         BlockListType = "all"
23	Committed   BlockListType = "committed"
24	Uncommitted BlockListType = "uncommitted"
25)
26
27type Block struct {
28	// The base64-encoded Block ID
29	Name string `xml:"Name"`
30
31	// The size of the Block in Bytes
32	Size int64 `xml:"Size"`
33}
34
35type BlobType string
36
37var (
38	AppendBlob BlobType = "AppendBlob"
39	BlockBlob  BlobType = "BlockBlob"
40	PageBlob   BlobType = "PageBlob"
41)
42
43type CommittedBlocks struct {
44	Blocks []Block `xml:"Block"`
45}
46
47type CopyStatus string
48
49var (
50	Aborted CopyStatus = "aborted"
51	Failed  CopyStatus = "failed"
52	Pending CopyStatus = "pending"
53	Success CopyStatus = "success"
54)
55
56type LeaseDuration string
57
58var (
59	Fixed    LeaseDuration = "fixed"
60	Infinite LeaseDuration = "infinite"
61)
62
63type LeaseState string
64
65var (
66	Available LeaseState = "available"
67	Breaking  LeaseState = "breaking"
68	Broken    LeaseState = "broken"
69	Expired   LeaseState = "expired"
70	Leased    LeaseState = "leased"
71)
72
73type LeaseStatus string
74
75var (
76	Locked   LeaseStatus = "locked"
77	Unlocked LeaseStatus = "unlocked"
78)
79
80type UncommittedBlocks struct {
81	Blocks []Block `xml:"Block"`
82}
83