2020-03-11 18:18:34 +03:00
|
|
|
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)
|
|
|
|
}
|
|
|
|
|
2020-03-11 18:18:34 +03:00
|
|
|
// 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"`
|
2020-11-19 22:29:32 +03:00
|
|
|
ETag string `json:"_etag,omitempty" deep:"-"`
|
2020-03-11 18:18:34 +03:00
|
|
|
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-03-11 18:18:34 +03:00
|
|
|
}
|
2020-08-21 07:39:15 +03:00
|
|
|
|
|
|
|
func (c *BillingDocument) String() string {
|
|
|
|
return encodeJSON(c)
|
|
|
|
}
|