runbook_templates

package
v0.0.0-...-d3fc958 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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

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

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

WithContext adds the context to the get v1 runbook templates Id params

func (*GetV1RunbookTemplatesIDParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the get v1 runbook templates Id params

func (*GetV1RunbookTemplatesIDParams) WithID

WithID adds the id to the get v1 runbook templates Id params

func (*GetV1RunbookTemplatesIDParams) WithTimeout

WithTimeout adds the timeout to the get v1 runbook templates Id params

func (*GetV1RunbookTemplatesIDParams) WriteToRequest

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

WithContext adds the context to the get v1 runbook templates params

func (*GetV1RunbookTemplatesParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the get v1 runbook templates params

func (*GetV1RunbookTemplatesParams) WithTimeout

WithTimeout adds the timeout to the get v1 runbook templates params

func (*GetV1RunbookTemplatesParams) WriteToRequest

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 (*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

IsCode returns true when this post v1 runbook templates Id runbooks created response a status code equal to that given

func (*PostV1RunbookTemplatesIDRunbooksCreated) IsRedirect

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

IsSuccess returns true when this post v1 runbook templates Id runbooks created response has a 2xx status code

func (*PostV1RunbookTemplatesIDRunbooksCreated) 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

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

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

WithContext adds the context to the post v1 runbook templates Id runbooks params

func (*PostV1RunbookTemplatesIDRunbooksParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the post v1 runbook templates Id runbooks params

func (*PostV1RunbookTemplatesIDRunbooksParams) WithID

WithID adds the id to the post v1 runbook templates Id runbooks params

func (*PostV1RunbookTemplatesIDRunbooksParams) WithTimeout

WithTimeout adds the timeout to the post v1 runbook templates Id runbooks params

func (*PostV1RunbookTemplatesIDRunbooksParams) WriteToRequest

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.

Jump to

Keyboard shortcuts

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