Documentation
¶
Index ¶
- type Client
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) TemplateCreate(params *TemplateCreateParams, authInfo runtime.ClientAuthInfoWriter) (*TemplateCreateOK, error)
- func (a *Client) TemplateDelete(params *TemplateDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*TemplateDeleteNoContent, error)
- func (a *Client) TemplateInspect(params *TemplateInspectParams, authInfo runtime.ClientAuthInfoWriter) (*TemplateInspectOK, error)
- func (a *Client) TemplateList(params *TemplateListParams, authInfo runtime.ClientAuthInfoWriter) (*TemplateListOK, error)
- func (a *Client) TemplateUpdate(params *TemplateUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*TemplateUpdateOK, error)
- type TemplateCreateBadRequest
- type TemplateCreateForbidden
- type TemplateCreateInternalServerError
- type TemplateCreateOK
- type TemplateCreateParams
- func NewTemplateCreateParams() *TemplateCreateParams
- func NewTemplateCreateParamsWithContext(ctx context.Context) *TemplateCreateParams
- func NewTemplateCreateParamsWithHTTPClient(client *http.Client) *TemplateCreateParams
- func NewTemplateCreateParamsWithTimeout(timeout time.Duration) *TemplateCreateParams
- func (o *TemplateCreateParams) SetBody(body *models.TemplateCreateRequest)
- func (o *TemplateCreateParams) SetContext(ctx context.Context)
- func (o *TemplateCreateParams) SetHTTPClient(client *http.Client)
- func (o *TemplateCreateParams) SetTimeout(timeout time.Duration)
- func (o *TemplateCreateParams) WithBody(body *models.TemplateCreateRequest) *TemplateCreateParams
- func (o *TemplateCreateParams) WithContext(ctx context.Context) *TemplateCreateParams
- func (o *TemplateCreateParams) WithHTTPClient(client *http.Client) *TemplateCreateParams
- func (o *TemplateCreateParams) WithTimeout(timeout time.Duration) *TemplateCreateParams
- func (o *TemplateCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type TemplateCreateReader
- type TemplateDeleteBadRequest
- type TemplateDeleteInternalServerError
- type TemplateDeleteNoContent
- type TemplateDeleteParams
- func NewTemplateDeleteParams() *TemplateDeleteParams
- func NewTemplateDeleteParamsWithContext(ctx context.Context) *TemplateDeleteParams
- func NewTemplateDeleteParamsWithHTTPClient(client *http.Client) *TemplateDeleteParams
- func NewTemplateDeleteParamsWithTimeout(timeout time.Duration) *TemplateDeleteParams
- func (o *TemplateDeleteParams) SetContext(ctx context.Context)
- func (o *TemplateDeleteParams) SetHTTPClient(client *http.Client)
- func (o *TemplateDeleteParams) SetID(id int64)
- func (o *TemplateDeleteParams) SetTimeout(timeout time.Duration)
- func (o *TemplateDeleteParams) WithContext(ctx context.Context) *TemplateDeleteParams
- func (o *TemplateDeleteParams) WithHTTPClient(client *http.Client) *TemplateDeleteParams
- func (o *TemplateDeleteParams) WithID(id int64) *TemplateDeleteParams
- func (o *TemplateDeleteParams) WithTimeout(timeout time.Duration) *TemplateDeleteParams
- func (o *TemplateDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type TemplateDeleteReader
- type TemplateInspectBadRequest
- type TemplateInspectForbidden
- type TemplateInspectInternalServerError
- type TemplateInspectNotFound
- type TemplateInspectOK
- type TemplateInspectParams
- func NewTemplateInspectParams() *TemplateInspectParams
- func NewTemplateInspectParamsWithContext(ctx context.Context) *TemplateInspectParams
- func NewTemplateInspectParamsWithHTTPClient(client *http.Client) *TemplateInspectParams
- func NewTemplateInspectParamsWithTimeout(timeout time.Duration) *TemplateInspectParams
- func (o *TemplateInspectParams) SetContext(ctx context.Context)
- func (o *TemplateInspectParams) SetHTTPClient(client *http.Client)
- func (o *TemplateInspectParams) SetID(id int64)
- func (o *TemplateInspectParams) SetTimeout(timeout time.Duration)
- func (o *TemplateInspectParams) WithContext(ctx context.Context) *TemplateInspectParams
- func (o *TemplateInspectParams) WithHTTPClient(client *http.Client) *TemplateInspectParams
- func (o *TemplateInspectParams) WithID(id int64) *TemplateInspectParams
- func (o *TemplateInspectParams) WithTimeout(timeout time.Duration) *TemplateInspectParams
- func (o *TemplateInspectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type TemplateInspectReader
- type TemplateListInternalServerError
- type TemplateListOK
- type TemplateListParams
- func (o *TemplateListParams) SetContext(ctx context.Context)
- func (o *TemplateListParams) SetHTTPClient(client *http.Client)
- func (o *TemplateListParams) SetTimeout(timeout time.Duration)
- func (o *TemplateListParams) WithContext(ctx context.Context) *TemplateListParams
- func (o *TemplateListParams) WithHTTPClient(client *http.Client) *TemplateListParams
- func (o *TemplateListParams) WithTimeout(timeout time.Duration) *TemplateListParams
- func (o *TemplateListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type TemplateListReader
- type TemplateUpdateBadRequest
- type TemplateUpdateForbidden
- type TemplateUpdateInternalServerError
- type TemplateUpdateNotFound
- type TemplateUpdateOK
- type TemplateUpdateParams
- func NewTemplateUpdateParams() *TemplateUpdateParams
- func NewTemplateUpdateParamsWithContext(ctx context.Context) *TemplateUpdateParams
- func NewTemplateUpdateParamsWithHTTPClient(client *http.Client) *TemplateUpdateParams
- func NewTemplateUpdateParamsWithTimeout(timeout time.Duration) *TemplateUpdateParams
- func (o *TemplateUpdateParams) SetBody(body *models.TemplateUpdateRequest)
- func (o *TemplateUpdateParams) SetContext(ctx context.Context)
- func (o *TemplateUpdateParams) SetHTTPClient(client *http.Client)
- func (o *TemplateUpdateParams) SetID(id int64)
- func (o *TemplateUpdateParams) SetTimeout(timeout time.Duration)
- func (o *TemplateUpdateParams) WithBody(body *models.TemplateUpdateRequest) *TemplateUpdateParams
- func (o *TemplateUpdateParams) WithContext(ctx context.Context) *TemplateUpdateParams
- func (o *TemplateUpdateParams) WithHTTPClient(client *http.Client) *TemplateUpdateParams
- func (o *TemplateUpdateParams) WithID(id int64) *TemplateUpdateParams
- func (o *TemplateUpdateParams) WithTimeout(timeout time.Duration) *TemplateUpdateParams
- func (o *TemplateUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type TemplateUpdateReader
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 templates API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new templates API client.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) TemplateCreate ¶
func (a *Client) TemplateCreate(params *TemplateCreateParams, authInfo runtime.ClientAuthInfoWriter) (*TemplateCreateOK, error)
TemplateCreate creates a new template
Create a new template. **Access policy**: administrator
func (*Client) TemplateDelete ¶
func (a *Client) TemplateDelete(params *TemplateDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*TemplateDeleteNoContent, error)
TemplateDelete removes a template
Remove a template. **Access policy**: administrator
func (*Client) TemplateInspect ¶
func (a *Client) TemplateInspect(params *TemplateInspectParams, authInfo runtime.ClientAuthInfoWriter) (*TemplateInspectOK, error)
TemplateInspect inspects a template
Retrieve details about a template. **Access policy**: administrator
func (*Client) TemplateList ¶
func (a *Client) TemplateList(params *TemplateListParams, authInfo runtime.ClientAuthInfoWriter) (*TemplateListOK, error)
TemplateList lists available templates
List available templates. Administrator templates will not be listed for non-administrator users. **Access policy**: restricted
func (*Client) TemplateUpdate ¶
func (a *Client) TemplateUpdate(params *TemplateUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*TemplateUpdateOK, error)
TemplateUpdate updates a template
Update a template. **Access policy**: administrator
type TemplateCreateBadRequest ¶
type TemplateCreateBadRequest struct {
Payload *models.GenericError
}
TemplateCreateBadRequest handles this case with default header values.
Invalid request
func NewTemplateCreateBadRequest ¶
func NewTemplateCreateBadRequest() *TemplateCreateBadRequest
NewTemplateCreateBadRequest creates a TemplateCreateBadRequest with default headers values
func (*TemplateCreateBadRequest) Error ¶
func (o *TemplateCreateBadRequest) Error() string
type TemplateCreateForbidden ¶
type TemplateCreateForbidden struct {
Payload *models.GenericError
}
TemplateCreateForbidden handles this case with default header values.
Unauthorized
func NewTemplateCreateForbidden ¶
func NewTemplateCreateForbidden() *TemplateCreateForbidden
NewTemplateCreateForbidden creates a TemplateCreateForbidden with default headers values
func (*TemplateCreateForbidden) Error ¶
func (o *TemplateCreateForbidden) Error() string
type TemplateCreateInternalServerError ¶
type TemplateCreateInternalServerError struct {
Payload *models.GenericError
}
TemplateCreateInternalServerError handles this case with default header values.
Server error
func NewTemplateCreateInternalServerError ¶
func NewTemplateCreateInternalServerError() *TemplateCreateInternalServerError
NewTemplateCreateInternalServerError creates a TemplateCreateInternalServerError with default headers values
func (*TemplateCreateInternalServerError) Error ¶
func (o *TemplateCreateInternalServerError) Error() string
type TemplateCreateOK ¶
TemplateCreateOK handles this case with default header values.
Success
func NewTemplateCreateOK ¶
func NewTemplateCreateOK() *TemplateCreateOK
NewTemplateCreateOK creates a TemplateCreateOK with default headers values
func (*TemplateCreateOK) Error ¶
func (o *TemplateCreateOK) Error() string
type TemplateCreateParams ¶
type TemplateCreateParams struct { /*Body Template details */ Body *models.TemplateCreateRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
TemplateCreateParams contains all the parameters to send to the API endpoint for the template create operation typically these are written to a http.Request
func NewTemplateCreateParams ¶
func NewTemplateCreateParams() *TemplateCreateParams
NewTemplateCreateParams creates a new TemplateCreateParams object with the default values initialized.
func NewTemplateCreateParamsWithContext ¶
func NewTemplateCreateParamsWithContext(ctx context.Context) *TemplateCreateParams
NewTemplateCreateParamsWithContext creates a new TemplateCreateParams object with the default values initialized, and the ability to set a context for a request
func NewTemplateCreateParamsWithHTTPClient ¶
func NewTemplateCreateParamsWithHTTPClient(client *http.Client) *TemplateCreateParams
NewTemplateCreateParamsWithHTTPClient creates a new TemplateCreateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewTemplateCreateParamsWithTimeout ¶
func NewTemplateCreateParamsWithTimeout(timeout time.Duration) *TemplateCreateParams
NewTemplateCreateParamsWithTimeout creates a new TemplateCreateParams object with the default values initialized, and the ability to set a timeout on a request
func (*TemplateCreateParams) SetBody ¶
func (o *TemplateCreateParams) SetBody(body *models.TemplateCreateRequest)
SetBody adds the body to the template create params
func (*TemplateCreateParams) SetContext ¶
func (o *TemplateCreateParams) SetContext(ctx context.Context)
SetContext adds the context to the template create params
func (*TemplateCreateParams) SetHTTPClient ¶
func (o *TemplateCreateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the template create params
func (*TemplateCreateParams) SetTimeout ¶
func (o *TemplateCreateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the template create params
func (*TemplateCreateParams) WithBody ¶
func (o *TemplateCreateParams) WithBody(body *models.TemplateCreateRequest) *TemplateCreateParams
WithBody adds the body to the template create params
func (*TemplateCreateParams) WithContext ¶
func (o *TemplateCreateParams) WithContext(ctx context.Context) *TemplateCreateParams
WithContext adds the context to the template create params
func (*TemplateCreateParams) WithHTTPClient ¶
func (o *TemplateCreateParams) WithHTTPClient(client *http.Client) *TemplateCreateParams
WithHTTPClient adds the HTTPClient to the template create params
func (*TemplateCreateParams) WithTimeout ¶
func (o *TemplateCreateParams) WithTimeout(timeout time.Duration) *TemplateCreateParams
WithTimeout adds the timeout to the template create params
func (*TemplateCreateParams) WriteToRequest ¶
func (o *TemplateCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type TemplateCreateReader ¶
type TemplateCreateReader struct {
// contains filtered or unexported fields
}
TemplateCreateReader is a Reader for the TemplateCreate structure.
func (*TemplateCreateReader) ReadResponse ¶
func (o *TemplateCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type TemplateDeleteBadRequest ¶
type TemplateDeleteBadRequest struct {
Payload *models.GenericError
}
TemplateDeleteBadRequest handles this case with default header values.
Invalid request
func NewTemplateDeleteBadRequest ¶
func NewTemplateDeleteBadRequest() *TemplateDeleteBadRequest
NewTemplateDeleteBadRequest creates a TemplateDeleteBadRequest with default headers values
func (*TemplateDeleteBadRequest) Error ¶
func (o *TemplateDeleteBadRequest) Error() string
type TemplateDeleteInternalServerError ¶
type TemplateDeleteInternalServerError struct {
Payload *models.GenericError
}
TemplateDeleteInternalServerError handles this case with default header values.
Server error
func NewTemplateDeleteInternalServerError ¶
func NewTemplateDeleteInternalServerError() *TemplateDeleteInternalServerError
NewTemplateDeleteInternalServerError creates a TemplateDeleteInternalServerError with default headers values
func (*TemplateDeleteInternalServerError) Error ¶
func (o *TemplateDeleteInternalServerError) Error() string
type TemplateDeleteNoContent ¶
type TemplateDeleteNoContent struct { }
TemplateDeleteNoContent handles this case with default header values.
Success
func NewTemplateDeleteNoContent ¶
func NewTemplateDeleteNoContent() *TemplateDeleteNoContent
NewTemplateDeleteNoContent creates a TemplateDeleteNoContent with default headers values
func (*TemplateDeleteNoContent) Error ¶
func (o *TemplateDeleteNoContent) Error() string
type TemplateDeleteParams ¶
type TemplateDeleteParams struct { /*ID Template identifier */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
TemplateDeleteParams contains all the parameters to send to the API endpoint for the template delete operation typically these are written to a http.Request
func NewTemplateDeleteParams ¶
func NewTemplateDeleteParams() *TemplateDeleteParams
NewTemplateDeleteParams creates a new TemplateDeleteParams object with the default values initialized.
func NewTemplateDeleteParamsWithContext ¶
func NewTemplateDeleteParamsWithContext(ctx context.Context) *TemplateDeleteParams
NewTemplateDeleteParamsWithContext creates a new TemplateDeleteParams object with the default values initialized, and the ability to set a context for a request
func NewTemplateDeleteParamsWithHTTPClient ¶
func NewTemplateDeleteParamsWithHTTPClient(client *http.Client) *TemplateDeleteParams
NewTemplateDeleteParamsWithHTTPClient creates a new TemplateDeleteParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewTemplateDeleteParamsWithTimeout ¶
func NewTemplateDeleteParamsWithTimeout(timeout time.Duration) *TemplateDeleteParams
NewTemplateDeleteParamsWithTimeout creates a new TemplateDeleteParams object with the default values initialized, and the ability to set a timeout on a request
func (*TemplateDeleteParams) SetContext ¶
func (o *TemplateDeleteParams) SetContext(ctx context.Context)
SetContext adds the context to the template delete params
func (*TemplateDeleteParams) SetHTTPClient ¶
func (o *TemplateDeleteParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the template delete params
func (*TemplateDeleteParams) SetID ¶
func (o *TemplateDeleteParams) SetID(id int64)
SetID adds the id to the template delete params
func (*TemplateDeleteParams) SetTimeout ¶
func (o *TemplateDeleteParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the template delete params
func (*TemplateDeleteParams) WithContext ¶
func (o *TemplateDeleteParams) WithContext(ctx context.Context) *TemplateDeleteParams
WithContext adds the context to the template delete params
func (*TemplateDeleteParams) WithHTTPClient ¶
func (o *TemplateDeleteParams) WithHTTPClient(client *http.Client) *TemplateDeleteParams
WithHTTPClient adds the HTTPClient to the template delete params
func (*TemplateDeleteParams) WithID ¶
func (o *TemplateDeleteParams) WithID(id int64) *TemplateDeleteParams
WithID adds the id to the template delete params
func (*TemplateDeleteParams) WithTimeout ¶
func (o *TemplateDeleteParams) WithTimeout(timeout time.Duration) *TemplateDeleteParams
WithTimeout adds the timeout to the template delete params
func (*TemplateDeleteParams) WriteToRequest ¶
func (o *TemplateDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type TemplateDeleteReader ¶
type TemplateDeleteReader struct {
// contains filtered or unexported fields
}
TemplateDeleteReader is a Reader for the TemplateDelete structure.
func (*TemplateDeleteReader) ReadResponse ¶
func (o *TemplateDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type TemplateInspectBadRequest ¶
type TemplateInspectBadRequest struct {
Payload *models.GenericError
}
TemplateInspectBadRequest handles this case with default header values.
Invalid request
func NewTemplateInspectBadRequest ¶
func NewTemplateInspectBadRequest() *TemplateInspectBadRequest
NewTemplateInspectBadRequest creates a TemplateInspectBadRequest with default headers values
func (*TemplateInspectBadRequest) Error ¶
func (o *TemplateInspectBadRequest) Error() string
type TemplateInspectForbidden ¶
type TemplateInspectForbidden struct {
Payload *models.GenericError
}
TemplateInspectForbidden handles this case with default header values.
Unauthorized
func NewTemplateInspectForbidden ¶
func NewTemplateInspectForbidden() *TemplateInspectForbidden
NewTemplateInspectForbidden creates a TemplateInspectForbidden with default headers values
func (*TemplateInspectForbidden) Error ¶
func (o *TemplateInspectForbidden) Error() string
type TemplateInspectInternalServerError ¶
type TemplateInspectInternalServerError struct {
Payload *models.GenericError
}
TemplateInspectInternalServerError handles this case with default header values.
Server error
func NewTemplateInspectInternalServerError ¶
func NewTemplateInspectInternalServerError() *TemplateInspectInternalServerError
NewTemplateInspectInternalServerError creates a TemplateInspectInternalServerError with default headers values
func (*TemplateInspectInternalServerError) Error ¶
func (o *TemplateInspectInternalServerError) Error() string
type TemplateInspectNotFound ¶
type TemplateInspectNotFound struct {
Payload *models.GenericError
}
TemplateInspectNotFound handles this case with default header values.
Template not found
func NewTemplateInspectNotFound ¶
func NewTemplateInspectNotFound() *TemplateInspectNotFound
NewTemplateInspectNotFound creates a TemplateInspectNotFound with default headers values
func (*TemplateInspectNotFound) Error ¶
func (o *TemplateInspectNotFound) Error() string
type TemplateInspectOK ¶
TemplateInspectOK handles this case with default header values.
Success
func NewTemplateInspectOK ¶
func NewTemplateInspectOK() *TemplateInspectOK
NewTemplateInspectOK creates a TemplateInspectOK with default headers values
func (*TemplateInspectOK) Error ¶
func (o *TemplateInspectOK) Error() string
type TemplateInspectParams ¶
type TemplateInspectParams struct { /*ID Template identifier */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
TemplateInspectParams contains all the parameters to send to the API endpoint for the template inspect operation typically these are written to a http.Request
func NewTemplateInspectParams ¶
func NewTemplateInspectParams() *TemplateInspectParams
NewTemplateInspectParams creates a new TemplateInspectParams object with the default values initialized.
func NewTemplateInspectParamsWithContext ¶
func NewTemplateInspectParamsWithContext(ctx context.Context) *TemplateInspectParams
NewTemplateInspectParamsWithContext creates a new TemplateInspectParams object with the default values initialized, and the ability to set a context for a request
func NewTemplateInspectParamsWithHTTPClient ¶
func NewTemplateInspectParamsWithHTTPClient(client *http.Client) *TemplateInspectParams
NewTemplateInspectParamsWithHTTPClient creates a new TemplateInspectParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewTemplateInspectParamsWithTimeout ¶
func NewTemplateInspectParamsWithTimeout(timeout time.Duration) *TemplateInspectParams
NewTemplateInspectParamsWithTimeout creates a new TemplateInspectParams object with the default values initialized, and the ability to set a timeout on a request
func (*TemplateInspectParams) SetContext ¶
func (o *TemplateInspectParams) SetContext(ctx context.Context)
SetContext adds the context to the template inspect params
func (*TemplateInspectParams) SetHTTPClient ¶
func (o *TemplateInspectParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the template inspect params
func (*TemplateInspectParams) SetID ¶
func (o *TemplateInspectParams) SetID(id int64)
SetID adds the id to the template inspect params
func (*TemplateInspectParams) SetTimeout ¶
func (o *TemplateInspectParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the template inspect params
func (*TemplateInspectParams) WithContext ¶
func (o *TemplateInspectParams) WithContext(ctx context.Context) *TemplateInspectParams
WithContext adds the context to the template inspect params
func (*TemplateInspectParams) WithHTTPClient ¶
func (o *TemplateInspectParams) WithHTTPClient(client *http.Client) *TemplateInspectParams
WithHTTPClient adds the HTTPClient to the template inspect params
func (*TemplateInspectParams) WithID ¶
func (o *TemplateInspectParams) WithID(id int64) *TemplateInspectParams
WithID adds the id to the template inspect params
func (*TemplateInspectParams) WithTimeout ¶
func (o *TemplateInspectParams) WithTimeout(timeout time.Duration) *TemplateInspectParams
WithTimeout adds the timeout to the template inspect params
func (*TemplateInspectParams) WriteToRequest ¶
func (o *TemplateInspectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type TemplateInspectReader ¶
type TemplateInspectReader struct {
// contains filtered or unexported fields
}
TemplateInspectReader is a Reader for the TemplateInspect structure.
func (*TemplateInspectReader) ReadResponse ¶
func (o *TemplateInspectReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type TemplateListInternalServerError ¶
type TemplateListInternalServerError struct {
Payload *models.GenericError
}
TemplateListInternalServerError handles this case with default header values.
Server error
func NewTemplateListInternalServerError ¶
func NewTemplateListInternalServerError() *TemplateListInternalServerError
NewTemplateListInternalServerError creates a TemplateListInternalServerError with default headers values
func (*TemplateListInternalServerError) Error ¶
func (o *TemplateListInternalServerError) Error() string
type TemplateListOK ¶
type TemplateListOK struct {
Payload models.TemplateListResponse
}
TemplateListOK handles this case with default header values.
Success
func NewTemplateListOK ¶
func NewTemplateListOK() *TemplateListOK
NewTemplateListOK creates a TemplateListOK with default headers values
func (*TemplateListOK) Error ¶
func (o *TemplateListOK) Error() string
type TemplateListParams ¶
type TemplateListParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
TemplateListParams contains all the parameters to send to the API endpoint for the template list operation typically these are written to a http.Request
func NewTemplateListParams ¶
func NewTemplateListParams() *TemplateListParams
NewTemplateListParams creates a new TemplateListParams object with the default values initialized.
func NewTemplateListParamsWithContext ¶
func NewTemplateListParamsWithContext(ctx context.Context) *TemplateListParams
NewTemplateListParamsWithContext creates a new TemplateListParams object with the default values initialized, and the ability to set a context for a request
func NewTemplateListParamsWithHTTPClient ¶
func NewTemplateListParamsWithHTTPClient(client *http.Client) *TemplateListParams
NewTemplateListParamsWithHTTPClient creates a new TemplateListParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewTemplateListParamsWithTimeout ¶
func NewTemplateListParamsWithTimeout(timeout time.Duration) *TemplateListParams
NewTemplateListParamsWithTimeout creates a new TemplateListParams object with the default values initialized, and the ability to set a timeout on a request
func (*TemplateListParams) SetContext ¶
func (o *TemplateListParams) SetContext(ctx context.Context)
SetContext adds the context to the template list params
func (*TemplateListParams) SetHTTPClient ¶
func (o *TemplateListParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the template list params
func (*TemplateListParams) SetTimeout ¶
func (o *TemplateListParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the template list params
func (*TemplateListParams) WithContext ¶
func (o *TemplateListParams) WithContext(ctx context.Context) *TemplateListParams
WithContext adds the context to the template list params
func (*TemplateListParams) WithHTTPClient ¶
func (o *TemplateListParams) WithHTTPClient(client *http.Client) *TemplateListParams
WithHTTPClient adds the HTTPClient to the template list params
func (*TemplateListParams) WithTimeout ¶
func (o *TemplateListParams) WithTimeout(timeout time.Duration) *TemplateListParams
WithTimeout adds the timeout to the template list params
func (*TemplateListParams) WriteToRequest ¶
func (o *TemplateListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type TemplateListReader ¶
type TemplateListReader struct {
// contains filtered or unexported fields
}
TemplateListReader is a Reader for the TemplateList structure.
func (*TemplateListReader) ReadResponse ¶
func (o *TemplateListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type TemplateUpdateBadRequest ¶
type TemplateUpdateBadRequest struct {
Payload *models.GenericError
}
TemplateUpdateBadRequest handles this case with default header values.
Invalid request
func NewTemplateUpdateBadRequest ¶
func NewTemplateUpdateBadRequest() *TemplateUpdateBadRequest
NewTemplateUpdateBadRequest creates a TemplateUpdateBadRequest with default headers values
func (*TemplateUpdateBadRequest) Error ¶
func (o *TemplateUpdateBadRequest) Error() string
type TemplateUpdateForbidden ¶
type TemplateUpdateForbidden struct {
Payload *models.GenericError
}
TemplateUpdateForbidden handles this case with default header values.
Unauthorized
func NewTemplateUpdateForbidden ¶
func NewTemplateUpdateForbidden() *TemplateUpdateForbidden
NewTemplateUpdateForbidden creates a TemplateUpdateForbidden with default headers values
func (*TemplateUpdateForbidden) Error ¶
func (o *TemplateUpdateForbidden) Error() string
type TemplateUpdateInternalServerError ¶
type TemplateUpdateInternalServerError struct {
Payload *models.GenericError
}
TemplateUpdateInternalServerError handles this case with default header values.
Server error
func NewTemplateUpdateInternalServerError ¶
func NewTemplateUpdateInternalServerError() *TemplateUpdateInternalServerError
NewTemplateUpdateInternalServerError creates a TemplateUpdateInternalServerError with default headers values
func (*TemplateUpdateInternalServerError) Error ¶
func (o *TemplateUpdateInternalServerError) Error() string
type TemplateUpdateNotFound ¶
type TemplateUpdateNotFound struct {
Payload *models.GenericError
}
TemplateUpdateNotFound handles this case with default header values.
Template not found
func NewTemplateUpdateNotFound ¶
func NewTemplateUpdateNotFound() *TemplateUpdateNotFound
NewTemplateUpdateNotFound creates a TemplateUpdateNotFound with default headers values
func (*TemplateUpdateNotFound) Error ¶
func (o *TemplateUpdateNotFound) Error() string
type TemplateUpdateOK ¶
type TemplateUpdateOK struct { }
TemplateUpdateOK handles this case with default header values.
Success
func NewTemplateUpdateOK ¶
func NewTemplateUpdateOK() *TemplateUpdateOK
NewTemplateUpdateOK creates a TemplateUpdateOK with default headers values
func (*TemplateUpdateOK) Error ¶
func (o *TemplateUpdateOK) Error() string
type TemplateUpdateParams ¶
type TemplateUpdateParams struct { /*Body Template details */ Body *models.TemplateUpdateRequest /*ID Template identifier */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
TemplateUpdateParams contains all the parameters to send to the API endpoint for the template update operation typically these are written to a http.Request
func NewTemplateUpdateParams ¶
func NewTemplateUpdateParams() *TemplateUpdateParams
NewTemplateUpdateParams creates a new TemplateUpdateParams object with the default values initialized.
func NewTemplateUpdateParamsWithContext ¶
func NewTemplateUpdateParamsWithContext(ctx context.Context) *TemplateUpdateParams
NewTemplateUpdateParamsWithContext creates a new TemplateUpdateParams object with the default values initialized, and the ability to set a context for a request
func NewTemplateUpdateParamsWithHTTPClient ¶
func NewTemplateUpdateParamsWithHTTPClient(client *http.Client) *TemplateUpdateParams
NewTemplateUpdateParamsWithHTTPClient creates a new TemplateUpdateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewTemplateUpdateParamsWithTimeout ¶
func NewTemplateUpdateParamsWithTimeout(timeout time.Duration) *TemplateUpdateParams
NewTemplateUpdateParamsWithTimeout creates a new TemplateUpdateParams object with the default values initialized, and the ability to set a timeout on a request
func (*TemplateUpdateParams) SetBody ¶
func (o *TemplateUpdateParams) SetBody(body *models.TemplateUpdateRequest)
SetBody adds the body to the template update params
func (*TemplateUpdateParams) SetContext ¶
func (o *TemplateUpdateParams) SetContext(ctx context.Context)
SetContext adds the context to the template update params
func (*TemplateUpdateParams) SetHTTPClient ¶
func (o *TemplateUpdateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the template update params
func (*TemplateUpdateParams) SetID ¶
func (o *TemplateUpdateParams) SetID(id int64)
SetID adds the id to the template update params
func (*TemplateUpdateParams) SetTimeout ¶
func (o *TemplateUpdateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the template update params
func (*TemplateUpdateParams) WithBody ¶
func (o *TemplateUpdateParams) WithBody(body *models.TemplateUpdateRequest) *TemplateUpdateParams
WithBody adds the body to the template update params
func (*TemplateUpdateParams) WithContext ¶
func (o *TemplateUpdateParams) WithContext(ctx context.Context) *TemplateUpdateParams
WithContext adds the context to the template update params
func (*TemplateUpdateParams) WithHTTPClient ¶
func (o *TemplateUpdateParams) WithHTTPClient(client *http.Client) *TemplateUpdateParams
WithHTTPClient adds the HTTPClient to the template update params
func (*TemplateUpdateParams) WithID ¶
func (o *TemplateUpdateParams) WithID(id int64) *TemplateUpdateParams
WithID adds the id to the template update params
func (*TemplateUpdateParams) WithTimeout ¶
func (o *TemplateUpdateParams) WithTimeout(timeout time.Duration) *TemplateUpdateParams
WithTimeout adds the timeout to the template update params
func (*TemplateUpdateParams) WriteToRequest ¶
func (o *TemplateUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type TemplateUpdateReader ¶
type TemplateUpdateReader struct {
// contains filtered or unexported fields
}
TemplateUpdateReader is a Reader for the TemplateUpdate structure.
func (*TemplateUpdateReader) ReadResponse ¶
func (o *TemplateUpdateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files
¶
- template_create_parameters.go
- template_create_responses.go
- template_delete_parameters.go
- template_delete_responses.go
- template_inspect_parameters.go
- template_inspect_responses.go
- template_list_parameters.go
- template_list_responses.go
- template_update_parameters.go
- template_update_responses.go
- templates_client.go