// Code generated by go-swagger; DO NOT EDIT.

package ops

// 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"
)

// GithubRepository github repository
//
// swagger:model github.Repository
type GithubRepository struct {

	// id
	ID int64 `json:"id,omitempty"`

	// location
	Location string `json:"location,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// owner
	Owner string `json:"owner,omitempty"`

	// pushed at
	PushedAt int64 `json:"pushed_at,omitempty"`

	// update at
	UpdateAt int64 `json:"update_at,omitempty"`
}

// Validate validates this github repository
func (m *GithubRepository) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this github repository based on context it is used
func (m *GithubRepository) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

// MarshalBinary interface implementation
func (m *GithubRepository) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}

// UnmarshalBinary interface implementation
func (m *GithubRepository) UnmarshalBinary(b []byte) error {
	var res GithubRepository
	if err := swag.ReadJSON(b, &res); err != nil {
		return err
	}
	*m = res
	return nil
}
