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

// ClusterServerlessBranch cluster serverless branch
//
// swagger:model cluster.ServerlessBranch
type ClusterServerlessBranch struct {

	// create time
	CreateTime int64 `json:"create_time,omitempty"`

	// display name
	DisplayName string `json:"display_name,omitempty"`

	// id
	ID string `json:"id,omitempty"`

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

	// update time
	UpdateTime int64 `json:"update_time,omitempty"`
}

// Validate validates this cluster serverless branch
func (m *ClusterServerlessBranch) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this cluster serverless branch based on context it is used
func (m *ClusterServerlessBranch) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

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

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