Documentation ¶
Index ¶
- type Client
- func (a *Client) GetV1RunbookTemplates(params *GetV1RunbookTemplatesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetV1RunbookTemplatesOK, error)
- func (a *Client) GetV1RunbookTemplatesID(params *GetV1RunbookTemplatesIDParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetV1RunbookTemplatesIDOK, error)
- func (a *Client) PostV1RunbookTemplatesIDRunbooks(params *PostV1RunbookTemplatesIDRunbooksParams, ...) (*PostV1RunbookTemplatesIDRunbooksCreated, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetV1RunbookTemplatesIDOK
- func (o *GetV1RunbookTemplatesIDOK) Error() string
- func (o *GetV1RunbookTemplatesIDOK) IsClientError() bool
- func (o *GetV1RunbookTemplatesIDOK) IsCode(code int) bool
- func (o *GetV1RunbookTemplatesIDOK) IsRedirect() bool
- func (o *GetV1RunbookTemplatesIDOK) IsServerError() bool
- func (o *GetV1RunbookTemplatesIDOK) IsSuccess() bool
- func (o *GetV1RunbookTemplatesIDOK) String() string
- type GetV1RunbookTemplatesIDParams
- func NewGetV1RunbookTemplatesIDParams() *GetV1RunbookTemplatesIDParams
- func NewGetV1RunbookTemplatesIDParamsWithContext(ctx context.Context) *GetV1RunbookTemplatesIDParams
- func NewGetV1RunbookTemplatesIDParamsWithHTTPClient(client *http.Client) *GetV1RunbookTemplatesIDParams
- func NewGetV1RunbookTemplatesIDParamsWithTimeout(timeout time.Duration) *GetV1RunbookTemplatesIDParams
- func (o *GetV1RunbookTemplatesIDParams) SetContext(ctx context.Context)
- func (o *GetV1RunbookTemplatesIDParams) SetDefaults()
- func (o *GetV1RunbookTemplatesIDParams) SetHTTPClient(client *http.Client)
- func (o *GetV1RunbookTemplatesIDParams) SetID(id string)
- func (o *GetV1RunbookTemplatesIDParams) SetTimeout(timeout time.Duration)
- func (o *GetV1RunbookTemplatesIDParams) WithContext(ctx context.Context) *GetV1RunbookTemplatesIDParams
- func (o *GetV1RunbookTemplatesIDParams) WithDefaults() *GetV1RunbookTemplatesIDParams
- func (o *GetV1RunbookTemplatesIDParams) WithHTTPClient(client *http.Client) *GetV1RunbookTemplatesIDParams
- func (o *GetV1RunbookTemplatesIDParams) WithID(id string) *GetV1RunbookTemplatesIDParams
- func (o *GetV1RunbookTemplatesIDParams) WithTimeout(timeout time.Duration) *GetV1RunbookTemplatesIDParams
- func (o *GetV1RunbookTemplatesIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetV1RunbookTemplatesIDReader
- type GetV1RunbookTemplatesOK
- func (o *GetV1RunbookTemplatesOK) Error() string
- func (o *GetV1RunbookTemplatesOK) IsClientError() bool
- func (o *GetV1RunbookTemplatesOK) IsCode(code int) bool
- func (o *GetV1RunbookTemplatesOK) IsRedirect() bool
- func (o *GetV1RunbookTemplatesOK) IsServerError() bool
- func (o *GetV1RunbookTemplatesOK) IsSuccess() bool
- func (o *GetV1RunbookTemplatesOK) String() string
- type GetV1RunbookTemplatesParams
- func NewGetV1RunbookTemplatesParams() *GetV1RunbookTemplatesParams
- func NewGetV1RunbookTemplatesParamsWithContext(ctx context.Context) *GetV1RunbookTemplatesParams
- func NewGetV1RunbookTemplatesParamsWithHTTPClient(client *http.Client) *GetV1RunbookTemplatesParams
- func NewGetV1RunbookTemplatesParamsWithTimeout(timeout time.Duration) *GetV1RunbookTemplatesParams
- func (o *GetV1RunbookTemplatesParams) SetContext(ctx context.Context)
- func (o *GetV1RunbookTemplatesParams) SetDefaults()
- func (o *GetV1RunbookTemplatesParams) SetHTTPClient(client *http.Client)
- func (o *GetV1RunbookTemplatesParams) SetTimeout(timeout time.Duration)
- func (o *GetV1RunbookTemplatesParams) WithContext(ctx context.Context) *GetV1RunbookTemplatesParams
- func (o *GetV1RunbookTemplatesParams) WithDefaults() *GetV1RunbookTemplatesParams
- func (o *GetV1RunbookTemplatesParams) WithHTTPClient(client *http.Client) *GetV1RunbookTemplatesParams
- func (o *GetV1RunbookTemplatesParams) WithTimeout(timeout time.Duration) *GetV1RunbookTemplatesParams
- func (o *GetV1RunbookTemplatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetV1RunbookTemplatesReader
- type PostV1RunbookTemplatesIDRunbooksCreated
- func (o *PostV1RunbookTemplatesIDRunbooksCreated) Error() string
- func (o *PostV1RunbookTemplatesIDRunbooksCreated) IsClientError() bool
- func (o *PostV1RunbookTemplatesIDRunbooksCreated) IsCode(code int) bool
- func (o *PostV1RunbookTemplatesIDRunbooksCreated) IsRedirect() bool
- func (o *PostV1RunbookTemplatesIDRunbooksCreated) IsServerError() bool
- func (o *PostV1RunbookTemplatesIDRunbooksCreated) IsSuccess() bool
- func (o *PostV1RunbookTemplatesIDRunbooksCreated) String() string
- type PostV1RunbookTemplatesIDRunbooksParams
- func NewPostV1RunbookTemplatesIDRunbooksParams() *PostV1RunbookTemplatesIDRunbooksParams
- func NewPostV1RunbookTemplatesIDRunbooksParamsWithContext(ctx context.Context) *PostV1RunbookTemplatesIDRunbooksParams
- func NewPostV1RunbookTemplatesIDRunbooksParamsWithHTTPClient(client *http.Client) *PostV1RunbookTemplatesIDRunbooksParams
- func NewPostV1RunbookTemplatesIDRunbooksParamsWithTimeout(timeout time.Duration) *PostV1RunbookTemplatesIDRunbooksParams
- func (o *PostV1RunbookTemplatesIDRunbooksParams) SetContext(ctx context.Context)
- func (o *PostV1RunbookTemplatesIDRunbooksParams) SetDefaults()
- func (o *PostV1RunbookTemplatesIDRunbooksParams) SetHTTPClient(client *http.Client)
- func (o *PostV1RunbookTemplatesIDRunbooksParams) SetID(id int32)
- func (o *PostV1RunbookTemplatesIDRunbooksParams) SetTimeout(timeout time.Duration)
- func (o *PostV1RunbookTemplatesIDRunbooksParams) WithContext(ctx context.Context) *PostV1RunbookTemplatesIDRunbooksParams
- func (o *PostV1RunbookTemplatesIDRunbooksParams) WithDefaults() *PostV1RunbookTemplatesIDRunbooksParams
- func (o *PostV1RunbookTemplatesIDRunbooksParams) WithHTTPClient(client *http.Client) *PostV1RunbookTemplatesIDRunbooksParams
- func (o *PostV1RunbookTemplatesIDRunbooksParams) WithID(id int32) *PostV1RunbookTemplatesIDRunbooksParams
- func (o *PostV1RunbookTemplatesIDRunbooksParams) WithTimeout(timeout time.Duration) *PostV1RunbookTemplatesIDRunbooksParams
- func (o *PostV1RunbookTemplatesIDRunbooksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostV1RunbookTemplatesIDRunbooksReader
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 runbook templates API
func (*Client) GetV1RunbookTemplates ¶
func (a *Client) GetV1RunbookTemplates(params *GetV1RunbookTemplatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1RunbookTemplatesOK, error)
GetV1RunbookTemplates lists runbook templates
List all available runbook templates
func (*Client) GetV1RunbookTemplatesID ¶
func (a *Client) GetV1RunbookTemplatesID(params *GetV1RunbookTemplatesIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1RunbookTemplatesIDOK, error)
GetV1RunbookTemplatesID retrieves a runbook templete
Retrieve a single runbook template
func (*Client) PostV1RunbookTemplatesIDRunbooks ¶
func (a *Client) PostV1RunbookTemplatesIDRunbooks(params *PostV1RunbookTemplatesIDRunbooksParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostV1RunbookTemplatesIDRunbooksCreated, error)
PostV1RunbookTemplatesIDRunbooks creates runbook from template
Create a new runbook from an existing template
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 { GetV1RunbookTemplates(params *GetV1RunbookTemplatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1RunbookTemplatesOK, error) GetV1RunbookTemplatesID(params *GetV1RunbookTemplatesIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1RunbookTemplatesIDOK, error) PostV1RunbookTemplatesIDRunbooks(params *PostV1RunbookTemplatesIDRunbooksParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostV1RunbookTemplatesIDRunbooksCreated, 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 runbook templates API client.
type GetV1RunbookTemplatesIDOK ¶
type GetV1RunbookTemplatesIDOK struct { }
GetV1RunbookTemplatesIDOK describes a response with status code 200, with default header values.
Retrieve a single runbook template
func NewGetV1RunbookTemplatesIDOK ¶
func NewGetV1RunbookTemplatesIDOK() *GetV1RunbookTemplatesIDOK
NewGetV1RunbookTemplatesIDOK creates a GetV1RunbookTemplatesIDOK with default headers values
func (*GetV1RunbookTemplatesIDOK) Error ¶
func (o *GetV1RunbookTemplatesIDOK) Error() string
func (*GetV1RunbookTemplatesIDOK) IsClientError ¶
func (o *GetV1RunbookTemplatesIDOK) IsClientError() bool
IsClientError returns true when this get v1 runbook templates Id o k response has a 4xx status code
func (*GetV1RunbookTemplatesIDOK) IsCode ¶
func (o *GetV1RunbookTemplatesIDOK) IsCode(code int) bool
IsCode returns true when this get v1 runbook templates Id o k response a status code equal to that given
func (*GetV1RunbookTemplatesIDOK) IsRedirect ¶
func (o *GetV1RunbookTemplatesIDOK) IsRedirect() bool
IsRedirect returns true when this get v1 runbook templates Id o k response has a 3xx status code
func (*GetV1RunbookTemplatesIDOK) IsServerError ¶
func (o *GetV1RunbookTemplatesIDOK) IsServerError() bool
IsServerError returns true when this get v1 runbook templates Id o k response has a 5xx status code
func (*GetV1RunbookTemplatesIDOK) IsSuccess ¶
func (o *GetV1RunbookTemplatesIDOK) IsSuccess() bool
IsSuccess returns true when this get v1 runbook templates Id o k response has a 2xx status code
func (*GetV1RunbookTemplatesIDOK) String ¶
func (o *GetV1RunbookTemplatesIDOK) String() string
type GetV1RunbookTemplatesIDParams ¶
type GetV1RunbookTemplatesIDParams struct { /* ID. UUID of the Runbook template */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetV1RunbookTemplatesIDParams contains all the parameters to send to the API endpoint
for the get v1 runbook templates Id operation. Typically these are written to a http.Request.
func NewGetV1RunbookTemplatesIDParams ¶
func NewGetV1RunbookTemplatesIDParams() *GetV1RunbookTemplatesIDParams
NewGetV1RunbookTemplatesIDParams creates a new GetV1RunbookTemplatesIDParams 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 NewGetV1RunbookTemplatesIDParamsWithContext ¶
func NewGetV1RunbookTemplatesIDParamsWithContext(ctx context.Context) *GetV1RunbookTemplatesIDParams
NewGetV1RunbookTemplatesIDParamsWithContext creates a new GetV1RunbookTemplatesIDParams object with the ability to set a context for a request.
func NewGetV1RunbookTemplatesIDParamsWithHTTPClient ¶
func NewGetV1RunbookTemplatesIDParamsWithHTTPClient(client *http.Client) *GetV1RunbookTemplatesIDParams
NewGetV1RunbookTemplatesIDParamsWithHTTPClient creates a new GetV1RunbookTemplatesIDParams object with the ability to set a custom HTTPClient for a request.
func NewGetV1RunbookTemplatesIDParamsWithTimeout ¶
func NewGetV1RunbookTemplatesIDParamsWithTimeout(timeout time.Duration) *GetV1RunbookTemplatesIDParams
NewGetV1RunbookTemplatesIDParamsWithTimeout creates a new GetV1RunbookTemplatesIDParams object with the ability to set a timeout on a request.
func (*GetV1RunbookTemplatesIDParams) SetContext ¶
func (o *GetV1RunbookTemplatesIDParams) SetContext(ctx context.Context)
SetContext adds the context to the get v1 runbook templates Id params
func (*GetV1RunbookTemplatesIDParams) SetDefaults ¶
func (o *GetV1RunbookTemplatesIDParams) SetDefaults()
SetDefaults hydrates default values in the get v1 runbook templates Id params (not the query body).
All values with no default are reset to their zero value.
func (*GetV1RunbookTemplatesIDParams) SetHTTPClient ¶
func (o *GetV1RunbookTemplatesIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get v1 runbook templates Id params
func (*GetV1RunbookTemplatesIDParams) SetID ¶
func (o *GetV1RunbookTemplatesIDParams) SetID(id string)
SetID adds the id to the get v1 runbook templates Id params
func (*GetV1RunbookTemplatesIDParams) SetTimeout ¶
func (o *GetV1RunbookTemplatesIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get v1 runbook templates Id params
func (*GetV1RunbookTemplatesIDParams) WithContext ¶
func (o *GetV1RunbookTemplatesIDParams) WithContext(ctx context.Context) *GetV1RunbookTemplatesIDParams
WithContext adds the context to the get v1 runbook templates Id params
func (*GetV1RunbookTemplatesIDParams) WithDefaults ¶
func (o *GetV1RunbookTemplatesIDParams) WithDefaults() *GetV1RunbookTemplatesIDParams
WithDefaults hydrates default values in the get v1 runbook templates Id params (not the query body).
All values with no default are reset to their zero value.
func (*GetV1RunbookTemplatesIDParams) WithHTTPClient ¶
func (o *GetV1RunbookTemplatesIDParams) WithHTTPClient(client *http.Client) *GetV1RunbookTemplatesIDParams
WithHTTPClient adds the HTTPClient to the get v1 runbook templates Id params
func (*GetV1RunbookTemplatesIDParams) WithID ¶
func (o *GetV1RunbookTemplatesIDParams) WithID(id string) *GetV1RunbookTemplatesIDParams
WithID adds the id to the get v1 runbook templates Id params
func (*GetV1RunbookTemplatesIDParams) WithTimeout ¶
func (o *GetV1RunbookTemplatesIDParams) WithTimeout(timeout time.Duration) *GetV1RunbookTemplatesIDParams
WithTimeout adds the timeout to the get v1 runbook templates Id params
func (*GetV1RunbookTemplatesIDParams) WriteToRequest ¶
func (o *GetV1RunbookTemplatesIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetV1RunbookTemplatesIDReader ¶
type GetV1RunbookTemplatesIDReader struct {
// contains filtered or unexported fields
}
GetV1RunbookTemplatesIDReader is a Reader for the GetV1RunbookTemplatesID structure.
func (*GetV1RunbookTemplatesIDReader) ReadResponse ¶
func (o *GetV1RunbookTemplatesIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetV1RunbookTemplatesOK ¶
type GetV1RunbookTemplatesOK struct { }
GetV1RunbookTemplatesOK describes a response with status code 200, with default header values.
List all available runbook templates
func NewGetV1RunbookTemplatesOK ¶
func NewGetV1RunbookTemplatesOK() *GetV1RunbookTemplatesOK
NewGetV1RunbookTemplatesOK creates a GetV1RunbookTemplatesOK with default headers values
func (*GetV1RunbookTemplatesOK) Error ¶
func (o *GetV1RunbookTemplatesOK) Error() string
func (*GetV1RunbookTemplatesOK) IsClientError ¶
func (o *GetV1RunbookTemplatesOK) IsClientError() bool
IsClientError returns true when this get v1 runbook templates o k response has a 4xx status code
func (*GetV1RunbookTemplatesOK) IsCode ¶
func (o *GetV1RunbookTemplatesOK) IsCode(code int) bool
IsCode returns true when this get v1 runbook templates o k response a status code equal to that given
func (*GetV1RunbookTemplatesOK) IsRedirect ¶
func (o *GetV1RunbookTemplatesOK) IsRedirect() bool
IsRedirect returns true when this get v1 runbook templates o k response has a 3xx status code
func (*GetV1RunbookTemplatesOK) IsServerError ¶
func (o *GetV1RunbookTemplatesOK) IsServerError() bool
IsServerError returns true when this get v1 runbook templates o k response has a 5xx status code
func (*GetV1RunbookTemplatesOK) IsSuccess ¶
func (o *GetV1RunbookTemplatesOK) IsSuccess() bool
IsSuccess returns true when this get v1 runbook templates o k response has a 2xx status code
func (*GetV1RunbookTemplatesOK) String ¶
func (o *GetV1RunbookTemplatesOK) String() string
type GetV1RunbookTemplatesParams ¶
type GetV1RunbookTemplatesParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetV1RunbookTemplatesParams contains all the parameters to send to the API endpoint
for the get v1 runbook templates operation. Typically these are written to a http.Request.
func NewGetV1RunbookTemplatesParams ¶
func NewGetV1RunbookTemplatesParams() *GetV1RunbookTemplatesParams
NewGetV1RunbookTemplatesParams creates a new GetV1RunbookTemplatesParams 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 NewGetV1RunbookTemplatesParamsWithContext ¶
func NewGetV1RunbookTemplatesParamsWithContext(ctx context.Context) *GetV1RunbookTemplatesParams
NewGetV1RunbookTemplatesParamsWithContext creates a new GetV1RunbookTemplatesParams object with the ability to set a context for a request.
func NewGetV1RunbookTemplatesParamsWithHTTPClient ¶
func NewGetV1RunbookTemplatesParamsWithHTTPClient(client *http.Client) *GetV1RunbookTemplatesParams
NewGetV1RunbookTemplatesParamsWithHTTPClient creates a new GetV1RunbookTemplatesParams object with the ability to set a custom HTTPClient for a request.
func NewGetV1RunbookTemplatesParamsWithTimeout ¶
func NewGetV1RunbookTemplatesParamsWithTimeout(timeout time.Duration) *GetV1RunbookTemplatesParams
NewGetV1RunbookTemplatesParamsWithTimeout creates a new GetV1RunbookTemplatesParams object with the ability to set a timeout on a request.
func (*GetV1RunbookTemplatesParams) SetContext ¶
func (o *GetV1RunbookTemplatesParams) SetContext(ctx context.Context)
SetContext adds the context to the get v1 runbook templates params
func (*GetV1RunbookTemplatesParams) SetDefaults ¶
func (o *GetV1RunbookTemplatesParams) SetDefaults()
SetDefaults hydrates default values in the get v1 runbook templates params (not the query body).
All values with no default are reset to their zero value.
func (*GetV1RunbookTemplatesParams) SetHTTPClient ¶
func (o *GetV1RunbookTemplatesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get v1 runbook templates params
func (*GetV1RunbookTemplatesParams) SetTimeout ¶
func (o *GetV1RunbookTemplatesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get v1 runbook templates params
func (*GetV1RunbookTemplatesParams) WithContext ¶
func (o *GetV1RunbookTemplatesParams) WithContext(ctx context.Context) *GetV1RunbookTemplatesParams
WithContext adds the context to the get v1 runbook templates params
func (*GetV1RunbookTemplatesParams) WithDefaults ¶
func (o *GetV1RunbookTemplatesParams) WithDefaults() *GetV1RunbookTemplatesParams
WithDefaults hydrates default values in the get v1 runbook templates params (not the query body).
All values with no default are reset to their zero value.
func (*GetV1RunbookTemplatesParams) WithHTTPClient ¶
func (o *GetV1RunbookTemplatesParams) WithHTTPClient(client *http.Client) *GetV1RunbookTemplatesParams
WithHTTPClient adds the HTTPClient to the get v1 runbook templates params
func (*GetV1RunbookTemplatesParams) WithTimeout ¶
func (o *GetV1RunbookTemplatesParams) WithTimeout(timeout time.Duration) *GetV1RunbookTemplatesParams
WithTimeout adds the timeout to the get v1 runbook templates params
func (*GetV1RunbookTemplatesParams) WriteToRequest ¶
func (o *GetV1RunbookTemplatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetV1RunbookTemplatesReader ¶
type GetV1RunbookTemplatesReader struct {
// contains filtered or unexported fields
}
GetV1RunbookTemplatesReader is a Reader for the GetV1RunbookTemplates structure.
func (*GetV1RunbookTemplatesReader) ReadResponse ¶
func (o *GetV1RunbookTemplatesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostV1RunbookTemplatesIDRunbooksCreated ¶
type PostV1RunbookTemplatesIDRunbooksCreated struct { }
PostV1RunbookTemplatesIDRunbooksCreated describes a response with status code 201, with default header values.
Create a new runbook from an existing template
func NewPostV1RunbookTemplatesIDRunbooksCreated ¶
func NewPostV1RunbookTemplatesIDRunbooksCreated() *PostV1RunbookTemplatesIDRunbooksCreated
NewPostV1RunbookTemplatesIDRunbooksCreated creates a PostV1RunbookTemplatesIDRunbooksCreated with default headers values
func (*PostV1RunbookTemplatesIDRunbooksCreated) Error ¶
func (o *PostV1RunbookTemplatesIDRunbooksCreated) Error() string
func (*PostV1RunbookTemplatesIDRunbooksCreated) IsClientError ¶
func (o *PostV1RunbookTemplatesIDRunbooksCreated) IsClientError() bool
IsClientError returns true when this post v1 runbook templates Id runbooks created response has a 4xx status code
func (*PostV1RunbookTemplatesIDRunbooksCreated) IsCode ¶
func (o *PostV1RunbookTemplatesIDRunbooksCreated) IsCode(code int) bool
IsCode returns true when this post v1 runbook templates Id runbooks created response a status code equal to that given
func (*PostV1RunbookTemplatesIDRunbooksCreated) IsRedirect ¶
func (o *PostV1RunbookTemplatesIDRunbooksCreated) IsRedirect() bool
IsRedirect returns true when this post v1 runbook templates Id runbooks created response has a 3xx status code
func (*PostV1RunbookTemplatesIDRunbooksCreated) IsServerError ¶
func (o *PostV1RunbookTemplatesIDRunbooksCreated) IsServerError() bool
IsServerError returns true when this post v1 runbook templates Id runbooks created response has a 5xx status code
func (*PostV1RunbookTemplatesIDRunbooksCreated) IsSuccess ¶
func (o *PostV1RunbookTemplatesIDRunbooksCreated) IsSuccess() bool
IsSuccess returns true when this post v1 runbook templates Id runbooks created response has a 2xx status code
func (*PostV1RunbookTemplatesIDRunbooksCreated) String ¶
func (o *PostV1RunbookTemplatesIDRunbooksCreated) String() string
type PostV1RunbookTemplatesIDRunbooksParams ¶
type PostV1RunbookTemplatesIDRunbooksParams struct { // ID. // // Format: int32 ID int32 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostV1RunbookTemplatesIDRunbooksParams contains all the parameters to send to the API endpoint
for the post v1 runbook templates Id runbooks operation. Typically these are written to a http.Request.
func NewPostV1RunbookTemplatesIDRunbooksParams ¶
func NewPostV1RunbookTemplatesIDRunbooksParams() *PostV1RunbookTemplatesIDRunbooksParams
NewPostV1RunbookTemplatesIDRunbooksParams creates a new PostV1RunbookTemplatesIDRunbooksParams 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 NewPostV1RunbookTemplatesIDRunbooksParamsWithContext ¶
func NewPostV1RunbookTemplatesIDRunbooksParamsWithContext(ctx context.Context) *PostV1RunbookTemplatesIDRunbooksParams
NewPostV1RunbookTemplatesIDRunbooksParamsWithContext creates a new PostV1RunbookTemplatesIDRunbooksParams object with the ability to set a context for a request.
func NewPostV1RunbookTemplatesIDRunbooksParamsWithHTTPClient ¶
func NewPostV1RunbookTemplatesIDRunbooksParamsWithHTTPClient(client *http.Client) *PostV1RunbookTemplatesIDRunbooksParams
NewPostV1RunbookTemplatesIDRunbooksParamsWithHTTPClient creates a new PostV1RunbookTemplatesIDRunbooksParams object with the ability to set a custom HTTPClient for a request.
func NewPostV1RunbookTemplatesIDRunbooksParamsWithTimeout ¶
func NewPostV1RunbookTemplatesIDRunbooksParamsWithTimeout(timeout time.Duration) *PostV1RunbookTemplatesIDRunbooksParams
NewPostV1RunbookTemplatesIDRunbooksParamsWithTimeout creates a new PostV1RunbookTemplatesIDRunbooksParams object with the ability to set a timeout on a request.
func (*PostV1RunbookTemplatesIDRunbooksParams) SetContext ¶
func (o *PostV1RunbookTemplatesIDRunbooksParams) SetContext(ctx context.Context)
SetContext adds the context to the post v1 runbook templates Id runbooks params
func (*PostV1RunbookTemplatesIDRunbooksParams) SetDefaults ¶
func (o *PostV1RunbookTemplatesIDRunbooksParams) SetDefaults()
SetDefaults hydrates default values in the post v1 runbook templates Id runbooks params (not the query body).
All values with no default are reset to their zero value.
func (*PostV1RunbookTemplatesIDRunbooksParams) SetHTTPClient ¶
func (o *PostV1RunbookTemplatesIDRunbooksParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post v1 runbook templates Id runbooks params
func (*PostV1RunbookTemplatesIDRunbooksParams) SetID ¶
func (o *PostV1RunbookTemplatesIDRunbooksParams) SetID(id int32)
SetID adds the id to the post v1 runbook templates Id runbooks params
func (*PostV1RunbookTemplatesIDRunbooksParams) SetTimeout ¶
func (o *PostV1RunbookTemplatesIDRunbooksParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post v1 runbook templates Id runbooks params
func (*PostV1RunbookTemplatesIDRunbooksParams) WithContext ¶
func (o *PostV1RunbookTemplatesIDRunbooksParams) WithContext(ctx context.Context) *PostV1RunbookTemplatesIDRunbooksParams
WithContext adds the context to the post v1 runbook templates Id runbooks params
func (*PostV1RunbookTemplatesIDRunbooksParams) WithDefaults ¶
func (o *PostV1RunbookTemplatesIDRunbooksParams) WithDefaults() *PostV1RunbookTemplatesIDRunbooksParams
WithDefaults hydrates default values in the post v1 runbook templates Id runbooks params (not the query body).
All values with no default are reset to their zero value.
func (*PostV1RunbookTemplatesIDRunbooksParams) WithHTTPClient ¶
func (o *PostV1RunbookTemplatesIDRunbooksParams) WithHTTPClient(client *http.Client) *PostV1RunbookTemplatesIDRunbooksParams
WithHTTPClient adds the HTTPClient to the post v1 runbook templates Id runbooks params
func (*PostV1RunbookTemplatesIDRunbooksParams) WithID ¶
func (o *PostV1RunbookTemplatesIDRunbooksParams) WithID(id int32) *PostV1RunbookTemplatesIDRunbooksParams
WithID adds the id to the post v1 runbook templates Id runbooks params
func (*PostV1RunbookTemplatesIDRunbooksParams) WithTimeout ¶
func (o *PostV1RunbookTemplatesIDRunbooksParams) WithTimeout(timeout time.Duration) *PostV1RunbookTemplatesIDRunbooksParams
WithTimeout adds the timeout to the post v1 runbook templates Id runbooks params
func (*PostV1RunbookTemplatesIDRunbooksParams) WriteToRequest ¶
func (o *PostV1RunbookTemplatesIDRunbooksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostV1RunbookTemplatesIDRunbooksReader ¶
type PostV1RunbookTemplatesIDRunbooksReader struct {
// contains filtered or unexported fields
}
PostV1RunbookTemplatesIDRunbooksReader is a Reader for the PostV1RunbookTemplatesIDRunbooks structure.
func (*PostV1RunbookTemplatesIDRunbooksReader) ReadResponse ¶
func (o *PostV1RunbookTemplatesIDRunbooksReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.