github.com/ActiveState/cli@v0.0.0-20240508170324-6801f60cd051/pkg/platform/api/buildlogstream/buildlogstream_models/build_started.go (about)

     1  // Code generated by go-swagger; DO NOT EDIT.
     2  
     3  package buildlogstream_models
     4  
     5  // This file was generated by the swagger tool.
     6  // Editing this file might prove futile when you re-run the swagger generate command
     7  
     8  import (
     9  	"github.com/go-openapi/strfmt"
    10  	"github.com/go-openapi/swag"
    11  )
    12  
    13  // BuildStarted Build Started
    14  //
    15  // A message indicating that a requested build has been started.
    16  //
    17  // swagger:model BuildStarted
    18  type BuildStarted struct {
    19  
    20  	// A user-facing message describing the build event.
    21  	Message string `json:"message,omitempty"`
    22  }
    23  
    24  // Validate validates this build started
    25  func (m *BuildStarted) Validate(formats strfmt.Registry) error {
    26  	return nil
    27  }
    28  
    29  // MarshalBinary interface implementation
    30  func (m *BuildStarted) MarshalBinary() ([]byte, error) {
    31  	if m == nil {
    32  		return nil, nil
    33  	}
    34  	return swag.WriteJSON(m)
    35  }
    36  
    37  // UnmarshalBinary interface implementation
    38  func (m *BuildStarted) UnmarshalBinary(b []byte) error {
    39  	var res BuildStarted
    40  	if err := swag.ReadJSON(b, &res); err != nil {
    41  		return err
    42  	}
    43  	*m = res
    44  	return nil
    45  }