company

package
v0.0.0-...-14d5a85 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 10 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 company API

func (*Client) CompaniesResourceGetGet

func (a *Client) CompaniesResourceGetGet(params *CompaniesResourceGetGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CompaniesResourceGetGetOK, error)

CompaniesResourceGetGet gets an list of companies

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CompaniesResourceGetGet(params *CompaniesResourceGetGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CompaniesResourceGetGetOK, 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 company API client.

type CompaniesResourceGetGetForbidden

type CompaniesResourceGetGetForbidden struct {
}

CompaniesResourceGetGetForbidden describes a response with status code 403, with default header values.

Not allowed

func NewCompaniesResourceGetGetForbidden

func NewCompaniesResourceGetGetForbidden() *CompaniesResourceGetGetForbidden

NewCompaniesResourceGetGetForbidden creates a CompaniesResourceGetGetForbidden with default headers values

func (*CompaniesResourceGetGetForbidden) Code

Code gets the status code for the companies resource get get forbidden response

func (*CompaniesResourceGetGetForbidden) Error

func (*CompaniesResourceGetGetForbidden) IsClientError

func (o *CompaniesResourceGetGetForbidden) IsClientError() bool

IsClientError returns true when this companies resource get get forbidden response has a 4xx status code

func (*CompaniesResourceGetGetForbidden) IsCode

func (o *CompaniesResourceGetGetForbidden) IsCode(code int) bool

IsCode returns true when this companies resource get get forbidden response a status code equal to that given

func (*CompaniesResourceGetGetForbidden) IsRedirect

func (o *CompaniesResourceGetGetForbidden) IsRedirect() bool

IsRedirect returns true when this companies resource get get forbidden response has a 3xx status code

func (*CompaniesResourceGetGetForbidden) IsServerError

func (o *CompaniesResourceGetGetForbidden) IsServerError() bool

IsServerError returns true when this companies resource get get forbidden response has a 5xx status code

func (*CompaniesResourceGetGetForbidden) IsSuccess

func (o *CompaniesResourceGetGetForbidden) IsSuccess() bool

IsSuccess returns true when this companies resource get get forbidden response has a 2xx status code

func (*CompaniesResourceGetGetForbidden) String

type CompaniesResourceGetGetOK

type CompaniesResourceGetGetOK struct {
	Payload []*models.Company
}

CompaniesResourceGetGetOK describes a response with status code 200, with default header values.

successful operation

func NewCompaniesResourceGetGetOK

func NewCompaniesResourceGetGetOK() *CompaniesResourceGetGetOK

NewCompaniesResourceGetGetOK creates a CompaniesResourceGetGetOK with default headers values

func (*CompaniesResourceGetGetOK) Code

func (o *CompaniesResourceGetGetOK) Code() int

Code gets the status code for the companies resource get get o k response

func (*CompaniesResourceGetGetOK) Error

func (o *CompaniesResourceGetGetOK) Error() string

func (*CompaniesResourceGetGetOK) GetPayload

func (o *CompaniesResourceGetGetOK) GetPayload() []*models.Company

func (*CompaniesResourceGetGetOK) IsClientError

func (o *CompaniesResourceGetGetOK) IsClientError() bool

IsClientError returns true when this companies resource get get o k response has a 4xx status code

func (*CompaniesResourceGetGetOK) IsCode

func (o *CompaniesResourceGetGetOK) IsCode(code int) bool

IsCode returns true when this companies resource get get o k response a status code equal to that given

func (*CompaniesResourceGetGetOK) IsRedirect

func (o *CompaniesResourceGetGetOK) IsRedirect() bool

IsRedirect returns true when this companies resource get get o k response has a 3xx status code

func (*CompaniesResourceGetGetOK) IsServerError

func (o *CompaniesResourceGetGetOK) IsServerError() bool

IsServerError returns true when this companies resource get get o k response has a 5xx status code

func (*CompaniesResourceGetGetOK) IsSuccess

func (o *CompaniesResourceGetGetOK) IsSuccess() bool

IsSuccess returns true when this companies resource get get o k response has a 2xx status code

func (*CompaniesResourceGetGetOK) String

func (o *CompaniesResourceGetGetOK) String() string

type CompaniesResourceGetGetParams

type CompaniesResourceGetGetParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CompaniesResourceGetGetParams contains all the parameters to send to the API endpoint

for the companies resource get get operation.

Typically these are written to a http.Request.

func NewCompaniesResourceGetGetParams

func NewCompaniesResourceGetGetParams() *CompaniesResourceGetGetParams

NewCompaniesResourceGetGetParams creates a new CompaniesResourceGetGetParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCompaniesResourceGetGetParamsWithContext

func NewCompaniesResourceGetGetParamsWithContext(ctx context.Context) *CompaniesResourceGetGetParams

NewCompaniesResourceGetGetParamsWithContext creates a new CompaniesResourceGetGetParams object with the ability to set a context for a request.

func NewCompaniesResourceGetGetParamsWithHTTPClient

func NewCompaniesResourceGetGetParamsWithHTTPClient(client *http.Client) *CompaniesResourceGetGetParams

NewCompaniesResourceGetGetParamsWithHTTPClient creates a new CompaniesResourceGetGetParams object with the ability to set a custom HTTPClient for a request.

func NewCompaniesResourceGetGetParamsWithTimeout

func NewCompaniesResourceGetGetParamsWithTimeout(timeout time.Duration) *CompaniesResourceGetGetParams

NewCompaniesResourceGetGetParamsWithTimeout creates a new CompaniesResourceGetGetParams object with the ability to set a timeout on a request.

func (*CompaniesResourceGetGetParams) SetContext

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

SetContext adds the context to the companies resource get get params

func (*CompaniesResourceGetGetParams) SetDefaults

func (o *CompaniesResourceGetGetParams) SetDefaults()

SetDefaults hydrates default values in the companies resource get get params (not the query body).

All values with no default are reset to their zero value.

func (*CompaniesResourceGetGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the companies resource get get params

func (*CompaniesResourceGetGetParams) SetTimeout

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

SetTimeout adds the timeout to the companies resource get get params

func (*CompaniesResourceGetGetParams) WithContext

WithContext adds the context to the companies resource get get params

func (*CompaniesResourceGetGetParams) WithDefaults

WithDefaults hydrates default values in the companies resource get get params (not the query body).

All values with no default are reset to their zero value.

func (*CompaniesResourceGetGetParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the companies resource get get params

func (*CompaniesResourceGetGetParams) WithTimeout

WithTimeout adds the timeout to the companies resource get get params

func (*CompaniesResourceGetGetParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CompaniesResourceGetGetReader

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

CompaniesResourceGetGetReader is a Reader for the CompaniesResourceGetGet structure.

func (*CompaniesResourceGetGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CompaniesResourceGetGetUnauthorized

type CompaniesResourceGetGetUnauthorized struct {
}

CompaniesResourceGetGetUnauthorized describes a response with status code 401, with default header values.

Not authorized

func NewCompaniesResourceGetGetUnauthorized

func NewCompaniesResourceGetGetUnauthorized() *CompaniesResourceGetGetUnauthorized

NewCompaniesResourceGetGetUnauthorized creates a CompaniesResourceGetGetUnauthorized with default headers values

func (*CompaniesResourceGetGetUnauthorized) Code

Code gets the status code for the companies resource get get unauthorized response

func (*CompaniesResourceGetGetUnauthorized) Error

func (*CompaniesResourceGetGetUnauthorized) IsClientError

func (o *CompaniesResourceGetGetUnauthorized) IsClientError() bool

IsClientError returns true when this companies resource get get unauthorized response has a 4xx status code

func (*CompaniesResourceGetGetUnauthorized) IsCode

IsCode returns true when this companies resource get get unauthorized response a status code equal to that given

func (*CompaniesResourceGetGetUnauthorized) IsRedirect

func (o *CompaniesResourceGetGetUnauthorized) IsRedirect() bool

IsRedirect returns true when this companies resource get get unauthorized response has a 3xx status code

func (*CompaniesResourceGetGetUnauthorized) IsServerError

func (o *CompaniesResourceGetGetUnauthorized) IsServerError() bool

IsServerError returns true when this companies resource get get unauthorized response has a 5xx status code

func (*CompaniesResourceGetGetUnauthorized) IsSuccess

IsSuccess returns true when this companies resource get get unauthorized response has a 2xx status code

func (*CompaniesResourceGetGetUnauthorized) String

Jump to

Keyboard shortcuts

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