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

// DataflowSchemaRegistry dataflow schema registry
//
// swagger:model dataflowSchemaRegistry
type DataflowSchemaRegistry struct {

	// enable Http auth
	EnableHTTPAuth bool `json:"enableHttpAuth,omitempty"`

	// password
	Password string `json:"password,omitempty"`

	// schema registry endpoints
	SchemaRegistryEndpoints string `json:"schema_registry_endpoints,omitempty"`

	// user name
	UserName string `json:"userName,omitempty"`
}

// Validate validates this dataflow schema registry
func (m *DataflowSchemaRegistry) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this dataflow schema registry based on context it is used
func (m *DataflowSchemaRegistry) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

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

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