1 Star 0 Fork 0

pengchengduan / goharbor-client

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
unauthorized_chart_api_error.go 1.78 KB
一键复制 编辑 原始数据 按行查看 历史
pengchengduan 提交于 2024-02-01 17:28 . first commit
// Code generated by go-swagger; DO NOT EDIT.
package model
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"github.com/go-openapi/errors"
"github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// UnauthorizedChartAPIError Unauthorized
//
// swagger:model UnauthorizedChartAPIError
type UnauthorizedChartAPIError struct {
ChartAPIError
}
// UnmarshalJSON unmarshals this object from a JSON structure
func (m *UnauthorizedChartAPIError) UnmarshalJSON(raw []byte) error {
// AO0
var aO0 ChartAPIError
if err := swag.ReadJSON(raw, &aO0); err != nil {
return err
}
m.ChartAPIError = aO0
return nil
}
// MarshalJSON marshals this object to a JSON structure
func (m UnauthorizedChartAPIError) MarshalJSON() ([]byte, error) {
_parts := make([][]byte, 0, 1)
aO0, err := swag.WriteJSON(m.ChartAPIError)
if err != nil {
return nil, err
}
_parts = append(_parts, aO0)
return swag.ConcatJSON(_parts...), nil
}
// Validate validates this unauthorized chart API error
func (m *UnauthorizedChartAPIError) Validate(formats strfmt.Registry) error {
var res []error
// validation for a type composition with ChartAPIError
if err := m.ChartAPIError.Validate(formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
// MarshalBinary interface implementation
func (m *UnauthorizedChartAPIError) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *UnauthorizedChartAPIError) UnmarshalBinary(b []byte) error {
var res UnauthorizedChartAPIError
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}
1
https://gitee.com/pengchengduan/goharbor-client.git
git@gitee.com:pengchengduan/goharbor-client.git
pengchengduan
goharbor-client
goharbor-client
41c6882efe91

搜索帮助