-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #145 from tonytheleg/ARO-7410-add-sub-data-to-cosmos
adds db calls for subscriptions
- Loading branch information
Showing
4 changed files
with
188 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package main | ||
|
||
import "github.com/Azure/ARO-HCP/internal/api/arm" | ||
|
||
// HCPOpenShiftClusterDocument represents an HCP OpenShift cluster document. | ||
type HCPOpenShiftClusterDocument struct { | ||
ID string `json:"id,omitempty"` | ||
Key string `json:"key,omitempty"` | ||
PartitionKey string `json:"partitionKey,omitempty"` | ||
ClusterID string `json:"clusterid,omitempty"` | ||
|
||
// Values provided by Cosmos after doc creation | ||
ResourceID string `json:"_rid,omitempty"` | ||
Self string `json:"_self,omitempty"` | ||
ETag string `json:"_etag,omitempty"` | ||
Attachments string `json:"_attachments,omitempty"` | ||
Timestamp int `json:"_ts,omitempty"` | ||
} | ||
|
||
// SubscriptionDocument represents an Azure Subscription document. | ||
type SubscriptionDocument struct { | ||
ID string `json:"id,omitempty"` | ||
PartitionKey string `json:"partitionKey,omitempty"` | ||
Subscription *arm.Subscription `json:"subscription,omitempty"` | ||
|
||
// Values provided by Cosmos after doc creation | ||
ResourceID string `json:"_rid,omitempty"` | ||
Self string `json:"_self,omitempty"` | ||
ETag string `json:"_etag,omitempty"` | ||
Attachments string `json:"_attachments,omitempty"` | ||
Timestamp int `json:"_ts,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.