...

Source file src/github.com/redhat-developer/odo/pkg/apiserver-gen/go/model_metadata_request.go

Documentation: github.com/redhat-developer/odo/pkg/apiserver-gen/go

     1  /*
     2   * odo dev
     3   *
     4   * API interface for 'odo dev'
     5   *
     6   * API version: 0.1
     7   * Generated by: OpenAPI Generator (https://openapi-generator.tech)
     8   */
     9  
    10  package openapi
    11  
    12  type MetadataRequest struct {
    13  	Name string `json:"name,omitempty"`
    14  
    15  	Version string `json:"version,omitempty"`
    16  
    17  	DisplayName string `json:"displayName,omitempty"`
    18  
    19  	Description string `json:"description,omitempty"`
    20  
    21  	Tags string `json:"tags,omitempty"`
    22  
    23  	Architectures string `json:"architectures,omitempty"`
    24  
    25  	Icon string `json:"icon,omitempty"`
    26  
    27  	GlobalMemoryLimit string `json:"globalMemoryLimit,omitempty"`
    28  
    29  	ProjectType string `json:"projectType,omitempty"`
    30  
    31  	Language string `json:"language,omitempty"`
    32  
    33  	Website string `json:"website,omitempty"`
    34  
    35  	Provider string `json:"provider,omitempty"`
    36  
    37  	SupportUrl string `json:"supportUrl,omitempty"`
    38  }
    39  
    40  // AssertMetadataRequestRequired checks if the required fields are not zero-ed
    41  func AssertMetadataRequestRequired(obj MetadataRequest) error {
    42  	return nil
    43  }
    44  
    45  // AssertRecurseMetadataRequestRequired recursively checks if required fields are not zero-ed in a nested slice.
    46  // Accepts only nested slice of MetadataRequest (e.g. [][]MetadataRequest), otherwise ErrTypeAssertionError is thrown.
    47  func AssertRecurseMetadataRequestRequired(objSlice interface{}) error {
    48  	return AssertRecurseInterfaceRequired(objSlice, func(obj interface{}) error {
    49  		aMetadataRequest, ok := obj.(MetadataRequest)
    50  		if !ok {
    51  			return ErrTypeAssertionError
    52  		}
    53  		return AssertMetadataRequestRequired(aMetadataRequest)
    54  	})
    55  }
    56  

View as plain text