ARO-RP/pkg/api/openshiftclusterdocument.go

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

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"`
}
// OpenShiftClusterDocument represents an OpenShift cluster document.
// pkg/database/cosmosdb requires its definition.
type OpenShiftClusterDocument struct {
MissingFields
2020-01-20 05:42:26 +03:00
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"`
2019-10-16 06:29:17 +03:00
2020-01-10 20:42:48 +03:00
Key string `json:"key,omitempty"`
PartitionKey string `json:"partitionKey,omitempty"`
ClusterResourceGroupIDKey string `json:"clusterResourceGroupIdKey,omitempty"`
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"`
2019-12-22 04:18:17 +03:00
LeaseOwner string `json:"leaseOwner,omitempty"`
LeaseExpires int `json:"leaseExpires,omitempty"`
Dequeues int `json:"dequeues,omitempty"`
2019-10-16 06:29:17 +03:00
AsyncOperationID string `json:"asyncOperationId,omitempty"`
2019-10-18 21:46:27 +03:00
OpenShiftCluster *OpenShiftCluster `json:"openShiftCluster,omitempty"`
CorrelationData *CorrelationData `json:"correlationData,omitempty"`
2019-10-16 06:29:17 +03:00
}