github.com/goharbor/go-client@v0.210.0/pkg/sdk/v2.0/models/scan_data_export_request.go (about) 1 // Code generated by go-swagger; DO NOT EDIT. 2 3 package models 4 5 // This file was generated by the swagger tool. 6 // Editing this file might prove futile when you re-run the swagger generate command 7 8 import ( 9 "context" 10 11 "github.com/go-openapi/strfmt" 12 "github.com/go-openapi/swag" 13 ) 14 15 // ScanDataExportRequest The criteria to select the scan data to export. 16 // 17 // swagger:model ScanDataExportRequest 18 type ScanDataExportRequest struct { 19 20 // CVE-IDs for which to export data. Multiple CVE-IDs can be specified by separating using ',' and enclosed between '{}'. Defaults to all if empty 21 CVEIds string `json:"cveIds,omitempty"` 22 23 // Name of the scan data export job 24 JobName string `json:"job_name,omitempty"` 25 26 // A list of one or more labels for which to export the scan data, defaults to all if empty 27 Labels []int64 `json:"labels"` 28 29 // A list of one or more projects for which to export the scan data, currently only one project is supported due to performance concerns, but define as array for extension in the future. 30 Projects []int64 `json:"projects"` 31 32 // A list of repositories for which to export the scan data, defaults to all if empty 33 Repositories string `json:"repositories,omitempty"` 34 35 // A list of tags enclosed within '{}'. Defaults to all if empty 36 Tags string `json:"tags,omitempty"` 37 } 38 39 // Validate validates this scan data export request 40 func (m *ScanDataExportRequest) Validate(formats strfmt.Registry) error { 41 return nil 42 } 43 44 // ContextValidate validates this scan data export request based on context it is used 45 func (m *ScanDataExportRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 46 return nil 47 } 48 49 // MarshalBinary interface implementation 50 func (m *ScanDataExportRequest) MarshalBinary() ([]byte, error) { 51 if m == nil { 52 return nil, nil 53 } 54 return swag.WriteJSON(m) 55 } 56 57 // UnmarshalBinary interface implementation 58 func (m *ScanDataExportRequest) UnmarshalBinary(b []byte) error { 59 var res ScanDataExportRequest 60 if err := swag.ReadJSON(b, &res); err != nil { 61 return err 62 } 63 *m = res 64 return nil 65 }