github.com/sap/cf-mta-plugin@v2.6.3+incompatible/clients/models/cloud_foundry_resource_metadata.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  // CloudFoundryResourceMetadata cloud foundry resource metadata
    16  // swagger:model CloudFoundryResource_metadata
    17  
    18  type CloudFoundryResourceMetadata struct {
    19  
    20  	// created at
    21  	CreatedAt string `json:"created_at,omitempty"`
    22  
    23  	// guid
    24  	GUID string `json:"guid,omitempty"`
    25  
    26  	// updated at
    27  	UpdatedAt string `json:"updated_at,omitempty"`
    28  
    29  	// url
    30  	URL string `json:"url,omitempty"`
    31  }
    32  
    33  /* polymorph CloudFoundryResource_metadata created_at false */
    34  
    35  /* polymorph CloudFoundryResource_metadata guid false */
    36  
    37  /* polymorph CloudFoundryResource_metadata updated_at false */
    38  
    39  /* polymorph CloudFoundryResource_metadata url false */
    40  
    41  // Validate validates this cloud foundry resource metadata
    42  func (m *CloudFoundryResourceMetadata) Validate(formats strfmt.Registry) error {
    43  	var res []error
    44  
    45  	if len(res) > 0 {
    46  		return errors.CompositeValidationError(res...)
    47  	}
    48  	return nil
    49  }
    50  
    51  // MarshalBinary interface implementation
    52  func (m *CloudFoundryResourceMetadata) MarshalBinary() ([]byte, error) {
    53  	if m == nil {
    54  		return nil, nil
    55  	}
    56  	return swag.WriteJSON(m)
    57  }
    58  
    59  // UnmarshalBinary interface implementation
    60  func (m *CloudFoundryResourceMetadata) UnmarshalBinary(b []byte) error {
    61  	var res CloudFoundryResourceMetadata
    62  	if err := swag.ReadJSON(b, &res); err != nil {
    63  		return err
    64  	}
    65  	*m = res
    66  	return nil
    67  }