github.com/minio/console@v1.3.0/models/release_author.go (about)

     1  // Code generated by go-swagger; DO NOT EDIT.
     2  
     3  // This file is part of MinIO Console Server
     4  // Copyright (c) 2023 MinIO, Inc.
     5  //
     6  // This program is free software: you can redistribute it and/or modify
     7  // it under the terms of the GNU Affero General Public License as published by
     8  // the Free Software Foundation, either version 3 of the License, or
     9  // (at your option) any later version.
    10  //
    11  // This program is distributed in the hope that it will be useful,
    12  // but WITHOUT ANY WARRANTY; without even the implied warranty of
    13  // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    14  // GNU Affero General Public License for more details.
    15  //
    16  // You should have received a copy of the GNU Affero General Public License
    17  // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    18  //
    19  
    20  package models
    21  
    22  // This file was generated by the swagger tool.
    23  // Editing this file might prove futile when you re-run the swagger generate command
    24  
    25  import (
    26  	"context"
    27  
    28  	"github.com/go-openapi/strfmt"
    29  	"github.com/go-openapi/swag"
    30  )
    31  
    32  // ReleaseAuthor release author
    33  //
    34  // swagger:model releaseAuthor
    35  type ReleaseAuthor struct {
    36  
    37  	// avatar url
    38  	AvatarURL string `json:"avatar_url,omitempty"`
    39  
    40  	// events url
    41  	EventsURL string `json:"events_url,omitempty"`
    42  
    43  	// followers url
    44  	FollowersURL string `json:"followers_url,omitempty"`
    45  
    46  	// following url
    47  	FollowingURL string `json:"following_url,omitempty"`
    48  
    49  	// gists url
    50  	GistsURL string `json:"gists_url,omitempty"`
    51  
    52  	// gravatar id
    53  	GravatarID string `json:"gravatar_id,omitempty"`
    54  
    55  	// html url
    56  	HTMLURL string `json:"html_url,omitempty"`
    57  
    58  	// id
    59  	ID int64 `json:"id,omitempty"`
    60  
    61  	// login
    62  	Login string `json:"login,omitempty"`
    63  
    64  	// node id
    65  	NodeID string `json:"node_id,omitempty"`
    66  
    67  	// organizations url
    68  	OrganizationsURL string `json:"organizations_url,omitempty"`
    69  
    70  	// received events url
    71  	ReceivedEventsURL string `json:"receivedEvents_url,omitempty"`
    72  
    73  	// repos url
    74  	ReposURL string `json:"repos_url,omitempty"`
    75  
    76  	// site admin
    77  	SiteAdmin bool `json:"site_admin,omitempty"`
    78  
    79  	// starred url
    80  	StarredURL string `json:"starred_url,omitempty"`
    81  
    82  	// subscriptions url
    83  	SubscriptionsURL string `json:"subscriptions_url,omitempty"`
    84  
    85  	// type
    86  	Type string `json:"type,omitempty"`
    87  
    88  	// url
    89  	URL string `json:"url,omitempty"`
    90  }
    91  
    92  // Validate validates this release author
    93  func (m *ReleaseAuthor) Validate(formats strfmt.Registry) error {
    94  	return nil
    95  }
    96  
    97  // ContextValidate validates this release author based on context it is used
    98  func (m *ReleaseAuthor) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
    99  	return nil
   100  }
   101  
   102  // MarshalBinary interface implementation
   103  func (m *ReleaseAuthor) MarshalBinary() ([]byte, error) {
   104  	if m == nil {
   105  		return nil, nil
   106  	}
   107  	return swag.WriteJSON(m)
   108  }
   109  
   110  // UnmarshalBinary interface implementation
   111  func (m *ReleaseAuthor) UnmarshalBinary(b []byte) error {
   112  	var res ReleaseAuthor
   113  	if err := swag.ReadJSON(b, &res); err != nil {
   114  		return err
   115  	}
   116  	*m = res
   117  	return nil
   118  }