2022-07-25 17:44:17 +02:00
|
|
|
// Code generated by go-swagger; DO NOT EDIT.
|
|
|
|
|
2022-07-26 21:16:02 +02:00
|
|
|
package rest_model_zrok
|
2022-07-25 17:44:17 +02:00
|
|
|
|
|
|
|
// This file was generated by the swagger tool.
|
|
|
|
// Editing this file might prove futile when you re-run the swagger generate command
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
|
|
|
"github.com/go-openapi/strfmt"
|
|
|
|
"github.com/go-openapi/swag"
|
|
|
|
)
|
|
|
|
|
2022-11-30 17:43:00 +01:00
|
|
|
// InviteRequest invite request
|
2022-07-25 17:44:17 +02:00
|
|
|
//
|
2022-11-30 17:43:00 +01:00
|
|
|
// swagger:model inviteRequest
|
|
|
|
type InviteRequest struct {
|
2022-07-25 17:44:17 +02:00
|
|
|
|
2022-09-09 16:20:05 +02:00
|
|
|
// email
|
|
|
|
Email string `json:"email,omitempty"`
|
2023-01-09 20:23:02 +01:00
|
|
|
|
|
|
|
// token
|
|
|
|
Token string `json:"token,omitempty"`
|
2022-07-25 17:44:17 +02:00
|
|
|
}
|
|
|
|
|
2022-11-30 17:43:00 +01:00
|
|
|
// Validate validates this invite request
|
|
|
|
func (m *InviteRequest) Validate(formats strfmt.Registry) error {
|
2022-07-25 17:44:17 +02:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2022-11-30 17:43:00 +01:00
|
|
|
// ContextValidate validates this invite request based on context it is used
|
|
|
|
func (m *InviteRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
2022-07-25 17:44:17 +02:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalBinary interface implementation
|
2022-11-30 17:43:00 +01:00
|
|
|
func (m *InviteRequest) MarshalBinary() ([]byte, error) {
|
2022-07-25 17:44:17 +02:00
|
|
|
if m == nil {
|
|
|
|
return nil, nil
|
|
|
|
}
|
|
|
|
return swag.WriteJSON(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalBinary interface implementation
|
2022-11-30 17:43:00 +01:00
|
|
|
func (m *InviteRequest) UnmarshalBinary(b []byte) error {
|
|
|
|
var res InviteRequest
|
2022-07-25 17:44:17 +02:00
|
|
|
if err := swag.ReadJSON(b, &res); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
*m = res
|
|
|
|
return nil
|
|
|
|
}
|