misc

package
v0.0.0-...-f573b6e Latest Latest
Warning

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

Go to latest
Published: Jul 16, 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 AddCountryGroupBadRequest

type AddCountryGroupBadRequest struct {
	Payload *basicclientmodels.ErrorEntity
}

AddCountryGroupBadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr><tr><td>20019</td><td>unable to parse request body</td></tr><tr><td>11234</td><td>country belongs to more than one group</td></tr></table>

func NewAddCountryGroupBadRequest

func NewAddCountryGroupBadRequest() *AddCountryGroupBadRequest

NewAddCountryGroupBadRequest creates a AddCountryGroupBadRequest with default headers values

func (*AddCountryGroupBadRequest) Error

func (o *AddCountryGroupBadRequest) Error() string

func (*AddCountryGroupBadRequest) GetPayload

type AddCountryGroupConflict

type AddCountryGroupConflict struct {
	Payload *basicclientmodels.ErrorEntity
}

AddCountryGroupConflict handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>11235</td><td>country group already exist</td></tr></table>

func NewAddCountryGroupConflict

func NewAddCountryGroupConflict() *AddCountryGroupConflict

NewAddCountryGroupConflict creates a AddCountryGroupConflict with default headers values

func (*AddCountryGroupConflict) Error

func (o *AddCountryGroupConflict) Error() string

func (*AddCountryGroupConflict) GetPayload

type AddCountryGroupCreated

type AddCountryGroupCreated struct {
	Payload *basicclientmodels.AddCountryGroupResponse
}

AddCountryGroupCreated handles this case with default header values.

successful operation

func NewAddCountryGroupCreated

func NewAddCountryGroupCreated() *AddCountryGroupCreated

NewAddCountryGroupCreated creates a AddCountryGroupCreated with default headers values

func (*AddCountryGroupCreated) Error

func (o *AddCountryGroupCreated) Error() string

func (*AddCountryGroupCreated) GetPayload

type AddCountryGroupForbidden

type AddCountryGroupForbidden struct {
	Payload *basicclientmodels.ErrorEntity
}

AddCountryGroupForbidden handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20013</td><td>insufficient permission</td></tr></table>

func NewAddCountryGroupForbidden

func NewAddCountryGroupForbidden() *AddCountryGroupForbidden

NewAddCountryGroupForbidden creates a AddCountryGroupForbidden with default headers values

func (*AddCountryGroupForbidden) Error

func (o *AddCountryGroupForbidden) Error() string

func (*AddCountryGroupForbidden) GetPayload

type AddCountryGroupParams

type AddCountryGroupParams struct {

	/*Body*/
	Body *basicclientmodels.AddCountryGroupRequest
	/*Namespace
	  namespace, only accept alphabet and numeric

	*/
	Namespace string

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

AddCountryGroupParams contains all the parameters to send to the API endpoint for the add country group operation typically these are written to a http.Request

func NewAddCountryGroupParams

func NewAddCountryGroupParams() *AddCountryGroupParams

NewAddCountryGroupParams creates a new AddCountryGroupParams object with the default values initialized.

func NewAddCountryGroupParamsWithContext

func NewAddCountryGroupParamsWithContext(ctx context.Context) *AddCountryGroupParams

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

func NewAddCountryGroupParamsWithHTTPClient

func NewAddCountryGroupParamsWithHTTPClient(client *http.Client) *AddCountryGroupParams

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

func NewAddCountryGroupParamsWithTimeout

func NewAddCountryGroupParamsWithTimeout(timeout time.Duration) *AddCountryGroupParams

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

func (*AddCountryGroupParams) SetBody

SetBody adds the body to the add country group params

func (*AddCountryGroupParams) SetContext

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

SetContext adds the context to the add country group params

func (*AddCountryGroupParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the add country group params

func (*AddCountryGroupParams) SetNamespace

func (o *AddCountryGroupParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the add country group params

func (*AddCountryGroupParams) SetTimeout

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

SetTimeout adds the timeout to the add country group params

func (*AddCountryGroupParams) WithBody

WithBody adds the body to the add country group params

func (*AddCountryGroupParams) WithContext

WithContext adds the context to the add country group params

func (*AddCountryGroupParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the add country group params

func (*AddCountryGroupParams) WithNamespace

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

WithNamespace adds the namespace to the add country group params

func (*AddCountryGroupParams) WithTimeout

func (o *AddCountryGroupParams) WithTimeout(timeout time.Duration) *AddCountryGroupParams

WithTimeout adds the timeout to the add country group params

func (*AddCountryGroupParams) WriteToRequest

func (o *AddCountryGroupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type AddCountryGroupReader

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

AddCountryGroupReader is a Reader for the AddCountryGroup structure.

func (*AddCountryGroupReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AddCountryGroupUnauthorized

type AddCountryGroupUnauthorized struct {
	Payload *basicclientmodels.ErrorEntity
}

AddCountryGroupUnauthorized handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20001</td><td>unauthorized</td></tr></table>

func NewAddCountryGroupUnauthorized

func NewAddCountryGroupUnauthorized() *AddCountryGroupUnauthorized

NewAddCountryGroupUnauthorized creates a AddCountryGroupUnauthorized with default headers values

func (*AddCountryGroupUnauthorized) Error

func (*AddCountryGroupUnauthorized) GetPayload

type Client

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

Client for misc API

func (*Client) AddCountryGroup

AddCountryGroup adds a country group

Add a country groups<br>Country code must follow ISO3166-1 alpha-2.<br/>Other detail info: <ul><li><i>Required permission</i>: resource = <b>"ADMIN:NAMESPACE:{namespace}:MISC"</b>, action=1 <b>(CREATE)</b></li><li><i>Action code</i>: 11201</li><li><i>Returns</i>: newly created country group</li></ul>

func (*Client) DeleteCountryGroup

DeleteCountryGroup deletes a country group

Delete a country groups by its country group code. This endpoint usually used for testing purpose to cleanup test data.<br>Other detail info: <ul><li><i>Required permission</i>: resource = <b>"ADMIN:NAMESPACE:{namespace}:MISC"</b>, action=8 <b>(DELETE)</b></li></ul>

func (*Client) GetCountries

GetCountries lists countries

List countries.<br>Other detail info: <ul><li><i>Required permission</i>: login user</li><li><i>Action code</i>: 11204</li><li><i>Returns</i>: country code list</li></ul>

func (*Client) GetCountryGroups

GetCountryGroups lists country groups

List country groups. Will return all available country groups if the query param is not specified<br>Other detail info: <ul><li><i>Required permission</i>: resource = <b>"ADMIN:NAMESPACE:{namespace}:MISC"</b>, action=2 <b>(READ)</b></li><li><i>Action code</i>: 11203</li><li><i>Returns</i>: list of country groups</li></ul>

func (*Client) GetLanguages

GetLanguages lists languages

List languages.<br>Other detail info: <ul><li><i>Required permission</i>: login user</li><li><i>Action code</i>: 11206</li><li><i>Returns</i>: language list</li></ul>

func (*Client) GetTimeZones

GetTimeZones lists time zones

List time zones.<br>Other detail info: <ul><li><i>Required permission</i>: login user</li><li><i>Action code</i>: 11205</li><li><i>Returns</i>: time zones</li></ul>

func (*Client) PublicGetCountries

PublicGetCountries lists countries

List countries.<br>Other detail info: <ul><li><i>Returns</i>: country code list</li></ul>

func (*Client) PublicGetLanguages

PublicGetLanguages lists languages

List languages.<br>Other detail info: <ul><li><i>Returns</i>: language list</li></ul>

func (*Client) PublicGetTimeZones

PublicGetTimeZones lists time zones

List time zones.<br>Other detail info: <ul><li><i>Returns</i>: time zones</li></ul>

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateCountryGroup

UpdateCountryGroup updates a country group

Update a country groups. The countryGroupCode must be exist beforehand.<br>Valid update behaviour :<br/>- To update <i>countryGroupName</i> only, do not include <i>countries</i> key or just specify it with empty array.<br/>- To update <i>countries</i> only, do not include <i>countryGroupName</i> key or just specify it with blank value.<br/>Other detail info: <ul><li><i>Required permission</i>: resource = <b>"ADMIN:NAMESPACE:{namespace}:MISC"</b>, action=4 <b>(UPDATE)</b></li><li><i>Action code</i>: 11202</li><li><i>Returns</i>: updated country group</li></ul>

type ClientService

type ClientService interface {
	AddCountryGroup(params *AddCountryGroupParams, authInfo runtime.ClientAuthInfoWriter) (*AddCountryGroupCreated, *AddCountryGroupBadRequest, *AddCountryGroupUnauthorized, *AddCountryGroupForbidden, *AddCountryGroupConflict, error)

	DeleteCountryGroup(params *DeleteCountryGroupParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteCountryGroupBadRequest, *DeleteCountryGroupUnauthorized, *DeleteCountryGroupForbidden, *DeleteCountryGroupNotFound, error)

	GetCountries(params *GetCountriesParams, authInfo runtime.ClientAuthInfoWriter) (*GetCountriesOK, *GetCountriesBadRequest, *GetCountriesUnauthorized, error)

	GetCountryGroups(params *GetCountryGroupsParams, authInfo runtime.ClientAuthInfoWriter) (*GetCountryGroupsOK, *GetCountryGroupsBadRequest, *GetCountryGroupsUnauthorized, *GetCountryGroupsForbidden, *GetCountryGroupsNotFound, error)

	GetLanguages(params *GetLanguagesParams, authInfo runtime.ClientAuthInfoWriter) (*GetLanguagesOK, *GetLanguagesBadRequest, *GetLanguagesUnauthorized, error)

	GetTimeZones(params *GetTimeZonesParams, authInfo runtime.ClientAuthInfoWriter) (*GetTimeZonesOK, *GetTimeZonesBadRequest, *GetTimeZonesUnauthorized, error)

	PublicGetCountries(params *PublicGetCountriesParams) (*PublicGetCountriesOK, *PublicGetCountriesBadRequest, error)

	PublicGetLanguages(params *PublicGetLanguagesParams) (*PublicGetLanguagesOK, *PublicGetLanguagesBadRequest, error)

	PublicGetTimeZones(params *PublicGetTimeZonesParams) (*PublicGetTimeZonesOK, *PublicGetTimeZonesBadRequest, error)

	UpdateCountryGroup(params *UpdateCountryGroupParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateCountryGroupOK, *UpdateCountryGroupBadRequest, *UpdateCountryGroupUnauthorized, *UpdateCountryGroupForbidden, *UpdateCountryGroupNotFound, 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 misc API client.

type DeleteCountryGroupBadRequest

type DeleteCountryGroupBadRequest struct {
	Payload *basicclientmodels.ValidationErrorEntity
}

DeleteCountryGroupBadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr></table>

func NewDeleteCountryGroupBadRequest

func NewDeleteCountryGroupBadRequest() *DeleteCountryGroupBadRequest

NewDeleteCountryGroupBadRequest creates a DeleteCountryGroupBadRequest with default headers values

func (*DeleteCountryGroupBadRequest) Error

func (*DeleteCountryGroupBadRequest) GetPayload

type DeleteCountryGroupForbidden

type DeleteCountryGroupForbidden struct {
	Payload *basicclientmodels.ErrorEntity
}

DeleteCountryGroupForbidden handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20013</td><td>insufficient permission</td></tr></table>

func NewDeleteCountryGroupForbidden

func NewDeleteCountryGroupForbidden() *DeleteCountryGroupForbidden

NewDeleteCountryGroupForbidden creates a DeleteCountryGroupForbidden with default headers values

func (*DeleteCountryGroupForbidden) Error

func (*DeleteCountryGroupForbidden) GetPayload

type DeleteCountryGroupNotFound

type DeleteCountryGroupNotFound struct {
	Payload *basicclientmodels.ErrorEntity
}

DeleteCountryGroupNotFound handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>11233</td><td>country group not found</td></tr></table>

func NewDeleteCountryGroupNotFound

func NewDeleteCountryGroupNotFound() *DeleteCountryGroupNotFound

NewDeleteCountryGroupNotFound creates a DeleteCountryGroupNotFound with default headers values

func (*DeleteCountryGroupNotFound) Error

func (*DeleteCountryGroupNotFound) GetPayload

type DeleteCountryGroupParams

type DeleteCountryGroupParams struct {

	/*CountryGroupCode
	  groupCode, only accept alphabet and whitespace

	*/
	CountryGroupCode string
	/*Namespace
	  namespace, only accept alphabet and numeric

	*/
	Namespace string

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

DeleteCountryGroupParams contains all the parameters to send to the API endpoint for the delete country group operation typically these are written to a http.Request

func NewDeleteCountryGroupParams

func NewDeleteCountryGroupParams() *DeleteCountryGroupParams

NewDeleteCountryGroupParams creates a new DeleteCountryGroupParams object with the default values initialized.

func NewDeleteCountryGroupParamsWithContext

func NewDeleteCountryGroupParamsWithContext(ctx context.Context) *DeleteCountryGroupParams

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

func NewDeleteCountryGroupParamsWithHTTPClient

func NewDeleteCountryGroupParamsWithHTTPClient(client *http.Client) *DeleteCountryGroupParams

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

func NewDeleteCountryGroupParamsWithTimeout

func NewDeleteCountryGroupParamsWithTimeout(timeout time.Duration) *DeleteCountryGroupParams

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

func (*DeleteCountryGroupParams) SetContext

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

SetContext adds the context to the delete country group params

func (*DeleteCountryGroupParams) SetCountryGroupCode

func (o *DeleteCountryGroupParams) SetCountryGroupCode(countryGroupCode string)

SetCountryGroupCode adds the countryGroupCode to the delete country group params

func (*DeleteCountryGroupParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete country group params

func (*DeleteCountryGroupParams) SetNamespace

func (o *DeleteCountryGroupParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the delete country group params

func (*DeleteCountryGroupParams) SetTimeout

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

SetTimeout adds the timeout to the delete country group params

func (*DeleteCountryGroupParams) WithContext

WithContext adds the context to the delete country group params

func (*DeleteCountryGroupParams) WithCountryGroupCode

func (o *DeleteCountryGroupParams) WithCountryGroupCode(countryGroupCode string) *DeleteCountryGroupParams

WithCountryGroupCode adds the countryGroupCode to the delete country group params

func (*DeleteCountryGroupParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete country group params

func (*DeleteCountryGroupParams) WithNamespace

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

WithNamespace adds the namespace to the delete country group params

func (*DeleteCountryGroupParams) WithTimeout

WithTimeout adds the timeout to the delete country group params

func (*DeleteCountryGroupParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteCountryGroupReader

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

DeleteCountryGroupReader is a Reader for the DeleteCountryGroup structure.

func (*DeleteCountryGroupReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteCountryGroupUnauthorized

type DeleteCountryGroupUnauthorized struct {
	Payload *basicclientmodels.ErrorEntity
}

DeleteCountryGroupUnauthorized handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20001</td><td>unauthorized</td></tr></table>

func NewDeleteCountryGroupUnauthorized

func NewDeleteCountryGroupUnauthorized() *DeleteCountryGroupUnauthorized

NewDeleteCountryGroupUnauthorized creates a DeleteCountryGroupUnauthorized with default headers values

func (*DeleteCountryGroupUnauthorized) Error

func (*DeleteCountryGroupUnauthorized) GetPayload

type GetCountriesBadRequest

type GetCountriesBadRequest struct {
	Payload *basicclientmodels.ValidationErrorEntity
}

GetCountriesBadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr></table>

func NewGetCountriesBadRequest

func NewGetCountriesBadRequest() *GetCountriesBadRequest

NewGetCountriesBadRequest creates a GetCountriesBadRequest with default headers values

func (*GetCountriesBadRequest) Error

func (o *GetCountriesBadRequest) Error() string

func (*GetCountriesBadRequest) GetPayload

type GetCountriesOK

type GetCountriesOK struct {
	Payload []*basicclientmodels.CountryObject
}

GetCountriesOK handles this case with default header values.

successful operation

func NewGetCountriesOK

func NewGetCountriesOK() *GetCountriesOK

NewGetCountriesOK creates a GetCountriesOK with default headers values

func (*GetCountriesOK) Error

func (o *GetCountriesOK) Error() string

func (*GetCountriesOK) GetPayload

func (o *GetCountriesOK) GetPayload() []*basicclientmodels.CountryObject

type GetCountriesParams

type GetCountriesParams struct {

	/*Lang
	  language value from language tag, allowed format: en, en-US

	*/
	Lang *string
	/*Namespace
	  namespace, only accept alphabet and numeric

	*/
	Namespace string

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

GetCountriesParams contains all the parameters to send to the API endpoint for the get countries operation typically these are written to a http.Request

func NewGetCountriesParams

func NewGetCountriesParams() *GetCountriesParams

NewGetCountriesParams creates a new GetCountriesParams object with the default values initialized.

func NewGetCountriesParamsWithContext

func NewGetCountriesParamsWithContext(ctx context.Context) *GetCountriesParams

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

func NewGetCountriesParamsWithHTTPClient

func NewGetCountriesParamsWithHTTPClient(client *http.Client) *GetCountriesParams

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

func NewGetCountriesParamsWithTimeout

func NewGetCountriesParamsWithTimeout(timeout time.Duration) *GetCountriesParams

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

func (*GetCountriesParams) SetContext

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

SetContext adds the context to the get countries params

func (*GetCountriesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get countries params

func (*GetCountriesParams) SetLang

func (o *GetCountriesParams) SetLang(lang *string)

SetLang adds the lang to the get countries params

func (*GetCountriesParams) SetNamespace

func (o *GetCountriesParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get countries params

func (*GetCountriesParams) SetTimeout

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

SetTimeout adds the timeout to the get countries params

func (*GetCountriesParams) WithContext

WithContext adds the context to the get countries params

func (*GetCountriesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get countries params

func (*GetCountriesParams) WithLang

func (o *GetCountriesParams) WithLang(lang *string) *GetCountriesParams

WithLang adds the lang to the get countries params

func (*GetCountriesParams) WithNamespace

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

WithNamespace adds the namespace to the get countries params

func (*GetCountriesParams) WithTimeout

func (o *GetCountriesParams) WithTimeout(timeout time.Duration) *GetCountriesParams

WithTimeout adds the timeout to the get countries params

func (*GetCountriesParams) WriteToRequest

func (o *GetCountriesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetCountriesReader

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

GetCountriesReader is a Reader for the GetCountries structure.

func (*GetCountriesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetCountriesUnauthorized

type GetCountriesUnauthorized struct {
	Payload *basicclientmodels.ErrorEntity
}

GetCountriesUnauthorized handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20001</td><td>unauthorized</td></tr></table>

func NewGetCountriesUnauthorized

func NewGetCountriesUnauthorized() *GetCountriesUnauthorized

NewGetCountriesUnauthorized creates a GetCountriesUnauthorized with default headers values

func (*GetCountriesUnauthorized) Error

func (o *GetCountriesUnauthorized) Error() string

func (*GetCountriesUnauthorized) GetPayload

type GetCountryGroupsBadRequest

type GetCountryGroupsBadRequest struct {
	Payload *basicclientmodels.ValidationErrorEntity
}

GetCountryGroupsBadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr></table>

func NewGetCountryGroupsBadRequest

func NewGetCountryGroupsBadRequest() *GetCountryGroupsBadRequest

NewGetCountryGroupsBadRequest creates a GetCountryGroupsBadRequest with default headers values

func (*GetCountryGroupsBadRequest) Error

func (*GetCountryGroupsBadRequest) GetPayload

type GetCountryGroupsForbidden

type GetCountryGroupsForbidden struct {
	Payload *basicclientmodels.ErrorEntity
}

GetCountryGroupsForbidden handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20013</td><td>insufficient permission</td></tr></table>

func NewGetCountryGroupsForbidden

func NewGetCountryGroupsForbidden() *GetCountryGroupsForbidden

NewGetCountryGroupsForbidden creates a GetCountryGroupsForbidden with default headers values

func (*GetCountryGroupsForbidden) Error

func (o *GetCountryGroupsForbidden) Error() string

func (*GetCountryGroupsForbidden) GetPayload

type GetCountryGroupsNotFound

type GetCountryGroupsNotFound struct {
	Payload *basicclientmodels.ErrorEntity
}

GetCountryGroupsNotFound handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>11233</td><td>country group not found</td></tr></table>

func NewGetCountryGroupsNotFound

func NewGetCountryGroupsNotFound() *GetCountryGroupsNotFound

NewGetCountryGroupsNotFound creates a GetCountryGroupsNotFound with default headers values

func (*GetCountryGroupsNotFound) Error

func (o *GetCountryGroupsNotFound) Error() string

func (*GetCountryGroupsNotFound) GetPayload

type GetCountryGroupsOK

type GetCountryGroupsOK struct {
	Payload []*basicclientmodels.RetrieveCountryGroupResponse
}

GetCountryGroupsOK handles this case with default header values.

successful operation

func NewGetCountryGroupsOK

func NewGetCountryGroupsOK() *GetCountryGroupsOK

NewGetCountryGroupsOK creates a GetCountryGroupsOK with default headers values

func (*GetCountryGroupsOK) Error

func (o *GetCountryGroupsOK) Error() string

func (*GetCountryGroupsOK) GetPayload

type GetCountryGroupsParams

type GetCountryGroupsParams struct {

	/*GroupCode
	  groupCode, only accept alphabet and whitespace

	*/
	GroupCode *string
	/*Namespace
	  namespace, only accept alphabet and numeric

	*/
	Namespace string

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

GetCountryGroupsParams contains all the parameters to send to the API endpoint for the get country groups operation typically these are written to a http.Request

func NewGetCountryGroupsParams

func NewGetCountryGroupsParams() *GetCountryGroupsParams

NewGetCountryGroupsParams creates a new GetCountryGroupsParams object with the default values initialized.

func NewGetCountryGroupsParamsWithContext

func NewGetCountryGroupsParamsWithContext(ctx context.Context) *GetCountryGroupsParams

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

func NewGetCountryGroupsParamsWithHTTPClient

func NewGetCountryGroupsParamsWithHTTPClient(client *http.Client) *GetCountryGroupsParams

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

func NewGetCountryGroupsParamsWithTimeout

func NewGetCountryGroupsParamsWithTimeout(timeout time.Duration) *GetCountryGroupsParams

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

func (*GetCountryGroupsParams) SetContext

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

SetContext adds the context to the get country groups params

func (*GetCountryGroupsParams) SetGroupCode

func (o *GetCountryGroupsParams) SetGroupCode(groupCode *string)

SetGroupCode adds the groupCode to the get country groups params

func (*GetCountryGroupsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get country groups params

func (*GetCountryGroupsParams) SetNamespace

func (o *GetCountryGroupsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get country groups params

func (*GetCountryGroupsParams) SetTimeout

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

SetTimeout adds the timeout to the get country groups params

func (*GetCountryGroupsParams) WithContext

WithContext adds the context to the get country groups params

func (*GetCountryGroupsParams) WithGroupCode

func (o *GetCountryGroupsParams) WithGroupCode(groupCode *string) *GetCountryGroupsParams

WithGroupCode adds the groupCode to the get country groups params

func (*GetCountryGroupsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get country groups params

func (*GetCountryGroupsParams) WithNamespace

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

WithNamespace adds the namespace to the get country groups params

func (*GetCountryGroupsParams) WithTimeout

WithTimeout adds the timeout to the get country groups params

func (*GetCountryGroupsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetCountryGroupsReader

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

GetCountryGroupsReader is a Reader for the GetCountryGroups structure.

func (*GetCountryGroupsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetCountryGroupsUnauthorized

type GetCountryGroupsUnauthorized struct {
	Payload *basicclientmodels.ErrorEntity
}

GetCountryGroupsUnauthorized handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20001</td><td>unauthorized</td></tr></table>

func NewGetCountryGroupsUnauthorized

func NewGetCountryGroupsUnauthorized() *GetCountryGroupsUnauthorized

NewGetCountryGroupsUnauthorized creates a GetCountryGroupsUnauthorized with default headers values

func (*GetCountryGroupsUnauthorized) Error

func (*GetCountryGroupsUnauthorized) GetPayload

type GetLanguagesBadRequest

type GetLanguagesBadRequest struct {
	Payload *basicclientmodels.ValidationErrorEntity
}

GetLanguagesBadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr></table>

func NewGetLanguagesBadRequest

func NewGetLanguagesBadRequest() *GetLanguagesBadRequest

NewGetLanguagesBadRequest creates a GetLanguagesBadRequest with default headers values

func (*GetLanguagesBadRequest) Error

func (o *GetLanguagesBadRequest) Error() string

func (*GetLanguagesBadRequest) GetPayload

type GetLanguagesOK

type GetLanguagesOK struct {
	Payload map[string]interface{}
}

GetLanguagesOK handles this case with default header values.

successful operation

func NewGetLanguagesOK

func NewGetLanguagesOK() *GetLanguagesOK

NewGetLanguagesOK creates a GetLanguagesOK with default headers values

func (*GetLanguagesOK) Error

func (o *GetLanguagesOK) Error() string

func (*GetLanguagesOK) GetPayload

func (o *GetLanguagesOK) GetPayload() map[string]interface{}

type GetLanguagesParams

type GetLanguagesParams struct {

	/*Namespace
	  namespace, only accept alphabet and numeric

	*/
	Namespace string

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

GetLanguagesParams contains all the parameters to send to the API endpoint for the get languages operation typically these are written to a http.Request

func NewGetLanguagesParams

func NewGetLanguagesParams() *GetLanguagesParams

NewGetLanguagesParams creates a new GetLanguagesParams object with the default values initialized.

func NewGetLanguagesParamsWithContext

func NewGetLanguagesParamsWithContext(ctx context.Context) *GetLanguagesParams

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

func NewGetLanguagesParamsWithHTTPClient

func NewGetLanguagesParamsWithHTTPClient(client *http.Client) *GetLanguagesParams

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

func NewGetLanguagesParamsWithTimeout

func NewGetLanguagesParamsWithTimeout(timeout time.Duration) *GetLanguagesParams

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

func (*GetLanguagesParams) SetContext

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

SetContext adds the context to the get languages params

func (*GetLanguagesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get languages params

func (*GetLanguagesParams) SetNamespace

func (o *GetLanguagesParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get languages params

func (*GetLanguagesParams) SetTimeout

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

SetTimeout adds the timeout to the get languages params

func (*GetLanguagesParams) WithContext

WithContext adds the context to the get languages params

func (*GetLanguagesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get languages params

func (*GetLanguagesParams) WithNamespace

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

WithNamespace adds the namespace to the get languages params

func (*GetLanguagesParams) WithTimeout

func (o *GetLanguagesParams) WithTimeout(timeout time.Duration) *GetLanguagesParams

WithTimeout adds the timeout to the get languages params

func (*GetLanguagesParams) WriteToRequest

func (o *GetLanguagesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetLanguagesReader

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

GetLanguagesReader is a Reader for the GetLanguages structure.

func (*GetLanguagesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetLanguagesUnauthorized

type GetLanguagesUnauthorized struct {
	Payload *basicclientmodels.ErrorEntity
}

GetLanguagesUnauthorized handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20001</td><td>unauthorized</td></tr></table>

func NewGetLanguagesUnauthorized

func NewGetLanguagesUnauthorized() *GetLanguagesUnauthorized

NewGetLanguagesUnauthorized creates a GetLanguagesUnauthorized with default headers values

func (*GetLanguagesUnauthorized) Error

func (o *GetLanguagesUnauthorized) Error() string

func (*GetLanguagesUnauthorized) GetPayload

type GetTimeZonesBadRequest

type GetTimeZonesBadRequest struct {
	Payload *basicclientmodels.ValidationErrorEntity
}

GetTimeZonesBadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr></table>

func NewGetTimeZonesBadRequest

func NewGetTimeZonesBadRequest() *GetTimeZonesBadRequest

NewGetTimeZonesBadRequest creates a GetTimeZonesBadRequest with default headers values

func (*GetTimeZonesBadRequest) Error

func (o *GetTimeZonesBadRequest) Error() string

func (*GetTimeZonesBadRequest) GetPayload

type GetTimeZonesOK

type GetTimeZonesOK struct {
	Payload []string
}

GetTimeZonesOK handles this case with default header values.

successful operation

func NewGetTimeZonesOK

func NewGetTimeZonesOK() *GetTimeZonesOK

NewGetTimeZonesOK creates a GetTimeZonesOK with default headers values

func (*GetTimeZonesOK) Error

func (o *GetTimeZonesOK) Error() string

func (*GetTimeZonesOK) GetPayload

func (o *GetTimeZonesOK) GetPayload() []string

type GetTimeZonesParams

type GetTimeZonesParams struct {

	/*Namespace
	  namespace, only accept alphabet and numeric

	*/
	Namespace string

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

GetTimeZonesParams contains all the parameters to send to the API endpoint for the get time zones operation typically these are written to a http.Request

func NewGetTimeZonesParams

func NewGetTimeZonesParams() *GetTimeZonesParams

NewGetTimeZonesParams creates a new GetTimeZonesParams object with the default values initialized.

func NewGetTimeZonesParamsWithContext

func NewGetTimeZonesParamsWithContext(ctx context.Context) *GetTimeZonesParams

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

func NewGetTimeZonesParamsWithHTTPClient

func NewGetTimeZonesParamsWithHTTPClient(client *http.Client) *GetTimeZonesParams

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

func NewGetTimeZonesParamsWithTimeout

func NewGetTimeZonesParamsWithTimeout(timeout time.Duration) *GetTimeZonesParams

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

func (*GetTimeZonesParams) SetContext

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

SetContext adds the context to the get time zones params

func (*GetTimeZonesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get time zones params

func (*GetTimeZonesParams) SetNamespace

func (o *GetTimeZonesParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get time zones params

func (*GetTimeZonesParams) SetTimeout

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

SetTimeout adds the timeout to the get time zones params

func (*GetTimeZonesParams) WithContext

WithContext adds the context to the get time zones params

func (*GetTimeZonesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get time zones params

func (*GetTimeZonesParams) WithNamespace

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

WithNamespace adds the namespace to the get time zones params

func (*GetTimeZonesParams) WithTimeout

func (o *GetTimeZonesParams) WithTimeout(timeout time.Duration) *GetTimeZonesParams

WithTimeout adds the timeout to the get time zones params

func (*GetTimeZonesParams) WriteToRequest

func (o *GetTimeZonesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetTimeZonesReader

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

GetTimeZonesReader is a Reader for the GetTimeZones structure.

func (*GetTimeZonesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTimeZonesUnauthorized

type GetTimeZonesUnauthorized struct {
	Payload *basicclientmodels.ErrorEntity
}

GetTimeZonesUnauthorized handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20001</td><td>unauthorized</td></tr></table>

func NewGetTimeZonesUnauthorized

func NewGetTimeZonesUnauthorized() *GetTimeZonesUnauthorized

NewGetTimeZonesUnauthorized creates a GetTimeZonesUnauthorized with default headers values

func (*GetTimeZonesUnauthorized) Error

func (o *GetTimeZonesUnauthorized) Error() string

func (*GetTimeZonesUnauthorized) GetPayload

type PublicGetCountriesBadRequest

type PublicGetCountriesBadRequest struct {
	Payload *basicclientmodels.ValidationErrorEntity
}

PublicGetCountriesBadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr></table>

func NewPublicGetCountriesBadRequest

func NewPublicGetCountriesBadRequest() *PublicGetCountriesBadRequest

NewPublicGetCountriesBadRequest creates a PublicGetCountriesBadRequest with default headers values

func (*PublicGetCountriesBadRequest) Error

func (*PublicGetCountriesBadRequest) GetPayload

type PublicGetCountriesOK

type PublicGetCountriesOK struct {
	Payload []*basicclientmodels.CountryObject
}

PublicGetCountriesOK handles this case with default header values.

successful operation

func NewPublicGetCountriesOK

func NewPublicGetCountriesOK() *PublicGetCountriesOK

NewPublicGetCountriesOK creates a PublicGetCountriesOK with default headers values

func (*PublicGetCountriesOK) Error

func (o *PublicGetCountriesOK) Error() string

func (*PublicGetCountriesOK) GetPayload

type PublicGetCountriesParams

type PublicGetCountriesParams struct {

	/*Lang
	  language value from language tag, allowed format: en, en-US

	*/
	Lang *string
	/*Namespace
	  namespace, only accept alphabet and numeric

	*/
	Namespace string

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

PublicGetCountriesParams contains all the parameters to send to the API endpoint for the public get countries operation typically these are written to a http.Request

func NewPublicGetCountriesParams

func NewPublicGetCountriesParams() *PublicGetCountriesParams

NewPublicGetCountriesParams creates a new PublicGetCountriesParams object with the default values initialized.

func NewPublicGetCountriesParamsWithContext

func NewPublicGetCountriesParamsWithContext(ctx context.Context) *PublicGetCountriesParams

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

func NewPublicGetCountriesParamsWithHTTPClient

func NewPublicGetCountriesParamsWithHTTPClient(client *http.Client) *PublicGetCountriesParams

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

func NewPublicGetCountriesParamsWithTimeout

func NewPublicGetCountriesParamsWithTimeout(timeout time.Duration) *PublicGetCountriesParams

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

func (*PublicGetCountriesParams) SetContext

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

SetContext adds the context to the public get countries params

func (*PublicGetCountriesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public get countries params

func (*PublicGetCountriesParams) SetLang

func (o *PublicGetCountriesParams) SetLang(lang *string)

SetLang adds the lang to the public get countries params

func (*PublicGetCountriesParams) SetNamespace

func (o *PublicGetCountriesParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the public get countries params

func (*PublicGetCountriesParams) SetTimeout

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

SetTimeout adds the timeout to the public get countries params

func (*PublicGetCountriesParams) WithContext

WithContext adds the context to the public get countries params

func (*PublicGetCountriesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the public get countries params

func (*PublicGetCountriesParams) WithLang

WithLang adds the lang to the public get countries params

func (*PublicGetCountriesParams) WithNamespace

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

WithNamespace adds the namespace to the public get countries params

func (*PublicGetCountriesParams) WithTimeout

WithTimeout adds the timeout to the public get countries params

func (*PublicGetCountriesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublicGetCountriesReader

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

PublicGetCountriesReader is a Reader for the PublicGetCountries structure.

func (*PublicGetCountriesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PublicGetLanguagesBadRequest

type PublicGetLanguagesBadRequest struct {
	Payload *basicclientmodels.ValidationErrorEntity
}

PublicGetLanguagesBadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr></table>

func NewPublicGetLanguagesBadRequest

func NewPublicGetLanguagesBadRequest() *PublicGetLanguagesBadRequest

NewPublicGetLanguagesBadRequest creates a PublicGetLanguagesBadRequest with default headers values

func (*PublicGetLanguagesBadRequest) Error

func (*PublicGetLanguagesBadRequest) GetPayload

type PublicGetLanguagesOK

type PublicGetLanguagesOK struct {
	Payload map[string]interface{}
}

PublicGetLanguagesOK handles this case with default header values.

successful operation

func NewPublicGetLanguagesOK

func NewPublicGetLanguagesOK() *PublicGetLanguagesOK

NewPublicGetLanguagesOK creates a PublicGetLanguagesOK with default headers values

func (*PublicGetLanguagesOK) Error

func (o *PublicGetLanguagesOK) Error() string

func (*PublicGetLanguagesOK) GetPayload

func (o *PublicGetLanguagesOK) GetPayload() map[string]interface{}

type PublicGetLanguagesParams

type PublicGetLanguagesParams struct {

	/*Namespace
	  namespace, only accept alphabet and numeric

	*/
	Namespace string

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

PublicGetLanguagesParams contains all the parameters to send to the API endpoint for the public get languages operation typically these are written to a http.Request

func NewPublicGetLanguagesParams

func NewPublicGetLanguagesParams() *PublicGetLanguagesParams

NewPublicGetLanguagesParams creates a new PublicGetLanguagesParams object with the default values initialized.

func NewPublicGetLanguagesParamsWithContext

func NewPublicGetLanguagesParamsWithContext(ctx context.Context) *PublicGetLanguagesParams

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

func NewPublicGetLanguagesParamsWithHTTPClient

func NewPublicGetLanguagesParamsWithHTTPClient(client *http.Client) *PublicGetLanguagesParams

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

func NewPublicGetLanguagesParamsWithTimeout

func NewPublicGetLanguagesParamsWithTimeout(timeout time.Duration) *PublicGetLanguagesParams

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

func (*PublicGetLanguagesParams) SetContext

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

SetContext adds the context to the public get languages params

func (*PublicGetLanguagesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public get languages params

func (*PublicGetLanguagesParams) SetNamespace

func (o *PublicGetLanguagesParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the public get languages params

func (*PublicGetLanguagesParams) SetTimeout

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

SetTimeout adds the timeout to the public get languages params

func (*PublicGetLanguagesParams) WithContext

WithContext adds the context to the public get languages params

func (*PublicGetLanguagesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the public get languages params

func (*PublicGetLanguagesParams) WithNamespace

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

WithNamespace adds the namespace to the public get languages params

func (*PublicGetLanguagesParams) WithTimeout

WithTimeout adds the timeout to the public get languages params

func (*PublicGetLanguagesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublicGetLanguagesReader

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

PublicGetLanguagesReader is a Reader for the PublicGetLanguages structure.

func (*PublicGetLanguagesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PublicGetTimeZonesBadRequest

type PublicGetTimeZonesBadRequest struct {
	Payload *basicclientmodels.ValidationErrorEntity
}

PublicGetTimeZonesBadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr></table>

func NewPublicGetTimeZonesBadRequest

func NewPublicGetTimeZonesBadRequest() *PublicGetTimeZonesBadRequest

NewPublicGetTimeZonesBadRequest creates a PublicGetTimeZonesBadRequest with default headers values

func (*PublicGetTimeZonesBadRequest) Error

func (*PublicGetTimeZonesBadRequest) GetPayload

type PublicGetTimeZonesOK

type PublicGetTimeZonesOK struct {
	Payload []string
}

PublicGetTimeZonesOK handles this case with default header values.

successful operation

func NewPublicGetTimeZonesOK

func NewPublicGetTimeZonesOK() *PublicGetTimeZonesOK

NewPublicGetTimeZonesOK creates a PublicGetTimeZonesOK with default headers values

func (*PublicGetTimeZonesOK) Error

func (o *PublicGetTimeZonesOK) Error() string

func (*PublicGetTimeZonesOK) GetPayload

func (o *PublicGetTimeZonesOK) GetPayload() []string

type PublicGetTimeZonesParams

type PublicGetTimeZonesParams struct {

	/*Namespace
	  namespace, only accept alphabet and numeric

	*/
	Namespace string

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

PublicGetTimeZonesParams contains all the parameters to send to the API endpoint for the public get time zones operation typically these are written to a http.Request

func NewPublicGetTimeZonesParams

func NewPublicGetTimeZonesParams() *PublicGetTimeZonesParams

NewPublicGetTimeZonesParams creates a new PublicGetTimeZonesParams object with the default values initialized.

func NewPublicGetTimeZonesParamsWithContext

func NewPublicGetTimeZonesParamsWithContext(ctx context.Context) *PublicGetTimeZonesParams

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

func NewPublicGetTimeZonesParamsWithHTTPClient

func NewPublicGetTimeZonesParamsWithHTTPClient(client *http.Client) *PublicGetTimeZonesParams

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

func NewPublicGetTimeZonesParamsWithTimeout

func NewPublicGetTimeZonesParamsWithTimeout(timeout time.Duration) *PublicGetTimeZonesParams

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

func (*PublicGetTimeZonesParams) SetContext

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

SetContext adds the context to the public get time zones params

func (*PublicGetTimeZonesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public get time zones params

func (*PublicGetTimeZonesParams) SetNamespace

func (o *PublicGetTimeZonesParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the public get time zones params

func (*PublicGetTimeZonesParams) SetTimeout

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

SetTimeout adds the timeout to the public get time zones params

func (*PublicGetTimeZonesParams) WithContext

WithContext adds the context to the public get time zones params

func (*PublicGetTimeZonesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the public get time zones params

func (*PublicGetTimeZonesParams) WithNamespace

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

WithNamespace adds the namespace to the public get time zones params

func (*PublicGetTimeZonesParams) WithTimeout

WithTimeout adds the timeout to the public get time zones params

func (*PublicGetTimeZonesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublicGetTimeZonesReader

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

PublicGetTimeZonesReader is a Reader for the PublicGetTimeZones structure.

func (*PublicGetTimeZonesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateCountryGroupBadRequest

type UpdateCountryGroupBadRequest struct {
	Payload *basicclientmodels.ValidationErrorEntity
}

UpdateCountryGroupBadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr><tr><td>20019</td><td>unable to parse request body</td></tr><tr><td>11234</td><td>country belongs to more than one group</td></tr></table>

func NewUpdateCountryGroupBadRequest

func NewUpdateCountryGroupBadRequest() *UpdateCountryGroupBadRequest

NewUpdateCountryGroupBadRequest creates a UpdateCountryGroupBadRequest with default headers values

func (*UpdateCountryGroupBadRequest) Error

func (*UpdateCountryGroupBadRequest) GetPayload

type UpdateCountryGroupForbidden

type UpdateCountryGroupForbidden struct {
	Payload *basicclientmodels.ErrorEntity
}

UpdateCountryGroupForbidden handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20013</td><td>insufficient permission</td></tr></table>

func NewUpdateCountryGroupForbidden

func NewUpdateCountryGroupForbidden() *UpdateCountryGroupForbidden

NewUpdateCountryGroupForbidden creates a UpdateCountryGroupForbidden with default headers values

func (*UpdateCountryGroupForbidden) Error

func (*UpdateCountryGroupForbidden) GetPayload

type UpdateCountryGroupNotFound

type UpdateCountryGroupNotFound struct {
	Payload *basicclientmodels.ErrorEntity
}

UpdateCountryGroupNotFound handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>11233</td><td>country group not found</td></tr></table>

func NewUpdateCountryGroupNotFound

func NewUpdateCountryGroupNotFound() *UpdateCountryGroupNotFound

NewUpdateCountryGroupNotFound creates a UpdateCountryGroupNotFound with default headers values

func (*UpdateCountryGroupNotFound) Error

func (*UpdateCountryGroupNotFound) GetPayload

type UpdateCountryGroupOK

type UpdateCountryGroupOK struct {
	Payload *basicclientmodels.CountryGroupObject
}

UpdateCountryGroupOK handles this case with default header values.

successful operation

func NewUpdateCountryGroupOK

func NewUpdateCountryGroupOK() *UpdateCountryGroupOK

NewUpdateCountryGroupOK creates a UpdateCountryGroupOK with default headers values

func (*UpdateCountryGroupOK) Error

func (o *UpdateCountryGroupOK) Error() string

func (*UpdateCountryGroupOK) GetPayload

type UpdateCountryGroupParams

type UpdateCountryGroupParams struct {

	/*Body*/
	Body *basicclientmodels.UpdateCountryGroupRequest
	/*CountryGroupCode
	  groupCode, only accept alphabet and whitespace

	*/
	CountryGroupCode string
	/*Namespace
	  namespace, only accept alphabet and numeric

	*/
	Namespace string

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

UpdateCountryGroupParams contains all the parameters to send to the API endpoint for the update country group operation typically these are written to a http.Request

func NewUpdateCountryGroupParams

func NewUpdateCountryGroupParams() *UpdateCountryGroupParams

NewUpdateCountryGroupParams creates a new UpdateCountryGroupParams object with the default values initialized.

func NewUpdateCountryGroupParamsWithContext

func NewUpdateCountryGroupParamsWithContext(ctx context.Context) *UpdateCountryGroupParams

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

func NewUpdateCountryGroupParamsWithHTTPClient

func NewUpdateCountryGroupParamsWithHTTPClient(client *http.Client) *UpdateCountryGroupParams

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

func NewUpdateCountryGroupParamsWithTimeout

func NewUpdateCountryGroupParamsWithTimeout(timeout time.Duration) *UpdateCountryGroupParams

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

func (*UpdateCountryGroupParams) SetBody

SetBody adds the body to the update country group params

func (*UpdateCountryGroupParams) SetContext

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

SetContext adds the context to the update country group params

func (*UpdateCountryGroupParams) SetCountryGroupCode

func (o *UpdateCountryGroupParams) SetCountryGroupCode(countryGroupCode string)

SetCountryGroupCode adds the countryGroupCode to the update country group params

func (*UpdateCountryGroupParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update country group params

func (*UpdateCountryGroupParams) SetNamespace

func (o *UpdateCountryGroupParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the update country group params

func (*UpdateCountryGroupParams) SetTimeout

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

SetTimeout adds the timeout to the update country group params

func (*UpdateCountryGroupParams) WithBody

WithBody adds the body to the update country group params

func (*UpdateCountryGroupParams) WithContext

WithContext adds the context to the update country group params

func (*UpdateCountryGroupParams) WithCountryGroupCode

func (o *UpdateCountryGroupParams) WithCountryGroupCode(countryGroupCode string) *UpdateCountryGroupParams

WithCountryGroupCode adds the countryGroupCode to the update country group params

func (*UpdateCountryGroupParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update country group params

func (*UpdateCountryGroupParams) WithNamespace

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

WithNamespace adds the namespace to the update country group params

func (*UpdateCountryGroupParams) WithTimeout

WithTimeout adds the timeout to the update country group params

func (*UpdateCountryGroupParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateCountryGroupReader

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

UpdateCountryGroupReader is a Reader for the UpdateCountryGroup structure.

func (*UpdateCountryGroupReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateCountryGroupUnauthorized

type UpdateCountryGroupUnauthorized struct {
	Payload *basicclientmodels.ErrorEntity
}

UpdateCountryGroupUnauthorized handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20001</td><td>unauthorized</td></tr></table>

func NewUpdateCountryGroupUnauthorized

func NewUpdateCountryGroupUnauthorized() *UpdateCountryGroupUnauthorized

NewUpdateCountryGroupUnauthorized creates a UpdateCountryGroupUnauthorized with default headers values

func (*UpdateCountryGroupUnauthorized) Error

func (*UpdateCountryGroupUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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