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

package models

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

import (
	"github.com/go-openapi/errors"
	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
	"github.com/go-openapi/validate"
)

// CentralDebugPortalSignOutResp central debug portal sign out resp
//
// swagger:model centralDebugPortalSignOutResp
type CentralDebugPortalSignOutResp struct {

	// oauth sign out uri
	// Required: true
	OauthSignOutURI *string `json:"oauth_sign_out_uri"`
}

// Validate validates this central debug portal sign out resp
func (m *CentralDebugPortalSignOutResp) Validate(formats strfmt.Registry) error {
	var res []error

	if err := m.validateOauthSignOutURI(formats); err != nil {
		res = append(res, err)
	}

	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}

func (m *CentralDebugPortalSignOutResp) validateOauthSignOutURI(formats strfmt.Registry) error {

	if err := validate.Required("oauth_sign_out_uri", "body", m.OauthSignOutURI); err != nil {
		return err
	}

	return nil
}

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

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