github.com/ActiveState/cli@v0.0.0-20240508170324-6801f60cd051/pkg/platform/api/mono/mono_models/limits_editable.go (about)

     1  // Code generated by go-swagger; DO NOT EDIT.
     2  
     3  package mono_models
     4  
     5  // This file was generated by the swagger tool.
     6  // Editing this file might prove futile when you re-run the swagger generate command
     7  
     8  import (
     9  	"context"
    10  
    11  	"github.com/go-openapi/strfmt"
    12  	"github.com/go-openapi/swag"
    13  )
    14  
    15  // LimitsEditable limits editable
    16  //
    17  // swagger:model LimitsEditable
    18  type LimitsEditable struct {
    19  
    20  	// active runtimes limit
    21  	ActiveRuntimesLimit *int64 `json:"activeRuntimesLimit,omitempty"`
    22  
    23  	// active runtimes override
    24  	ActiveRuntimesOverride *int64 `json:"activeRuntimesOverride,omitempty"`
    25  
    26  	// nodes limit
    27  	NodesLimit *int64 `json:"nodesLimit,omitempty"`
    28  
    29  	// static runtimes limit
    30  	StaticRuntimesLimit *int64 `json:"staticRuntimesLimit,omitempty"`
    31  
    32  	// static runtimes override
    33  	StaticRuntimesOverride *int64 `json:"staticRuntimesOverride,omitempty"`
    34  
    35  	// users limit
    36  	UsersLimit *int64 `json:"usersLimit,omitempty"`
    37  }
    38  
    39  // Validate validates this limits editable
    40  func (m *LimitsEditable) Validate(formats strfmt.Registry) error {
    41  	return nil
    42  }
    43  
    44  // ContextValidate validates this limits editable based on context it is used
    45  func (m *LimitsEditable) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
    46  	return nil
    47  }
    48  
    49  // MarshalBinary interface implementation
    50  func (m *LimitsEditable) MarshalBinary() ([]byte, error) {
    51  	if m == nil {
    52  		return nil, nil
    53  	}
    54  	return swag.WriteJSON(m)
    55  }
    56  
    57  // UnmarshalBinary interface implementation
    58  func (m *LimitsEditable) UnmarshalBinary(b []byte) error {
    59  	var res LimitsEditable
    60  	if err := swag.ReadJSON(b, &res); err != nil {
    61  		return err
    62  	}
    63  	*m = res
    64  	return nil
    65  }