2020-07-29 01:01:17 -07:00
// Code generated by go-swagger; DO NOT EDIT.
// This file is part of MinIO Console Server
2023-02-06 22:32:49 -06:00
// Copyright (c) 2023 MinIO, Inc.
2020-07-29 01:01:17 -07:00
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
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 (
2021-06-08 12:35:39 -07:00
"context"
2020-07-29 01:01:17 -07:00
"github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
2020-12-07 09:49:51 -06:00
// PoolResources If provided, use these requests and limit for cpu/memory resource allocation
2020-07-29 01:01:17 -07:00
//
2020-12-07 09:49:51 -06:00
// swagger:model poolResources
type PoolResources struct {
2020-07-29 01:01:17 -07:00
// Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
Limits map [ string ] int64 ` json:"limits,omitempty" `
// Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
Requests map [ string ] int64 ` json:"requests,omitempty" `
}
2020-12-07 09:49:51 -06:00
// Validate validates this pool resources
func ( m * PoolResources ) Validate ( formats strfmt . Registry ) error {
2020-07-29 01:01:17 -07:00
return nil
}
2021-06-08 12:35:39 -07:00
// ContextValidate validates this pool resources based on context it is used
func ( m * PoolResources ) ContextValidate ( ctx context . Context , formats strfmt . Registry ) error {
return nil
}
2020-07-29 01:01:17 -07:00
// MarshalBinary interface implementation
2020-12-07 09:49:51 -06:00
func ( m * PoolResources ) MarshalBinary ( ) ( [ ] byte , error ) {
2020-07-29 01:01:17 -07:00
if m == nil {
return nil , nil
}
return swag . WriteJSON ( m )
}
// UnmarshalBinary interface implementation
2020-12-07 09:49:51 -06:00
func ( m * PoolResources ) UnmarshalBinary ( b [ ] byte ) error {
var res PoolResources
2020-07-29 01:01:17 -07:00
if err := swag . ReadJSON ( b , & res ) ; err != nil {
return err
}
* m = res
return nil
}