request

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: Apache-2.0 Imports: 10 Imported by: 1

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 request API

func (*Client) DeleteRequest

func (a *Client) DeleteRequest(params *DeleteRequestParams, opts ...ClientOption) (*DeleteRequestNoContent, error)

DeleteRequest deletes request

Delete a single Request

func (*Client) GetRequestTracker

func (a *Client) GetRequestTracker(params *GetRequestTrackerParams, opts ...ClientOption) (*GetRequestTrackerOK, error)

GetRequestTracker gets request tracker

Get request tracker with a given id

func (*Client) GetRequestTrackers

func (a *Client) GetRequestTrackers(params *GetRequestTrackersParams, opts ...ClientOption) (*GetRequestTrackersOK, error)

GetRequestTrackers gets request tracker

Get all request trackers

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption added in v0.2.20

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService added in v0.2.18

type ClientService interface {
	DeleteRequest(params *DeleteRequestParams, opts ...ClientOption) (*DeleteRequestNoContent, error)

	GetRequestTracker(params *GetRequestTrackerParams, opts ...ClientOption) (*GetRequestTrackerOK, error)

	GetRequestTrackers(params *GetRequestTrackersParams, opts ...ClientOption) (*GetRequestTrackersOK, 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 request API client.

type DeleteRequestForbidden

type DeleteRequestForbidden struct {
	Payload *models.ServiceErrorResponse
}
DeleteRequestForbidden describes a response with status code 403, with default header values.

Forbidden

func NewDeleteRequestForbidden

func NewDeleteRequestForbidden() *DeleteRequestForbidden

NewDeleteRequestForbidden creates a DeleteRequestForbidden with default headers values

func (*DeleteRequestForbidden) Error

func (o *DeleteRequestForbidden) Error() string

func (*DeleteRequestForbidden) GetPayload added in v0.2.20

type DeleteRequestNoContent

type DeleteRequestNoContent struct {
}
DeleteRequestNoContent describes a response with status code 204, with default header values.

No Content

func NewDeleteRequestNoContent

func NewDeleteRequestNoContent() *DeleteRequestNoContent

NewDeleteRequestNoContent creates a DeleteRequestNoContent with default headers values

func (*DeleteRequestNoContent) Error

func (o *DeleteRequestNoContent) Error() string

type DeleteRequestParams

type DeleteRequestParams struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
	*/
	APIVersion *string

	/* ID.

	   The ID of the request.
	*/
	ID string

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

DeleteRequestParams contains all the parameters to send to the API endpoint

for the delete request operation.

Typically these are written to a http.Request.

func NewDeleteRequestParams

func NewDeleteRequestParams() *DeleteRequestParams

NewDeleteRequestParams creates a new DeleteRequestParams 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 NewDeleteRequestParamsWithContext

func NewDeleteRequestParamsWithContext(ctx context.Context) *DeleteRequestParams

NewDeleteRequestParamsWithContext creates a new DeleteRequestParams object with the ability to set a context for a request.

func NewDeleteRequestParamsWithHTTPClient

func NewDeleteRequestParamsWithHTTPClient(client *http.Client) *DeleteRequestParams

NewDeleteRequestParamsWithHTTPClient creates a new DeleteRequestParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteRequestParamsWithTimeout

func NewDeleteRequestParamsWithTimeout(timeout time.Duration) *DeleteRequestParams

NewDeleteRequestParamsWithTimeout creates a new DeleteRequestParams object with the ability to set a timeout on a request.

func (*DeleteRequestParams) SetAPIVersion

func (o *DeleteRequestParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the delete request params

func (*DeleteRequestParams) SetContext

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

SetContext adds the context to the delete request params

func (*DeleteRequestParams) SetDefaults added in v0.2.20

func (o *DeleteRequestParams) SetDefaults()

SetDefaults hydrates default values in the delete request params (not the query body).

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

func (*DeleteRequestParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete request params

func (*DeleteRequestParams) SetID

func (o *DeleteRequestParams) SetID(id string)

SetID adds the id to the delete request params

func (*DeleteRequestParams) SetTimeout

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

SetTimeout adds the timeout to the delete request params

func (*DeleteRequestParams) WithAPIVersion

func (o *DeleteRequestParams) WithAPIVersion(aPIVersion *string) *DeleteRequestParams

WithAPIVersion adds the aPIVersion to the delete request params

func (*DeleteRequestParams) WithContext

WithContext adds the context to the delete request params

func (*DeleteRequestParams) WithDefaults added in v0.2.20

func (o *DeleteRequestParams) WithDefaults() *DeleteRequestParams

WithDefaults hydrates default values in the delete request params (not the query body).

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

func (*DeleteRequestParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete request params

func (*DeleteRequestParams) WithID

WithID adds the id to the delete request params

func (*DeleteRequestParams) WithTimeout

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

WithTimeout adds the timeout to the delete request params

func (*DeleteRequestParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteRequestReader

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

DeleteRequestReader is a Reader for the DeleteRequest structure.

func (*DeleteRequestReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRequestTrackerForbidden

type GetRequestTrackerForbidden struct {
	Payload *models.ServiceErrorResponse
}
GetRequestTrackerForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetRequestTrackerForbidden

func NewGetRequestTrackerForbidden() *GetRequestTrackerForbidden

NewGetRequestTrackerForbidden creates a GetRequestTrackerForbidden with default headers values

func (*GetRequestTrackerForbidden) Error

func (*GetRequestTrackerForbidden) GetPayload added in v0.2.20

type GetRequestTrackerNotFound

type GetRequestTrackerNotFound struct {
	Payload *models.Error
}
GetRequestTrackerNotFound describes a response with status code 404, with default header values.

Not Found

func NewGetRequestTrackerNotFound

func NewGetRequestTrackerNotFound() *GetRequestTrackerNotFound

NewGetRequestTrackerNotFound creates a GetRequestTrackerNotFound with default headers values

func (*GetRequestTrackerNotFound) Error

func (o *GetRequestTrackerNotFound) Error() string

func (*GetRequestTrackerNotFound) GetPayload added in v0.2.9

func (o *GetRequestTrackerNotFound) GetPayload() *models.Error

type GetRequestTrackerOK

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

successful operation

func NewGetRequestTrackerOK

func NewGetRequestTrackerOK() *GetRequestTrackerOK

NewGetRequestTrackerOK creates a GetRequestTrackerOK with default headers values

func (*GetRequestTrackerOK) Error

func (o *GetRequestTrackerOK) Error() string

func (*GetRequestTrackerOK) GetPayload

func (o *GetRequestTrackerOK) GetPayload() *models.RequestTracker

type GetRequestTrackerParams

type GetRequestTrackerParams struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
	*/
	APIVersion *string

	/* ID.

	   The ID of the request.
	*/
	ID string

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

GetRequestTrackerParams contains all the parameters to send to the API endpoint

for the get request tracker operation.

Typically these are written to a http.Request.

func NewGetRequestTrackerParams

func NewGetRequestTrackerParams() *GetRequestTrackerParams

NewGetRequestTrackerParams creates a new GetRequestTrackerParams 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 NewGetRequestTrackerParamsWithContext

func NewGetRequestTrackerParamsWithContext(ctx context.Context) *GetRequestTrackerParams

NewGetRequestTrackerParamsWithContext creates a new GetRequestTrackerParams object with the ability to set a context for a request.

func NewGetRequestTrackerParamsWithHTTPClient

func NewGetRequestTrackerParamsWithHTTPClient(client *http.Client) *GetRequestTrackerParams

NewGetRequestTrackerParamsWithHTTPClient creates a new GetRequestTrackerParams object with the ability to set a custom HTTPClient for a request.

func NewGetRequestTrackerParamsWithTimeout

func NewGetRequestTrackerParamsWithTimeout(timeout time.Duration) *GetRequestTrackerParams

NewGetRequestTrackerParamsWithTimeout creates a new GetRequestTrackerParams object with the ability to set a timeout on a request.

func (*GetRequestTrackerParams) SetAPIVersion

func (o *GetRequestTrackerParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the get request tracker params

func (*GetRequestTrackerParams) SetContext

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

SetContext adds the context to the get request tracker params

func (*GetRequestTrackerParams) SetDefaults added in v0.2.20

func (o *GetRequestTrackerParams) SetDefaults()

SetDefaults hydrates default values in the get request tracker params (not the query body).

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

func (*GetRequestTrackerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get request tracker params

func (*GetRequestTrackerParams) SetID

func (o *GetRequestTrackerParams) SetID(id string)

SetID adds the id to the get request tracker params

func (*GetRequestTrackerParams) SetTimeout

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

SetTimeout adds the timeout to the get request tracker params

func (*GetRequestTrackerParams) WithAPIVersion

func (o *GetRequestTrackerParams) WithAPIVersion(aPIVersion *string) *GetRequestTrackerParams

WithAPIVersion adds the aPIVersion to the get request tracker params

func (*GetRequestTrackerParams) WithContext

WithContext adds the context to the get request tracker params

func (*GetRequestTrackerParams) WithDefaults added in v0.2.20

WithDefaults hydrates default values in the get request tracker params (not the query body).

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

func (*GetRequestTrackerParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get request tracker params

func (*GetRequestTrackerParams) WithID

WithID adds the id to the get request tracker params

func (*GetRequestTrackerParams) WithTimeout

WithTimeout adds the timeout to the get request tracker params

func (*GetRequestTrackerParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetRequestTrackerReader

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

GetRequestTrackerReader is a Reader for the GetRequestTracker structure.

func (*GetRequestTrackerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRequestTrackersForbidden

type GetRequestTrackersForbidden struct {
	Payload *models.ServiceErrorResponse
}
GetRequestTrackersForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetRequestTrackersForbidden

func NewGetRequestTrackersForbidden() *GetRequestTrackersForbidden

NewGetRequestTrackersForbidden creates a GetRequestTrackersForbidden with default headers values

func (*GetRequestTrackersForbidden) Error

func (*GetRequestTrackersForbidden) GetPayload added in v0.2.20

type GetRequestTrackersOK

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

successful operation

func NewGetRequestTrackersOK

func NewGetRequestTrackersOK() *GetRequestTrackersOK

NewGetRequestTrackersOK creates a GetRequestTrackersOK with default headers values

func (*GetRequestTrackersOK) Error

func (o *GetRequestTrackersOK) Error() string

func (*GetRequestTrackersOK) GetPayload

type GetRequestTrackersParams

type GetRequestTrackersParams struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
	*/
	APIVersion *string

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

GetRequestTrackersParams contains all the parameters to send to the API endpoint

for the get request trackers operation.

Typically these are written to a http.Request.

func NewGetRequestTrackersParams

func NewGetRequestTrackersParams() *GetRequestTrackersParams

NewGetRequestTrackersParams creates a new GetRequestTrackersParams 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 NewGetRequestTrackersParamsWithContext

func NewGetRequestTrackersParamsWithContext(ctx context.Context) *GetRequestTrackersParams

NewGetRequestTrackersParamsWithContext creates a new GetRequestTrackersParams object with the ability to set a context for a request.

func NewGetRequestTrackersParamsWithHTTPClient

func NewGetRequestTrackersParamsWithHTTPClient(client *http.Client) *GetRequestTrackersParams

NewGetRequestTrackersParamsWithHTTPClient creates a new GetRequestTrackersParams object with the ability to set a custom HTTPClient for a request.

func NewGetRequestTrackersParamsWithTimeout

func NewGetRequestTrackersParamsWithTimeout(timeout time.Duration) *GetRequestTrackersParams

NewGetRequestTrackersParamsWithTimeout creates a new GetRequestTrackersParams object with the ability to set a timeout on a request.

func (*GetRequestTrackersParams) SetAPIVersion

func (o *GetRequestTrackersParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the get request trackers params

func (*GetRequestTrackersParams) SetContext

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

SetContext adds the context to the get request trackers params

func (*GetRequestTrackersParams) SetDefaults added in v0.2.20

func (o *GetRequestTrackersParams) SetDefaults()

SetDefaults hydrates default values in the get request trackers params (not the query body).

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

func (*GetRequestTrackersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get request trackers params

func (*GetRequestTrackersParams) SetTimeout

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

SetTimeout adds the timeout to the get request trackers params

func (*GetRequestTrackersParams) WithAPIVersion

func (o *GetRequestTrackersParams) WithAPIVersion(aPIVersion *string) *GetRequestTrackersParams

WithAPIVersion adds the aPIVersion to the get request trackers params

func (*GetRequestTrackersParams) WithContext

WithContext adds the context to the get request trackers params

func (*GetRequestTrackersParams) WithDefaults added in v0.2.20

WithDefaults hydrates default values in the get request trackers params (not the query body).

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

func (*GetRequestTrackersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get request trackers params

func (*GetRequestTrackersParams) WithTimeout

WithTimeout adds the timeout to the get request trackers params

func (*GetRequestTrackersParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetRequestTrackersReader

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

GetRequestTrackersReader is a Reader for the GetRequestTrackers structure.

func (*GetRequestTrackersReader) ReadResponse

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