1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
|
package containers
import "github.com/Azure/go-autorest/autorest"
type AccessLevel string
var (
// Blob specifies public read access for blobs.
// Blob data within this container can be read via anonymous request,
// but container data is not available.
// Clients cannot enumerate blobs within the container via anonymous request.
Blob AccessLevel = "blob"
// Container specifies full public read access for container and blob data.
// Clients can enumerate blobs within the container via anonymous request,
// but cannot enumerate containers within the storage account.
Container AccessLevel = "container"
// Private specifies that container data is private to the account owner
Private AccessLevel = ""
)
type ContainerProperties struct {
autorest.Response
AccessLevel AccessLevel
LeaseStatus LeaseStatus
LeaseState LeaseState
LeaseDuration *LeaseDuration
MetaData map[string]string
HasImmutabilityPolicy bool
HasLegalHold bool
}
type Dataset string
var (
Copy Dataset = "copy"
Deleted Dataset = "deleted"
MetaData Dataset = "metadata"
Snapshots Dataset = "snapshots"
UncommittedBlobs Dataset = "uncommittedblobs"
)
type ErrorResponse struct {
Code *string `xml:"Code"`
Message *string `xml:"Message"`
}
type LeaseDuration string
var (
// If this lease is for a Fixed Duration
Fixed LeaseDuration = "fixed"
// If this lease is for an Indefinite Duration
Infinite LeaseDuration = "infinite"
)
type LeaseState string
var (
Available LeaseState = "available"
Breaking LeaseState = "breaking"
Broken LeaseState = "broken"
Expired LeaseState = "expired"
Leased LeaseState = "leased"
)
type LeaseStatus string
var (
Locked LeaseStatus = "locked"
Unlocked LeaseStatus = "unlocked"
)
|