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

// UpgradeAgentRequest upgrade agent request
//
// swagger:model upgrade_agent_request
type UpgradeAgentRequest struct {

	// Full image reference of the image that the agent should upgrade to, for example
	// `quay.io/registry-proxy.engineering.redhat.com/rh-osbs/openshift4-assisted-installer-agent-rhel8:v1.0.0-142`.
	//
	AgentImage string `json:"agent_image,omitempty"`
}

// Validate validates this upgrade agent request
func (m *UpgradeAgentRequest) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this upgrade agent request based on context it is used
func (m *UpgradeAgentRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

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

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