update_service

package
v3.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 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 ApplyUpdateForbidden

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

User has no permission to access this resource

func NewApplyUpdateForbidden

func NewApplyUpdateForbidden() *ApplyUpdateForbidden

NewApplyUpdateForbidden creates a ApplyUpdateForbidden with default headers values

func (*ApplyUpdateForbidden) Error

func (o *ApplyUpdateForbidden) Error() string

func (*ApplyUpdateForbidden) GetPayload

func (o *ApplyUpdateForbidden) GetPayload() *models.RestError

type ApplyUpdateInternalServerError

type ApplyUpdateInternalServerError struct {
	Payload *models.RestError
}
ApplyUpdateInternalServerError describes a response with status code 500, with default header values.

An internal error occurred in the backend

func NewApplyUpdateInternalServerError

func NewApplyUpdateInternalServerError() *ApplyUpdateInternalServerError

NewApplyUpdateInternalServerError creates a ApplyUpdateInternalServerError with default headers values

func (*ApplyUpdateInternalServerError) Error

func (*ApplyUpdateInternalServerError) GetPayload

type ApplyUpdateNotFound

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

Resource does not exist in the system

func NewApplyUpdateNotFound

func NewApplyUpdateNotFound() *ApplyUpdateNotFound

NewApplyUpdateNotFound creates a ApplyUpdateNotFound with default headers values

func (*ApplyUpdateNotFound) Error

func (o *ApplyUpdateNotFound) Error() string

func (*ApplyUpdateNotFound) GetPayload

func (o *ApplyUpdateNotFound) GetPayload() *models.RestError

type ApplyUpdateOK

type ApplyUpdateOK struct {
	Payload *models.UpdateApplyUpdateResponse
}
ApplyUpdateOK describes a response with status code 200, 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

func (*ApplyUpdateOK) GetPayload

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 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 NewApplyUpdateParamsWithContext

func NewApplyUpdateParamsWithContext(ctx context.Context) *ApplyUpdateParams

NewApplyUpdateParamsWithContext creates a new ApplyUpdateParams object with 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 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 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) SetDefaults

func (o *ApplyUpdateParams) SetDefaults()

SetDefaults hydrates default values in the apply update params (not the query body).

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

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) WithDefaults

func (o *ApplyUpdateParams) WithDefaults() *ApplyUpdateParams

WithDefaults hydrates default values in the apply update params (not the query body).

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

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 ApplyUpdateUnauthorized

type ApplyUpdateUnauthorized struct {
}
ApplyUpdateUnauthorized describes a response with status code 401, with default header values.

User is not authenticated

func NewApplyUpdateUnauthorized

func NewApplyUpdateUnauthorized() *ApplyUpdateUnauthorized

NewApplyUpdateUnauthorized creates a ApplyUpdateUnauthorized with default headers values

func (*ApplyUpdateUnauthorized) Error

func (o *ApplyUpdateUnauthorized) Error() string

type Client

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

Client for update service API

func (*Client) ApplyUpdate

func (a *Client) ApplyUpdate(params *ApplyUpdateParams, opts ...ClientOption) (*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, opts ...ClientOption) (*UpdateRequiredOK, error)

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

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	ApplyUpdate(params *ApplyUpdateParams, opts ...ClientOption) (*ApplyUpdateOK, error)

	UpdateRequired(params *UpdateRequiredParams, opts ...ClientOption) (*UpdateRequiredOK, 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 update service API client.

type UpdateRequiredForbidden

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

User has no permission to access this resource

func NewUpdateRequiredForbidden

func NewUpdateRequiredForbidden() *UpdateRequiredForbidden

NewUpdateRequiredForbidden creates a UpdateRequiredForbidden with default headers values

func (*UpdateRequiredForbidden) Error

func (o *UpdateRequiredForbidden) Error() string

func (*UpdateRequiredForbidden) GetPayload

func (o *UpdateRequiredForbidden) GetPayload() *models.RestError

type UpdateRequiredInternalServerError

type UpdateRequiredInternalServerError struct {
	Payload *models.RestError
}
UpdateRequiredInternalServerError describes a response with status code 500, with default header values.

An internal error occurred in the backend

func NewUpdateRequiredInternalServerError

func NewUpdateRequiredInternalServerError() *UpdateRequiredInternalServerError

NewUpdateRequiredInternalServerError creates a UpdateRequiredInternalServerError with default headers values

func (*UpdateRequiredInternalServerError) Error

func (*UpdateRequiredInternalServerError) GetPayload

type UpdateRequiredNotFound

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

Resource does not exist in the system

func NewUpdateRequiredNotFound

func NewUpdateRequiredNotFound() *UpdateRequiredNotFound

NewUpdateRequiredNotFound creates a UpdateRequiredNotFound with default headers values

func (*UpdateRequiredNotFound) Error

func (o *UpdateRequiredNotFound) Error() string

func (*UpdateRequiredNotFound) GetPayload

func (o *UpdateRequiredNotFound) GetPayload() *models.RestError

type UpdateRequiredOK

type UpdateRequiredOK struct {
	Payload *models.UpdateUpdateResponse
}
UpdateRequiredOK describes a response with status code 200, 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

func (*UpdateRequiredOK) GetPayload

func (o *UpdateRequiredOK) GetPayload() *models.UpdateUpdateResponse

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 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 NewUpdateRequiredParamsWithContext

func NewUpdateRequiredParamsWithContext(ctx context.Context) *UpdateRequiredParams

NewUpdateRequiredParamsWithContext creates a new UpdateRequiredParams object with 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 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 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) SetDefaults

func (o *UpdateRequiredParams) SetDefaults()

SetDefaults hydrates default values in the update required params (not the query body).

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

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) WithDefaults

func (o *UpdateRequiredParams) WithDefaults() *UpdateRequiredParams

WithDefaults hydrates default values in the update required params (not the query body).

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

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.

type UpdateRequiredUnauthorized

type UpdateRequiredUnauthorized struct {
}
UpdateRequiredUnauthorized describes a response with status code 401, with default header values.

User is not authenticated

func NewUpdateRequiredUnauthorized

func NewUpdateRequiredUnauthorized() *UpdateRequiredUnauthorized

NewUpdateRequiredUnauthorized creates a UpdateRequiredUnauthorized with default headers values

func (*UpdateRequiredUnauthorized) Error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL