Skip to content

Commit

Permalink
NCSDEV-11122: Implementation of bulk api - Attach
Browse files Browse the repository at this point in the history
  • Loading branch information
tyiying committed Dec 11, 2023
1 parent 1a1401d commit 29662c1
Show file tree
Hide file tree
Showing 3 changed files with 329 additions and 124 deletions.
19 changes: 19 additions & 0 deletions pkg/fssclient/datamodel.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,25 @@ type ErrorResponse struct {
Type string `json:"type"`
}

// BulkResponse in FSS Connect Bulk API
type BulkItem struct {
Status int `json:"status"`
Data interface{} `json:"data"`
}

// BulkResposeMetadata in FSS Connect Bulk API top layer
type BulkResposeMetadata struct {
Success int `json:"success"`
Failure int `json:"failure"`
Total int `json:"total"`
}

// BulkResponses in FSS Connect Bulk API
type BulkResponse struct {
ResponseMetadata BulkResposeMetadata `json:"responseMetadata"`
Responses []BulkItem `json:"response"`
}

// Vlan is FSS Connect API Data Type
type Vlan struct {
vlanType string
Expand Down
Loading

0 comments on commit 29662c1

Please sign in to comment.