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

// CloudconfigComponent cloudconfig component
//
// swagger:model cloudconfig.Component
type CloudconfigComponent struct {

	// base image
	BaseImage string `json:"base_image,omitempty"`

	// cloud provider
	CloudProvider string `json:"cloud_provider,omitempty"`

	// effective image tag
	EffectiveImageTag string `json:"effective_image_tag,omitempty"`

	// instance type
	InstanceType string `json:"instance_type,omitempty"`

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

	// overwrite image tag
	OverwriteImageTag string `json:"overwrite_image_tag,omitempty"`
}

// Validate validates this cloudconfig component
func (m *CloudconfigComponent) Validate(formats strfmt.Registry) error {
	return nil
}

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

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

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