lib/api/auth0/auth0_models/new_user.go

112 lines
2.5 KiB
Go
Raw Permalink Normal View History

2021-01-08 17:40:28 +00:00
// Code generated by go-swagger; DO NOT EDIT.
2021-01-19 16:58:40 +00:00
// All Code Copyright(c) 2018-2021 by Taxnexus, Inc.
2021-01-08 17:40:28 +00:00
// 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 (
2021-02-09 16:56:57 +00:00
"context"
2021-01-08 17:40:28 +00:00
"github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// NewUser new user
//
// swagger:model NewUser
type NewUser struct {
// blocked
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Blocked bool `json:"blocked,omitempty"`
// connection
2021-02-09 16:56:57 +00:00
// Example: Initial-Connection
2021-01-08 17:40:28 +00:00
Connection string `json:"connection,omitempty"`
// email
2021-02-09 16:56:57 +00:00
// Example: john.doe@gmail.com
2021-01-08 17:40:28 +00:00
Email string `json:"email,omitempty"`
// email verified
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
EmailVerified bool `json:"email_verified,omitempty"`
// family name
2021-02-09 16:56:57 +00:00
// Example: Doe
2021-01-08 17:40:28 +00:00
FamilyName string `json:"family_name,omitempty"`
// given name
2021-02-09 16:56:57 +00:00
// Example: John
2021-01-08 17:40:28 +00:00
GivenName string `json:"given_name,omitempty"`
// name
2021-02-09 16:56:57 +00:00
// Example: John Doe
2021-01-08 17:40:28 +00:00
Name string `json:"name,omitempty"`
// nickname
2021-02-09 16:56:57 +00:00
// Example: Johnny
2021-01-08 17:40:28 +00:00
Nickname string `json:"nickname,omitempty"`
// password
2021-02-09 16:56:57 +00:00
// Example: secret
2021-01-08 17:40:28 +00:00
Password string `json:"password,omitempty"`
// phone number
2021-02-09 16:56:57 +00:00
// Example: +199999999999999
2021-01-08 17:40:28 +00:00
PhoneNumber string `json:"phone_number,omitempty"`
// phone verified
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
PhoneVerified bool `json:"phone_verified,omitempty"`
// picture
2021-02-09 16:56:57 +00:00
// Example: https://secure.gravatar.com/avatar/15626c5e0c749cb912f9d1ad48dba440?s=480\u0026r=pg\u0026d=https%3A%2F%2Fssl.gstatic.com%2Fs2%2Fprofiles%2Fimages%2Fsilhouette80.png
2021-01-08 17:40:28 +00:00
Picture string `json:"picture,omitempty"`
// user id
2021-02-09 16:56:57 +00:00
// Example: abc
2021-01-08 17:40:28 +00:00
UserID string `json:"user_id,omitempty"`
// username
2021-02-09 16:56:57 +00:00
// Example: johndoe
2021-01-08 17:40:28 +00:00
Username string `json:"username,omitempty"`
// verify email
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
VerifyEmail bool `json:"verify_email,omitempty"`
}
// Validate validates this new user
func (m *NewUser) Validate(formats strfmt.Registry) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this new user based on context it is used
func (m *NewUser) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
2021-01-08 17:40:28 +00:00
// 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
}