users_v4

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for users v4 API

func (*Client) PublicCreateUserV4

  PublicCreateUserV4 creates user

  Create a new user with unique email address and username.

		Required attributes:
		- authType: possible value is EMAILPASSWD
		- emailAddress
		- username: case insensitive, alphanumeric with allowed symbols underscore (_) and dot (.)
		- password: 8 to 32 characters, satisfy at least 3 out of 4 conditions(uppercase, lowercase letters, numbers and special characters) and should not have more than 2 equal characters in a row.
		- country: ISO3166-1 alpha-2 two letter, e.g. US.
		- dateOfBirth: YYYY-MM-DD, e.g. 1990-01-01. valid values are between 1905-01-01 until current date.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientService

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new users v4 API client.

type PublicCreateUserV4BadRequest

type PublicCreateUserV4BadRequest struct {
	Payload *iamclientmodels.RestErrorResponse
}

PublicCreateUserV4BadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20019</td><td>unable to parse request body</td></tr><tr><td>20002</td><td>validation error</td></tr><tr><td>10130</td><td>user under age</td></tr></table>

func NewPublicCreateUserV4BadRequest

func NewPublicCreateUserV4BadRequest() *PublicCreateUserV4BadRequest

NewPublicCreateUserV4BadRequest creates a PublicCreateUserV4BadRequest with default headers values

func (*PublicCreateUserV4BadRequest) Error

func (*PublicCreateUserV4BadRequest) GetPayload

type PublicCreateUserV4Conflict

type PublicCreateUserV4Conflict struct {
	Payload *iamclientmodels.RestErrorResponse
}

PublicCreateUserV4Conflict handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>10133</td><td>email already used</td></tr><tr><td>10177</td><td>username already used</td></tr></table>

func NewPublicCreateUserV4Conflict

func NewPublicCreateUserV4Conflict() *PublicCreateUserV4Conflict

NewPublicCreateUserV4Conflict creates a PublicCreateUserV4Conflict with default headers values

func (*PublicCreateUserV4Conflict) Error

func (*PublicCreateUserV4Conflict) GetPayload

type PublicCreateUserV4Created

type PublicCreateUserV4Created struct {
	Payload *iamclientmodels.AccountCreateUserResponseV4
}

PublicCreateUserV4Created handles this case with default header values.

Created

func NewPublicCreateUserV4Created

func NewPublicCreateUserV4Created() *PublicCreateUserV4Created

NewPublicCreateUserV4Created creates a PublicCreateUserV4Created with default headers values

func (*PublicCreateUserV4Created) Error

func (o *PublicCreateUserV4Created) Error() string

func (*PublicCreateUserV4Created) GetPayload

type PublicCreateUserV4InternalServerError

type PublicCreateUserV4InternalServerError struct {
	Payload *iamclientmodels.RestErrorResponse
}

PublicCreateUserV4InternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20000</td><td>internal server error</td></tr></table>

func NewPublicCreateUserV4InternalServerError

func NewPublicCreateUserV4InternalServerError() *PublicCreateUserV4InternalServerError

NewPublicCreateUserV4InternalServerError creates a PublicCreateUserV4InternalServerError with default headers values

func (*PublicCreateUserV4InternalServerError) Error

func (*PublicCreateUserV4InternalServerError) GetPayload

type PublicCreateUserV4NotFound

type PublicCreateUserV4NotFound struct {
	Payload *iamclientmodels.RestErrorResponse
}

PublicCreateUserV4NotFound handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>10154</td><td>country not found</td></tr></table>

func NewPublicCreateUserV4NotFound

func NewPublicCreateUserV4NotFound() *PublicCreateUserV4NotFound

NewPublicCreateUserV4NotFound creates a PublicCreateUserV4NotFound with default headers values

func (*PublicCreateUserV4NotFound) Error

func (*PublicCreateUserV4NotFound) GetPayload

type PublicCreateUserV4Params

type PublicCreateUserV4Params struct {

	/*Body*/
	Body *iamclientmodels.AccountCreateUserRequestV4
	/*Namespace
	  Namespace, only accept alphabet and numeric

	*/
	Namespace string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PublicCreateUserV4Params contains all the parameters to send to the API endpoint for the public create user v4 operation typically these are written to a http.Request

func NewPublicCreateUserV4Params

func NewPublicCreateUserV4Params() *PublicCreateUserV4Params

NewPublicCreateUserV4Params creates a new PublicCreateUserV4Params object with the default values initialized.

func NewPublicCreateUserV4ParamsWithContext

func NewPublicCreateUserV4ParamsWithContext(ctx context.Context) *PublicCreateUserV4Params

NewPublicCreateUserV4ParamsWithContext creates a new PublicCreateUserV4Params object with the default values initialized, and the ability to set a context for a request

func NewPublicCreateUserV4ParamsWithHTTPClient

func NewPublicCreateUserV4ParamsWithHTTPClient(client *http.Client) *PublicCreateUserV4Params

NewPublicCreateUserV4ParamsWithHTTPClient creates a new PublicCreateUserV4Params object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPublicCreateUserV4ParamsWithTimeout

func NewPublicCreateUserV4ParamsWithTimeout(timeout time.Duration) *PublicCreateUserV4Params

NewPublicCreateUserV4ParamsWithTimeout creates a new PublicCreateUserV4Params object with the default values initialized, and the ability to set a timeout on a request

func (*PublicCreateUserV4Params) SetBody

SetBody adds the body to the public create user v4 params

func (*PublicCreateUserV4Params) SetContext

func (o *PublicCreateUserV4Params) SetContext(ctx context.Context)

SetContext adds the context to the public create user v4 params

func (*PublicCreateUserV4Params) SetHTTPClient

func (o *PublicCreateUserV4Params) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the public create user v4 params

func (*PublicCreateUserV4Params) SetNamespace

func (o *PublicCreateUserV4Params) SetNamespace(namespace string)

SetNamespace adds the namespace to the public create user v4 params

func (*PublicCreateUserV4Params) SetTimeout

func (o *PublicCreateUserV4Params) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the public create user v4 params

func (*PublicCreateUserV4Params) WithBody

WithBody adds the body to the public create user v4 params

func (*PublicCreateUserV4Params) WithContext

WithContext adds the context to the public create user v4 params

func (*PublicCreateUserV4Params) WithHTTPClient

func (o *PublicCreateUserV4Params) WithHTTPClient(client *http.Client) *PublicCreateUserV4Params

WithHTTPClient adds the HTTPClient to the public create user v4 params

func (*PublicCreateUserV4Params) WithNamespace

func (o *PublicCreateUserV4Params) WithNamespace(namespace string) *PublicCreateUserV4Params

WithNamespace adds the namespace to the public create user v4 params

func (*PublicCreateUserV4Params) WithTimeout

WithTimeout adds the timeout to the public create user v4 params

func (*PublicCreateUserV4Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublicCreateUserV4Reader

type PublicCreateUserV4Reader struct {
	// contains filtered or unexported fields
}

PublicCreateUserV4Reader is a Reader for the PublicCreateUserV4 structure.

func (*PublicCreateUserV4Reader) ReadResponse

func (o *PublicCreateUserV4Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL