3e68d47da6
Signed-off-by: David Justice <david@devigned.com>
37 lines
1 KiB
Go
37 lines
1 KiB
Go
package storage
|
|
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License. See License.txt in the project root for license information.
|
|
|
|
// 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"
|
|
OdataDouble = "Edm.Double"
|
|
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"
|
|
)
|