country

package
v0.74.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminAddCountryBlacklistV3BadRequest

type AdminAddCountryBlacklistV3BadRequest struct {
	Payload *iamclientmodels.RestErrorResponse
}

AdminAddCountryBlacklistV3BadRequest 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 NewAdminAddCountryBlacklistV3BadRequest

func NewAdminAddCountryBlacklistV3BadRequest() *AdminAddCountryBlacklistV3BadRequest

NewAdminAddCountryBlacklistV3BadRequest creates a AdminAddCountryBlacklistV3BadRequest with default headers values

func (*AdminAddCountryBlacklistV3BadRequest) Error

func (*AdminAddCountryBlacklistV3BadRequest) GetPayload

func (*AdminAddCountryBlacklistV3BadRequest) ToJSONString

func (o *AdminAddCountryBlacklistV3BadRequest) ToJSONString() string

type AdminAddCountryBlacklistV3Forbidden

type AdminAddCountryBlacklistV3Forbidden struct {
	Payload *iamclientmodels.RestErrorResponse
}

AdminAddCountryBlacklistV3Forbidden handles this case with default header values.

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

func NewAdminAddCountryBlacklistV3Forbidden

func NewAdminAddCountryBlacklistV3Forbidden() *AdminAddCountryBlacklistV3Forbidden

NewAdminAddCountryBlacklistV3Forbidden creates a AdminAddCountryBlacklistV3Forbidden with default headers values

func (*AdminAddCountryBlacklistV3Forbidden) Error

func (*AdminAddCountryBlacklistV3Forbidden) GetPayload

func (*AdminAddCountryBlacklistV3Forbidden) ToJSONString

func (o *AdminAddCountryBlacklistV3Forbidden) ToJSONString() string

type AdminAddCountryBlacklistV3InternalServerError

type AdminAddCountryBlacklistV3InternalServerError struct {
	Payload *iamclientmodels.RestErrorResponse
}

AdminAddCountryBlacklistV3InternalServerError 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 NewAdminAddCountryBlacklistV3InternalServerError

func NewAdminAddCountryBlacklistV3InternalServerError() *AdminAddCountryBlacklistV3InternalServerError

NewAdminAddCountryBlacklistV3InternalServerError creates a AdminAddCountryBlacklistV3InternalServerError with default headers values

func (*AdminAddCountryBlacklistV3InternalServerError) Error

func (*AdminAddCountryBlacklistV3InternalServerError) GetPayload

func (*AdminAddCountryBlacklistV3InternalServerError) ToJSONString

type AdminAddCountryBlacklistV3NoContent

type AdminAddCountryBlacklistV3NoContent struct {
}

AdminAddCountryBlacklistV3NoContent handles this case with default header values.

No Content

func NewAdminAddCountryBlacklistV3NoContent

func NewAdminAddCountryBlacklistV3NoContent() *AdminAddCountryBlacklistV3NoContent

NewAdminAddCountryBlacklistV3NoContent creates a AdminAddCountryBlacklistV3NoContent with default headers values

func (*AdminAddCountryBlacklistV3NoContent) Error

type AdminAddCountryBlacklistV3Params

type AdminAddCountryBlacklistV3Params struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *iamclientmodels.ModelCountryBlacklistRequest
	/*Namespace
	  Namespace, only accept alphabet and numeric

	*/
	Namespace string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

AdminAddCountryBlacklistV3Params contains all the parameters to send to the API endpoint for the admin add country blacklist v3 operation typically these are written to a http.Request

func NewAdminAddCountryBlacklistV3Params

func NewAdminAddCountryBlacklistV3Params() *AdminAddCountryBlacklistV3Params

NewAdminAddCountryBlacklistV3Params creates a new AdminAddCountryBlacklistV3Params object with the default values initialized.

func NewAdminAddCountryBlacklistV3ParamsWithContext

func NewAdminAddCountryBlacklistV3ParamsWithContext(ctx context.Context) *AdminAddCountryBlacklistV3Params

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

func NewAdminAddCountryBlacklistV3ParamsWithHTTPClient

func NewAdminAddCountryBlacklistV3ParamsWithHTTPClient(client *http.Client) *AdminAddCountryBlacklistV3Params

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

func NewAdminAddCountryBlacklistV3ParamsWithTimeout

func NewAdminAddCountryBlacklistV3ParamsWithTimeout(timeout time.Duration) *AdminAddCountryBlacklistV3Params

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

func (*AdminAddCountryBlacklistV3Params) SetAuthInfoWriter

func (o *AdminAddCountryBlacklistV3Params) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the admin add country blacklist v3 params

func (*AdminAddCountryBlacklistV3Params) SetBody

SetBody adds the body to the admin add country blacklist v3 params

func (*AdminAddCountryBlacklistV3Params) SetContext

SetContext adds the context to the admin add country blacklist v3 params

func (*AdminAddCountryBlacklistV3Params) SetFlightId added in v0.63.0

func (o *AdminAddCountryBlacklistV3Params) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*AdminAddCountryBlacklistV3Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the admin add country blacklist v3 params

func (*AdminAddCountryBlacklistV3Params) SetHTTPClientTransport

func (o *AdminAddCountryBlacklistV3Params) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the admin add country blacklist v3 params

func (*AdminAddCountryBlacklistV3Params) SetNamespace

func (o *AdminAddCountryBlacklistV3Params) SetNamespace(namespace string)

SetNamespace adds the namespace to the admin add country blacklist v3 params

func (*AdminAddCountryBlacklistV3Params) SetTimeout

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

SetTimeout adds the timeout to the admin add country blacklist v3 params

func (*AdminAddCountryBlacklistV3Params) WithBody

WithBody adds the body to the admin add country blacklist v3 params

func (*AdminAddCountryBlacklistV3Params) WithContext

WithContext adds the context to the admin add country blacklist v3 params

func (*AdminAddCountryBlacklistV3Params) WithHTTPClient

WithHTTPClient adds the HTTPClient to the admin add country blacklist v3 params

func (*AdminAddCountryBlacklistV3Params) WithNamespace

WithNamespace adds the namespace to the admin add country blacklist v3 params

func (*AdminAddCountryBlacklistV3Params) WithTimeout

WithTimeout adds the timeout to the admin add country blacklist v3 params

func (*AdminAddCountryBlacklistV3Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type AdminAddCountryBlacklistV3Reader

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

AdminAddCountryBlacklistV3Reader is a Reader for the AdminAddCountryBlacklistV3 structure.

func (*AdminAddCountryBlacklistV3Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AdminAddCountryBlacklistV3Unauthorized

type AdminAddCountryBlacklistV3Unauthorized struct {
	Payload *iamclientmodels.RestErrorResponse
}

AdminAddCountryBlacklistV3Unauthorized handles this case with default header values.

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

func NewAdminAddCountryBlacklistV3Unauthorized

func NewAdminAddCountryBlacklistV3Unauthorized() *AdminAddCountryBlacklistV3Unauthorized

NewAdminAddCountryBlacklistV3Unauthorized creates a AdminAddCountryBlacklistV3Unauthorized with default headers values

func (*AdminAddCountryBlacklistV3Unauthorized) Error

func (*AdminAddCountryBlacklistV3Unauthorized) GetPayload

func (*AdminAddCountryBlacklistV3Unauthorized) ToJSONString

type AdminGetCountryBlacklistV3Forbidden

type AdminGetCountryBlacklistV3Forbidden struct {
	Payload *iamclientmodels.RestErrorResponse
}

AdminGetCountryBlacklistV3Forbidden handles this case with default header values.

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

func NewAdminGetCountryBlacklistV3Forbidden

func NewAdminGetCountryBlacklistV3Forbidden() *AdminGetCountryBlacklistV3Forbidden

NewAdminGetCountryBlacklistV3Forbidden creates a AdminGetCountryBlacklistV3Forbidden with default headers values

func (*AdminGetCountryBlacklistV3Forbidden) Error

func (*AdminGetCountryBlacklistV3Forbidden) GetPayload

func (*AdminGetCountryBlacklistV3Forbidden) ToJSONString

func (o *AdminGetCountryBlacklistV3Forbidden) ToJSONString() string

type AdminGetCountryBlacklistV3InternalServerError

type AdminGetCountryBlacklistV3InternalServerError struct {
	Payload *iamclientmodels.RestErrorResponse
}

AdminGetCountryBlacklistV3InternalServerError 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 NewAdminGetCountryBlacklistV3InternalServerError

func NewAdminGetCountryBlacklistV3InternalServerError() *AdminGetCountryBlacklistV3InternalServerError

NewAdminGetCountryBlacklistV3InternalServerError creates a AdminGetCountryBlacklistV3InternalServerError with default headers values

func (*AdminGetCountryBlacklistV3InternalServerError) Error

func (*AdminGetCountryBlacklistV3InternalServerError) GetPayload

func (*AdminGetCountryBlacklistV3InternalServerError) ToJSONString

type AdminGetCountryBlacklistV3OK

type AdminGetCountryBlacklistV3OK struct {
	Payload *iamclientmodels.ModelCountryBlacklistResponse
}

AdminGetCountryBlacklistV3OK handles this case with default header values.

OK

func NewAdminGetCountryBlacklistV3OK

func NewAdminGetCountryBlacklistV3OK() *AdminGetCountryBlacklistV3OK

NewAdminGetCountryBlacklistV3OK creates a AdminGetCountryBlacklistV3OK with default headers values

func (*AdminGetCountryBlacklistV3OK) Error

func (*AdminGetCountryBlacklistV3OK) GetPayload

func (*AdminGetCountryBlacklistV3OK) ToJSONString

func (o *AdminGetCountryBlacklistV3OK) ToJSONString() string

type AdminGetCountryBlacklistV3Params

type AdminGetCountryBlacklistV3Params struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace
	  Namespace, only accept alphabet and numeric

	*/
	Namespace string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

AdminGetCountryBlacklistV3Params contains all the parameters to send to the API endpoint for the admin get country blacklist v3 operation typically these are written to a http.Request

func NewAdminGetCountryBlacklistV3Params

func NewAdminGetCountryBlacklistV3Params() *AdminGetCountryBlacklistV3Params

NewAdminGetCountryBlacklistV3Params creates a new AdminGetCountryBlacklistV3Params object with the default values initialized.

func NewAdminGetCountryBlacklistV3ParamsWithContext

func NewAdminGetCountryBlacklistV3ParamsWithContext(ctx context.Context) *AdminGetCountryBlacklistV3Params

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

func NewAdminGetCountryBlacklistV3ParamsWithHTTPClient

func NewAdminGetCountryBlacklistV3ParamsWithHTTPClient(client *http.Client) *AdminGetCountryBlacklistV3Params

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

func NewAdminGetCountryBlacklistV3ParamsWithTimeout

func NewAdminGetCountryBlacklistV3ParamsWithTimeout(timeout time.Duration) *AdminGetCountryBlacklistV3Params

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

func (*AdminGetCountryBlacklistV3Params) SetAuthInfoWriter

func (o *AdminGetCountryBlacklistV3Params) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the admin get country blacklist v3 params

func (*AdminGetCountryBlacklistV3Params) SetContext

SetContext adds the context to the admin get country blacklist v3 params

func (*AdminGetCountryBlacklistV3Params) SetFlightId added in v0.63.0

func (o *AdminGetCountryBlacklistV3Params) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*AdminGetCountryBlacklistV3Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the admin get country blacklist v3 params

func (*AdminGetCountryBlacklistV3Params) SetHTTPClientTransport

func (o *AdminGetCountryBlacklistV3Params) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the admin get country blacklist v3 params

func (*AdminGetCountryBlacklistV3Params) SetNamespace

func (o *AdminGetCountryBlacklistV3Params) SetNamespace(namespace string)

SetNamespace adds the namespace to the admin get country blacklist v3 params

func (*AdminGetCountryBlacklistV3Params) SetTimeout

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

SetTimeout adds the timeout to the admin get country blacklist v3 params

func (*AdminGetCountryBlacklistV3Params) WithContext

WithContext adds the context to the admin get country blacklist v3 params

func (*AdminGetCountryBlacklistV3Params) WithHTTPClient

WithHTTPClient adds the HTTPClient to the admin get country blacklist v3 params

func (*AdminGetCountryBlacklistV3Params) WithNamespace

WithNamespace adds the namespace to the admin get country blacklist v3 params

func (*AdminGetCountryBlacklistV3Params) WithTimeout

WithTimeout adds the timeout to the admin get country blacklist v3 params

func (*AdminGetCountryBlacklistV3Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type AdminGetCountryBlacklistV3Reader

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

AdminGetCountryBlacklistV3Reader is a Reader for the AdminGetCountryBlacklistV3 structure.

func (*AdminGetCountryBlacklistV3Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AdminGetCountryBlacklistV3Unauthorized

type AdminGetCountryBlacklistV3Unauthorized struct {
	Payload *iamclientmodels.RestErrorResponse
}

AdminGetCountryBlacklistV3Unauthorized handles this case with default header values.

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

func NewAdminGetCountryBlacklistV3Unauthorized

func NewAdminGetCountryBlacklistV3Unauthorized() *AdminGetCountryBlacklistV3Unauthorized

NewAdminGetCountryBlacklistV3Unauthorized creates a AdminGetCountryBlacklistV3Unauthorized with default headers values

func (*AdminGetCountryBlacklistV3Unauthorized) Error

func (*AdminGetCountryBlacklistV3Unauthorized) GetPayload

func (*AdminGetCountryBlacklistV3Unauthorized) ToJSONString

type AdminGetCountryListV3Forbidden

type AdminGetCountryListV3Forbidden struct {
	Payload *iamclientmodels.RestErrorResponse
}

AdminGetCountryListV3Forbidden handles this case with default header values.

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

func NewAdminGetCountryListV3Forbidden

func NewAdminGetCountryListV3Forbidden() *AdminGetCountryListV3Forbidden

NewAdminGetCountryListV3Forbidden creates a AdminGetCountryListV3Forbidden with default headers values

func (*AdminGetCountryListV3Forbidden) Error

func (*AdminGetCountryListV3Forbidden) GetPayload

func (*AdminGetCountryListV3Forbidden) ToJSONString

func (o *AdminGetCountryListV3Forbidden) ToJSONString() string

type AdminGetCountryListV3InternalServerError

type AdminGetCountryListV3InternalServerError struct {
	Payload *iamclientmodels.RestErrorResponse
}

AdminGetCountryListV3InternalServerError 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 NewAdminGetCountryListV3InternalServerError

func NewAdminGetCountryListV3InternalServerError() *AdminGetCountryListV3InternalServerError

NewAdminGetCountryListV3InternalServerError creates a AdminGetCountryListV3InternalServerError with default headers values

func (*AdminGetCountryListV3InternalServerError) Error

func (*AdminGetCountryListV3InternalServerError) GetPayload

func (*AdminGetCountryListV3InternalServerError) ToJSONString

type AdminGetCountryListV3OK

type AdminGetCountryListV3OK struct {
	Payload []*iamclientmodels.ModelCountryResponse
}

AdminGetCountryListV3OK handles this case with default header values.

No Content

func NewAdminGetCountryListV3OK

func NewAdminGetCountryListV3OK() *AdminGetCountryListV3OK

NewAdminGetCountryListV3OK creates a AdminGetCountryListV3OK with default headers values

func (*AdminGetCountryListV3OK) Error

func (o *AdminGetCountryListV3OK) Error() string

func (*AdminGetCountryListV3OK) GetPayload

func (*AdminGetCountryListV3OK) ToJSONString

func (o *AdminGetCountryListV3OK) ToJSONString() string

type AdminGetCountryListV3Params

type AdminGetCountryListV3Params struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace
	  Namespace, only accept alphabet and numeric

	*/
	Namespace string
	/*FilterBlacklist
	  filter black list

	*/
	FilterBlacklist *bool

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

AdminGetCountryListV3Params contains all the parameters to send to the API endpoint for the admin get country list v3 operation typically these are written to a http.Request

func NewAdminGetCountryListV3Params

func NewAdminGetCountryListV3Params() *AdminGetCountryListV3Params

NewAdminGetCountryListV3Params creates a new AdminGetCountryListV3Params object with the default values initialized.

func NewAdminGetCountryListV3ParamsWithContext

func NewAdminGetCountryListV3ParamsWithContext(ctx context.Context) *AdminGetCountryListV3Params

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

func NewAdminGetCountryListV3ParamsWithHTTPClient

func NewAdminGetCountryListV3ParamsWithHTTPClient(client *http.Client) *AdminGetCountryListV3Params

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

func NewAdminGetCountryListV3ParamsWithTimeout

func NewAdminGetCountryListV3ParamsWithTimeout(timeout time.Duration) *AdminGetCountryListV3Params

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

func (*AdminGetCountryListV3Params) SetAuthInfoWriter

func (o *AdminGetCountryListV3Params) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the admin get country list v3 params

func (*AdminGetCountryListV3Params) SetContext

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

SetContext adds the context to the admin get country list v3 params

func (*AdminGetCountryListV3Params) SetFilterBlacklist

func (o *AdminGetCountryListV3Params) SetFilterBlacklist(filterBlacklist *bool)

SetFilterBlacklist adds the filterBlacklist to the admin get country list v3 params

func (*AdminGetCountryListV3Params) SetFlightId added in v0.63.0

func (o *AdminGetCountryListV3Params) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*AdminGetCountryListV3Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the admin get country list v3 params

func (*AdminGetCountryListV3Params) SetHTTPClientTransport

func (o *AdminGetCountryListV3Params) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the admin get country list v3 params

func (*AdminGetCountryListV3Params) SetNamespace

func (o *AdminGetCountryListV3Params) SetNamespace(namespace string)

SetNamespace adds the namespace to the admin get country list v3 params

func (*AdminGetCountryListV3Params) SetTimeout

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

SetTimeout adds the timeout to the admin get country list v3 params

func (*AdminGetCountryListV3Params) WithContext

WithContext adds the context to the admin get country list v3 params

func (*AdminGetCountryListV3Params) WithFilterBlacklist

func (o *AdminGetCountryListV3Params) WithFilterBlacklist(filterBlacklist *bool) *AdminGetCountryListV3Params

WithFilterBlacklist adds the filterBlacklist to the admin get country list v3 params

func (*AdminGetCountryListV3Params) WithHTTPClient

WithHTTPClient adds the HTTPClient to the admin get country list v3 params

func (*AdminGetCountryListV3Params) WithNamespace

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

WithNamespace adds the namespace to the admin get country list v3 params

func (*AdminGetCountryListV3Params) WithTimeout

WithTimeout adds the timeout to the admin get country list v3 params

func (*AdminGetCountryListV3Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type AdminGetCountryListV3Reader

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

AdminGetCountryListV3Reader is a Reader for the AdminGetCountryListV3 structure.

func (*AdminGetCountryListV3Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AdminGetCountryListV3Unauthorized

type AdminGetCountryListV3Unauthorized struct {
	Payload *iamclientmodels.RestErrorResponse
}

AdminGetCountryListV3Unauthorized handles this case with default header values.

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

func NewAdminGetCountryListV3Unauthorized

func NewAdminGetCountryListV3Unauthorized() *AdminGetCountryListV3Unauthorized

NewAdminGetCountryListV3Unauthorized creates a AdminGetCountryListV3Unauthorized with default headers values

func (*AdminGetCountryListV3Unauthorized) Error

func (*AdminGetCountryListV3Unauthorized) GetPayload

func (*AdminGetCountryListV3Unauthorized) ToJSONString

func (o *AdminGetCountryListV3Unauthorized) ToJSONString() string

type Client

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

Client for country API

func (*Client) AdminAddCountryBlacklistV3 deprecated

Deprecated: 2022-08-10 - Use AdminAddCountryBlacklistV3Short instead.

AdminAddCountryBlacklistV3 update country blacklist Admin update country blacklist

func (*Client) AdminAddCountryBlacklistV3Short

func (a *Client) AdminAddCountryBlacklistV3Short(params *AdminAddCountryBlacklistV3Params, authInfo runtime.ClientAuthInfoWriter) (*AdminAddCountryBlacklistV3NoContent, error)

AdminAddCountryBlacklistV3Short update country blacklist Admin update country blacklist

func (*Client) AdminGetCountryBlacklistV3 deprecated

Deprecated: 2022-08-10 - Use AdminGetCountryBlacklistV3Short instead.

AdminGetCountryBlacklistV3 get country blacklist Admin get country blacklist

func (*Client) AdminGetCountryBlacklistV3Short

func (a *Client) AdminGetCountryBlacklistV3Short(params *AdminGetCountryBlacklistV3Params, authInfo runtime.ClientAuthInfoWriter) (*AdminGetCountryBlacklistV3OK, error)

AdminGetCountryBlacklistV3Short get country blacklist Admin get country blacklist

func (*Client) AdminGetCountryListV3 deprecated

Deprecated: 2022-08-10 - Use AdminGetCountryListV3Short instead.

AdminGetCountryListV3 get country list Admin get country list

func (*Client) AdminGetCountryListV3Short

func (a *Client) AdminGetCountryListV3Short(params *AdminGetCountryListV3Params, authInfo runtime.ClientAuthInfoWriter) (*AdminGetCountryListV3OK, error)

AdminGetCountryListV3Short get country list Admin get country list

func (*Client) PublicGetCountryListV3 deprecated

Deprecated: 2022-08-10 - Use PublicGetCountryListV3Short instead.

PublicGetCountryListV3 get country list Public get country list, will filter out countries in black list

func (*Client) PublicGetCountryListV3Short

func (a *Client) PublicGetCountryListV3Short(params *PublicGetCountryListV3Params, authInfo runtime.ClientAuthInfoWriter) (*PublicGetCountryListV3OK, error)

PublicGetCountryListV3Short get country list Public get country list, will filter out countries in black list

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	AdminGetCountryListV3(params *AdminGetCountryListV3Params, authInfo runtime.ClientAuthInfoWriter) (*AdminGetCountryListV3OK, *AdminGetCountryListV3Unauthorized, *AdminGetCountryListV3Forbidden, *AdminGetCountryListV3InternalServerError, error)
	AdminGetCountryListV3Short(params *AdminGetCountryListV3Params, authInfo runtime.ClientAuthInfoWriter) (*AdminGetCountryListV3OK, error)
	AdminGetCountryBlacklistV3(params *AdminGetCountryBlacklistV3Params, authInfo runtime.ClientAuthInfoWriter) (*AdminGetCountryBlacklistV3OK, *AdminGetCountryBlacklistV3Unauthorized, *AdminGetCountryBlacklistV3Forbidden, *AdminGetCountryBlacklistV3InternalServerError, error)
	AdminGetCountryBlacklistV3Short(params *AdminGetCountryBlacklistV3Params, authInfo runtime.ClientAuthInfoWriter) (*AdminGetCountryBlacklistV3OK, error)
	AdminAddCountryBlacklistV3(params *AdminAddCountryBlacklistV3Params, authInfo runtime.ClientAuthInfoWriter) (*AdminAddCountryBlacklistV3NoContent, *AdminAddCountryBlacklistV3BadRequest, *AdminAddCountryBlacklistV3Unauthorized, *AdminAddCountryBlacklistV3Forbidden, *AdminAddCountryBlacklistV3InternalServerError, error)
	AdminAddCountryBlacklistV3Short(params *AdminAddCountryBlacklistV3Params, authInfo runtime.ClientAuthInfoWriter) (*AdminAddCountryBlacklistV3NoContent, error)
	PublicGetCountryListV3(params *PublicGetCountryListV3Params, authInfo runtime.ClientAuthInfoWriter) (*PublicGetCountryListV3OK, *PublicGetCountryListV3InternalServerError, error)
	PublicGetCountryListV3Short(params *PublicGetCountryListV3Params, authInfo runtime.ClientAuthInfoWriter) (*PublicGetCountryListV3OK, 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 country API client.

type PublicGetCountryListV3InternalServerError

type PublicGetCountryListV3InternalServerError struct {
	Payload *iamclientmodels.RestErrorResponse
}

PublicGetCountryListV3InternalServerError 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 NewPublicGetCountryListV3InternalServerError

func NewPublicGetCountryListV3InternalServerError() *PublicGetCountryListV3InternalServerError

NewPublicGetCountryListV3InternalServerError creates a PublicGetCountryListV3InternalServerError with default headers values

func (*PublicGetCountryListV3InternalServerError) Error

func (*PublicGetCountryListV3InternalServerError) GetPayload

func (*PublicGetCountryListV3InternalServerError) ToJSONString

type PublicGetCountryListV3OK

type PublicGetCountryListV3OK struct {
	Payload []*iamclientmodels.ModelCountryResponse
}

PublicGetCountryListV3OK handles this case with default header values.

OK

func NewPublicGetCountryListV3OK

func NewPublicGetCountryListV3OK() *PublicGetCountryListV3OK

NewPublicGetCountryListV3OK creates a PublicGetCountryListV3OK with default headers values

func (*PublicGetCountryListV3OK) Error

func (o *PublicGetCountryListV3OK) Error() string

func (*PublicGetCountryListV3OK) GetPayload

func (*PublicGetCountryListV3OK) ToJSONString

func (o *PublicGetCountryListV3OK) ToJSONString() string

type PublicGetCountryListV3Params

type PublicGetCountryListV3Params struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace
	  Namespace, only accept alphabet and numeric

	*/
	Namespace string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

PublicGetCountryListV3Params contains all the parameters to send to the API endpoint for the public get country list v3 operation typically these are written to a http.Request

func NewPublicGetCountryListV3Params

func NewPublicGetCountryListV3Params() *PublicGetCountryListV3Params

NewPublicGetCountryListV3Params creates a new PublicGetCountryListV3Params object with the default values initialized.

func NewPublicGetCountryListV3ParamsWithContext

func NewPublicGetCountryListV3ParamsWithContext(ctx context.Context) *PublicGetCountryListV3Params

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

func NewPublicGetCountryListV3ParamsWithHTTPClient

func NewPublicGetCountryListV3ParamsWithHTTPClient(client *http.Client) *PublicGetCountryListV3Params

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

func NewPublicGetCountryListV3ParamsWithTimeout

func NewPublicGetCountryListV3ParamsWithTimeout(timeout time.Duration) *PublicGetCountryListV3Params

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

func (*PublicGetCountryListV3Params) SetAuthInfoWriter

func (o *PublicGetCountryListV3Params) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the public get country list v3 params

func (*PublicGetCountryListV3Params) SetContext

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

SetContext adds the context to the public get country list v3 params

func (*PublicGetCountryListV3Params) SetFlightId added in v0.63.0

func (o *PublicGetCountryListV3Params) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*PublicGetCountryListV3Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public get country list v3 params

func (*PublicGetCountryListV3Params) SetHTTPClientTransport

func (o *PublicGetCountryListV3Params) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the public get country list v3 params

func (*PublicGetCountryListV3Params) SetNamespace

func (o *PublicGetCountryListV3Params) SetNamespace(namespace string)

SetNamespace adds the namespace to the public get country list v3 params

func (*PublicGetCountryListV3Params) SetTimeout

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

SetTimeout adds the timeout to the public get country list v3 params

func (*PublicGetCountryListV3Params) WithContext

WithContext adds the context to the public get country list v3 params

func (*PublicGetCountryListV3Params) WithHTTPClient

WithHTTPClient adds the HTTPClient to the public get country list v3 params

func (*PublicGetCountryListV3Params) WithNamespace

WithNamespace adds the namespace to the public get country list v3 params

func (*PublicGetCountryListV3Params) WithTimeout

WithTimeout adds the timeout to the public get country list v3 params

func (*PublicGetCountryListV3Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublicGetCountryListV3Reader

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

PublicGetCountryListV3Reader is a Reader for the PublicGetCountryListV3 structure.

func (*PublicGetCountryListV3Reader) ReadResponse

func (o *PublicGetCountryListV3Reader) 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