Documentation ¶
Index ¶
- type Client
- type ClientService
- type PublicCreateUserV4BadRequest
- type PublicCreateUserV4Conflict
- type PublicCreateUserV4Created
- type PublicCreateUserV4InternalServerError
- type PublicCreateUserV4NotFound
- type PublicCreateUserV4Params
- func NewPublicCreateUserV4Params() *PublicCreateUserV4Params
- func NewPublicCreateUserV4ParamsWithContext(ctx context.Context) *PublicCreateUserV4Params
- func NewPublicCreateUserV4ParamsWithHTTPClient(client *http.Client) *PublicCreateUserV4Params
- func NewPublicCreateUserV4ParamsWithTimeout(timeout time.Duration) *PublicCreateUserV4Params
- func (o *PublicCreateUserV4Params) SetBody(body *iamclientmodels.AccountCreateUserRequestV4)
- func (o *PublicCreateUserV4Params) SetContext(ctx context.Context)
- func (o *PublicCreateUserV4Params) SetHTTPClient(client *http.Client)
- func (o *PublicCreateUserV4Params) SetNamespace(namespace string)
- func (o *PublicCreateUserV4Params) SetTimeout(timeout time.Duration)
- func (o *PublicCreateUserV4Params) WithBody(body *iamclientmodels.AccountCreateUserRequestV4) *PublicCreateUserV4Params
- func (o *PublicCreateUserV4Params) WithContext(ctx context.Context) *PublicCreateUserV4Params
- func (o *PublicCreateUserV4Params) WithHTTPClient(client *http.Client) *PublicCreateUserV4Params
- func (o *PublicCreateUserV4Params) WithNamespace(namespace string) *PublicCreateUserV4Params
- func (o *PublicCreateUserV4Params) WithTimeout(timeout time.Duration) *PublicCreateUserV4Params
- func (o *PublicCreateUserV4Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PublicCreateUserV4Reader
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 ¶
func (a *Client) PublicCreateUserV4(params *PublicCreateUserV4Params, authInfo runtime.ClientAuthInfoWriter) (*PublicCreateUserV4Created, *PublicCreateUserV4BadRequest, *PublicCreateUserV4NotFound, *PublicCreateUserV4Conflict, *PublicCreateUserV4InternalServerError, error)
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 ¶
type ClientService interface { PublicCreateUserV4(params *PublicCreateUserV4Params, authInfo runtime.ClientAuthInfoWriter) (*PublicCreateUserV4Created, *PublicCreateUserV4BadRequest, *PublicCreateUserV4NotFound, *PublicCreateUserV4Conflict, *PublicCreateUserV4InternalServerError, error) SetTransport(transport runtime.ClientTransport) }
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 (o *PublicCreateUserV4BadRequest) Error() string
func (*PublicCreateUserV4BadRequest) GetPayload ¶
func (o *PublicCreateUserV4BadRequest) GetPayload() *iamclientmodels.RestErrorResponse
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 (o *PublicCreateUserV4Conflict) Error() string
func (*PublicCreateUserV4Conflict) GetPayload ¶
func (o *PublicCreateUserV4Conflict) GetPayload() *iamclientmodels.RestErrorResponse
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 ¶
func (o *PublicCreateUserV4Created) GetPayload() *iamclientmodels.AccountCreateUserResponseV4
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 (o *PublicCreateUserV4InternalServerError) Error() string
func (*PublicCreateUserV4InternalServerError) GetPayload ¶
func (o *PublicCreateUserV4InternalServerError) GetPayload() *iamclientmodels.RestErrorResponse
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 (o *PublicCreateUserV4NotFound) Error() string
func (*PublicCreateUserV4NotFound) GetPayload ¶
func (o *PublicCreateUserV4NotFound) GetPayload() *iamclientmodels.RestErrorResponse
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 ¶
func (o *PublicCreateUserV4Params) SetBody(body *iamclientmodels.AccountCreateUserRequestV4)
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 ¶
func (o *PublicCreateUserV4Params) WithBody(body *iamclientmodels.AccountCreateUserRequestV4) *PublicCreateUserV4Params
WithBody adds the body to the public create user v4 params
func (*PublicCreateUserV4Params) WithContext ¶
func (o *PublicCreateUserV4Params) WithContext(ctx context.Context) *PublicCreateUserV4Params
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 ¶
func (o *PublicCreateUserV4Params) WithTimeout(timeout time.Duration) *PublicCreateUserV4Params
WithTimeout adds the timeout to the public create user v4 params
func (*PublicCreateUserV4Params) WriteToRequest ¶
func (o *PublicCreateUserV4Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.