github.com/sap/cf-mta-plugin@v2.6.3+incompatible/clients/models/cloud_foundry_response.go (about)

     1  // Code generated by go-swagger; DO NOT EDIT.
     2  
     3  package 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  	strfmt "github.com/go-openapi/strfmt"
    10  
    11  	"github.com/go-openapi/errors"
    12  	"github.com/go-openapi/swag"
    13  )
    14  
    15  // CloudFoundryResponse cloud foundry response
    16  // swagger:model CloudFoundryResponse
    17  
    18  type CloudFoundryResponse struct {
    19  
    20  	// next url
    21  	NextURL string `json:"next_url,omitempty"`
    22  
    23  	// prev url
    24  	PrevURL string `json:"prev_url,omitempty"`
    25  
    26  	// resources
    27  	Resources CloudFoundryResponseResources `json:"resources"`
    28  
    29  	// total pages
    30  	TotalPages int64 `json:"total_pages,omitempty"`
    31  
    32  	// total results
    33  	TotalResults int64 `json:"total_results,omitempty"`
    34  }
    35  
    36  /* polymorph CloudFoundryResponse next_url false */
    37  
    38  /* polymorph CloudFoundryResponse prev_url false */
    39  
    40  /* polymorph CloudFoundryResponse resources false */
    41  
    42  /* polymorph CloudFoundryResponse total_pages false */
    43  
    44  /* polymorph CloudFoundryResponse total_results false */
    45  
    46  // Validate validates this cloud foundry response
    47  func (m *CloudFoundryResponse) Validate(formats strfmt.Registry) error {
    48  	var res []error
    49  
    50  	if len(res) > 0 {
    51  		return errors.CompositeValidationError(res...)
    52  	}
    53  	return nil
    54  }
    55  
    56  // MarshalBinary interface implementation
    57  func (m *CloudFoundryResponse) MarshalBinary() ([]byte, error) {
    58  	if m == nil {
    59  		return nil, nil
    60  	}
    61  	return swag.WriteJSON(m)
    62  }
    63  
    64  // UnmarshalBinary interface implementation
    65  func (m *CloudFoundryResponse) UnmarshalBinary(b []byte) error {
    66  	var res CloudFoundryResponse
    67  	if err := swag.ReadJSON(b, &res); err != nil {
    68  		return err
    69  	}
    70  	*m = res
    71  	return nil
    72  }