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
|
package queues
type StorageServiceProperties struct {
Logging *LoggingConfig `xml:"Logging,omitempty"`
HourMetrics *MetricsConfig `xml:"HourMetrics,omitempty"`
MinuteMetrics *MetricsConfig `xml:"MinuteMetrics,omitempty"`
Cors *Cors `xml:"Cors,omitempty"`
}
type LoggingConfig struct {
Version string `xml:"Version"`
Delete bool `xml:"Delete"`
Read bool `xml:"Read"`
Write bool `xml:"Write"`
RetentionPolicy RetentionPolicy `xml:"RetentionPolicy"`
}
type MetricsConfig struct {
Version string `xml:"Version"`
Enabled bool `xml:"Enabled"`
RetentionPolicy RetentionPolicy `xml:"RetentionPolicy"`
// Element IncludeAPIs is only expected when Metrics is enabled
IncludeAPIs *bool `xml:"IncludeAPIs,omitempty"`
}
type RetentionPolicy struct {
Enabled bool `xml:"Enabled"`
Days int `xml:"Days,omitempty"`
}
type Cors struct {
CorsRule []CorsRule `xml:"CorsRule"`
}
type CorsRule struct {
AllowedOrigins string `xml:"AllowedOrigins"`
AllowedMethods string `xml:"AllowedMethods"`
AllowedHeaders string `xml:"AllowedHeaders`
ExposedHeaders string `xml:"ExposedHeaders"`
MaxAgeInSeconds int `xml:"MaxAgeInSeconds"`
}
|