2019-10-16 06:29:17 +03:00
|
|
|
package api
|
|
|
|
|
2019-12-17 04:16:50 +03:00
|
|
|
// Copyright (c) Microsoft Corporation.
|
|
|
|
// Licensed under the Apache License 2.0.
|
|
|
|
|
2019-10-16 06:29:17 +03:00
|
|
|
// OpenShiftClusterDocuments represents OpenShift cluster documents.
|
|
|
|
// pkg/database/cosmosdb requires its definition.
|
|
|
|
type OpenShiftClusterDocuments struct {
|
|
|
|
Count int `json:"_count,omitempty"`
|
|
|
|
ResourceID string `json:"_rid,omitempty"`
|
|
|
|
OpenShiftClusterDocuments []*OpenShiftClusterDocument `json:"Documents,omitempty"`
|
|
|
|
}
|
|
|
|
|
2020-08-21 07:39:15 +03:00
|
|
|
func (c *OpenShiftClusterDocuments) String() string {
|
|
|
|
return encodeJSON(c)
|
|
|
|
}
|
|
|
|
|
2019-10-16 06:29:17 +03:00
|
|
|
// OpenShiftClusterDocument represents an OpenShift cluster document.
|
|
|
|
// pkg/database/cosmosdb requires its definition.
|
|
|
|
type OpenShiftClusterDocument struct {
|
|
|
|
MissingFields
|
|
|
|
|
2020-09-21 10:02:44 +03:00
|
|
|
ID string `json:"id,omitempty" deep:"-"`
|
2020-01-20 05:42:26 +03:00
|
|
|
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-01-20 05:42:26 +03:00
|
|
|
Attachments string `json:"_attachments,omitempty"`
|
|
|
|
LSN int `json:"_lsn,omitempty"`
|
|
|
|
Metadata map[string]interface{} `json:"_metadata,omitempty"`
|
2019-10-16 06:29:17 +03:00
|
|
|
|
2020-01-10 20:42:48 +03:00
|
|
|
Key string `json:"key,omitempty"`
|
2020-09-21 10:02:44 +03:00
|
|
|
PartitionKey string `json:"partitionKey,omitempty" deep:"-"`
|
2020-01-10 20:42:48 +03:00
|
|
|
ClusterResourceGroupIDKey string `json:"clusterResourceGroupIdKey,omitempty"`
|
2020-02-17 22:41:15 +03:00
|
|
|
ClientIDKey string `json:"clientIdKey,omitempty"`
|
2019-10-16 06:29:17 +03:00
|
|
|
|
2020-01-18 19:33:08 +03:00
|
|
|
Bucket int `json:"bucket,omitempty"`
|
|
|
|
|
2021-02-20 01:28:33 +03:00
|
|
|
LeaseOwner string `json:"leaseOwner,omitempty" deep:"-"`
|
|
|
|
LeaseExpires int `json:"leaseExpires,omitempty" deep:"-"`
|
2019-12-22 04:18:17 +03:00
|
|
|
Dequeues int `json:"dequeues,omitempty"`
|
2019-10-16 06:29:17 +03:00
|
|
|
|
2020-09-21 10:02:44 +03:00
|
|
|
AsyncOperationID string `json:"asyncOperationId,omitempty" deep:"-"`
|
2019-12-22 04:36:30 +03:00
|
|
|
|
2019-10-18 21:46:27 +03:00
|
|
|
OpenShiftCluster *OpenShiftCluster `json:"openShiftCluster,omitempty"`
|
2020-03-26 12:25:19 +03:00
|
|
|
|
2020-09-21 10:02:44 +03:00
|
|
|
CorrelationData *CorrelationData `json:"correlationData,omitempty" deep:"-"`
|
2019-10-16 06:29:17 +03:00
|
|
|
}
|
2020-08-21 07:39:15 +03:00
|
|
|
|
|
|
|
func (c *OpenShiftClusterDocument) String() string {
|
|
|
|
return encodeJSON(c)
|
|
|
|
}
|