Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateTemplate(params *CreateTemplateParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateTemplateOK, error)
- func (a *Client) DeleteTemplate(params *DeleteTemplateParams, authInfo runtime.ClientAuthInfoWriter, ...) error
- func (a *Client) GetTemplate(params *GetTemplateParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetTemplateOK, error)
- func (a *Client) ListTemplates(params *ListTemplatesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListTemplatesOK, error)
- func (a *Client) RestoreTemplates(params *RestoreTemplatesParams, authInfo runtime.ClientAuthInfoWriter, ...) error
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateTemplate(params *UpdateTemplateParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateTemplateOK, error)
- type ClientOption
- type ClientService
- type CreateTemplateDefault
- func (o *CreateTemplateDefault) Code() int
- func (o *CreateTemplateDefault) Error() string
- func (o *CreateTemplateDefault) GetPayload() apiserver_params.APIErrorResponse
- func (o *CreateTemplateDefault) IsClientError() bool
- func (o *CreateTemplateDefault) IsCode(code int) bool
- func (o *CreateTemplateDefault) IsRedirect() bool
- func (o *CreateTemplateDefault) IsServerError() bool
- func (o *CreateTemplateDefault) IsSuccess() bool
- func (o *CreateTemplateDefault) String() string
- type CreateTemplateOK
- func (o *CreateTemplateOK) Code() int
- func (o *CreateTemplateOK) Error() string
- func (o *CreateTemplateOK) GetPayload() garm_params.Template
- func (o *CreateTemplateOK) IsClientError() bool
- func (o *CreateTemplateOK) IsCode(code int) bool
- func (o *CreateTemplateOK) IsRedirect() bool
- func (o *CreateTemplateOK) IsServerError() bool
- func (o *CreateTemplateOK) IsSuccess() bool
- func (o *CreateTemplateOK) String() string
- type CreateTemplateParams
- func NewCreateTemplateParams() *CreateTemplateParams
- func NewCreateTemplateParamsWithContext(ctx context.Context) *CreateTemplateParams
- func NewCreateTemplateParamsWithHTTPClient(client *http.Client) *CreateTemplateParams
- func NewCreateTemplateParamsWithTimeout(timeout time.Duration) *CreateTemplateParams
- func (o *CreateTemplateParams) SetBody(body garm_params.CreateTemplateParams)
- func (o *CreateTemplateParams) SetContext(ctx context.Context)
- func (o *CreateTemplateParams) SetDefaults()
- func (o *CreateTemplateParams) SetHTTPClient(client *http.Client)
- func (o *CreateTemplateParams) SetTimeout(timeout time.Duration)
- func (o *CreateTemplateParams) WithBody(body garm_params.CreateTemplateParams) *CreateTemplateParams
- func (o *CreateTemplateParams) WithContext(ctx context.Context) *CreateTemplateParams
- func (o *CreateTemplateParams) WithDefaults() *CreateTemplateParams
- func (o *CreateTemplateParams) WithHTTPClient(client *http.Client) *CreateTemplateParams
- func (o *CreateTemplateParams) WithTimeout(timeout time.Duration) *CreateTemplateParams
- func (o *CreateTemplateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateTemplateReader
- type DeleteTemplateDefault
- func (o *DeleteTemplateDefault) Code() int
- func (o *DeleteTemplateDefault) Error() string
- func (o *DeleteTemplateDefault) GetPayload() apiserver_params.APIErrorResponse
- func (o *DeleteTemplateDefault) IsClientError() bool
- func (o *DeleteTemplateDefault) IsCode(code int) bool
- func (o *DeleteTemplateDefault) IsRedirect() bool
- func (o *DeleteTemplateDefault) IsServerError() bool
- func (o *DeleteTemplateDefault) IsSuccess() bool
- func (o *DeleteTemplateDefault) String() string
- type DeleteTemplateParams
- func NewDeleteTemplateParams() *DeleteTemplateParams
- func NewDeleteTemplateParamsWithContext(ctx context.Context) *DeleteTemplateParams
- func NewDeleteTemplateParamsWithHTTPClient(client *http.Client) *DeleteTemplateParams
- func NewDeleteTemplateParamsWithTimeout(timeout time.Duration) *DeleteTemplateParams
- func (o *DeleteTemplateParams) SetContext(ctx context.Context)
- func (o *DeleteTemplateParams) SetDefaults()
- func (o *DeleteTemplateParams) SetHTTPClient(client *http.Client)
- func (o *DeleteTemplateParams) SetTemplateID(templateID float64)
- func (o *DeleteTemplateParams) SetTimeout(timeout time.Duration)
- func (o *DeleteTemplateParams) WithContext(ctx context.Context) *DeleteTemplateParams
- func (o *DeleteTemplateParams) WithDefaults() *DeleteTemplateParams
- func (o *DeleteTemplateParams) WithHTTPClient(client *http.Client) *DeleteTemplateParams
- func (o *DeleteTemplateParams) WithTemplateID(templateID float64) *DeleteTemplateParams
- func (o *DeleteTemplateParams) WithTimeout(timeout time.Duration) *DeleteTemplateParams
- func (o *DeleteTemplateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteTemplateReader
- type GetTemplateDefault
- func (o *GetTemplateDefault) Code() int
- func (o *GetTemplateDefault) Error() string
- func (o *GetTemplateDefault) GetPayload() apiserver_params.APIErrorResponse
- func (o *GetTemplateDefault) IsClientError() bool
- func (o *GetTemplateDefault) IsCode(code int) bool
- func (o *GetTemplateDefault) IsRedirect() bool
- func (o *GetTemplateDefault) IsServerError() bool
- func (o *GetTemplateDefault) IsSuccess() bool
- func (o *GetTemplateDefault) String() string
- type GetTemplateOK
- func (o *GetTemplateOK) Code() int
- func (o *GetTemplateOK) Error() string
- func (o *GetTemplateOK) GetPayload() garm_params.Template
- func (o *GetTemplateOK) IsClientError() bool
- func (o *GetTemplateOK) IsCode(code int) bool
- func (o *GetTemplateOK) IsRedirect() bool
- func (o *GetTemplateOK) IsServerError() bool
- func (o *GetTemplateOK) IsSuccess() bool
- func (o *GetTemplateOK) String() string
- type GetTemplateParams
- func (o *GetTemplateParams) SetContext(ctx context.Context)
- func (o *GetTemplateParams) SetDefaults()
- func (o *GetTemplateParams) SetHTTPClient(client *http.Client)
- func (o *GetTemplateParams) SetTemplateID(templateID float64)
- func (o *GetTemplateParams) SetTimeout(timeout time.Duration)
- func (o *GetTemplateParams) WithContext(ctx context.Context) *GetTemplateParams
- func (o *GetTemplateParams) WithDefaults() *GetTemplateParams
- func (o *GetTemplateParams) WithHTTPClient(client *http.Client) *GetTemplateParams
- func (o *GetTemplateParams) WithTemplateID(templateID float64) *GetTemplateParams
- func (o *GetTemplateParams) WithTimeout(timeout time.Duration) *GetTemplateParams
- func (o *GetTemplateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetTemplateReader
- type ListTemplatesDefault
- func (o *ListTemplatesDefault) Code() int
- func (o *ListTemplatesDefault) Error() string
- func (o *ListTemplatesDefault) GetPayload() apiserver_params.APIErrorResponse
- func (o *ListTemplatesDefault) IsClientError() bool
- func (o *ListTemplatesDefault) IsCode(code int) bool
- func (o *ListTemplatesDefault) IsRedirect() bool
- func (o *ListTemplatesDefault) IsServerError() bool
- func (o *ListTemplatesDefault) IsSuccess() bool
- func (o *ListTemplatesDefault) String() string
- type ListTemplatesOK
- func (o *ListTemplatesOK) Code() int
- func (o *ListTemplatesOK) Error() string
- func (o *ListTemplatesOK) GetPayload() garm_params.Templates
- func (o *ListTemplatesOK) IsClientError() bool
- func (o *ListTemplatesOK) IsCode(code int) bool
- func (o *ListTemplatesOK) IsRedirect() bool
- func (o *ListTemplatesOK) IsServerError() bool
- func (o *ListTemplatesOK) IsSuccess() bool
- func (o *ListTemplatesOK) String() string
- type ListTemplatesParams
- func (o *ListTemplatesParams) SetContext(ctx context.Context)
- func (o *ListTemplatesParams) SetDefaults()
- func (o *ListTemplatesParams) SetForgeType(forgeType *string)
- func (o *ListTemplatesParams) SetHTTPClient(client *http.Client)
- func (o *ListTemplatesParams) SetOsType(osType *string)
- func (o *ListTemplatesParams) SetPartialName(partialName *string)
- func (o *ListTemplatesParams) SetTimeout(timeout time.Duration)
- func (o *ListTemplatesParams) WithContext(ctx context.Context) *ListTemplatesParams
- func (o *ListTemplatesParams) WithDefaults() *ListTemplatesParams
- func (o *ListTemplatesParams) WithForgeType(forgeType *string) *ListTemplatesParams
- func (o *ListTemplatesParams) WithHTTPClient(client *http.Client) *ListTemplatesParams
- func (o *ListTemplatesParams) WithOsType(osType *string) *ListTemplatesParams
- func (o *ListTemplatesParams) WithPartialName(partialName *string) *ListTemplatesParams
- func (o *ListTemplatesParams) WithTimeout(timeout time.Duration) *ListTemplatesParams
- func (o *ListTemplatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListTemplatesReader
- type RestoreTemplatesDefault
- func (o *RestoreTemplatesDefault) Code() int
- func (o *RestoreTemplatesDefault) Error() string
- func (o *RestoreTemplatesDefault) GetPayload() apiserver_params.APIErrorResponse
- func (o *RestoreTemplatesDefault) IsClientError() bool
- func (o *RestoreTemplatesDefault) IsCode(code int) bool
- func (o *RestoreTemplatesDefault) IsRedirect() bool
- func (o *RestoreTemplatesDefault) IsServerError() bool
- func (o *RestoreTemplatesDefault) IsSuccess() bool
- func (o *RestoreTemplatesDefault) String() string
- type RestoreTemplatesParams
- func NewRestoreTemplatesParams() *RestoreTemplatesParams
- func NewRestoreTemplatesParamsWithContext(ctx context.Context) *RestoreTemplatesParams
- func NewRestoreTemplatesParamsWithHTTPClient(client *http.Client) *RestoreTemplatesParams
- func NewRestoreTemplatesParamsWithTimeout(timeout time.Duration) *RestoreTemplatesParams
- func (o *RestoreTemplatesParams) SetBody(body garm_params.RestoreTemplateRequest)
- func (o *RestoreTemplatesParams) SetContext(ctx context.Context)
- func (o *RestoreTemplatesParams) SetDefaults()
- func (o *RestoreTemplatesParams) SetHTTPClient(client *http.Client)
- func (o *RestoreTemplatesParams) SetTimeout(timeout time.Duration)
- func (o *RestoreTemplatesParams) WithBody(body garm_params.RestoreTemplateRequest) *RestoreTemplatesParams
- func (o *RestoreTemplatesParams) WithContext(ctx context.Context) *RestoreTemplatesParams
- func (o *RestoreTemplatesParams) WithDefaults() *RestoreTemplatesParams
- func (o *RestoreTemplatesParams) WithHTTPClient(client *http.Client) *RestoreTemplatesParams
- func (o *RestoreTemplatesParams) WithTimeout(timeout time.Duration) *RestoreTemplatesParams
- func (o *RestoreTemplatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RestoreTemplatesReader
- type UpdateTemplateDefault
- func (o *UpdateTemplateDefault) Code() int
- func (o *UpdateTemplateDefault) Error() string
- func (o *UpdateTemplateDefault) GetPayload() apiserver_params.APIErrorResponse
- func (o *UpdateTemplateDefault) IsClientError() bool
- func (o *UpdateTemplateDefault) IsCode(code int) bool
- func (o *UpdateTemplateDefault) IsRedirect() bool
- func (o *UpdateTemplateDefault) IsServerError() bool
- func (o *UpdateTemplateDefault) IsSuccess() bool
- func (o *UpdateTemplateDefault) String() string
- type UpdateTemplateOK
- func (o *UpdateTemplateOK) Code() int
- func (o *UpdateTemplateOK) Error() string
- func (o *UpdateTemplateOK) GetPayload() garm_params.Template
- func (o *UpdateTemplateOK) IsClientError() bool
- func (o *UpdateTemplateOK) IsCode(code int) bool
- func (o *UpdateTemplateOK) IsRedirect() bool
- func (o *UpdateTemplateOK) IsServerError() bool
- func (o *UpdateTemplateOK) IsSuccess() bool
- func (o *UpdateTemplateOK) String() string
- type UpdateTemplateParams
- func NewUpdateTemplateParams() *UpdateTemplateParams
- func NewUpdateTemplateParamsWithContext(ctx context.Context) *UpdateTemplateParams
- func NewUpdateTemplateParamsWithHTTPClient(client *http.Client) *UpdateTemplateParams
- func NewUpdateTemplateParamsWithTimeout(timeout time.Duration) *UpdateTemplateParams
- func (o *UpdateTemplateParams) SetBody(body garm_params.UpdateTemplateParams)
- func (o *UpdateTemplateParams) SetContext(ctx context.Context)
- func (o *UpdateTemplateParams) SetDefaults()
- func (o *UpdateTemplateParams) SetHTTPClient(client *http.Client)
- func (o *UpdateTemplateParams) SetTemplateID(templateID float64)
- func (o *UpdateTemplateParams) SetTimeout(timeout time.Duration)
- func (o *UpdateTemplateParams) WithBody(body garm_params.UpdateTemplateParams) *UpdateTemplateParams
- func (o *UpdateTemplateParams) WithContext(ctx context.Context) *UpdateTemplateParams
- func (o *UpdateTemplateParams) WithDefaults() *UpdateTemplateParams
- func (o *UpdateTemplateParams) WithHTTPClient(client *http.Client) *UpdateTemplateParams
- func (o *UpdateTemplateParams) WithTemplateID(templateID float64) *UpdateTemplateParams
- func (o *UpdateTemplateParams) WithTimeout(timeout time.Duration) *UpdateTemplateParams
- func (o *UpdateTemplateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateTemplateReader
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 (*Client) CreateTemplate ¶
func (a *Client) CreateTemplate(params *CreateTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateTemplateOK, error)
CreateTemplate creates template with the parameters given
func (*Client) DeleteTemplate ¶
func (a *Client) DeleteTemplate(params *DeleteTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) error
DeleteTemplate gets template by ID
func (*Client) GetTemplate ¶
func (a *Client) GetTemplate(params *GetTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTemplateOK, error)
GetTemplate gets template by ID
func (*Client) ListTemplates ¶
func (a *Client) ListTemplates(params *ListTemplatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListTemplatesOK, error)
ListTemplates lists templates
func (*Client) RestoreTemplates ¶
func (a *Client) RestoreTemplates(params *RestoreTemplatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) error
RestoreTemplates creates template with the parameters given
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateTemplate ¶
func (a *Client) UpdateTemplate(params *UpdateTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateTemplateOK, error)
UpdateTemplate updates template with the parameters given
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption may be used to customize the behavior of Client methods.
type ClientService ¶
type ClientService interface {
CreateTemplate(params *CreateTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateTemplateOK, error)
DeleteTemplate(params *DeleteTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) error
GetTemplate(params *GetTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTemplateOK, error)
ListTemplates(params *ListTemplatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListTemplatesOK, error)
RestoreTemplates(params *RestoreTemplatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) error
UpdateTemplate(params *UpdateTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateTemplateOK, 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 templates API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new templates API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new templates API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.
type CreateTemplateDefault ¶
type CreateTemplateDefault struct {
Payload apiserver_params.APIErrorResponse
// contains filtered or unexported fields
}
CreateTemplateDefault describes a response with status code -1, with default header values.
APIErrorResponse
func NewCreateTemplateDefault ¶
func NewCreateTemplateDefault(code int) *CreateTemplateDefault
NewCreateTemplateDefault creates a CreateTemplateDefault with default headers values
func (*CreateTemplateDefault) Code ¶
func (o *CreateTemplateDefault) Code() int
Code gets the status code for the create template default response
func (*CreateTemplateDefault) Error ¶
func (o *CreateTemplateDefault) Error() string
func (*CreateTemplateDefault) GetPayload ¶
func (o *CreateTemplateDefault) GetPayload() apiserver_params.APIErrorResponse
func (*CreateTemplateDefault) IsClientError ¶
func (o *CreateTemplateDefault) IsClientError() bool
IsClientError returns true when this create template default response has a 4xx status code
func (*CreateTemplateDefault) IsCode ¶
func (o *CreateTemplateDefault) IsCode(code int) bool
IsCode returns true when this create template default response a status code equal to that given
func (*CreateTemplateDefault) IsRedirect ¶
func (o *CreateTemplateDefault) IsRedirect() bool
IsRedirect returns true when this create template default response has a 3xx status code
func (*CreateTemplateDefault) IsServerError ¶
func (o *CreateTemplateDefault) IsServerError() bool
IsServerError returns true when this create template default response has a 5xx status code
func (*CreateTemplateDefault) IsSuccess ¶
func (o *CreateTemplateDefault) IsSuccess() bool
IsSuccess returns true when this create template default response has a 2xx status code
func (*CreateTemplateDefault) String ¶
func (o *CreateTemplateDefault) String() string
type CreateTemplateOK ¶
type CreateTemplateOK struct {
Payload garm_params.Template
}
CreateTemplateOK describes a response with status code 200, with default header values.
Template
func NewCreateTemplateOK ¶
func NewCreateTemplateOK() *CreateTemplateOK
NewCreateTemplateOK creates a CreateTemplateOK with default headers values
func (*CreateTemplateOK) Code ¶
func (o *CreateTemplateOK) Code() int
Code gets the status code for the create template o k response
func (*CreateTemplateOK) Error ¶
func (o *CreateTemplateOK) Error() string
func (*CreateTemplateOK) GetPayload ¶
func (o *CreateTemplateOK) GetPayload() garm_params.Template
func (*CreateTemplateOK) IsClientError ¶
func (o *CreateTemplateOK) IsClientError() bool
IsClientError returns true when this create template o k response has a 4xx status code
func (*CreateTemplateOK) IsCode ¶
func (o *CreateTemplateOK) IsCode(code int) bool
IsCode returns true when this create template o k response a status code equal to that given
func (*CreateTemplateOK) IsRedirect ¶
func (o *CreateTemplateOK) IsRedirect() bool
IsRedirect returns true when this create template o k response has a 3xx status code
func (*CreateTemplateOK) IsServerError ¶
func (o *CreateTemplateOK) IsServerError() bool
IsServerError returns true when this create template o k response has a 5xx status code
func (*CreateTemplateOK) IsSuccess ¶
func (o *CreateTemplateOK) IsSuccess() bool
IsSuccess returns true when this create template o k response has a 2xx status code
func (*CreateTemplateOK) String ¶
func (o *CreateTemplateOK) String() string
type CreateTemplateParams ¶
type CreateTemplateParams struct {
/* Body.
Parameters used when creating the template.
*/
Body garm_params.CreateTemplateParams
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
CreateTemplateParams contains all the parameters to send to the API endpoint
for the create template operation. Typically these are written to a http.Request.
func NewCreateTemplateParams ¶
func NewCreateTemplateParams() *CreateTemplateParams
NewCreateTemplateParams creates a new CreateTemplateParams 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 NewCreateTemplateParamsWithContext ¶
func NewCreateTemplateParamsWithContext(ctx context.Context) *CreateTemplateParams
NewCreateTemplateParamsWithContext creates a new CreateTemplateParams object with the ability to set a context for a request.
func NewCreateTemplateParamsWithHTTPClient ¶
func NewCreateTemplateParamsWithHTTPClient(client *http.Client) *CreateTemplateParams
NewCreateTemplateParamsWithHTTPClient creates a new CreateTemplateParams object with the ability to set a custom HTTPClient for a request.
func NewCreateTemplateParamsWithTimeout ¶
func NewCreateTemplateParamsWithTimeout(timeout time.Duration) *CreateTemplateParams
NewCreateTemplateParamsWithTimeout creates a new CreateTemplateParams object with the ability to set a timeout on a request.
func (*CreateTemplateParams) SetBody ¶
func (o *CreateTemplateParams) SetBody(body garm_params.CreateTemplateParams)
SetBody adds the body to the create template params
func (*CreateTemplateParams) SetContext ¶
func (o *CreateTemplateParams) SetContext(ctx context.Context)
SetContext adds the context to the create template params
func (*CreateTemplateParams) SetDefaults ¶
func (o *CreateTemplateParams) SetDefaults()
SetDefaults hydrates default values in the create template params (not the query body).
All values with no default are reset to their zero value.
func (*CreateTemplateParams) SetHTTPClient ¶
func (o *CreateTemplateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create template params
func (*CreateTemplateParams) SetTimeout ¶
func (o *CreateTemplateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create template params
func (*CreateTemplateParams) WithBody ¶
func (o *CreateTemplateParams) WithBody(body garm_params.CreateTemplateParams) *CreateTemplateParams
WithBody adds the body to the create template params
func (*CreateTemplateParams) WithContext ¶
func (o *CreateTemplateParams) WithContext(ctx context.Context) *CreateTemplateParams
WithContext adds the context to the create template params
func (*CreateTemplateParams) WithDefaults ¶
func (o *CreateTemplateParams) WithDefaults() *CreateTemplateParams
WithDefaults hydrates default values in the create template params (not the query body).
All values with no default are reset to their zero value.
func (*CreateTemplateParams) WithHTTPClient ¶
func (o *CreateTemplateParams) WithHTTPClient(client *http.Client) *CreateTemplateParams
WithHTTPClient adds the HTTPClient to the create template params
func (*CreateTemplateParams) WithTimeout ¶
func (o *CreateTemplateParams) WithTimeout(timeout time.Duration) *CreateTemplateParams
WithTimeout adds the timeout to the create template params
func (*CreateTemplateParams) WriteToRequest ¶
func (o *CreateTemplateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateTemplateReader ¶
type CreateTemplateReader struct {
// contains filtered or unexported fields
}
CreateTemplateReader is a Reader for the CreateTemplate structure.
func (*CreateTemplateReader) ReadResponse ¶
func (o *CreateTemplateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
type DeleteTemplateDefault ¶
type DeleteTemplateDefault struct {
Payload apiserver_params.APIErrorResponse
// contains filtered or unexported fields
}
DeleteTemplateDefault describes a response with status code -1, with default header values.
APIErrorResponse
func NewDeleteTemplateDefault ¶
func NewDeleteTemplateDefault(code int) *DeleteTemplateDefault
NewDeleteTemplateDefault creates a DeleteTemplateDefault with default headers values
func (*DeleteTemplateDefault) Code ¶
func (o *DeleteTemplateDefault) Code() int
Code gets the status code for the delete template default response
func (*DeleteTemplateDefault) Error ¶
func (o *DeleteTemplateDefault) Error() string
func (*DeleteTemplateDefault) GetPayload ¶
func (o *DeleteTemplateDefault) GetPayload() apiserver_params.APIErrorResponse
func (*DeleteTemplateDefault) IsClientError ¶
func (o *DeleteTemplateDefault) IsClientError() bool
IsClientError returns true when this delete template default response has a 4xx status code
func (*DeleteTemplateDefault) IsCode ¶
func (o *DeleteTemplateDefault) IsCode(code int) bool
IsCode returns true when this delete template default response a status code equal to that given
func (*DeleteTemplateDefault) IsRedirect ¶
func (o *DeleteTemplateDefault) IsRedirect() bool
IsRedirect returns true when this delete template default response has a 3xx status code
func (*DeleteTemplateDefault) IsServerError ¶
func (o *DeleteTemplateDefault) IsServerError() bool
IsServerError returns true when this delete template default response has a 5xx status code
func (*DeleteTemplateDefault) IsSuccess ¶
func (o *DeleteTemplateDefault) IsSuccess() bool
IsSuccess returns true when this delete template default response has a 2xx status code
func (*DeleteTemplateDefault) String ¶
func (o *DeleteTemplateDefault) String() string
type DeleteTemplateParams ¶
type DeleteTemplateParams struct {
/* TemplateID.
ID of the template to delete.
*/
TemplateID float64
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
DeleteTemplateParams contains all the parameters to send to the API endpoint
for the delete template operation. Typically these are written to a http.Request.
func NewDeleteTemplateParams ¶
func NewDeleteTemplateParams() *DeleteTemplateParams
NewDeleteTemplateParams creates a new DeleteTemplateParams 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 NewDeleteTemplateParamsWithContext ¶
func NewDeleteTemplateParamsWithContext(ctx context.Context) *DeleteTemplateParams
NewDeleteTemplateParamsWithContext creates a new DeleteTemplateParams object with the ability to set a context for a request.
func NewDeleteTemplateParamsWithHTTPClient ¶
func NewDeleteTemplateParamsWithHTTPClient(client *http.Client) *DeleteTemplateParams
NewDeleteTemplateParamsWithHTTPClient creates a new DeleteTemplateParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteTemplateParamsWithTimeout ¶
func NewDeleteTemplateParamsWithTimeout(timeout time.Duration) *DeleteTemplateParams
NewDeleteTemplateParamsWithTimeout creates a new DeleteTemplateParams object with the ability to set a timeout on a request.
func (*DeleteTemplateParams) SetContext ¶
func (o *DeleteTemplateParams) SetContext(ctx context.Context)
SetContext adds the context to the delete template params
func (*DeleteTemplateParams) SetDefaults ¶
func (o *DeleteTemplateParams) SetDefaults()
SetDefaults hydrates default values in the delete template params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteTemplateParams) SetHTTPClient ¶
func (o *DeleteTemplateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete template params
func (*DeleteTemplateParams) SetTemplateID ¶
func (o *DeleteTemplateParams) SetTemplateID(templateID float64)
SetTemplateID adds the templateId to the delete template params
func (*DeleteTemplateParams) SetTimeout ¶
func (o *DeleteTemplateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete template params
func (*DeleteTemplateParams) WithContext ¶
func (o *DeleteTemplateParams) WithContext(ctx context.Context) *DeleteTemplateParams
WithContext adds the context to the delete template params
func (*DeleteTemplateParams) WithDefaults ¶
func (o *DeleteTemplateParams) WithDefaults() *DeleteTemplateParams
WithDefaults hydrates default values in the delete template params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteTemplateParams) WithHTTPClient ¶
func (o *DeleteTemplateParams) WithHTTPClient(client *http.Client) *DeleteTemplateParams
WithHTTPClient adds the HTTPClient to the delete template params
func (*DeleteTemplateParams) WithTemplateID ¶
func (o *DeleteTemplateParams) WithTemplateID(templateID float64) *DeleteTemplateParams
WithTemplateID adds the templateID to the delete template params
func (*DeleteTemplateParams) WithTimeout ¶
func (o *DeleteTemplateParams) WithTimeout(timeout time.Duration) *DeleteTemplateParams
WithTimeout adds the timeout to the delete template params
func (*DeleteTemplateParams) WriteToRequest ¶
func (o *DeleteTemplateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteTemplateReader ¶
type DeleteTemplateReader struct {
// contains filtered or unexported fields
}
DeleteTemplateReader is a Reader for the DeleteTemplate structure.
func (*DeleteTemplateReader) ReadResponse ¶
func (o *DeleteTemplateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
type GetTemplateDefault ¶
type GetTemplateDefault struct {
Payload apiserver_params.APIErrorResponse
// contains filtered or unexported fields
}
GetTemplateDefault describes a response with status code -1, with default header values.
APIErrorResponse
func NewGetTemplateDefault ¶
func NewGetTemplateDefault(code int) *GetTemplateDefault
NewGetTemplateDefault creates a GetTemplateDefault with default headers values
func (*GetTemplateDefault) Code ¶
func (o *GetTemplateDefault) Code() int
Code gets the status code for the get template default response
func (*GetTemplateDefault) Error ¶
func (o *GetTemplateDefault) Error() string
func (*GetTemplateDefault) GetPayload ¶
func (o *GetTemplateDefault) GetPayload() apiserver_params.APIErrorResponse
func (*GetTemplateDefault) IsClientError ¶
func (o *GetTemplateDefault) IsClientError() bool
IsClientError returns true when this get template default response has a 4xx status code
func (*GetTemplateDefault) IsCode ¶
func (o *GetTemplateDefault) IsCode(code int) bool
IsCode returns true when this get template default response a status code equal to that given
func (*GetTemplateDefault) IsRedirect ¶
func (o *GetTemplateDefault) IsRedirect() bool
IsRedirect returns true when this get template default response has a 3xx status code
func (*GetTemplateDefault) IsServerError ¶
func (o *GetTemplateDefault) IsServerError() bool
IsServerError returns true when this get template default response has a 5xx status code
func (*GetTemplateDefault) IsSuccess ¶
func (o *GetTemplateDefault) IsSuccess() bool
IsSuccess returns true when this get template default response has a 2xx status code
func (*GetTemplateDefault) String ¶
func (o *GetTemplateDefault) String() string
type GetTemplateOK ¶
type GetTemplateOK struct {
Payload garm_params.Template
}
GetTemplateOK describes a response with status code 200, with default header values.
Template
func NewGetTemplateOK ¶
func NewGetTemplateOK() *GetTemplateOK
NewGetTemplateOK creates a GetTemplateOK with default headers values
func (*GetTemplateOK) Code ¶
func (o *GetTemplateOK) Code() int
Code gets the status code for the get template o k response
func (*GetTemplateOK) Error ¶
func (o *GetTemplateOK) Error() string
func (*GetTemplateOK) GetPayload ¶
func (o *GetTemplateOK) GetPayload() garm_params.Template
func (*GetTemplateOK) IsClientError ¶
func (o *GetTemplateOK) IsClientError() bool
IsClientError returns true when this get template o k response has a 4xx status code
func (*GetTemplateOK) IsCode ¶
func (o *GetTemplateOK) IsCode(code int) bool
IsCode returns true when this get template o k response a status code equal to that given
func (*GetTemplateOK) IsRedirect ¶
func (o *GetTemplateOK) IsRedirect() bool
IsRedirect returns true when this get template o k response has a 3xx status code
func (*GetTemplateOK) IsServerError ¶
func (o *GetTemplateOK) IsServerError() bool
IsServerError returns true when this get template o k response has a 5xx status code
func (*GetTemplateOK) IsSuccess ¶
func (o *GetTemplateOK) IsSuccess() bool
IsSuccess returns true when this get template o k response has a 2xx status code
func (*GetTemplateOK) String ¶
func (o *GetTemplateOK) String() string
type GetTemplateParams ¶
type GetTemplateParams struct {
/* TemplateID.
ID of the template to fetch.
*/
TemplateID float64
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetTemplateParams contains all the parameters to send to the API endpoint
for the get template operation. Typically these are written to a http.Request.
func NewGetTemplateParams ¶
func NewGetTemplateParams() *GetTemplateParams
NewGetTemplateParams creates a new GetTemplateParams 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 NewGetTemplateParamsWithContext ¶
func NewGetTemplateParamsWithContext(ctx context.Context) *GetTemplateParams
NewGetTemplateParamsWithContext creates a new GetTemplateParams object with the ability to set a context for a request.
func NewGetTemplateParamsWithHTTPClient ¶
func NewGetTemplateParamsWithHTTPClient(client *http.Client) *GetTemplateParams
NewGetTemplateParamsWithHTTPClient creates a new GetTemplateParams object with the ability to set a custom HTTPClient for a request.
func NewGetTemplateParamsWithTimeout ¶
func NewGetTemplateParamsWithTimeout(timeout time.Duration) *GetTemplateParams
NewGetTemplateParamsWithTimeout creates a new GetTemplateParams object with the ability to set a timeout on a request.
func (*GetTemplateParams) SetContext ¶
func (o *GetTemplateParams) SetContext(ctx context.Context)
SetContext adds the context to the get template params
func (*GetTemplateParams) SetDefaults ¶
func (o *GetTemplateParams) SetDefaults()
SetDefaults hydrates default values in the get template params (not the query body).
All values with no default are reset to their zero value.
func (*GetTemplateParams) SetHTTPClient ¶
func (o *GetTemplateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get template params
func (*GetTemplateParams) SetTemplateID ¶
func (o *GetTemplateParams) SetTemplateID(templateID float64)
SetTemplateID adds the templateId to the get template params
func (*GetTemplateParams) SetTimeout ¶
func (o *GetTemplateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get template params
func (*GetTemplateParams) WithContext ¶
func (o *GetTemplateParams) WithContext(ctx context.Context) *GetTemplateParams
WithContext adds the context to the get template params
func (*GetTemplateParams) WithDefaults ¶
func (o *GetTemplateParams) WithDefaults() *GetTemplateParams
WithDefaults hydrates default values in the get template params (not the query body).
All values with no default are reset to their zero value.
func (*GetTemplateParams) WithHTTPClient ¶
func (o *GetTemplateParams) WithHTTPClient(client *http.Client) *GetTemplateParams
WithHTTPClient adds the HTTPClient to the get template params
func (*GetTemplateParams) WithTemplateID ¶
func (o *GetTemplateParams) WithTemplateID(templateID float64) *GetTemplateParams
WithTemplateID adds the templateID to the get template params
func (*GetTemplateParams) WithTimeout ¶
func (o *GetTemplateParams) WithTimeout(timeout time.Duration) *GetTemplateParams
WithTimeout adds the timeout to the get template params
func (*GetTemplateParams) WriteToRequest ¶
func (o *GetTemplateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetTemplateReader ¶
type GetTemplateReader struct {
// contains filtered or unexported fields
}
GetTemplateReader is a Reader for the GetTemplate structure.
func (*GetTemplateReader) ReadResponse ¶
func (o *GetTemplateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
type ListTemplatesDefault ¶
type ListTemplatesDefault struct {
Payload apiserver_params.APIErrorResponse
// contains filtered or unexported fields
}
ListTemplatesDefault describes a response with status code -1, with default header values.
APIErrorResponse
func NewListTemplatesDefault ¶
func NewListTemplatesDefault(code int) *ListTemplatesDefault
NewListTemplatesDefault creates a ListTemplatesDefault with default headers values
func (*ListTemplatesDefault) Code ¶
func (o *ListTemplatesDefault) Code() int
Code gets the status code for the list templates default response
func (*ListTemplatesDefault) Error ¶
func (o *ListTemplatesDefault) Error() string
func (*ListTemplatesDefault) GetPayload ¶
func (o *ListTemplatesDefault) GetPayload() apiserver_params.APIErrorResponse
func (*ListTemplatesDefault) IsClientError ¶
func (o *ListTemplatesDefault) IsClientError() bool
IsClientError returns true when this list templates default response has a 4xx status code
func (*ListTemplatesDefault) IsCode ¶
func (o *ListTemplatesDefault) IsCode(code int) bool
IsCode returns true when this list templates default response a status code equal to that given
func (*ListTemplatesDefault) IsRedirect ¶
func (o *ListTemplatesDefault) IsRedirect() bool
IsRedirect returns true when this list templates default response has a 3xx status code
func (*ListTemplatesDefault) IsServerError ¶
func (o *ListTemplatesDefault) IsServerError() bool
IsServerError returns true when this list templates default response has a 5xx status code
func (*ListTemplatesDefault) IsSuccess ¶
func (o *ListTemplatesDefault) IsSuccess() bool
IsSuccess returns true when this list templates default response has a 2xx status code
func (*ListTemplatesDefault) String ¶
func (o *ListTemplatesDefault) String() string
type ListTemplatesOK ¶
type ListTemplatesOK struct {
Payload garm_params.Templates
}
ListTemplatesOK describes a response with status code 200, with default header values.
Templates
func NewListTemplatesOK ¶
func NewListTemplatesOK() *ListTemplatesOK
NewListTemplatesOK creates a ListTemplatesOK with default headers values
func (*ListTemplatesOK) Code ¶
func (o *ListTemplatesOK) Code() int
Code gets the status code for the list templates o k response
func (*ListTemplatesOK) Error ¶
func (o *ListTemplatesOK) Error() string
func (*ListTemplatesOK) GetPayload ¶
func (o *ListTemplatesOK) GetPayload() garm_params.Templates
func (*ListTemplatesOK) IsClientError ¶
func (o *ListTemplatesOK) IsClientError() bool
IsClientError returns true when this list templates o k response has a 4xx status code
func (*ListTemplatesOK) IsCode ¶
func (o *ListTemplatesOK) IsCode(code int) bool
IsCode returns true when this list templates o k response a status code equal to that given
func (*ListTemplatesOK) IsRedirect ¶
func (o *ListTemplatesOK) IsRedirect() bool
IsRedirect returns true when this list templates o k response has a 3xx status code
func (*ListTemplatesOK) IsServerError ¶
func (o *ListTemplatesOK) IsServerError() bool
IsServerError returns true when this list templates o k response has a 5xx status code
func (*ListTemplatesOK) IsSuccess ¶
func (o *ListTemplatesOK) IsSuccess() bool
IsSuccess returns true when this list templates o k response has a 2xx status code
func (*ListTemplatesOK) String ¶
func (o *ListTemplatesOK) String() string
type ListTemplatesParams ¶
type ListTemplatesParams struct {
/* ForgeType.
Forge type of the templates.
*/
ForgeType *string
/* OsType.
OS type of the templates.
*/
OsType *string
/* PartialName.
Partial or full name of the template.
*/
PartialName *string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
ListTemplatesParams contains all the parameters to send to the API endpoint
for the list templates operation. Typically these are written to a http.Request.
func NewListTemplatesParams ¶
func NewListTemplatesParams() *ListTemplatesParams
NewListTemplatesParams creates a new ListTemplatesParams 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 NewListTemplatesParamsWithContext ¶
func NewListTemplatesParamsWithContext(ctx context.Context) *ListTemplatesParams
NewListTemplatesParamsWithContext creates a new ListTemplatesParams object with the ability to set a context for a request.
func NewListTemplatesParamsWithHTTPClient ¶
func NewListTemplatesParamsWithHTTPClient(client *http.Client) *ListTemplatesParams
NewListTemplatesParamsWithHTTPClient creates a new ListTemplatesParams object with the ability to set a custom HTTPClient for a request.
func NewListTemplatesParamsWithTimeout ¶
func NewListTemplatesParamsWithTimeout(timeout time.Duration) *ListTemplatesParams
NewListTemplatesParamsWithTimeout creates a new ListTemplatesParams object with the ability to set a timeout on a request.
func (*ListTemplatesParams) SetContext ¶
func (o *ListTemplatesParams) SetContext(ctx context.Context)
SetContext adds the context to the list templates params
func (*ListTemplatesParams) SetDefaults ¶
func (o *ListTemplatesParams) SetDefaults()
SetDefaults hydrates default values in the list templates params (not the query body).
All values with no default are reset to their zero value.
func (*ListTemplatesParams) SetForgeType ¶
func (o *ListTemplatesParams) SetForgeType(forgeType *string)
SetForgeType adds the forgeType to the list templates params
func (*ListTemplatesParams) SetHTTPClient ¶
func (o *ListTemplatesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list templates params
func (*ListTemplatesParams) SetOsType ¶
func (o *ListTemplatesParams) SetOsType(osType *string)
SetOsType adds the osType to the list templates params
func (*ListTemplatesParams) SetPartialName ¶
func (o *ListTemplatesParams) SetPartialName(partialName *string)
SetPartialName adds the partialName to the list templates params
func (*ListTemplatesParams) SetTimeout ¶
func (o *ListTemplatesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list templates params
func (*ListTemplatesParams) WithContext ¶
func (o *ListTemplatesParams) WithContext(ctx context.Context) *ListTemplatesParams
WithContext adds the context to the list templates params
func (*ListTemplatesParams) WithDefaults ¶
func (o *ListTemplatesParams) WithDefaults() *ListTemplatesParams
WithDefaults hydrates default values in the list templates params (not the query body).
All values with no default are reset to their zero value.
func (*ListTemplatesParams) WithForgeType ¶
func (o *ListTemplatesParams) WithForgeType(forgeType *string) *ListTemplatesParams
WithForgeType adds the forgeType to the list templates params
func (*ListTemplatesParams) WithHTTPClient ¶
func (o *ListTemplatesParams) WithHTTPClient(client *http.Client) *ListTemplatesParams
WithHTTPClient adds the HTTPClient to the list templates params
func (*ListTemplatesParams) WithOsType ¶
func (o *ListTemplatesParams) WithOsType(osType *string) *ListTemplatesParams
WithOsType adds the osType to the list templates params
func (*ListTemplatesParams) WithPartialName ¶
func (o *ListTemplatesParams) WithPartialName(partialName *string) *ListTemplatesParams
WithPartialName adds the partialName to the list templates params
func (*ListTemplatesParams) WithTimeout ¶
func (o *ListTemplatesParams) WithTimeout(timeout time.Duration) *ListTemplatesParams
WithTimeout adds the timeout to the list templates params
func (*ListTemplatesParams) WriteToRequest ¶
func (o *ListTemplatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListTemplatesReader ¶
type ListTemplatesReader struct {
// contains filtered or unexported fields
}
ListTemplatesReader is a Reader for the ListTemplates structure.
func (*ListTemplatesReader) ReadResponse ¶
func (o *ListTemplatesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
type RestoreTemplatesDefault ¶
type RestoreTemplatesDefault struct {
Payload apiserver_params.APIErrorResponse
// contains filtered or unexported fields
}
RestoreTemplatesDefault describes a response with status code -1, with default header values.
APIErrorResponse
func NewRestoreTemplatesDefault ¶
func NewRestoreTemplatesDefault(code int) *RestoreTemplatesDefault
NewRestoreTemplatesDefault creates a RestoreTemplatesDefault with default headers values
func (*RestoreTemplatesDefault) Code ¶
func (o *RestoreTemplatesDefault) Code() int
Code gets the status code for the restore templates default response
func (*RestoreTemplatesDefault) Error ¶
func (o *RestoreTemplatesDefault) Error() string
func (*RestoreTemplatesDefault) GetPayload ¶
func (o *RestoreTemplatesDefault) GetPayload() apiserver_params.APIErrorResponse
func (*RestoreTemplatesDefault) IsClientError ¶
func (o *RestoreTemplatesDefault) IsClientError() bool
IsClientError returns true when this restore templates default response has a 4xx status code
func (*RestoreTemplatesDefault) IsCode ¶
func (o *RestoreTemplatesDefault) IsCode(code int) bool
IsCode returns true when this restore templates default response a status code equal to that given
func (*RestoreTemplatesDefault) IsRedirect ¶
func (o *RestoreTemplatesDefault) IsRedirect() bool
IsRedirect returns true when this restore templates default response has a 3xx status code
func (*RestoreTemplatesDefault) IsServerError ¶
func (o *RestoreTemplatesDefault) IsServerError() bool
IsServerError returns true when this restore templates default response has a 5xx status code
func (*RestoreTemplatesDefault) IsSuccess ¶
func (o *RestoreTemplatesDefault) IsSuccess() bool
IsSuccess returns true when this restore templates default response has a 2xx status code
func (*RestoreTemplatesDefault) String ¶
func (o *RestoreTemplatesDefault) String() string
type RestoreTemplatesParams ¶
type RestoreTemplatesParams struct {
/* Body.
Parameters used when restoring the templates.
*/
Body garm_params.RestoreTemplateRequest
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
RestoreTemplatesParams contains all the parameters to send to the API endpoint
for the restore templates operation. Typically these are written to a http.Request.
func NewRestoreTemplatesParams ¶
func NewRestoreTemplatesParams() *RestoreTemplatesParams
NewRestoreTemplatesParams creates a new RestoreTemplatesParams 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 NewRestoreTemplatesParamsWithContext ¶
func NewRestoreTemplatesParamsWithContext(ctx context.Context) *RestoreTemplatesParams
NewRestoreTemplatesParamsWithContext creates a new RestoreTemplatesParams object with the ability to set a context for a request.
func NewRestoreTemplatesParamsWithHTTPClient ¶
func NewRestoreTemplatesParamsWithHTTPClient(client *http.Client) *RestoreTemplatesParams
NewRestoreTemplatesParamsWithHTTPClient creates a new RestoreTemplatesParams object with the ability to set a custom HTTPClient for a request.
func NewRestoreTemplatesParamsWithTimeout ¶
func NewRestoreTemplatesParamsWithTimeout(timeout time.Duration) *RestoreTemplatesParams
NewRestoreTemplatesParamsWithTimeout creates a new RestoreTemplatesParams object with the ability to set a timeout on a request.
func (*RestoreTemplatesParams) SetBody ¶
func (o *RestoreTemplatesParams) SetBody(body garm_params.RestoreTemplateRequest)
SetBody adds the body to the restore templates params
func (*RestoreTemplatesParams) SetContext ¶
func (o *RestoreTemplatesParams) SetContext(ctx context.Context)
SetContext adds the context to the restore templates params
func (*RestoreTemplatesParams) SetDefaults ¶
func (o *RestoreTemplatesParams) SetDefaults()
SetDefaults hydrates default values in the restore templates params (not the query body).
All values with no default are reset to their zero value.
func (*RestoreTemplatesParams) SetHTTPClient ¶
func (o *RestoreTemplatesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the restore templates params
func (*RestoreTemplatesParams) SetTimeout ¶
func (o *RestoreTemplatesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the restore templates params
func (*RestoreTemplatesParams) WithBody ¶
func (o *RestoreTemplatesParams) WithBody(body garm_params.RestoreTemplateRequest) *RestoreTemplatesParams
WithBody adds the body to the restore templates params
func (*RestoreTemplatesParams) WithContext ¶
func (o *RestoreTemplatesParams) WithContext(ctx context.Context) *RestoreTemplatesParams
WithContext adds the context to the restore templates params
func (*RestoreTemplatesParams) WithDefaults ¶
func (o *RestoreTemplatesParams) WithDefaults() *RestoreTemplatesParams
WithDefaults hydrates default values in the restore templates params (not the query body).
All values with no default are reset to their zero value.
func (*RestoreTemplatesParams) WithHTTPClient ¶
func (o *RestoreTemplatesParams) WithHTTPClient(client *http.Client) *RestoreTemplatesParams
WithHTTPClient adds the HTTPClient to the restore templates params
func (*RestoreTemplatesParams) WithTimeout ¶
func (o *RestoreTemplatesParams) WithTimeout(timeout time.Duration) *RestoreTemplatesParams
WithTimeout adds the timeout to the restore templates params
func (*RestoreTemplatesParams) WriteToRequest ¶
func (o *RestoreTemplatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RestoreTemplatesReader ¶
type RestoreTemplatesReader struct {
// contains filtered or unexported fields
}
RestoreTemplatesReader is a Reader for the RestoreTemplates structure.
func (*RestoreTemplatesReader) ReadResponse ¶
func (o *RestoreTemplatesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
type UpdateTemplateDefault ¶
type UpdateTemplateDefault struct {
Payload apiserver_params.APIErrorResponse
// contains filtered or unexported fields
}
UpdateTemplateDefault describes a response with status code -1, with default header values.
APIErrorResponse
func NewUpdateTemplateDefault ¶
func NewUpdateTemplateDefault(code int) *UpdateTemplateDefault
NewUpdateTemplateDefault creates a UpdateTemplateDefault with default headers values
func (*UpdateTemplateDefault) Code ¶
func (o *UpdateTemplateDefault) Code() int
Code gets the status code for the update template default response
func (*UpdateTemplateDefault) Error ¶
func (o *UpdateTemplateDefault) Error() string
func (*UpdateTemplateDefault) GetPayload ¶
func (o *UpdateTemplateDefault) GetPayload() apiserver_params.APIErrorResponse
func (*UpdateTemplateDefault) IsClientError ¶
func (o *UpdateTemplateDefault) IsClientError() bool
IsClientError returns true when this update template default response has a 4xx status code
func (*UpdateTemplateDefault) IsCode ¶
func (o *UpdateTemplateDefault) IsCode(code int) bool
IsCode returns true when this update template default response a status code equal to that given
func (*UpdateTemplateDefault) IsRedirect ¶
func (o *UpdateTemplateDefault) IsRedirect() bool
IsRedirect returns true when this update template default response has a 3xx status code
func (*UpdateTemplateDefault) IsServerError ¶
func (o *UpdateTemplateDefault) IsServerError() bool
IsServerError returns true when this update template default response has a 5xx status code
func (*UpdateTemplateDefault) IsSuccess ¶
func (o *UpdateTemplateDefault) IsSuccess() bool
IsSuccess returns true when this update template default response has a 2xx status code
func (*UpdateTemplateDefault) String ¶
func (o *UpdateTemplateDefault) String() string
type UpdateTemplateOK ¶
type UpdateTemplateOK struct {
Payload garm_params.Template
}
UpdateTemplateOK describes a response with status code 200, with default header values.
Template
func NewUpdateTemplateOK ¶
func NewUpdateTemplateOK() *UpdateTemplateOK
NewUpdateTemplateOK creates a UpdateTemplateOK with default headers values
func (*UpdateTemplateOK) Code ¶
func (o *UpdateTemplateOK) Code() int
Code gets the status code for the update template o k response
func (*UpdateTemplateOK) Error ¶
func (o *UpdateTemplateOK) Error() string
func (*UpdateTemplateOK) GetPayload ¶
func (o *UpdateTemplateOK) GetPayload() garm_params.Template
func (*UpdateTemplateOK) IsClientError ¶
func (o *UpdateTemplateOK) IsClientError() bool
IsClientError returns true when this update template o k response has a 4xx status code
func (*UpdateTemplateOK) IsCode ¶
func (o *UpdateTemplateOK) IsCode(code int) bool
IsCode returns true when this update template o k response a status code equal to that given
func (*UpdateTemplateOK) IsRedirect ¶
func (o *UpdateTemplateOK) IsRedirect() bool
IsRedirect returns true when this update template o k response has a 3xx status code
func (*UpdateTemplateOK) IsServerError ¶
func (o *UpdateTemplateOK) IsServerError() bool
IsServerError returns true when this update template o k response has a 5xx status code
func (*UpdateTemplateOK) IsSuccess ¶
func (o *UpdateTemplateOK) IsSuccess() bool
IsSuccess returns true when this update template o k response has a 2xx status code
func (*UpdateTemplateOK) String ¶
func (o *UpdateTemplateOK) String() string
type UpdateTemplateParams ¶
type UpdateTemplateParams struct {
/* Body.
Parameters used when updating the template.
*/
Body garm_params.UpdateTemplateParams
/* TemplateID.
ID of the template to update.
*/
TemplateID float64
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
UpdateTemplateParams contains all the parameters to send to the API endpoint
for the update template operation. Typically these are written to a http.Request.
func NewUpdateTemplateParams ¶
func NewUpdateTemplateParams() *UpdateTemplateParams
NewUpdateTemplateParams creates a new UpdateTemplateParams 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 NewUpdateTemplateParamsWithContext ¶
func NewUpdateTemplateParamsWithContext(ctx context.Context) *UpdateTemplateParams
NewUpdateTemplateParamsWithContext creates a new UpdateTemplateParams object with the ability to set a context for a request.
func NewUpdateTemplateParamsWithHTTPClient ¶
func NewUpdateTemplateParamsWithHTTPClient(client *http.Client) *UpdateTemplateParams
NewUpdateTemplateParamsWithHTTPClient creates a new UpdateTemplateParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateTemplateParamsWithTimeout ¶
func NewUpdateTemplateParamsWithTimeout(timeout time.Duration) *UpdateTemplateParams
NewUpdateTemplateParamsWithTimeout creates a new UpdateTemplateParams object with the ability to set a timeout on a request.
func (*UpdateTemplateParams) SetBody ¶
func (o *UpdateTemplateParams) SetBody(body garm_params.UpdateTemplateParams)
SetBody adds the body to the update template params
func (*UpdateTemplateParams) SetContext ¶
func (o *UpdateTemplateParams) SetContext(ctx context.Context)
SetContext adds the context to the update template params
func (*UpdateTemplateParams) SetDefaults ¶
func (o *UpdateTemplateParams) SetDefaults()
SetDefaults hydrates default values in the update template params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateTemplateParams) SetHTTPClient ¶
func (o *UpdateTemplateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update template params
func (*UpdateTemplateParams) SetTemplateID ¶
func (o *UpdateTemplateParams) SetTemplateID(templateID float64)
SetTemplateID adds the templateId to the update template params
func (*UpdateTemplateParams) SetTimeout ¶
func (o *UpdateTemplateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update template params
func (*UpdateTemplateParams) WithBody ¶
func (o *UpdateTemplateParams) WithBody(body garm_params.UpdateTemplateParams) *UpdateTemplateParams
WithBody adds the body to the update template params
func (*UpdateTemplateParams) WithContext ¶
func (o *UpdateTemplateParams) WithContext(ctx context.Context) *UpdateTemplateParams
WithContext adds the context to the update template params
func (*UpdateTemplateParams) WithDefaults ¶
func (o *UpdateTemplateParams) WithDefaults() *UpdateTemplateParams
WithDefaults hydrates default values in the update template params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateTemplateParams) WithHTTPClient ¶
func (o *UpdateTemplateParams) WithHTTPClient(client *http.Client) *UpdateTemplateParams
WithHTTPClient adds the HTTPClient to the update template params
func (*UpdateTemplateParams) WithTemplateID ¶
func (o *UpdateTemplateParams) WithTemplateID(templateID float64) *UpdateTemplateParams
WithTemplateID adds the templateID to the update template params
func (*UpdateTemplateParams) WithTimeout ¶
func (o *UpdateTemplateParams) WithTimeout(timeout time.Duration) *UpdateTemplateParams
WithTimeout adds the timeout to the update template params
func (*UpdateTemplateParams) WriteToRequest ¶
func (o *UpdateTemplateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateTemplateReader ¶
type UpdateTemplateReader struct {
// contains filtered or unexported fields
}
UpdateTemplateReader is a Reader for the UpdateTemplate structure.
func (*UpdateTemplateReader) ReadResponse ¶
func (o *UpdateTemplateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
Source Files
¶
- create_template_parameters.go
- create_template_responses.go
- delete_template_parameters.go
- delete_template_responses.go
- get_template_parameters.go
- get_template_responses.go
- list_templates_parameters.go
- list_templates_responses.go
- restore_templates_parameters.go
- restore_templates_responses.go
- templates_client.go
- update_template_parameters.go
- update_template_responses.go