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

// ConfigcenterCopyFromVersionReq configcenter copy from version req
//
// swagger:model configcenter.CopyFromVersionReq
type ConfigcenterCopyFromVersionReq struct {

	// from version
	FromVersion string `json:"from_version,omitempty"`

	// to version
	ToVersion string `json:"to_version,omitempty"`
}

// Validate validates this configcenter copy from version req
func (m *ConfigcenterCopyFromVersionReq) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this configcenter copy from version req based on context it is used
func (m *ConfigcenterCopyFromVersionReq) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

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

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