update_service

package
v5.0.0-alpha5 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyUpdateBody

type ApplyUpdateBody struct {

	// Name of the package if it's not the same as the current binary
	PackageName string `json:"PackageName,omitempty"`
}

ApplyUpdateBody UpdateApplyUpdateRequest swagger:model ApplyUpdateBody

func (*ApplyUpdateBody) ContextValidate

func (o *ApplyUpdateBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this apply update body based on context it is used

func (*ApplyUpdateBody) MarshalBinary

func (o *ApplyUpdateBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ApplyUpdateBody) UnmarshalBinary

func (o *ApplyUpdateBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ApplyUpdateBody) Validate

func (o *ApplyUpdateBody) Validate(formats strfmt.Registry) error

Validate validates this apply update body

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

func (o *ApplyUpdateForbidden) Code() int

Code gets the status code for the apply update forbidden response

func (*ApplyUpdateForbidden) Error

func (o *ApplyUpdateForbidden) Error() string

func (*ApplyUpdateForbidden) GetPayload

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

func (*ApplyUpdateForbidden) IsClientError

func (o *ApplyUpdateForbidden) IsClientError() bool

IsClientError returns true when this apply update forbidden response has a 4xx status code

func (*ApplyUpdateForbidden) IsCode

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

IsCode returns true when this apply update forbidden response a status code equal to that given

func (*ApplyUpdateForbidden) IsRedirect

func (o *ApplyUpdateForbidden) IsRedirect() bool

IsRedirect returns true when this apply update forbidden response has a 3xx status code

func (*ApplyUpdateForbidden) IsServerError

func (o *ApplyUpdateForbidden) IsServerError() bool

IsServerError returns true when this apply update forbidden response has a 5xx status code

func (*ApplyUpdateForbidden) IsSuccess

func (o *ApplyUpdateForbidden) IsSuccess() bool

IsSuccess returns true when this apply update forbidden response has a 2xx status code

func (*ApplyUpdateForbidden) String

func (o *ApplyUpdateForbidden) String() string

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

Code gets the status code for the apply update internal server error response

func (*ApplyUpdateInternalServerError) Error

func (*ApplyUpdateInternalServerError) GetPayload

func (*ApplyUpdateInternalServerError) IsClientError

func (o *ApplyUpdateInternalServerError) IsClientError() bool

IsClientError returns true when this apply update internal server error response has a 4xx status code

func (*ApplyUpdateInternalServerError) IsCode

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

IsCode returns true when this apply update internal server error response a status code equal to that given

func (*ApplyUpdateInternalServerError) IsRedirect

func (o *ApplyUpdateInternalServerError) IsRedirect() bool

IsRedirect returns true when this apply update internal server error response has a 3xx status code

func (*ApplyUpdateInternalServerError) IsServerError

func (o *ApplyUpdateInternalServerError) IsServerError() bool

IsServerError returns true when this apply update internal server error response has a 5xx status code

func (*ApplyUpdateInternalServerError) IsSuccess

func (o *ApplyUpdateInternalServerError) IsSuccess() bool

IsSuccess returns true when this apply update internal server error response has a 2xx status code

func (*ApplyUpdateInternalServerError) String

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

func (o *ApplyUpdateNotFound) Code() int

Code gets the status code for the apply update not found response

func (*ApplyUpdateNotFound) Error

func (o *ApplyUpdateNotFound) Error() string

func (*ApplyUpdateNotFound) GetPayload

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

func (*ApplyUpdateNotFound) IsClientError

func (o *ApplyUpdateNotFound) IsClientError() bool

IsClientError returns true when this apply update not found response has a 4xx status code

func (*ApplyUpdateNotFound) IsCode

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

IsCode returns true when this apply update not found response a status code equal to that given

func (*ApplyUpdateNotFound) IsRedirect

func (o *ApplyUpdateNotFound) IsRedirect() bool

IsRedirect returns true when this apply update not found response has a 3xx status code

func (*ApplyUpdateNotFound) IsServerError

func (o *ApplyUpdateNotFound) IsServerError() bool

IsServerError returns true when this apply update not found response has a 5xx status code

func (*ApplyUpdateNotFound) IsSuccess

func (o *ApplyUpdateNotFound) IsSuccess() bool

IsSuccess returns true when this apply update not found response has a 2xx status code

func (*ApplyUpdateNotFound) String

func (o *ApplyUpdateNotFound) String() string

type ApplyUpdateOK

type ApplyUpdateOK struct {
	Payload *models.UpdateApplyUpdateResponse
}

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

A successful response.

func NewApplyUpdateOK

func NewApplyUpdateOK() *ApplyUpdateOK

NewApplyUpdateOK creates a ApplyUpdateOK with default headers values

func (*ApplyUpdateOK) Code

func (o *ApplyUpdateOK) Code() int

Code gets the status code for the apply update o k response

func (*ApplyUpdateOK) Error

func (o *ApplyUpdateOK) Error() string

func (*ApplyUpdateOK) GetPayload

func (*ApplyUpdateOK) IsClientError

func (o *ApplyUpdateOK) IsClientError() bool

IsClientError returns true when this apply update o k response has a 4xx status code

func (*ApplyUpdateOK) IsCode

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

IsCode returns true when this apply update o k response a status code equal to that given

func (*ApplyUpdateOK) IsRedirect

func (o *ApplyUpdateOK) IsRedirect() bool

IsRedirect returns true when this apply update o k response has a 3xx status code

func (*ApplyUpdateOK) IsServerError

func (o *ApplyUpdateOK) IsServerError() bool

IsServerError returns true when this apply update o k response has a 5xx status code

func (*ApplyUpdateOK) IsSuccess

func (o *ApplyUpdateOK) IsSuccess() bool

IsSuccess returns true when this apply update o k response has a 2xx status code

func (*ApplyUpdateOK) String

func (o *ApplyUpdateOK) String() string

type ApplyUpdateParams

type ApplyUpdateParams struct {

	/* TargetVersion.

	   Version of the target binary
	*/
	TargetVersion string

	// Body.
	Body ApplyUpdateBody

	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

func (o *ApplyUpdateParams) SetBody(body ApplyUpdateBody)

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

func (o *ApplyUpdateUnauthorized) Code() int

Code gets the status code for the apply update unauthorized response

func (*ApplyUpdateUnauthorized) Error

func (o *ApplyUpdateUnauthorized) Error() string

func (*ApplyUpdateUnauthorized) IsClientError

func (o *ApplyUpdateUnauthorized) IsClientError() bool

IsClientError returns true when this apply update unauthorized response has a 4xx status code

func (*ApplyUpdateUnauthorized) IsCode

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

IsCode returns true when this apply update unauthorized response a status code equal to that given

func (*ApplyUpdateUnauthorized) IsRedirect

func (o *ApplyUpdateUnauthorized) IsRedirect() bool

IsRedirect returns true when this apply update unauthorized response has a 3xx status code

func (*ApplyUpdateUnauthorized) IsServerError

func (o *ApplyUpdateUnauthorized) IsServerError() bool

IsServerError returns true when this apply update unauthorized response has a 5xx status code

func (*ApplyUpdateUnauthorized) IsSuccess

func (o *ApplyUpdateUnauthorized) IsSuccess() bool

IsSuccess returns true when this apply update unauthorized response has a 2xx status code

func (*ApplyUpdateUnauthorized) String

func (o *ApplyUpdateUnauthorized) String() 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) Code

func (o *UpdateRequiredForbidden) Code() int

Code gets the status code for the update required forbidden response

func (*UpdateRequiredForbidden) Error

func (o *UpdateRequiredForbidden) Error() string

func (*UpdateRequiredForbidden) GetPayload

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

func (*UpdateRequiredForbidden) IsClientError

func (o *UpdateRequiredForbidden) IsClientError() bool

IsClientError returns true when this update required forbidden response has a 4xx status code

func (*UpdateRequiredForbidden) IsCode

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

IsCode returns true when this update required forbidden response a status code equal to that given

func (*UpdateRequiredForbidden) IsRedirect

func (o *UpdateRequiredForbidden) IsRedirect() bool

IsRedirect returns true when this update required forbidden response has a 3xx status code

func (*UpdateRequiredForbidden) IsServerError

func (o *UpdateRequiredForbidden) IsServerError() bool

IsServerError returns true when this update required forbidden response has a 5xx status code

func (*UpdateRequiredForbidden) IsSuccess

func (o *UpdateRequiredForbidden) IsSuccess() bool

IsSuccess returns true when this update required forbidden response has a 2xx status code

func (*UpdateRequiredForbidden) String

func (o *UpdateRequiredForbidden) String() string

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

Code gets the status code for the update required internal server error response

func (*UpdateRequiredInternalServerError) Error

func (*UpdateRequiredInternalServerError) GetPayload

func (*UpdateRequiredInternalServerError) IsClientError

func (o *UpdateRequiredInternalServerError) IsClientError() bool

IsClientError returns true when this update required internal server error response has a 4xx status code

func (*UpdateRequiredInternalServerError) IsCode

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

IsCode returns true when this update required internal server error response a status code equal to that given

func (*UpdateRequiredInternalServerError) IsRedirect

func (o *UpdateRequiredInternalServerError) IsRedirect() bool

IsRedirect returns true when this update required internal server error response has a 3xx status code

func (*UpdateRequiredInternalServerError) IsServerError

func (o *UpdateRequiredInternalServerError) IsServerError() bool

IsServerError returns true when this update required internal server error response has a 5xx status code

func (*UpdateRequiredInternalServerError) IsSuccess

func (o *UpdateRequiredInternalServerError) IsSuccess() bool

IsSuccess returns true when this update required internal server error response has a 2xx status code

func (*UpdateRequiredInternalServerError) String

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

func (o *UpdateRequiredNotFound) Code() int

Code gets the status code for the update required not found response

func (*UpdateRequiredNotFound) Error

func (o *UpdateRequiredNotFound) Error() string

func (*UpdateRequiredNotFound) GetPayload

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

func (*UpdateRequiredNotFound) IsClientError

func (o *UpdateRequiredNotFound) IsClientError() bool

IsClientError returns true when this update required not found response has a 4xx status code

func (*UpdateRequiredNotFound) IsCode

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

IsCode returns true when this update required not found response a status code equal to that given

func (*UpdateRequiredNotFound) IsRedirect

func (o *UpdateRequiredNotFound) IsRedirect() bool

IsRedirect returns true when this update required not found response has a 3xx status code

func (*UpdateRequiredNotFound) IsServerError

func (o *UpdateRequiredNotFound) IsServerError() bool

IsServerError returns true when this update required not found response has a 5xx status code

func (*UpdateRequiredNotFound) IsSuccess

func (o *UpdateRequiredNotFound) IsSuccess() bool

IsSuccess returns true when this update required not found response has a 2xx status code

func (*UpdateRequiredNotFound) String

func (o *UpdateRequiredNotFound) String() string

type UpdateRequiredOK

type UpdateRequiredOK struct {
	Payload *models.UpdateUpdateResponse
}

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

A successful response.

func NewUpdateRequiredOK

func NewUpdateRequiredOK() *UpdateRequiredOK

NewUpdateRequiredOK creates a UpdateRequiredOK with default headers values

func (*UpdateRequiredOK) Code

func (o *UpdateRequiredOK) Code() int

Code gets the status code for the update required o k response

func (*UpdateRequiredOK) Error

func (o *UpdateRequiredOK) Error() string

func (*UpdateRequiredOK) GetPayload

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

func (*UpdateRequiredOK) IsClientError

func (o *UpdateRequiredOK) IsClientError() bool

IsClientError returns true when this update required o k response has a 4xx status code

func (*UpdateRequiredOK) IsCode

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

IsCode returns true when this update required o k response a status code equal to that given

func (*UpdateRequiredOK) IsRedirect

func (o *UpdateRequiredOK) IsRedirect() bool

IsRedirect returns true when this update required o k response has a 3xx status code

func (*UpdateRequiredOK) IsServerError

func (o *UpdateRequiredOK) IsServerError() bool

IsServerError returns true when this update required o k response has a 5xx status code

func (*UpdateRequiredOK) IsSuccess

func (o *UpdateRequiredOK) IsSuccess() bool

IsSuccess returns true when this update required o k response has a 2xx status code

func (*UpdateRequiredOK) String

func (o *UpdateRequiredOK) String() 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 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) Code

func (o *UpdateRequiredUnauthorized) Code() int

Code gets the status code for the update required unauthorized response

func (*UpdateRequiredUnauthorized) Error

func (*UpdateRequiredUnauthorized) IsClientError

func (o *UpdateRequiredUnauthorized) IsClientError() bool

IsClientError returns true when this update required unauthorized response has a 4xx status code

func (*UpdateRequiredUnauthorized) IsCode

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

IsCode returns true when this update required unauthorized response a status code equal to that given

func (*UpdateRequiredUnauthorized) IsRedirect

func (o *UpdateRequiredUnauthorized) IsRedirect() bool

IsRedirect returns true when this update required unauthorized response has a 3xx status code

func (*UpdateRequiredUnauthorized) IsServerError

func (o *UpdateRequiredUnauthorized) IsServerError() bool

IsServerError returns true when this update required unauthorized response has a 5xx status code

func (*UpdateRequiredUnauthorized) IsSuccess

func (o *UpdateRequiredUnauthorized) IsSuccess() bool

IsSuccess returns true when this update required unauthorized response has a 2xx status code

func (*UpdateRequiredUnauthorized) String

func (o *UpdateRequiredUnauthorized) String() string

Jump to

Keyboard shortcuts

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