request

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2020 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 New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new request API client.

func (*Client) DeleteRequest

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

DeleteRequest deletes request

Delete a single Request

func (*Client) GetRequestTracker

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

GetRequestTracker gets request tracker

Get request tracker with a given id

func (*Client) GetRequestTrackers

func (a *Client) GetRequestTrackers(params *GetRequestTrackersParams) (*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 DeleteRequestForbidden

type DeleteRequestForbidden struct {
}

DeleteRequestForbidden handles this case 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

type DeleteRequestNoContent

type DeleteRequestNoContent struct {
}

DeleteRequestNoContent handles this case 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 values initialized.

func NewDeleteRequestParamsWithContext

func NewDeleteRequestParamsWithContext(ctx context.Context) *DeleteRequestParams

NewDeleteRequestParamsWithContext creates a new DeleteRequestParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 {
}

GetRequestTrackerForbidden handles this case with default header values.

Forbidden

func NewGetRequestTrackerForbidden

func NewGetRequestTrackerForbidden() *GetRequestTrackerForbidden

NewGetRequestTrackerForbidden creates a GetRequestTrackerForbidden with default headers values

func (*GetRequestTrackerForbidden) Error

type GetRequestTrackerNotFound

type GetRequestTrackerNotFound struct {
}

GetRequestTrackerNotFound handles this case 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

type GetRequestTrackerOK

type GetRequestTrackerOK struct {
	Payload *models.RequestTracker
}

GetRequestTrackerOK handles this case 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 values initialized.

func NewGetRequestTrackerParamsWithContext

func NewGetRequestTrackerParamsWithContext(ctx context.Context) *GetRequestTrackerParams

NewGetRequestTrackerParamsWithContext creates a new GetRequestTrackerParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 {
}

GetRequestTrackersForbidden handles this case with default header values.

Forbidden

func NewGetRequestTrackersForbidden

func NewGetRequestTrackersForbidden() *GetRequestTrackersForbidden

NewGetRequestTrackersForbidden creates a GetRequestTrackersForbidden with default headers values

func (*GetRequestTrackersForbidden) Error

type GetRequestTrackersOK

type GetRequestTrackersOK struct {
	Payload *models.RequestTrackerResult
}

GetRequestTrackersOK handles this case 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 values initialized.

func NewGetRequestTrackersParamsWithContext

func NewGetRequestTrackersParamsWithContext(ctx context.Context) *GetRequestTrackersParams

NewGetRequestTrackersParamsWithContext creates a new GetRequestTrackersParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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