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

// HashicorpCloudWaypointV20241122AgentOperation hashicorp cloud waypoint v20241122 agent operation
//
// swagger:model hashicorp.cloud.waypoint.v20241122.AgentOperation
type HashicorpCloudWaypointV20241122AgentOperation 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 v20241122 agent operation
func (m *HashicorpCloudWaypointV20241122AgentOperation) Validate(formats strfmt.Registry) error {
	return nil
}

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

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

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