update_service

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 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 ApplyUpdateOK

type ApplyUpdateOK struct {
	Payload *models.UpdateApplyUpdateResponse
}

ApplyUpdateOK handles this case with default header values.

ApplyUpdateOK apply update o k

func NewApplyUpdateOK

func NewApplyUpdateOK() *ApplyUpdateOK

NewApplyUpdateOK creates a ApplyUpdateOK with default headers values

func (*ApplyUpdateOK) Error

func (o *ApplyUpdateOK) Error() string

type ApplyUpdateParams

type ApplyUpdateParams struct {

	/*TargetVersion*/
	TargetVersion string
	/*Body*/
	Body *models.UpdateApplyUpdateRequest

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

ApplyUpdateParams contains all the parameters to send to the API endpoint for the apply update operation typically these are written to a http.Request

func NewApplyUpdateParams

func NewApplyUpdateParams() *ApplyUpdateParams

NewApplyUpdateParams creates a new ApplyUpdateParams object with the default values initialized.

func NewApplyUpdateParamsWithContext

func NewApplyUpdateParamsWithContext(ctx context.Context) *ApplyUpdateParams

NewApplyUpdateParamsWithContext creates a new ApplyUpdateParams object with the default values initialized, and the ability to set a context for a request

func NewApplyUpdateParamsWithHTTPClient

func NewApplyUpdateParamsWithHTTPClient(client *http.Client) *ApplyUpdateParams

NewApplyUpdateParamsWithHTTPClient creates a new ApplyUpdateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewApplyUpdateParamsWithTimeout

func NewApplyUpdateParamsWithTimeout(timeout time.Duration) *ApplyUpdateParams

NewApplyUpdateParamsWithTimeout creates a new ApplyUpdateParams object with the default values initialized, and the ability to set a timeout on a request

func (*ApplyUpdateParams) SetBody

SetBody adds the body to the apply update params

func (*ApplyUpdateParams) SetContext

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

SetContext adds the context to the apply update params

func (*ApplyUpdateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the apply update params

func (*ApplyUpdateParams) SetTargetVersion

func (o *ApplyUpdateParams) SetTargetVersion(targetVersion string)

SetTargetVersion adds the targetVersion to the apply update params

func (*ApplyUpdateParams) SetTimeout

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

SetTimeout adds the timeout to the apply update params

func (*ApplyUpdateParams) WithBody

WithBody adds the body to the apply update params

func (*ApplyUpdateParams) WithContext

func (o *ApplyUpdateParams) WithContext(ctx context.Context) *ApplyUpdateParams

WithContext adds the context to the apply update params

func (*ApplyUpdateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the apply update params

func (*ApplyUpdateParams) WithTargetVersion

func (o *ApplyUpdateParams) WithTargetVersion(targetVersion string) *ApplyUpdateParams

WithTargetVersion adds the targetVersion to the apply update params

func (*ApplyUpdateParams) WithTimeout

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

WithTimeout adds the timeout to the apply update params

func (*ApplyUpdateParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ApplyUpdateReader

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

ApplyUpdateReader is a Reader for the ApplyUpdate structure.

func (*ApplyUpdateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type Client

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

Client for update service API

func New

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

New creates a new update service API client.

func (*Client) ApplyUpdate

func (a *Client) ApplyUpdate(params *ApplyUpdateParams) (*ApplyUpdateOK, error)

ApplyUpdate applies an update to a given version

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateRequired

func (a *Client) UpdateRequired(params *UpdateRequiredParams) (*UpdateRequiredOK, error)

UpdateRequired checks the remote server to see if there are available binaries

type UpdateRequiredOK

type UpdateRequiredOK struct {
	Payload *models.UpdateUpdateResponse
}

UpdateRequiredOK handles this case with default header values.

UpdateRequiredOK update required o k

func NewUpdateRequiredOK

func NewUpdateRequiredOK() *UpdateRequiredOK

NewUpdateRequiredOK creates a UpdateRequiredOK with default headers values

func (*UpdateRequiredOK) Error

func (o *UpdateRequiredOK) Error() string

type UpdateRequiredParams

type UpdateRequiredParams struct {

	/*Body*/
	Body *models.UpdateUpdateRequest

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

UpdateRequiredParams contains all the parameters to send to the API endpoint for the update required operation typically these are written to a http.Request

func NewUpdateRequiredParams

func NewUpdateRequiredParams() *UpdateRequiredParams

NewUpdateRequiredParams creates a new UpdateRequiredParams object with the default values initialized.

func NewUpdateRequiredParamsWithContext

func NewUpdateRequiredParamsWithContext(ctx context.Context) *UpdateRequiredParams

NewUpdateRequiredParamsWithContext creates a new UpdateRequiredParams object with the default values initialized, and the ability to set a context for a request

func NewUpdateRequiredParamsWithHTTPClient

func NewUpdateRequiredParamsWithHTTPClient(client *http.Client) *UpdateRequiredParams

NewUpdateRequiredParamsWithHTTPClient creates a new UpdateRequiredParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewUpdateRequiredParamsWithTimeout

func NewUpdateRequiredParamsWithTimeout(timeout time.Duration) *UpdateRequiredParams

NewUpdateRequiredParamsWithTimeout creates a new UpdateRequiredParams object with the default values initialized, and the ability to set a timeout on a request

func (*UpdateRequiredParams) SetBody

SetBody adds the body to the update required params

func (*UpdateRequiredParams) SetContext

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

SetContext adds the context to the update required params

func (*UpdateRequiredParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update required params

func (*UpdateRequiredParams) SetTimeout

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

SetTimeout adds the timeout to the update required params

func (*UpdateRequiredParams) WithBody

WithBody adds the body to the update required params

func (*UpdateRequiredParams) WithContext

WithContext adds the context to the update required params

func (*UpdateRequiredParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update required params

func (*UpdateRequiredParams) WithTimeout

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

WithTimeout adds the timeout to the update required params

func (*UpdateRequiredParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateRequiredReader

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

UpdateRequiredReader is a Reader for the UpdateRequired structure.

func (*UpdateRequiredReader) ReadResponse

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