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

// IncidentCreateIncidentReq incident create incident req
//
// swagger:model incident.CreateIncidentReq
type IncidentCreateIncidentReq struct {

	// biz regions
	BizRegions string `json:"biz_regions,omitempty"`

	// components
	Components string `json:"components,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// fbowners
	Fbowners []string `json:"fbowners"`

	// feishu url
	FeishuURL string `json:"feishu_url,omitempty"`

	// incident resolve time
	IncidentResolveTime string `json:"incident_resolve_time,omitempty"`

	// incident start time
	IncidentStartTime string `json:"incident_start_time,omitempty"`

	// jira issues
	JiraIssues string `json:"jira_issues,omitempty"`

	// leaders
	Leaders []string `json:"leaders"`

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

	// need generate feishu
	NeedGenerateFeishu bool `json:"need_generate_feishu,omitempty"`

	// oncallers
	Oncallers []string `json:"oncallers"`

	// status
	Status string `json:"status,omitempty"`

	// tier
	Tier string `json:"tier,omitempty"`
}

// Validate validates this incident create incident req
func (m *IncidentCreateIncidentReq) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this incident create incident req based on context it is used
func (m *IncidentCreateIncidentReq) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

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

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