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

// HashicorpCloudWaypointAgentOperation hashicorp cloud waypoint agent operation
//
// swagger:model hashicorp.cloud.waypoint.AgentOperation
type HashicorpCloudWaypointAgentOperation struct {

	// An optional action run id. If specified the agent will interaction
	// with the actions subsystem
	ActionRunID string `json:"action_run_id,omitempty"`

	// Arguments to the operation, specified as JSON
	// Format: byte
	Body strfmt.Base64 `json:"body,omitempty"`

	// The name of the group that the operation is in
	Group string `json:"group,omitempty"`

	// The identifying name of the operation in the agent config file
	ID string `json:"id,omitempty"`
}

// Validate validates this hashicorp cloud waypoint agent operation
func (m *HashicorpCloudWaypointAgentOperation) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this hashicorp cloud waypoint agent operation based on context it is used
func (m *HashicorpCloudWaypointAgentOperation) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

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

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