requests

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 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 requests API

func (*Client) RequestGetUsingGET

func (a *Client) RequestGetUsingGET(params *RequestGetUsingGETParams, opts ...ClientOption) (*RequestGetUsingGETOK, error)

RequestGetUsingGET gets

Get IaaS requests.

func (*Client) RequestListUsingGET

func (a *Client) RequestListUsingGET(params *RequestListUsingGETParams, opts ...ClientOption) (*RequestListUsingGETOK, error)

RequestListUsingGET lists

List IaaS requests.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption added in v1.2.4

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	RequestGetUsingGET(params *RequestGetUsingGETParams, opts ...ClientOption) (*RequestGetUsingGETOK, error)

	RequestListUsingGET(params *RequestListUsingGETParams, opts ...ClientOption) (*RequestListUsingGETOK, 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 requests API client.

type RequestGetUsingGETBadRequest

type RequestGetUsingGETBadRequest struct {
	Payload *models.ProxyResponseMessage
}
RequestGetUsingGETBadRequest describes a response with status code 400, with default header values.

Bad request, error occurred. For more details see log messages.

func NewRequestGetUsingGETBadRequest

func NewRequestGetUsingGETBadRequest() *RequestGetUsingGETBadRequest

NewRequestGetUsingGETBadRequest creates a RequestGetUsingGETBadRequest with default headers values

func (*RequestGetUsingGETBadRequest) Error

func (*RequestGetUsingGETBadRequest) GetPayload added in v1.2.0

type RequestGetUsingGETNotFound

type RequestGetUsingGETNotFound struct {
}
RequestGetUsingGETNotFound describes a response with status code 404, with default header values.

Entity not found.

func NewRequestGetUsingGETNotFound

func NewRequestGetUsingGETNotFound() *RequestGetUsingGETNotFound

NewRequestGetUsingGETNotFound creates a RequestGetUsingGETNotFound with default headers values

func (*RequestGetUsingGETNotFound) Error

type RequestGetUsingGETOK

type RequestGetUsingGETOK struct {
	Payload *models.RequestInstanceGetResponse
}
RequestGetUsingGETOK describes a response with status code 200, with default header values.

OK

func NewRequestGetUsingGETOK

func NewRequestGetUsingGETOK() *RequestGetUsingGETOK

NewRequestGetUsingGETOK creates a RequestGetUsingGETOK with default headers values

func (*RequestGetUsingGETOK) Error

func (o *RequestGetUsingGETOK) Error() string

func (*RequestGetUsingGETOK) GetPayload

type RequestGetUsingGETParams

type RequestGetUsingGETParams struct {

	/* RequestID.

	   requestId
	*/
	RequestID string

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

RequestGetUsingGETParams contains all the parameters to send to the API endpoint

for the request get using g e t operation.

Typically these are written to a http.Request.

func NewRequestGetUsingGETParams

func NewRequestGetUsingGETParams() *RequestGetUsingGETParams

NewRequestGetUsingGETParams creates a new RequestGetUsingGETParams 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 NewRequestGetUsingGETParamsWithContext

func NewRequestGetUsingGETParamsWithContext(ctx context.Context) *RequestGetUsingGETParams

NewRequestGetUsingGETParamsWithContext creates a new RequestGetUsingGETParams object with the ability to set a context for a request.

func NewRequestGetUsingGETParamsWithHTTPClient

func NewRequestGetUsingGETParamsWithHTTPClient(client *http.Client) *RequestGetUsingGETParams

NewRequestGetUsingGETParamsWithHTTPClient creates a new RequestGetUsingGETParams object with the ability to set a custom HTTPClient for a request.

func NewRequestGetUsingGETParamsWithTimeout

func NewRequestGetUsingGETParamsWithTimeout(timeout time.Duration) *RequestGetUsingGETParams

NewRequestGetUsingGETParamsWithTimeout creates a new RequestGetUsingGETParams object with the ability to set a timeout on a request.

func (*RequestGetUsingGETParams) SetContext

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

SetContext adds the context to the request get using g e t params

func (*RequestGetUsingGETParams) SetDefaults added in v1.2.4

func (o *RequestGetUsingGETParams) SetDefaults()

SetDefaults hydrates default values in the request get using g e t params (not the query body).

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

func (*RequestGetUsingGETParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the request get using g e t params

func (*RequestGetUsingGETParams) SetRequestID

func (o *RequestGetUsingGETParams) SetRequestID(requestID string)

SetRequestID adds the requestId to the request get using g e t params

func (*RequestGetUsingGETParams) SetTimeout

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

SetTimeout adds the timeout to the request get using g e t params

func (*RequestGetUsingGETParams) WithContext

WithContext adds the context to the request get using g e t params

func (*RequestGetUsingGETParams) WithDefaults added in v1.2.4

WithDefaults hydrates default values in the request get using g e t params (not the query body).

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

func (*RequestGetUsingGETParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the request get using g e t params

func (*RequestGetUsingGETParams) WithRequestID

func (o *RequestGetUsingGETParams) WithRequestID(requestID string) *RequestGetUsingGETParams

WithRequestID adds the requestID to the request get using g e t params

func (*RequestGetUsingGETParams) WithTimeout

WithTimeout adds the timeout to the request get using g e t params

func (*RequestGetUsingGETParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RequestGetUsingGETReader

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

RequestGetUsingGETReader is a Reader for the RequestGetUsingGET structure.

func (*RequestGetUsingGETReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RequestListUsingGETBadRequest

type RequestListUsingGETBadRequest struct {
	Payload *models.ProxyResponseMessage
}
RequestListUsingGETBadRequest describes a response with status code 400, with default header values.

Bad request, error occurred. For more details see log messages.

func NewRequestListUsingGETBadRequest

func NewRequestListUsingGETBadRequest() *RequestListUsingGETBadRequest

NewRequestListUsingGETBadRequest creates a RequestListUsingGETBadRequest with default headers values

func (*RequestListUsingGETBadRequest) Error

func (*RequestListUsingGETBadRequest) GetPayload added in v1.2.0

type RequestListUsingGETOK

type RequestListUsingGETOK struct {
	Payload *models.RequestInstanceListResponse
}
RequestListUsingGETOK describes a response with status code 200, with default header values.

OK

func NewRequestListUsingGETOK

func NewRequestListUsingGETOK() *RequestListUsingGETOK

NewRequestListUsingGETOK creates a RequestListUsingGETOK with default headers values

func (*RequestListUsingGETOK) Error

func (o *RequestListUsingGETOK) Error() string

func (*RequestListUsingGETOK) GetPayload

type RequestListUsingGETParams

type RequestListUsingGETParams struct {

	/* Active.

	   active
	*/
	Active *bool

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

RequestListUsingGETParams contains all the parameters to send to the API endpoint

for the request list using g e t operation.

Typically these are written to a http.Request.

func NewRequestListUsingGETParams

func NewRequestListUsingGETParams() *RequestListUsingGETParams

NewRequestListUsingGETParams creates a new RequestListUsingGETParams 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 NewRequestListUsingGETParamsWithContext

func NewRequestListUsingGETParamsWithContext(ctx context.Context) *RequestListUsingGETParams

NewRequestListUsingGETParamsWithContext creates a new RequestListUsingGETParams object with the ability to set a context for a request.

func NewRequestListUsingGETParamsWithHTTPClient

func NewRequestListUsingGETParamsWithHTTPClient(client *http.Client) *RequestListUsingGETParams

NewRequestListUsingGETParamsWithHTTPClient creates a new RequestListUsingGETParams object with the ability to set a custom HTTPClient for a request.

func NewRequestListUsingGETParamsWithTimeout

func NewRequestListUsingGETParamsWithTimeout(timeout time.Duration) *RequestListUsingGETParams

NewRequestListUsingGETParamsWithTimeout creates a new RequestListUsingGETParams object with the ability to set a timeout on a request.

func (*RequestListUsingGETParams) SetActive added in v1.1.0

func (o *RequestListUsingGETParams) SetActive(active *bool)

SetActive adds the active to the request list using g e t params

func (*RequestListUsingGETParams) SetContext

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

SetContext adds the context to the request list using g e t params

func (*RequestListUsingGETParams) SetDefaults added in v1.2.4

func (o *RequestListUsingGETParams) SetDefaults()

SetDefaults hydrates default values in the request list using g e t params (not the query body).

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

func (*RequestListUsingGETParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the request list using g e t params

func (*RequestListUsingGETParams) SetTimeout

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

SetTimeout adds the timeout to the request list using g e t params

func (*RequestListUsingGETParams) WithActive added in v1.1.0

WithActive adds the active to the request list using g e t params

func (*RequestListUsingGETParams) WithContext

WithContext adds the context to the request list using g e t params

func (*RequestListUsingGETParams) WithDefaults added in v1.2.4

WithDefaults hydrates default values in the request list using g e t params (not the query body).

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

func (*RequestListUsingGETParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the request list using g e t params

func (*RequestListUsingGETParams) WithTimeout

WithTimeout adds the timeout to the request list using g e t params

func (*RequestListUsingGETParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RequestListUsingGETReader

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

RequestListUsingGETReader is a Reader for the RequestListUsingGET structure.

func (*RequestListUsingGETReader) ReadResponse

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