Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NCSDEV-11123: Implementation of bulk api - Attach #31

Merged
merged 8 commits into from
Dec 12, 2023
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"`
}

// BulkItem in FSS Connect Bulk API BulkResponse
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"`
}

// BulkResponse 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
Loading