Documentation ¶
Index ¶
- type Client
- func (a *Client) ForceRelease(params *ForceReleaseParams, opts ...ClientOption) (*ForceReleaseNoContent, error)
- func (a *Client) Freeze(params *FreezeParams, opts ...ClientOption) (*FreezeNoContent, error)
- func (a *Client) Get(params *GetParams, opts ...ClientOption) (*GetOK, error)
- func (a *Client) Release(params *ReleaseParams, opts ...ClientOption) (*ReleaseNoContent, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type ForceReleaseForbidden
- func (o *ForceReleaseForbidden) Code() int
- func (o *ForceReleaseForbidden) Error() string
- func (o *ForceReleaseForbidden) IsClientError() bool
- func (o *ForceReleaseForbidden) IsCode(code int) bool
- func (o *ForceReleaseForbidden) IsRedirect() bool
- func (o *ForceReleaseForbidden) IsServerError() bool
- func (o *ForceReleaseForbidden) IsSuccess() bool
- func (o *ForceReleaseForbidden) String() string
- type ForceReleaseNoContent
- func (o *ForceReleaseNoContent) Code() int
- func (o *ForceReleaseNoContent) Error() string
- func (o *ForceReleaseNoContent) IsClientError() bool
- func (o *ForceReleaseNoContent) IsCode(code int) bool
- func (o *ForceReleaseNoContent) IsRedirect() bool
- func (o *ForceReleaseNoContent) IsServerError() bool
- func (o *ForceReleaseNoContent) IsSuccess() bool
- func (o *ForceReleaseNoContent) String() string
- type ForceReleaseNotFound
- func (o *ForceReleaseNotFound) Code() int
- func (o *ForceReleaseNotFound) Error() string
- func (o *ForceReleaseNotFound) IsClientError() bool
- func (o *ForceReleaseNotFound) IsCode(code int) bool
- func (o *ForceReleaseNotFound) IsRedirect() bool
- func (o *ForceReleaseNotFound) IsServerError() bool
- func (o *ForceReleaseNotFound) IsSuccess() bool
- func (o *ForceReleaseNotFound) String() string
- type ForceReleaseParams
- func (o *ForceReleaseParams) SetContext(ctx context.Context)
- func (o *ForceReleaseParams) SetDefaults()
- func (o *ForceReleaseParams) SetHTTPClient(client *http.Client)
- func (o *ForceReleaseParams) SetTimeout(timeout time.Duration)
- func (o *ForceReleaseParams) WithContext(ctx context.Context) *ForceReleaseParams
- func (o *ForceReleaseParams) WithDefaults() *ForceReleaseParams
- func (o *ForceReleaseParams) WithHTTPClient(client *http.Client) *ForceReleaseParams
- func (o *ForceReleaseParams) WithTimeout(timeout time.Duration) *ForceReleaseParams
- func (o *ForceReleaseParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ForceReleaseReader
- type FreezeForbidden
- func (o *FreezeForbidden) Code() int
- func (o *FreezeForbidden) Error() string
- func (o *FreezeForbidden) IsClientError() bool
- func (o *FreezeForbidden) IsCode(code int) bool
- func (o *FreezeForbidden) IsRedirect() bool
- func (o *FreezeForbidden) IsServerError() bool
- func (o *FreezeForbidden) IsSuccess() bool
- func (o *FreezeForbidden) String() string
- type FreezeNoContent
- func (o *FreezeNoContent) Code() int
- func (o *FreezeNoContent) Error() string
- func (o *FreezeNoContent) IsClientError() bool
- func (o *FreezeNoContent) IsCode(code int) bool
- func (o *FreezeNoContent) IsRedirect() bool
- func (o *FreezeNoContent) IsServerError() bool
- func (o *FreezeNoContent) IsSuccess() bool
- func (o *FreezeNoContent) String() string
- type FreezeNotFound
- func (o *FreezeNotFound) Code() int
- func (o *FreezeNotFound) Error() string
- func (o *FreezeNotFound) IsClientError() bool
- func (o *FreezeNotFound) IsCode(code int) bool
- func (o *FreezeNotFound) IsRedirect() bool
- func (o *FreezeNotFound) IsServerError() bool
- func (o *FreezeNotFound) IsSuccess() bool
- func (o *FreezeNotFound) String() string
- type FreezeParams
- func (o *FreezeParams) SetContext(ctx context.Context)
- func (o *FreezeParams) SetDefaults()
- func (o *FreezeParams) SetHTTPClient(client *http.Client)
- func (o *FreezeParams) SetTimeout(timeout time.Duration)
- func (o *FreezeParams) WithContext(ctx context.Context) *FreezeParams
- func (o *FreezeParams) WithDefaults() *FreezeParams
- func (o *FreezeParams) WithHTTPClient(client *http.Client) *FreezeParams
- func (o *FreezeParams) WithTimeout(timeout time.Duration) *FreezeParams
- func (o *FreezeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type FreezeReader
- type GetOK
- func (o *GetOK) Code() int
- func (o *GetOK) Error() string
- func (o *GetOK) GetPayload() *models.ReadOnlyState
- func (o *GetOK) IsClientError() bool
- func (o *GetOK) IsCode(code int) bool
- func (o *GetOK) IsRedirect() bool
- func (o *GetOK) IsServerError() bool
- func (o *GetOK) IsSuccess() bool
- func (o *GetOK) String() string
- type GetParams
- func (o *GetParams) SetContext(ctx context.Context)
- func (o *GetParams) SetDefaults()
- func (o *GetParams) SetHTTPClient(client *http.Client)
- func (o *GetParams) SetTimeout(timeout time.Duration)
- func (o *GetParams) WithContext(ctx context.Context) *GetParams
- func (o *GetParams) WithDefaults() *GetParams
- func (o *GetParams) WithHTTPClient(client *http.Client) *GetParams
- func (o *GetParams) WithTimeout(timeout time.Duration) *GetParams
- func (o *GetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetReader
- type ReleaseForbidden
- func (o *ReleaseForbidden) Code() int
- func (o *ReleaseForbidden) Error() string
- func (o *ReleaseForbidden) IsClientError() bool
- func (o *ReleaseForbidden) IsCode(code int) bool
- func (o *ReleaseForbidden) IsRedirect() bool
- func (o *ReleaseForbidden) IsServerError() bool
- func (o *ReleaseForbidden) IsSuccess() bool
- func (o *ReleaseForbidden) String() string
- type ReleaseNoContent
- func (o *ReleaseNoContent) Code() int
- func (o *ReleaseNoContent) Error() string
- func (o *ReleaseNoContent) IsClientError() bool
- func (o *ReleaseNoContent) IsCode(code int) bool
- func (o *ReleaseNoContent) IsRedirect() bool
- func (o *ReleaseNoContent) IsServerError() bool
- func (o *ReleaseNoContent) IsSuccess() bool
- func (o *ReleaseNoContent) String() string
- type ReleaseNotFound
- func (o *ReleaseNotFound) Code() int
- func (o *ReleaseNotFound) Error() string
- func (o *ReleaseNotFound) IsClientError() bool
- func (o *ReleaseNotFound) IsCode(code int) bool
- func (o *ReleaseNotFound) IsRedirect() bool
- func (o *ReleaseNotFound) IsServerError() bool
- func (o *ReleaseNotFound) IsSuccess() bool
- func (o *ReleaseNotFound) String() string
- type ReleaseParams
- func (o *ReleaseParams) SetContext(ctx context.Context)
- func (o *ReleaseParams) SetDefaults()
- func (o *ReleaseParams) SetHTTPClient(client *http.Client)
- func (o *ReleaseParams) SetTimeout(timeout time.Duration)
- func (o *ReleaseParams) WithContext(ctx context.Context) *ReleaseParams
- func (o *ReleaseParams) WithDefaults() *ReleaseParams
- func (o *ReleaseParams) WithHTTPClient(client *http.Client) *ReleaseParams
- func (o *ReleaseParams) WithTimeout(timeout time.Duration) *ReleaseParams
- func (o *ReleaseParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ReleaseReader
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 read only API
func (*Client) ForceRelease ¶
func (a *Client) ForceRelease(params *ForceReleaseParams, opts ...ClientOption) (*ForceReleaseNoContent, error)
ForceRelease forciblies release read only
Forcibly release read-only status, including System initiated tasks. Warning: may result in data loss.
func (*Client) Freeze ¶
func (a *Client) Freeze(params *FreezeParams, opts ...ClientOption) (*FreezeNoContent, error)
Freeze enables read only
func (*Client) Get ¶
func (a *Client) Get(params *GetParams, opts ...ClientOption) (*GetOK, error)
Get gets read only state
func (*Client) Release ¶
func (a *Client) Release(params *ReleaseParams, opts ...ClientOption) (*ReleaseNoContent, error)
Release releases read only
Release administrator initiated read-only status. Will not release read-only caused by system tasks.
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 { ForceRelease(params *ForceReleaseParams, opts ...ClientOption) (*ForceReleaseNoContent, error) Freeze(params *FreezeParams, opts ...ClientOption) (*FreezeNoContent, error) Get(params *GetParams, opts ...ClientOption) (*GetOK, error) Release(params *ReleaseParams, opts ...ClientOption) (*ReleaseNoContent, 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 read only API client.
type ForceReleaseForbidden ¶
type ForceReleaseForbidden struct { }
ForceReleaseForbidden describes a response with status code 403, with default header values.
Authentication required
func NewForceReleaseForbidden ¶
func NewForceReleaseForbidden() *ForceReleaseForbidden
NewForceReleaseForbidden creates a ForceReleaseForbidden with default headers values
func (*ForceReleaseForbidden) Code ¶
func (o *ForceReleaseForbidden) Code() int
Code gets the status code for the force release forbidden response
func (*ForceReleaseForbidden) Error ¶
func (o *ForceReleaseForbidden) Error() string
func (*ForceReleaseForbidden) IsClientError ¶
func (o *ForceReleaseForbidden) IsClientError() bool
IsClientError returns true when this force release forbidden response has a 4xx status code
func (*ForceReleaseForbidden) IsCode ¶
func (o *ForceReleaseForbidden) IsCode(code int) bool
IsCode returns true when this force release forbidden response a status code equal to that given
func (*ForceReleaseForbidden) IsRedirect ¶
func (o *ForceReleaseForbidden) IsRedirect() bool
IsRedirect returns true when this force release forbidden response has a 3xx status code
func (*ForceReleaseForbidden) IsServerError ¶
func (o *ForceReleaseForbidden) IsServerError() bool
IsServerError returns true when this force release forbidden response has a 5xx status code
func (*ForceReleaseForbidden) IsSuccess ¶
func (o *ForceReleaseForbidden) IsSuccess() bool
IsSuccess returns true when this force release forbidden response has a 2xx status code
func (*ForceReleaseForbidden) String ¶
func (o *ForceReleaseForbidden) String() string
type ForceReleaseNoContent ¶
type ForceReleaseNoContent struct { }
ForceReleaseNoContent describes a response with status code 204, with default header values.
System is no longer read-only
func NewForceReleaseNoContent ¶
func NewForceReleaseNoContent() *ForceReleaseNoContent
NewForceReleaseNoContent creates a ForceReleaseNoContent with default headers values
func (*ForceReleaseNoContent) Code ¶
func (o *ForceReleaseNoContent) Code() int
Code gets the status code for the force release no content response
func (*ForceReleaseNoContent) Error ¶
func (o *ForceReleaseNoContent) Error() string
func (*ForceReleaseNoContent) IsClientError ¶
func (o *ForceReleaseNoContent) IsClientError() bool
IsClientError returns true when this force release no content response has a 4xx status code
func (*ForceReleaseNoContent) IsCode ¶
func (o *ForceReleaseNoContent) IsCode(code int) bool
IsCode returns true when this force release no content response a status code equal to that given
func (*ForceReleaseNoContent) IsRedirect ¶
func (o *ForceReleaseNoContent) IsRedirect() bool
IsRedirect returns true when this force release no content response has a 3xx status code
func (*ForceReleaseNoContent) IsServerError ¶
func (o *ForceReleaseNoContent) IsServerError() bool
IsServerError returns true when this force release no content response has a 5xx status code
func (*ForceReleaseNoContent) IsSuccess ¶
func (o *ForceReleaseNoContent) IsSuccess() bool
IsSuccess returns true when this force release no content response has a 2xx status code
func (*ForceReleaseNoContent) String ¶
func (o *ForceReleaseNoContent) String() string
type ForceReleaseNotFound ¶
type ForceReleaseNotFound struct { }
ForceReleaseNotFound describes a response with status code 404, with default header values.
No change to read-only state
func NewForceReleaseNotFound ¶
func NewForceReleaseNotFound() *ForceReleaseNotFound
NewForceReleaseNotFound creates a ForceReleaseNotFound with default headers values
func (*ForceReleaseNotFound) Code ¶
func (o *ForceReleaseNotFound) Code() int
Code gets the status code for the force release not found response
func (*ForceReleaseNotFound) Error ¶
func (o *ForceReleaseNotFound) Error() string
func (*ForceReleaseNotFound) IsClientError ¶
func (o *ForceReleaseNotFound) IsClientError() bool
IsClientError returns true when this force release not found response has a 4xx status code
func (*ForceReleaseNotFound) IsCode ¶
func (o *ForceReleaseNotFound) IsCode(code int) bool
IsCode returns true when this force release not found response a status code equal to that given
func (*ForceReleaseNotFound) IsRedirect ¶
func (o *ForceReleaseNotFound) IsRedirect() bool
IsRedirect returns true when this force release not found response has a 3xx status code
func (*ForceReleaseNotFound) IsServerError ¶
func (o *ForceReleaseNotFound) IsServerError() bool
IsServerError returns true when this force release not found response has a 5xx status code
func (*ForceReleaseNotFound) IsSuccess ¶
func (o *ForceReleaseNotFound) IsSuccess() bool
IsSuccess returns true when this force release not found response has a 2xx status code
func (*ForceReleaseNotFound) String ¶
func (o *ForceReleaseNotFound) String() string
type ForceReleaseParams ¶
type ForceReleaseParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ForceReleaseParams contains all the parameters to send to the API endpoint
for the force release operation. Typically these are written to a http.Request.
func NewForceReleaseParams ¶
func NewForceReleaseParams() *ForceReleaseParams
NewForceReleaseParams creates a new ForceReleaseParams 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 NewForceReleaseParamsWithContext ¶
func NewForceReleaseParamsWithContext(ctx context.Context) *ForceReleaseParams
NewForceReleaseParamsWithContext creates a new ForceReleaseParams object with the ability to set a context for a request.
func NewForceReleaseParamsWithHTTPClient ¶
func NewForceReleaseParamsWithHTTPClient(client *http.Client) *ForceReleaseParams
NewForceReleaseParamsWithHTTPClient creates a new ForceReleaseParams object with the ability to set a custom HTTPClient for a request.
func NewForceReleaseParamsWithTimeout ¶
func NewForceReleaseParamsWithTimeout(timeout time.Duration) *ForceReleaseParams
NewForceReleaseParamsWithTimeout creates a new ForceReleaseParams object with the ability to set a timeout on a request.
func (*ForceReleaseParams) SetContext ¶
func (o *ForceReleaseParams) SetContext(ctx context.Context)
SetContext adds the context to the force release params
func (*ForceReleaseParams) SetDefaults ¶
func (o *ForceReleaseParams) SetDefaults()
SetDefaults hydrates default values in the force release params (not the query body).
All values with no default are reset to their zero value.
func (*ForceReleaseParams) SetHTTPClient ¶
func (o *ForceReleaseParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the force release params
func (*ForceReleaseParams) SetTimeout ¶
func (o *ForceReleaseParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the force release params
func (*ForceReleaseParams) WithContext ¶
func (o *ForceReleaseParams) WithContext(ctx context.Context) *ForceReleaseParams
WithContext adds the context to the force release params
func (*ForceReleaseParams) WithDefaults ¶
func (o *ForceReleaseParams) WithDefaults() *ForceReleaseParams
WithDefaults hydrates default values in the force release params (not the query body).
All values with no default are reset to their zero value.
func (*ForceReleaseParams) WithHTTPClient ¶
func (o *ForceReleaseParams) WithHTTPClient(client *http.Client) *ForceReleaseParams
WithHTTPClient adds the HTTPClient to the force release params
func (*ForceReleaseParams) WithTimeout ¶
func (o *ForceReleaseParams) WithTimeout(timeout time.Duration) *ForceReleaseParams
WithTimeout adds the timeout to the force release params
func (*ForceReleaseParams) WriteToRequest ¶
func (o *ForceReleaseParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ForceReleaseReader ¶
type ForceReleaseReader struct {
// contains filtered or unexported fields
}
ForceReleaseReader is a Reader for the ForceRelease structure.
func (*ForceReleaseReader) ReadResponse ¶
func (o *ForceReleaseReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type FreezeForbidden ¶
type FreezeForbidden struct { }
FreezeForbidden describes a response with status code 403, with default header values.
Authentication required
func NewFreezeForbidden ¶
func NewFreezeForbidden() *FreezeForbidden
NewFreezeForbidden creates a FreezeForbidden with default headers values
func (*FreezeForbidden) Code ¶
func (o *FreezeForbidden) Code() int
Code gets the status code for the freeze forbidden response
func (*FreezeForbidden) Error ¶
func (o *FreezeForbidden) Error() string
func (*FreezeForbidden) IsClientError ¶
func (o *FreezeForbidden) IsClientError() bool
IsClientError returns true when this freeze forbidden response has a 4xx status code
func (*FreezeForbidden) IsCode ¶
func (o *FreezeForbidden) IsCode(code int) bool
IsCode returns true when this freeze forbidden response a status code equal to that given
func (*FreezeForbidden) IsRedirect ¶
func (o *FreezeForbidden) IsRedirect() bool
IsRedirect returns true when this freeze forbidden response has a 3xx status code
func (*FreezeForbidden) IsServerError ¶
func (o *FreezeForbidden) IsServerError() bool
IsServerError returns true when this freeze forbidden response has a 5xx status code
func (*FreezeForbidden) IsSuccess ¶
func (o *FreezeForbidden) IsSuccess() bool
IsSuccess returns true when this freeze forbidden response has a 2xx status code
func (*FreezeForbidden) String ¶
func (o *FreezeForbidden) String() string
type FreezeNoContent ¶
type FreezeNoContent struct { }
FreezeNoContent describes a response with status code 204, with default header values.
System is now read-only
func NewFreezeNoContent ¶
func NewFreezeNoContent() *FreezeNoContent
NewFreezeNoContent creates a FreezeNoContent with default headers values
func (*FreezeNoContent) Code ¶
func (o *FreezeNoContent) Code() int
Code gets the status code for the freeze no content response
func (*FreezeNoContent) Error ¶
func (o *FreezeNoContent) Error() string
func (*FreezeNoContent) IsClientError ¶
func (o *FreezeNoContent) IsClientError() bool
IsClientError returns true when this freeze no content response has a 4xx status code
func (*FreezeNoContent) IsCode ¶
func (o *FreezeNoContent) IsCode(code int) bool
IsCode returns true when this freeze no content response a status code equal to that given
func (*FreezeNoContent) IsRedirect ¶
func (o *FreezeNoContent) IsRedirect() bool
IsRedirect returns true when this freeze no content response has a 3xx status code
func (*FreezeNoContent) IsServerError ¶
func (o *FreezeNoContent) IsServerError() bool
IsServerError returns true when this freeze no content response has a 5xx status code
func (*FreezeNoContent) IsSuccess ¶
func (o *FreezeNoContent) IsSuccess() bool
IsSuccess returns true when this freeze no content response has a 2xx status code
func (*FreezeNoContent) String ¶
func (o *FreezeNoContent) String() string
type FreezeNotFound ¶
type FreezeNotFound struct { }
FreezeNotFound describes a response with status code 404, with default header values.
No change to read-only state
func NewFreezeNotFound ¶
func NewFreezeNotFound() *FreezeNotFound
NewFreezeNotFound creates a FreezeNotFound with default headers values
func (*FreezeNotFound) Code ¶
func (o *FreezeNotFound) Code() int
Code gets the status code for the freeze not found response
func (*FreezeNotFound) Error ¶
func (o *FreezeNotFound) Error() string
func (*FreezeNotFound) IsClientError ¶
func (o *FreezeNotFound) IsClientError() bool
IsClientError returns true when this freeze not found response has a 4xx status code
func (*FreezeNotFound) IsCode ¶
func (o *FreezeNotFound) IsCode(code int) bool
IsCode returns true when this freeze not found response a status code equal to that given
func (*FreezeNotFound) IsRedirect ¶
func (o *FreezeNotFound) IsRedirect() bool
IsRedirect returns true when this freeze not found response has a 3xx status code
func (*FreezeNotFound) IsServerError ¶
func (o *FreezeNotFound) IsServerError() bool
IsServerError returns true when this freeze not found response has a 5xx status code
func (*FreezeNotFound) IsSuccess ¶
func (o *FreezeNotFound) IsSuccess() bool
IsSuccess returns true when this freeze not found response has a 2xx status code
func (*FreezeNotFound) String ¶
func (o *FreezeNotFound) String() string
type FreezeParams ¶
type FreezeParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
FreezeParams contains all the parameters to send to the API endpoint
for the freeze operation. Typically these are written to a http.Request.
func NewFreezeParams ¶
func NewFreezeParams() *FreezeParams
NewFreezeParams creates a new FreezeParams 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 NewFreezeParamsWithContext ¶
func NewFreezeParamsWithContext(ctx context.Context) *FreezeParams
NewFreezeParamsWithContext creates a new FreezeParams object with the ability to set a context for a request.
func NewFreezeParamsWithHTTPClient ¶
func NewFreezeParamsWithHTTPClient(client *http.Client) *FreezeParams
NewFreezeParamsWithHTTPClient creates a new FreezeParams object with the ability to set a custom HTTPClient for a request.
func NewFreezeParamsWithTimeout ¶
func NewFreezeParamsWithTimeout(timeout time.Duration) *FreezeParams
NewFreezeParamsWithTimeout creates a new FreezeParams object with the ability to set a timeout on a request.
func (*FreezeParams) SetContext ¶
func (o *FreezeParams) SetContext(ctx context.Context)
SetContext adds the context to the freeze params
func (*FreezeParams) SetDefaults ¶
func (o *FreezeParams) SetDefaults()
SetDefaults hydrates default values in the freeze params (not the query body).
All values with no default are reset to their zero value.
func (*FreezeParams) SetHTTPClient ¶
func (o *FreezeParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the freeze params
func (*FreezeParams) SetTimeout ¶
func (o *FreezeParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the freeze params
func (*FreezeParams) WithContext ¶
func (o *FreezeParams) WithContext(ctx context.Context) *FreezeParams
WithContext adds the context to the freeze params
func (*FreezeParams) WithDefaults ¶
func (o *FreezeParams) WithDefaults() *FreezeParams
WithDefaults hydrates default values in the freeze params (not the query body).
All values with no default are reset to their zero value.
func (*FreezeParams) WithHTTPClient ¶
func (o *FreezeParams) WithHTTPClient(client *http.Client) *FreezeParams
WithHTTPClient adds the HTTPClient to the freeze params
func (*FreezeParams) WithTimeout ¶
func (o *FreezeParams) WithTimeout(timeout time.Duration) *FreezeParams
WithTimeout adds the timeout to the freeze params
func (*FreezeParams) WriteToRequest ¶
func (o *FreezeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type FreezeReader ¶
type FreezeReader struct {
// contains filtered or unexported fields
}
FreezeReader is a Reader for the Freeze structure.
func (*FreezeReader) ReadResponse ¶
func (o *FreezeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetOK ¶
type GetOK struct {
Payload *models.ReadOnlyState
}
GetOK describes a response with status code 200, with default header values.
successful operation
func (*GetOK) GetPayload ¶
func (o *GetOK) GetPayload() *models.ReadOnlyState
func (*GetOK) IsClientError ¶
IsClientError returns true when this get o k response has a 4xx status code
func (*GetOK) IsCode ¶
IsCode returns true when this get o k response a status code equal to that given
func (*GetOK) IsRedirect ¶
IsRedirect returns true when this get o k response has a 3xx status code
func (*GetOK) IsServerError ¶
IsServerError returns true when this get o k response has a 5xx status code
type GetParams ¶
type GetParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetParams contains all the parameters to send to the API endpoint
for the get operation. Typically these are written to a http.Request.
func NewGetParams ¶
func NewGetParams() *GetParams
NewGetParams creates a new GetParams 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 NewGetParamsWithContext ¶
NewGetParamsWithContext creates a new GetParams object with the ability to set a context for a request.
func NewGetParamsWithHTTPClient ¶
NewGetParamsWithHTTPClient creates a new GetParams object with the ability to set a custom HTTPClient for a request.
func NewGetParamsWithTimeout ¶
NewGetParamsWithTimeout creates a new GetParams object with the ability to set a timeout on a request.
func (*GetParams) SetContext ¶
SetContext adds the context to the get params
func (*GetParams) SetDefaults ¶
func (o *GetParams) SetDefaults()
SetDefaults hydrates default values in the get params (not the query body).
All values with no default are reset to their zero value.
func (*GetParams) SetHTTPClient ¶
SetHTTPClient adds the HTTPClient to the get params
func (*GetParams) SetTimeout ¶
SetTimeout adds the timeout to the get params
func (*GetParams) WithContext ¶
WithContext adds the context to the get params
func (*GetParams) WithDefaults ¶
WithDefaults hydrates default values in the get params (not the query body).
All values with no default are reset to their zero value.
func (*GetParams) WithHTTPClient ¶
WithHTTPClient adds the HTTPClient to the get params
func (*GetParams) WithTimeout ¶
WithTimeout adds the timeout to the get params
func (*GetParams) WriteToRequest ¶
WriteToRequest writes these params to a swagger request
type GetReader ¶
type GetReader struct {
// contains filtered or unexported fields
}
GetReader is a Reader for the Get structure.
func (*GetReader) ReadResponse ¶
func (o *GetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ReleaseForbidden ¶
type ReleaseForbidden struct { }
ReleaseForbidden describes a response with status code 403, with default header values.
Authentication required
func NewReleaseForbidden ¶
func NewReleaseForbidden() *ReleaseForbidden
NewReleaseForbidden creates a ReleaseForbidden with default headers values
func (*ReleaseForbidden) Code ¶
func (o *ReleaseForbidden) Code() int
Code gets the status code for the release forbidden response
func (*ReleaseForbidden) Error ¶
func (o *ReleaseForbidden) Error() string
func (*ReleaseForbidden) IsClientError ¶
func (o *ReleaseForbidden) IsClientError() bool
IsClientError returns true when this release forbidden response has a 4xx status code
func (*ReleaseForbidden) IsCode ¶
func (o *ReleaseForbidden) IsCode(code int) bool
IsCode returns true when this release forbidden response a status code equal to that given
func (*ReleaseForbidden) IsRedirect ¶
func (o *ReleaseForbidden) IsRedirect() bool
IsRedirect returns true when this release forbidden response has a 3xx status code
func (*ReleaseForbidden) IsServerError ¶
func (o *ReleaseForbidden) IsServerError() bool
IsServerError returns true when this release forbidden response has a 5xx status code
func (*ReleaseForbidden) IsSuccess ¶
func (o *ReleaseForbidden) IsSuccess() bool
IsSuccess returns true when this release forbidden response has a 2xx status code
func (*ReleaseForbidden) String ¶
func (o *ReleaseForbidden) String() string
type ReleaseNoContent ¶
type ReleaseNoContent struct { }
ReleaseNoContent describes a response with status code 204, with default header values.
System is no longer read-only
func NewReleaseNoContent ¶
func NewReleaseNoContent() *ReleaseNoContent
NewReleaseNoContent creates a ReleaseNoContent with default headers values
func (*ReleaseNoContent) Code ¶
func (o *ReleaseNoContent) Code() int
Code gets the status code for the release no content response
func (*ReleaseNoContent) Error ¶
func (o *ReleaseNoContent) Error() string
func (*ReleaseNoContent) IsClientError ¶
func (o *ReleaseNoContent) IsClientError() bool
IsClientError returns true when this release no content response has a 4xx status code
func (*ReleaseNoContent) IsCode ¶
func (o *ReleaseNoContent) IsCode(code int) bool
IsCode returns true when this release no content response a status code equal to that given
func (*ReleaseNoContent) IsRedirect ¶
func (o *ReleaseNoContent) IsRedirect() bool
IsRedirect returns true when this release no content response has a 3xx status code
func (*ReleaseNoContent) IsServerError ¶
func (o *ReleaseNoContent) IsServerError() bool
IsServerError returns true when this release no content response has a 5xx status code
func (*ReleaseNoContent) IsSuccess ¶
func (o *ReleaseNoContent) IsSuccess() bool
IsSuccess returns true when this release no content response has a 2xx status code
func (*ReleaseNoContent) String ¶
func (o *ReleaseNoContent) String() string
type ReleaseNotFound ¶
type ReleaseNotFound struct { }
ReleaseNotFound describes a response with status code 404, with default header values.
No change to read-only state
func NewReleaseNotFound ¶
func NewReleaseNotFound() *ReleaseNotFound
NewReleaseNotFound creates a ReleaseNotFound with default headers values
func (*ReleaseNotFound) Code ¶
func (o *ReleaseNotFound) Code() int
Code gets the status code for the release not found response
func (*ReleaseNotFound) Error ¶
func (o *ReleaseNotFound) Error() string
func (*ReleaseNotFound) IsClientError ¶
func (o *ReleaseNotFound) IsClientError() bool
IsClientError returns true when this release not found response has a 4xx status code
func (*ReleaseNotFound) IsCode ¶
func (o *ReleaseNotFound) IsCode(code int) bool
IsCode returns true when this release not found response a status code equal to that given
func (*ReleaseNotFound) IsRedirect ¶
func (o *ReleaseNotFound) IsRedirect() bool
IsRedirect returns true when this release not found response has a 3xx status code
func (*ReleaseNotFound) IsServerError ¶
func (o *ReleaseNotFound) IsServerError() bool
IsServerError returns true when this release not found response has a 5xx status code
func (*ReleaseNotFound) IsSuccess ¶
func (o *ReleaseNotFound) IsSuccess() bool
IsSuccess returns true when this release not found response has a 2xx status code
func (*ReleaseNotFound) String ¶
func (o *ReleaseNotFound) String() string
type ReleaseParams ¶
type ReleaseParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ReleaseParams contains all the parameters to send to the API endpoint
for the release operation. Typically these are written to a http.Request.
func NewReleaseParams ¶
func NewReleaseParams() *ReleaseParams
NewReleaseParams creates a new ReleaseParams 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 NewReleaseParamsWithContext ¶
func NewReleaseParamsWithContext(ctx context.Context) *ReleaseParams
NewReleaseParamsWithContext creates a new ReleaseParams object with the ability to set a context for a request.
func NewReleaseParamsWithHTTPClient ¶
func NewReleaseParamsWithHTTPClient(client *http.Client) *ReleaseParams
NewReleaseParamsWithHTTPClient creates a new ReleaseParams object with the ability to set a custom HTTPClient for a request.
func NewReleaseParamsWithTimeout ¶
func NewReleaseParamsWithTimeout(timeout time.Duration) *ReleaseParams
NewReleaseParamsWithTimeout creates a new ReleaseParams object with the ability to set a timeout on a request.
func (*ReleaseParams) SetContext ¶
func (o *ReleaseParams) SetContext(ctx context.Context)
SetContext adds the context to the release params
func (*ReleaseParams) SetDefaults ¶
func (o *ReleaseParams) SetDefaults()
SetDefaults hydrates default values in the release params (not the query body).
All values with no default are reset to their zero value.
func (*ReleaseParams) SetHTTPClient ¶
func (o *ReleaseParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the release params
func (*ReleaseParams) SetTimeout ¶
func (o *ReleaseParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the release params
func (*ReleaseParams) WithContext ¶
func (o *ReleaseParams) WithContext(ctx context.Context) *ReleaseParams
WithContext adds the context to the release params
func (*ReleaseParams) WithDefaults ¶
func (o *ReleaseParams) WithDefaults() *ReleaseParams
WithDefaults hydrates default values in the release params (not the query body).
All values with no default are reset to their zero value.
func (*ReleaseParams) WithHTTPClient ¶
func (o *ReleaseParams) WithHTTPClient(client *http.Client) *ReleaseParams
WithHTTPClient adds the HTTPClient to the release params
func (*ReleaseParams) WithTimeout ¶
func (o *ReleaseParams) WithTimeout(timeout time.Duration) *ReleaseParams
WithTimeout adds the timeout to the release params
func (*ReleaseParams) WriteToRequest ¶
func (o *ReleaseParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ReleaseReader ¶
type ReleaseReader struct {
// contains filtered or unexported fields
}
ReleaseReader is a Reader for the Release structure.
func (*ReleaseReader) ReadResponse ¶
func (o *ReleaseReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.