lib/api/auth0/auth0_models/new_user.go

112 lines
2.5 KiB
Go

// Code generated by go-swagger; DO NOT EDIT.
// All Code Copyright(c) 2018-2021 by Taxnexus, Inc.
// All rights reserved worldwide.
// Proprietary product; unlicensed use is not allowed
package auth0_models
// 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"
)
// NewUser new user
//
// swagger:model NewUser
type NewUser struct {
// blocked
// Example: false
Blocked bool `json:"blocked,omitempty"`
// connection
// Example: Initial-Connection
Connection string `json:"connection,omitempty"`
// email
// Example: john.doe@gmail.com
Email string `json:"email,omitempty"`
// email verified
// Example: false
EmailVerified bool `json:"email_verified,omitempty"`
// family name
// Example: Doe
FamilyName string `json:"family_name,omitempty"`
// given name
// Example: John
GivenName string `json:"given_name,omitempty"`
// name
// Example: John Doe
Name string `json:"name,omitempty"`
// nickname
// Example: Johnny
Nickname string `json:"nickname,omitempty"`
// password
// Example: secret
Password string `json:"password,omitempty"`
// phone number
// Example: +199999999999999
PhoneNumber string `json:"phone_number,omitempty"`
// phone verified
// Example: false
PhoneVerified bool `json:"phone_verified,omitempty"`
// picture
// Example: https://secure.gravatar.com/avatar/15626c5e0c749cb912f9d1ad48dba440?s=480\u0026r=pg\u0026d=https%3A%2F%2Fssl.gstatic.com%2Fs2%2Fprofiles%2Fimages%2Fsilhouette80.png
Picture string `json:"picture,omitempty"`
// user id
// Example: abc
UserID string `json:"user_id,omitempty"`
// username
// Example: johndoe
Username string `json:"username,omitempty"`
// verify email
// Example: false
VerifyEmail bool `json:"verify_email,omitempty"`
}
// Validate validates this new user
func (m *NewUser) Validate(formats strfmt.Registry) error {
return nil
}
// ContextValidate validates this new user based on context it is used
func (m *NewUser) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *NewUser) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *NewUser) UnmarshalBinary(b []byte) error {
var res NewUser
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}