// Code generated by go-swagger; DO NOT EDIT. package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // GeneralRepoSettings GeneralRepoSettings contains global repository settings exposed by API // // swagger:model GeneralRepoSettings type GeneralRepoSettings struct { // HTTP git disabled HTTPGitDisabled bool `json:"http_git_disabled,omitempty"` // l f s disabled LFSDisabled bool `json:"lfs_disabled,omitempty"` // migrations disabled MigrationsDisabled bool `json:"migrations_disabled,omitempty"` // mirrors disabled MirrorsDisabled bool `json:"mirrors_disabled,omitempty"` // stars disabled StarsDisabled bool `json:"stars_disabled,omitempty"` // time tracking disabled TimeTrackingDisabled bool `json:"time_tracking_disabled,omitempty"` } // Validate validates this general repo settings func (m *GeneralRepoSettings) Validate(formats strfmt.Registry) error { return nil } // ContextValidate validates this general repo settings based on context it is used func (m *GeneralRepoSettings) ContextValidate(ctx context.Context, formats strfmt.Registry) error { return nil } // MarshalBinary interface implementation func (m *GeneralRepoSettings) MarshalBinary() ([]byte, error) { if m == nil { return nil, nil } return swag.WriteJSON(m) } // UnmarshalBinary interface implementation func (m *GeneralRepoSettings) UnmarshalBinary(b []byte) error { var res GeneralRepoSettings if err := swag.ReadJSON(b, &res); err != nil { return err } *m = res return nil }