ARO-RP/pkg/api/billingdocument.go

42 строки
1.4 KiB
Go
Исходник Обычный вид История

package api
// Copyright (c) Microsoft Corporation.
// Licensed under the Apache License 2.0.
// BillingDocuments represents billing documents.
// pkg/database/cosmosdb requires its definition.
type BillingDocuments struct {
Count int `json:"_count,omitempty"`
ResourceID string `json:"_rid,omitempty"`
BillingDocuments []*BillingDocument `json:"Documents,omitempty"`
}
2020-08-21 07:39:15 +03:00
func (c *BillingDocuments) String() string {
return encodeJSON(c)
}
// BillingDocument represents a billing document.
// pkg/database/cosmosdb requires its definition.
type BillingDocument struct {
MissingFields
ID string `json:"id,omitempty"`
ResourceID string `json:"_rid,omitempty"`
Timestamp int `json:"_ts,omitempty"`
Self string `json:"_self,omitempty"`
ETag string `json:"_etag,omitempty"`
Attachments string `json:"_attachments,omitempty"`
LSN int `json:"_lsn,omitempty"`
Metadata map[string]interface{} `json:"_metadata,omitempty"`
Billing *Billing `json:"billing,omitempty"`
Key string `json:"key,omitempty"`
ClusterResourceGroupIDKey string `json:"clusterResourceGroupIDKey,omitempty"`
2020-04-24 01:42:44 +03:00
InfraID string `json:"infraId,omitempty"`
}
2020-08-21 07:39:15 +03:00
func (c *BillingDocument) String() string {
return encodeJSON(c)
}