provider_requests

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 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 provider requests API

func (*Client) PatchUsingPATCH

func (a *Client) PatchUsingPATCH(params *PatchUsingPATCHParams, opts ...ClientOption) (*PatchUsingPATCHOK, error)

PatchUsingPATCH handles unfinished requests

Handles unfinished requests that are stopped because of service shutdown or a service outage.

func (*Client) PostUsingPOST

func (a *Client) PostUsingPOST(params *PostUsingPOSTParams, opts ...ClientOption) (*PostUsingPOSTOK, error)

PostUsingPOST handles blueprint resources requests

Handles blueprint requests for resource operations - allocation, provisioning, removal

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 {
	PatchUsingPATCH(params *PatchUsingPATCHParams, opts ...ClientOption) (*PatchUsingPATCHOK, error)

	PostUsingPOST(params *PostUsingPOSTParams, opts ...ClientOption) (*PostUsingPOSTOK, 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 provider requests API client.

type PatchUsingPATCHForbidden added in v0.5.0

type PatchUsingPATCHForbidden struct {
}

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

Forbidden, the user lacks permissions

func NewPatchUsingPATCHForbidden added in v0.5.0

func NewPatchUsingPATCHForbidden() *PatchUsingPATCHForbidden

NewPatchUsingPATCHForbidden creates a PatchUsingPATCHForbidden with default headers values

func (*PatchUsingPATCHForbidden) Error added in v0.5.0

func (o *PatchUsingPATCHForbidden) Error() string

func (*PatchUsingPATCHForbidden) IsClientError added in v0.5.0

func (o *PatchUsingPATCHForbidden) IsClientError() bool

IsClientError returns true when this patch using p a t c h forbidden response has a 4xx status code

func (*PatchUsingPATCHForbidden) IsCode added in v0.5.0

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

IsCode returns true when this patch using p a t c h forbidden response a status code equal to that given

func (*PatchUsingPATCHForbidden) IsRedirect added in v0.5.0

func (o *PatchUsingPATCHForbidden) IsRedirect() bool

IsRedirect returns true when this patch using p a t c h forbidden response has a 3xx status code

func (*PatchUsingPATCHForbidden) IsServerError added in v0.5.0

func (o *PatchUsingPATCHForbidden) IsServerError() bool

IsServerError returns true when this patch using p a t c h forbidden response has a 5xx status code

func (*PatchUsingPATCHForbidden) IsSuccess added in v0.5.0

func (o *PatchUsingPATCHForbidden) IsSuccess() bool

IsSuccess returns true when this patch using p a t c h forbidden response has a 2xx status code

func (*PatchUsingPATCHForbidden) String added in v0.5.0

func (o *PatchUsingPATCHForbidden) String() string

type PatchUsingPATCHOK

type PatchUsingPATCHOK struct {
	Payload *models.ResourceResponse
}

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

OK

func NewPatchUsingPATCHOK

func NewPatchUsingPATCHOK() *PatchUsingPATCHOK

NewPatchUsingPATCHOK creates a PatchUsingPATCHOK with default headers values

func (*PatchUsingPATCHOK) Error

func (o *PatchUsingPATCHOK) Error() string

func (*PatchUsingPATCHOK) GetPayload

func (o *PatchUsingPATCHOK) GetPayload() *models.ResourceResponse

func (*PatchUsingPATCHOK) IsClientError added in v0.5.0

func (o *PatchUsingPATCHOK) IsClientError() bool

IsClientError returns true when this patch using p a t c h o k response has a 4xx status code

func (*PatchUsingPATCHOK) IsCode added in v0.5.0

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

IsCode returns true when this patch using p a t c h o k response a status code equal to that given

func (*PatchUsingPATCHOK) IsRedirect added in v0.5.0

func (o *PatchUsingPATCHOK) IsRedirect() bool

IsRedirect returns true when this patch using p a t c h o k response has a 3xx status code

func (*PatchUsingPATCHOK) IsServerError added in v0.5.0

func (o *PatchUsingPATCHOK) IsServerError() bool

IsServerError returns true when this patch using p a t c h o k response has a 5xx status code

func (*PatchUsingPATCHOK) IsSuccess added in v0.5.0

func (o *PatchUsingPATCHOK) IsSuccess() bool

IsSuccess returns true when this patch using p a t c h o k response has a 2xx status code

func (*PatchUsingPATCHOK) String added in v0.5.0

func (o *PatchUsingPATCHOK) String() string

type PatchUsingPATCHParams

type PatchUsingPATCHParams struct {

	/* Rr.

	   rr
	*/
	Rr *models.ResumeRequest

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

PatchUsingPATCHParams contains all the parameters to send to the API endpoint

for the patch using p a t c h operation.

Typically these are written to a http.Request.

func NewPatchUsingPATCHParams

func NewPatchUsingPATCHParams() *PatchUsingPATCHParams

NewPatchUsingPATCHParams creates a new PatchUsingPATCHParams 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 NewPatchUsingPATCHParamsWithContext

func NewPatchUsingPATCHParamsWithContext(ctx context.Context) *PatchUsingPATCHParams

NewPatchUsingPATCHParamsWithContext creates a new PatchUsingPATCHParams object with the ability to set a context for a request.

func NewPatchUsingPATCHParamsWithHTTPClient

func NewPatchUsingPATCHParamsWithHTTPClient(client *http.Client) *PatchUsingPATCHParams

NewPatchUsingPATCHParamsWithHTTPClient creates a new PatchUsingPATCHParams object with the ability to set a custom HTTPClient for a request.

func NewPatchUsingPATCHParamsWithTimeout

func NewPatchUsingPATCHParamsWithTimeout(timeout time.Duration) *PatchUsingPATCHParams

NewPatchUsingPATCHParamsWithTimeout creates a new PatchUsingPATCHParams object with the ability to set a timeout on a request.

func (*PatchUsingPATCHParams) SetContext

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

SetContext adds the context to the patch using p a t c h params

func (*PatchUsingPATCHParams) SetDefaults

func (o *PatchUsingPATCHParams) SetDefaults()

SetDefaults hydrates default values in the patch using p a t c h params (not the query body).

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

func (*PatchUsingPATCHParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the patch using p a t c h params

func (*PatchUsingPATCHParams) SetRr

SetRr adds the rr to the patch using p a t c h params

func (*PatchUsingPATCHParams) SetTimeout

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

SetTimeout adds the timeout to the patch using p a t c h params

func (*PatchUsingPATCHParams) WithContext

WithContext adds the context to the patch using p a t c h params

func (*PatchUsingPATCHParams) WithDefaults

func (o *PatchUsingPATCHParams) WithDefaults() *PatchUsingPATCHParams

WithDefaults hydrates default values in the patch using p a t c h params (not the query body).

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

func (*PatchUsingPATCHParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the patch using p a t c h params

func (*PatchUsingPATCHParams) WithRr

WithRr adds the rr to the patch using p a t c h params

func (*PatchUsingPATCHParams) WithTimeout

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

WithTimeout adds the timeout to the patch using p a t c h params

func (*PatchUsingPATCHParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PatchUsingPATCHReader

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

PatchUsingPATCHReader is a Reader for the PatchUsingPATCH structure.

func (*PatchUsingPATCHReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostUsingPOSTForbidden added in v0.5.0

type PostUsingPOSTForbidden struct {
}

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

Forbidden, the user lacks permissions

func NewPostUsingPOSTForbidden added in v0.5.0

func NewPostUsingPOSTForbidden() *PostUsingPOSTForbidden

NewPostUsingPOSTForbidden creates a PostUsingPOSTForbidden with default headers values

func (*PostUsingPOSTForbidden) Error added in v0.5.0

func (o *PostUsingPOSTForbidden) Error() string

func (*PostUsingPOSTForbidden) IsClientError added in v0.5.0

func (o *PostUsingPOSTForbidden) IsClientError() bool

IsClientError returns true when this post using p o s t forbidden response has a 4xx status code

func (*PostUsingPOSTForbidden) IsCode added in v0.5.0

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

IsCode returns true when this post using p o s t forbidden response a status code equal to that given

func (*PostUsingPOSTForbidden) IsRedirect added in v0.5.0

func (o *PostUsingPOSTForbidden) IsRedirect() bool

IsRedirect returns true when this post using p o s t forbidden response has a 3xx status code

func (*PostUsingPOSTForbidden) IsServerError added in v0.5.0

func (o *PostUsingPOSTForbidden) IsServerError() bool

IsServerError returns true when this post using p o s t forbidden response has a 5xx status code

func (*PostUsingPOSTForbidden) IsSuccess added in v0.5.0

func (o *PostUsingPOSTForbidden) IsSuccess() bool

IsSuccess returns true when this post using p o s t forbidden response has a 2xx status code

func (*PostUsingPOSTForbidden) String added in v0.5.0

func (o *PostUsingPOSTForbidden) String() string

type PostUsingPOSTOK

type PostUsingPOSTOK struct {
	Payload *models.ResourceResponse
}

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

OK

func NewPostUsingPOSTOK

func NewPostUsingPOSTOK() *PostUsingPOSTOK

NewPostUsingPOSTOK creates a PostUsingPOSTOK with default headers values

func (*PostUsingPOSTOK) Error

func (o *PostUsingPOSTOK) Error() string

func (*PostUsingPOSTOK) GetPayload

func (o *PostUsingPOSTOK) GetPayload() *models.ResourceResponse

func (*PostUsingPOSTOK) IsClientError added in v0.5.0

func (o *PostUsingPOSTOK) IsClientError() bool

IsClientError returns true when this post using p o s t o k response has a 4xx status code

func (*PostUsingPOSTOK) IsCode added in v0.5.0

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

IsCode returns true when this post using p o s t o k response a status code equal to that given

func (*PostUsingPOSTOK) IsRedirect added in v0.5.0

func (o *PostUsingPOSTOK) IsRedirect() bool

IsRedirect returns true when this post using p o s t o k response has a 3xx status code

func (*PostUsingPOSTOK) IsServerError added in v0.5.0

func (o *PostUsingPOSTOK) IsServerError() bool

IsServerError returns true when this post using p o s t o k response has a 5xx status code

func (*PostUsingPOSTOK) IsSuccess added in v0.5.0

func (o *PostUsingPOSTOK) IsSuccess() bool

IsSuccess returns true when this post using p o s t o k response has a 2xx status code

func (*PostUsingPOSTOK) String added in v0.5.0

func (o *PostUsingPOSTOK) String() string

type PostUsingPOSTParams

type PostUsingPOSTParams struct {

	/* Request.

	   request
	*/
	Request *models.ResourceRequest

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

PostUsingPOSTParams contains all the parameters to send to the API endpoint

for the post using p o s t operation.

Typically these are written to a http.Request.

func NewPostUsingPOSTParams

func NewPostUsingPOSTParams() *PostUsingPOSTParams

NewPostUsingPOSTParams creates a new PostUsingPOSTParams 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 NewPostUsingPOSTParamsWithContext

func NewPostUsingPOSTParamsWithContext(ctx context.Context) *PostUsingPOSTParams

NewPostUsingPOSTParamsWithContext creates a new PostUsingPOSTParams object with the ability to set a context for a request.

func NewPostUsingPOSTParamsWithHTTPClient

func NewPostUsingPOSTParamsWithHTTPClient(client *http.Client) *PostUsingPOSTParams

NewPostUsingPOSTParamsWithHTTPClient creates a new PostUsingPOSTParams object with the ability to set a custom HTTPClient for a request.

func NewPostUsingPOSTParamsWithTimeout

func NewPostUsingPOSTParamsWithTimeout(timeout time.Duration) *PostUsingPOSTParams

NewPostUsingPOSTParamsWithTimeout creates a new PostUsingPOSTParams object with the ability to set a timeout on a request.

func (*PostUsingPOSTParams) SetContext

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

SetContext adds the context to the post using p o s t params

func (*PostUsingPOSTParams) SetDefaults

func (o *PostUsingPOSTParams) SetDefaults()

SetDefaults hydrates default values in the post using p o s t params (not the query body).

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

func (*PostUsingPOSTParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post using p o s t params

func (*PostUsingPOSTParams) SetRequest

func (o *PostUsingPOSTParams) SetRequest(request *models.ResourceRequest)

SetRequest adds the request to the post using p o s t params

func (*PostUsingPOSTParams) SetTimeout

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

SetTimeout adds the timeout to the post using p o s t params

func (*PostUsingPOSTParams) WithContext

WithContext adds the context to the post using p o s t params

func (*PostUsingPOSTParams) WithDefaults

func (o *PostUsingPOSTParams) WithDefaults() *PostUsingPOSTParams

WithDefaults hydrates default values in the post using p o s t params (not the query body).

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

func (*PostUsingPOSTParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post using p o s t params

func (*PostUsingPOSTParams) WithRequest

WithRequest adds the request to the post using p o s t params

func (*PostUsingPOSTParams) WithTimeout

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

WithTimeout adds the timeout to the post using p o s t params

func (*PostUsingPOSTParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostUsingPOSTReader

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

PostUsingPOSTReader is a Reader for the PostUsingPOST structure.

func (*PostUsingPOSTReader) ReadResponse

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