2018-05-21 19:05:11 +00:00
|
|
|
package storage
|
|
|
|
|
2020-04-01 15:47:41 +00:00
|
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
// Licensed under the MIT License. See License.txt in the project root for license information.
|
2018-05-21 19:05:11 +00:00
|
|
|
|
|
|
|
// MetadataLevel determines if operations should return a paylod,
|
|
|
|
// and it level of detail.
|
|
|
|
type MetadataLevel string
|
|
|
|
|
|
|
|
// This consts are meant to help with Odata supported operations
|
|
|
|
const (
|
|
|
|
OdataTypeSuffix = "@odata.type"
|
|
|
|
|
|
|
|
// Types
|
|
|
|
|
|
|
|
OdataBinary = "Edm.Binary"
|
|
|
|
OdataDateTime = "Edm.DateTime"
|
2020-04-01 15:47:41 +00:00
|
|
|
OdataDouble = "Edm.Double"
|
2018-05-21 19:05:11 +00:00
|
|
|
OdataGUID = "Edm.Guid"
|
|
|
|
OdataInt64 = "Edm.Int64"
|
|
|
|
|
|
|
|
// Query options
|
|
|
|
|
|
|
|
OdataFilter = "$filter"
|
|
|
|
OdataOrderBy = "$orderby"
|
|
|
|
OdataTop = "$top"
|
|
|
|
OdataSkip = "$skip"
|
|
|
|
OdataCount = "$count"
|
|
|
|
OdataExpand = "$expand"
|
|
|
|
OdataSelect = "$select"
|
|
|
|
OdataSearch = "$search"
|
|
|
|
|
|
|
|
EmptyPayload MetadataLevel = ""
|
|
|
|
NoMetadata MetadataLevel = "application/json;odata=nometadata"
|
|
|
|
MinimalMetadata MetadataLevel = "application/json;odata=minimalmetadata"
|
|
|
|
FullMetadata MetadataLevel = "application/json;odata=fullmetadata"
|
|
|
|
)
|