regions

package
Version: v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for regions API

func (*Client) GetByRegionCode

func (a *Client) GetByRegionCode(params *GetByRegionCodeParams, authInfo runtime.ClientAuthInfoWriter) (*GetByRegionCodeOK, error)

GetByRegionCode get by region code API

func (*Client) GetRegions added in v1.1.0

func (a *Client) GetRegions(params *GetRegionsParams, authInfo runtime.ClientAuthInfoWriter) (*GetRegionsOK, error)

GetRegions get regions API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GetByRegionCode(params *GetByRegionCodeParams, authInfo runtime.ClientAuthInfoWriter) (*GetByRegionCodeOK, error)

	GetRegions(params *GetRegionsParams, authInfo runtime.ClientAuthInfoWriter) (*GetRegionsOK, 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 regions API client.

type GetByRegionCodeOK

type GetByRegionCodeOK struct {
	Payload *models.Region
}

GetByRegionCodeOK handles this case with default header values.

Success

func NewGetByRegionCodeOK

func NewGetByRegionCodeOK() *GetByRegionCodeOK

NewGetByRegionCodeOK creates a GetByRegionCodeOK with default headers values

func (*GetByRegionCodeOK) Error

func (o *GetByRegionCodeOK) Error() string

func (*GetByRegionCodeOK) GetPayload

func (o *GetByRegionCodeOK) GetPayload() *models.Region

type GetByRegionCodeParams

type GetByRegionCodeParams struct {

	/*RegionCode*/
	RegionCode *string
	/*RegionList*/
	RegionList *string

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

GetByRegionCodeParams contains all the parameters to send to the API endpoint for the get by region code operation typically these are written to a http.Request

func NewGetByRegionCodeParams

func NewGetByRegionCodeParams() *GetByRegionCodeParams

NewGetByRegionCodeParams creates a new GetByRegionCodeParams object with the default values initialized.

func NewGetByRegionCodeParamsWithContext

func NewGetByRegionCodeParamsWithContext(ctx context.Context) *GetByRegionCodeParams

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

func NewGetByRegionCodeParamsWithHTTPClient

func NewGetByRegionCodeParamsWithHTTPClient(client *http.Client) *GetByRegionCodeParams

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

func NewGetByRegionCodeParamsWithTimeout

func NewGetByRegionCodeParamsWithTimeout(timeout time.Duration) *GetByRegionCodeParams

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

func (*GetByRegionCodeParams) SetContext

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

SetContext adds the context to the get by region code params

func (*GetByRegionCodeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get by region code params

func (*GetByRegionCodeParams) SetRegionCode

func (o *GetByRegionCodeParams) SetRegionCode(regionCode *string)

SetRegionCode adds the regionCode to the get by region code params

func (*GetByRegionCodeParams) SetRegionList

func (o *GetByRegionCodeParams) SetRegionList(regionList *string)

SetRegionList adds the regionList to the get by region code params

func (*GetByRegionCodeParams) SetTimeout

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

SetTimeout adds the timeout to the get by region code params

func (*GetByRegionCodeParams) WithContext

WithContext adds the context to the get by region code params

func (*GetByRegionCodeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get by region code params

func (*GetByRegionCodeParams) WithRegionCode

func (o *GetByRegionCodeParams) WithRegionCode(regionCode *string) *GetByRegionCodeParams

WithRegionCode adds the regionCode to the get by region code params

func (*GetByRegionCodeParams) WithRegionList

func (o *GetByRegionCodeParams) WithRegionList(regionList *string) *GetByRegionCodeParams

WithRegionList adds the regionList to the get by region code params

func (*GetByRegionCodeParams) WithTimeout

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

WithTimeout adds the timeout to the get by region code params

func (*GetByRegionCodeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetByRegionCodeReader

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

GetByRegionCodeReader is a Reader for the GetByRegionCode structure.

func (*GetByRegionCodeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRegionsOK added in v1.1.0

type GetRegionsOK struct {
	Payload *models.APICollectionOfRegion
}

GetRegionsOK handles this case with default header values.

Success

func NewGetRegionsOK added in v1.1.0

func NewGetRegionsOK() *GetRegionsOK

NewGetRegionsOK creates a GetRegionsOK with default headers values

func (*GetRegionsOK) Error added in v1.1.0

func (o *GetRegionsOK) Error() string

func (*GetRegionsOK) GetPayload added in v1.1.0

func (o *GetRegionsOK) GetPayload() *models.APICollectionOfRegion

type GetRegionsParams added in v1.1.0

type GetRegionsParams struct {

	/*OrganizationID*/
	OrganizationID *int32
	/*Page*/
	Page *int32
	/*PageSize*/
	PageSize *int32
	/*RegionList*/
	RegionList *string
	/*Search*/
	Search *string

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

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

func NewGetRegionsParams added in v1.1.0

func NewGetRegionsParams() *GetRegionsParams

NewGetRegionsParams creates a new GetRegionsParams object with the default values initialized.

func NewGetRegionsParamsWithContext added in v1.1.0

func NewGetRegionsParamsWithContext(ctx context.Context) *GetRegionsParams

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

func NewGetRegionsParamsWithHTTPClient added in v1.1.0

func NewGetRegionsParamsWithHTTPClient(client *http.Client) *GetRegionsParams

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

func NewGetRegionsParamsWithTimeout added in v1.1.0

func NewGetRegionsParamsWithTimeout(timeout time.Duration) *GetRegionsParams

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

func (*GetRegionsParams) SetContext added in v1.1.0

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

SetContext adds the context to the get regions params

func (*GetRegionsParams) SetHTTPClient added in v1.1.0

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

SetHTTPClient adds the HTTPClient to the get regions params

func (*GetRegionsParams) SetOrganizationID added in v1.1.0

func (o *GetRegionsParams) SetOrganizationID(organizationID *int32)

SetOrganizationID adds the organizationId to the get regions params

func (*GetRegionsParams) SetPage added in v1.1.0

func (o *GetRegionsParams) SetPage(page *int32)

SetPage adds the page to the get regions params

func (*GetRegionsParams) SetPageSize added in v1.1.0

func (o *GetRegionsParams) SetPageSize(pageSize *int32)

SetPageSize adds the pageSize to the get regions params

func (*GetRegionsParams) SetRegionList added in v1.1.0

func (o *GetRegionsParams) SetRegionList(regionList *string)

SetRegionList adds the regionList to the get regions params

func (*GetRegionsParams) SetSearch added in v1.1.0

func (o *GetRegionsParams) SetSearch(search *string)

SetSearch adds the search to the get regions params

func (*GetRegionsParams) SetTimeout added in v1.1.0

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

SetTimeout adds the timeout to the get regions params

func (*GetRegionsParams) WithContext added in v1.1.0

func (o *GetRegionsParams) WithContext(ctx context.Context) *GetRegionsParams

WithContext adds the context to the get regions params

func (*GetRegionsParams) WithHTTPClient added in v1.1.0

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

WithHTTPClient adds the HTTPClient to the get regions params

func (*GetRegionsParams) WithOrganizationID added in v1.1.0

func (o *GetRegionsParams) WithOrganizationID(organizationID *int32) *GetRegionsParams

WithOrganizationID adds the organizationID to the get regions params

func (*GetRegionsParams) WithPage added in v1.1.0

func (o *GetRegionsParams) WithPage(page *int32) *GetRegionsParams

WithPage adds the page to the get regions params

func (*GetRegionsParams) WithPageSize added in v1.1.0

func (o *GetRegionsParams) WithPageSize(pageSize *int32) *GetRegionsParams

WithPageSize adds the pageSize to the get regions params

func (*GetRegionsParams) WithRegionList added in v1.1.0

func (o *GetRegionsParams) WithRegionList(regionList *string) *GetRegionsParams

WithRegionList adds the regionList to the get regions params

func (*GetRegionsParams) WithSearch added in v1.1.0

func (o *GetRegionsParams) WithSearch(search *string) *GetRegionsParams

WithSearch adds the search to the get regions params

func (*GetRegionsParams) WithTimeout added in v1.1.0

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

WithTimeout adds the timeout to the get regions params

func (*GetRegionsParams) WriteToRequest added in v1.1.0

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

WriteToRequest writes these params to a swagger request

type GetRegionsReader added in v1.1.0

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

GetRegionsReader is a Reader for the GetRegions structure.

func (*GetRegionsReader) ReadResponse added in v1.1.0

func (o *GetRegionsReader) 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
t or T : Toggle theme light dark auto
y or Y : Canonical URL