github.com/minio/console@v1.4.1/models/set_id_p_response.go (about)

     1  // Code generated by go-swagger; DO NOT EDIT.
     2  
     3  // This file is part of MinIO Console Server
     4  // Copyright (c) 2023 MinIO, Inc.
     5  //
     6  // This program is free software: you can redistribute it and/or modify
     7  // it under the terms of the GNU Affero General Public License as published by
     8  // the Free Software Foundation, either version 3 of the License, or
     9  // (at your option) any later version.
    10  //
    11  // This program is distributed in the hope that it will be useful,
    12  // but WITHOUT ANY WARRANTY; without even the implied warranty of
    13  // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    14  // GNU Affero General Public License for more details.
    15  //
    16  // You should have received a copy of the GNU Affero General Public License
    17  // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    18  //
    19  
    20  package models
    21  
    22  // This file was generated by the swagger tool.
    23  // Editing this file might prove futile when you re-run the swagger generate command
    24  
    25  import (
    26  	"context"
    27  
    28  	"github.com/go-openapi/strfmt"
    29  	"github.com/go-openapi/swag"
    30  )
    31  
    32  // SetIDPResponse set ID p response
    33  //
    34  // swagger:model setIDPResponse
    35  type SetIDPResponse struct {
    36  
    37  	// restart
    38  	Restart bool `json:"restart,omitempty"`
    39  }
    40  
    41  // Validate validates this set ID p response
    42  func (m *SetIDPResponse) Validate(formats strfmt.Registry) error {
    43  	return nil
    44  }
    45  
    46  // ContextValidate validates this set ID p response based on context it is used
    47  func (m *SetIDPResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
    48  	return nil
    49  }
    50  
    51  // MarshalBinary interface implementation
    52  func (m *SetIDPResponse) MarshalBinary() ([]byte, error) {
    53  	if m == nil {
    54  		return nil, nil
    55  	}
    56  	return swag.WriteJSON(m)
    57  }
    58  
    59  // UnmarshalBinary interface implementation
    60  func (m *SetIDPResponse) UnmarshalBinary(b []byte) error {
    61  	var res SetIDPResponse
    62  	if err := swag.ReadJSON(b, &res); err != nil {
    63  		return err
    64  	}
    65  	*m = res
    66  	return nil
    67  }