github.com/weaviate/weaviate@v1.24.6/adapters/handlers/rest/operations/schema/schema_cluster_status_parameters.go (about)

     1  //                           _       _
     2  // __      _____  __ ___   ___  __ _| |_ ___
     3  // \ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \
     4  //  \ V  V /  __/ (_| |\ V /| | (_| | ||  __/
     5  //   \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___|
     6  //
     7  //  Copyright © 2016 - 2024 Weaviate B.V. All rights reserved.
     8  //
     9  //  CONTACT: hello@weaviate.io
    10  //
    11  
    12  // Code generated by go-swagger; DO NOT EDIT.
    13  
    14  package schema
    15  
    16  // This file was generated by the swagger tool.
    17  // Editing this file might prove futile when you re-run the swagger generate command
    18  
    19  import (
    20  	"net/http"
    21  
    22  	"github.com/go-openapi/errors"
    23  	"github.com/go-openapi/runtime/middleware"
    24  )
    25  
    26  // NewSchemaClusterStatusParams creates a new SchemaClusterStatusParams object
    27  //
    28  // There are no default values defined in the spec.
    29  func NewSchemaClusterStatusParams() SchemaClusterStatusParams {
    30  
    31  	return SchemaClusterStatusParams{}
    32  }
    33  
    34  // SchemaClusterStatusParams contains all the bound params for the schema cluster status operation
    35  // typically these are obtained from a http.Request
    36  //
    37  // swagger:parameters schema.cluster.status
    38  type SchemaClusterStatusParams struct {
    39  
    40  	// HTTP Request Object
    41  	HTTPRequest *http.Request `json:"-"`
    42  }
    43  
    44  // BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface
    45  // for simple values it will use straight method calls.
    46  //
    47  // To ensure default values, the struct must have been initialized with NewSchemaClusterStatusParams() beforehand.
    48  func (o *SchemaClusterStatusParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error {
    49  	var res []error
    50  
    51  	o.HTTPRequest = r
    52  
    53  	if len(res) > 0 {
    54  		return errors.CompositeValidationError(res...)
    55  	}
    56  	return nil
    57  }