// Code generated by go-swagger; DO NOT EDIT.

package model

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

// OpenapiCreateRestoreResp CreateRestoreResp
//
// CreateRestoreResp is the response for restoring backup to a new cluster.
//
// swagger:model openapiCreateRestoreResp
type OpenapiCreateRestoreResp struct {

	// The ID of the restored cluster. The restored cluster is the new cluster your backup data is restored to.
	// Example: 1
	ClusterID string `json:"cluster_id,omitempty"`

	// The ID of the restore task.
	// Example: 1
	ID string `json:"id,omitempty"`
}

// Validate validates this openapi create restore resp
func (m *OpenapiCreateRestoreResp) Validate(formats strfmt.Registry) error {
	return nil
}

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

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

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