Documentation
¶
Index ¶
- type ApplyUpdateBody
- type ApplyUpdateForbidden
- func (o *ApplyUpdateForbidden) Code() int
- func (o *ApplyUpdateForbidden) Error() string
- func (o *ApplyUpdateForbidden) GetPayload() *models.RestError
- func (o *ApplyUpdateForbidden) IsClientError() bool
- func (o *ApplyUpdateForbidden) IsCode(code int) bool
- func (o *ApplyUpdateForbidden) IsRedirect() bool
- func (o *ApplyUpdateForbidden) IsServerError() bool
- func (o *ApplyUpdateForbidden) IsSuccess() bool
- func (o *ApplyUpdateForbidden) String() string
- type ApplyUpdateInternalServerError
- func (o *ApplyUpdateInternalServerError) Code() int
- func (o *ApplyUpdateInternalServerError) Error() string
- func (o *ApplyUpdateInternalServerError) GetPayload() *models.RestError
- func (o *ApplyUpdateInternalServerError) IsClientError() bool
- func (o *ApplyUpdateInternalServerError) IsCode(code int) bool
- func (o *ApplyUpdateInternalServerError) IsRedirect() bool
- func (o *ApplyUpdateInternalServerError) IsServerError() bool
- func (o *ApplyUpdateInternalServerError) IsSuccess() bool
- func (o *ApplyUpdateInternalServerError) String() string
- type ApplyUpdateNotFound
- func (o *ApplyUpdateNotFound) Code() int
- func (o *ApplyUpdateNotFound) Error() string
- func (o *ApplyUpdateNotFound) GetPayload() *models.RestError
- func (o *ApplyUpdateNotFound) IsClientError() bool
- func (o *ApplyUpdateNotFound) IsCode(code int) bool
- func (o *ApplyUpdateNotFound) IsRedirect() bool
- func (o *ApplyUpdateNotFound) IsServerError() bool
- func (o *ApplyUpdateNotFound) IsSuccess() bool
- func (o *ApplyUpdateNotFound) String() string
- type ApplyUpdateOK
- func (o *ApplyUpdateOK) Code() int
- func (o *ApplyUpdateOK) Error() string
- func (o *ApplyUpdateOK) GetPayload() *models.UpdateApplyUpdateResponse
- func (o *ApplyUpdateOK) IsClientError() bool
- func (o *ApplyUpdateOK) IsCode(code int) bool
- func (o *ApplyUpdateOK) IsRedirect() bool
- func (o *ApplyUpdateOK) IsServerError() bool
- func (o *ApplyUpdateOK) IsSuccess() bool
- func (o *ApplyUpdateOK) String() string
- type ApplyUpdateParams
- func (o *ApplyUpdateParams) SetBody(body ApplyUpdateBody)
- func (o *ApplyUpdateParams) SetContext(ctx context.Context)
- func (o *ApplyUpdateParams) SetDefaults()
- func (o *ApplyUpdateParams) SetHTTPClient(client *http.Client)
- func (o *ApplyUpdateParams) SetTargetVersion(targetVersion string)
- func (o *ApplyUpdateParams) SetTimeout(timeout time.Duration)
- func (o *ApplyUpdateParams) WithBody(body ApplyUpdateBody) *ApplyUpdateParams
- func (o *ApplyUpdateParams) WithContext(ctx context.Context) *ApplyUpdateParams
- func (o *ApplyUpdateParams) WithDefaults() *ApplyUpdateParams
- func (o *ApplyUpdateParams) WithHTTPClient(client *http.Client) *ApplyUpdateParams
- func (o *ApplyUpdateParams) WithTargetVersion(targetVersion string) *ApplyUpdateParams
- func (o *ApplyUpdateParams) WithTimeout(timeout time.Duration) *ApplyUpdateParams
- func (o *ApplyUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ApplyUpdateReader
- type ApplyUpdateUnauthorized
- func (o *ApplyUpdateUnauthorized) Code() int
- func (o *ApplyUpdateUnauthorized) Error() string
- func (o *ApplyUpdateUnauthorized) IsClientError() bool
- func (o *ApplyUpdateUnauthorized) IsCode(code int) bool
- func (o *ApplyUpdateUnauthorized) IsRedirect() bool
- func (o *ApplyUpdateUnauthorized) IsServerError() bool
- func (o *ApplyUpdateUnauthorized) IsSuccess() bool
- func (o *ApplyUpdateUnauthorized) String() string
- type Client
- type ClientOption
- type ClientService
- type UpdateRequiredForbidden
- func (o *UpdateRequiredForbidden) Code() int
- func (o *UpdateRequiredForbidden) Error() string
- func (o *UpdateRequiredForbidden) GetPayload() *models.RestError
- func (o *UpdateRequiredForbidden) IsClientError() bool
- func (o *UpdateRequiredForbidden) IsCode(code int) bool
- func (o *UpdateRequiredForbidden) IsRedirect() bool
- func (o *UpdateRequiredForbidden) IsServerError() bool
- func (o *UpdateRequiredForbidden) IsSuccess() bool
- func (o *UpdateRequiredForbidden) String() string
- type UpdateRequiredInternalServerError
- func (o *UpdateRequiredInternalServerError) Code() int
- func (o *UpdateRequiredInternalServerError) Error() string
- func (o *UpdateRequiredInternalServerError) GetPayload() *models.RestError
- func (o *UpdateRequiredInternalServerError) IsClientError() bool
- func (o *UpdateRequiredInternalServerError) IsCode(code int) bool
- func (o *UpdateRequiredInternalServerError) IsRedirect() bool
- func (o *UpdateRequiredInternalServerError) IsServerError() bool
- func (o *UpdateRequiredInternalServerError) IsSuccess() bool
- func (o *UpdateRequiredInternalServerError) String() string
- type UpdateRequiredNotFound
- func (o *UpdateRequiredNotFound) Code() int
- func (o *UpdateRequiredNotFound) Error() string
- func (o *UpdateRequiredNotFound) GetPayload() *models.RestError
- func (o *UpdateRequiredNotFound) IsClientError() bool
- func (o *UpdateRequiredNotFound) IsCode(code int) bool
- func (o *UpdateRequiredNotFound) IsRedirect() bool
- func (o *UpdateRequiredNotFound) IsServerError() bool
- func (o *UpdateRequiredNotFound) IsSuccess() bool
- func (o *UpdateRequiredNotFound) String() string
- type UpdateRequiredOK
- func (o *UpdateRequiredOK) Code() int
- func (o *UpdateRequiredOK) Error() string
- func (o *UpdateRequiredOK) GetPayload() *models.UpdateUpdateResponse
- func (o *UpdateRequiredOK) IsClientError() bool
- func (o *UpdateRequiredOK) IsCode(code int) bool
- func (o *UpdateRequiredOK) IsRedirect() bool
- func (o *UpdateRequiredOK) IsServerError() bool
- func (o *UpdateRequiredOK) IsSuccess() bool
- func (o *UpdateRequiredOK) String() string
- type UpdateRequiredParams
- func NewUpdateRequiredParams() *UpdateRequiredParams
- func NewUpdateRequiredParamsWithContext(ctx context.Context) *UpdateRequiredParams
- func NewUpdateRequiredParamsWithHTTPClient(client *http.Client) *UpdateRequiredParams
- func NewUpdateRequiredParamsWithTimeout(timeout time.Duration) *UpdateRequiredParams
- func (o *UpdateRequiredParams) SetBody(body *models.UpdateUpdateRequest)
- func (o *UpdateRequiredParams) SetContext(ctx context.Context)
- func (o *UpdateRequiredParams) SetDefaults()
- func (o *UpdateRequiredParams) SetHTTPClient(client *http.Client)
- func (o *UpdateRequiredParams) SetTimeout(timeout time.Duration)
- func (o *UpdateRequiredParams) WithBody(body *models.UpdateUpdateRequest) *UpdateRequiredParams
- func (o *UpdateRequiredParams) WithContext(ctx context.Context) *UpdateRequiredParams
- func (o *UpdateRequiredParams) WithDefaults() *UpdateRequiredParams
- func (o *UpdateRequiredParams) WithHTTPClient(client *http.Client) *UpdateRequiredParams
- func (o *UpdateRequiredParams) WithTimeout(timeout time.Duration) *UpdateRequiredParams
- func (o *UpdateRequiredParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateRequiredReader
- type UpdateRequiredUnauthorized
- func (o *UpdateRequiredUnauthorized) Code() int
- func (o *UpdateRequiredUnauthorized) Error() string
- func (o *UpdateRequiredUnauthorized) IsClientError() bool
- func (o *UpdateRequiredUnauthorized) IsCode(code int) bool
- func (o *UpdateRequiredUnauthorized) IsRedirect() bool
- func (o *UpdateRequiredUnauthorized) IsServerError() bool
- func (o *UpdateRequiredUnauthorized) IsSuccess() bool
- func (o *UpdateRequiredUnauthorized) String() string
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 ¶
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
type ApplyUpdateForbidden ¶
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 ¶
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 ¶
func (o *ApplyUpdateInternalServerError) Code() int
Code gets the status code for the apply update internal server error response
func (*ApplyUpdateInternalServerError) Error ¶
func (o *ApplyUpdateInternalServerError) Error() string
func (*ApplyUpdateInternalServerError) GetPayload ¶
func (o *ApplyUpdateInternalServerError) GetPayload() *models.RestError
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 ¶
func (o *ApplyUpdateInternalServerError) String() string
type ApplyUpdateNotFound ¶
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 (o *ApplyUpdateOK) GetPayload() *models.UpdateApplyUpdateResponse
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 ¶
func (o *ApplyUpdateParams) WithBody(body ApplyUpdateBody) *ApplyUpdateParams
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 ¶
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 ¶
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 ¶
func (o *UpdateRequiredInternalServerError) Code() int
Code gets the status code for the update required internal server error response
func (*UpdateRequiredInternalServerError) Error ¶
func (o *UpdateRequiredInternalServerError) Error() string
func (*UpdateRequiredInternalServerError) GetPayload ¶
func (o *UpdateRequiredInternalServerError) GetPayload() *models.RestError
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 ¶
func (o *UpdateRequiredInternalServerError) String() string
type UpdateRequiredNotFound ¶
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 ¶
func (o *UpdateRequiredParams) SetBody(body *models.UpdateUpdateRequest)
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 ¶
func (o *UpdateRequiredParams) WithBody(body *models.UpdateUpdateRequest) *UpdateRequiredParams
WithBody adds the body to the update required params
func (*UpdateRequiredParams) WithContext ¶
func (o *UpdateRequiredParams) WithContext(ctx context.Context) *UpdateRequiredParams
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 (o *UpdateRequiredUnauthorized) Error() string
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