templates_service

package
v4.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for templates service API

func (*Client) ListTemplates

func (a *Client) ListTemplates(params *ListTemplatesParams, opts ...ClientOption) (*ListTemplatesOK, error)

ListTemplates lists available templates

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	ListTemplates(params *ListTemplatesParams, opts ...ClientOption) (*ListTemplatesOK, 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 service API client.

type ListTemplatesForbidden

type ListTemplatesForbidden struct {
	Payload *models.RestError
}

ListTemplatesForbidden describes a response with status code 403, with default header values.

User has no permission to access this resource

func NewListTemplatesForbidden

func NewListTemplatesForbidden() *ListTemplatesForbidden

NewListTemplatesForbidden creates a ListTemplatesForbidden with default headers values

func (*ListTemplatesForbidden) Code added in v4.0.1

func (o *ListTemplatesForbidden) Code() int

Code gets the status code for the list templates forbidden response

func (*ListTemplatesForbidden) Error

func (o *ListTemplatesForbidden) Error() string

func (*ListTemplatesForbidden) GetPayload

func (o *ListTemplatesForbidden) GetPayload() *models.RestError

func (*ListTemplatesForbidden) IsClientError

func (o *ListTemplatesForbidden) IsClientError() bool

IsClientError returns true when this list templates forbidden response has a 4xx status code

func (*ListTemplatesForbidden) IsCode

func (o *ListTemplatesForbidden) IsCode(code int) bool

IsCode returns true when this list templates forbidden response a status code equal to that given

func (*ListTemplatesForbidden) IsRedirect

func (o *ListTemplatesForbidden) IsRedirect() bool

IsRedirect returns true when this list templates forbidden response has a 3xx status code

func (*ListTemplatesForbidden) IsServerError

func (o *ListTemplatesForbidden) IsServerError() bool

IsServerError returns true when this list templates forbidden response has a 5xx status code

func (*ListTemplatesForbidden) IsSuccess

func (o *ListTemplatesForbidden) IsSuccess() bool

IsSuccess returns true when this list templates forbidden response has a 2xx status code

func (*ListTemplatesForbidden) String

func (o *ListTemplatesForbidden) String() string

type ListTemplatesInternalServerError

type ListTemplatesInternalServerError struct {
	Payload *models.RestError
}

ListTemplatesInternalServerError describes a response with status code 500, with default header values.

An internal error occurred in the backend

func NewListTemplatesInternalServerError

func NewListTemplatesInternalServerError() *ListTemplatesInternalServerError

NewListTemplatesInternalServerError creates a ListTemplatesInternalServerError with default headers values

func (*ListTemplatesInternalServerError) Code added in v4.0.1

Code gets the status code for the list templates internal server error response

func (*ListTemplatesInternalServerError) Error

func (*ListTemplatesInternalServerError) GetPayload

func (*ListTemplatesInternalServerError) IsClientError

func (o *ListTemplatesInternalServerError) IsClientError() bool

IsClientError returns true when this list templates internal server error response has a 4xx status code

func (*ListTemplatesInternalServerError) IsCode

func (o *ListTemplatesInternalServerError) IsCode(code int) bool

IsCode returns true when this list templates internal server error response a status code equal to that given

func (*ListTemplatesInternalServerError) IsRedirect

func (o *ListTemplatesInternalServerError) IsRedirect() bool

IsRedirect returns true when this list templates internal server error response has a 3xx status code

func (*ListTemplatesInternalServerError) IsServerError

func (o *ListTemplatesInternalServerError) IsServerError() bool

IsServerError returns true when this list templates internal server error response has a 5xx status code

func (*ListTemplatesInternalServerError) IsSuccess

func (o *ListTemplatesInternalServerError) IsSuccess() bool

IsSuccess returns true when this list templates internal server error response has a 2xx status code

func (*ListTemplatesInternalServerError) String

type ListTemplatesNotFound

type ListTemplatesNotFound struct {
	Payload *models.RestError
}

ListTemplatesNotFound describes a response with status code 404, with default header values.

Resource does not exist in the system

func NewListTemplatesNotFound

func NewListTemplatesNotFound() *ListTemplatesNotFound

NewListTemplatesNotFound creates a ListTemplatesNotFound with default headers values

func (*ListTemplatesNotFound) Code added in v4.0.1

func (o *ListTemplatesNotFound) Code() int

Code gets the status code for the list templates not found response

func (*ListTemplatesNotFound) Error

func (o *ListTemplatesNotFound) Error() string

func (*ListTemplatesNotFound) GetPayload

func (o *ListTemplatesNotFound) GetPayload() *models.RestError

func (*ListTemplatesNotFound) IsClientError

func (o *ListTemplatesNotFound) IsClientError() bool

IsClientError returns true when this list templates not found response has a 4xx status code

func (*ListTemplatesNotFound) IsCode

func (o *ListTemplatesNotFound) IsCode(code int) bool

IsCode returns true when this list templates not found response a status code equal to that given

func (*ListTemplatesNotFound) IsRedirect

func (o *ListTemplatesNotFound) IsRedirect() bool

IsRedirect returns true when this list templates not found response has a 3xx status code

func (*ListTemplatesNotFound) IsServerError

func (o *ListTemplatesNotFound) IsServerError() bool

IsServerError returns true when this list templates not found response has a 5xx status code

func (*ListTemplatesNotFound) IsSuccess

func (o *ListTemplatesNotFound) IsSuccess() bool

IsSuccess returns true when this list templates not found response has a 2xx status code

func (*ListTemplatesNotFound) String

func (o *ListTemplatesNotFound) String() string

type ListTemplatesOK

type ListTemplatesOK struct {
	Payload *models.RestListTemplatesResponse
}

ListTemplatesOK describes a response with status code 200, with default header values.

A successful response.

func NewListTemplatesOK

func NewListTemplatesOK() *ListTemplatesOK

NewListTemplatesOK creates a ListTemplatesOK with default headers values

func (*ListTemplatesOK) Code added in v4.0.1

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

	// TemplateType.
	TemplateType *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) SetHTTPClient

func (o *ListTemplatesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the list templates params

func (*ListTemplatesParams) SetTemplateType

func (o *ListTemplatesParams) SetTemplateType(templateType *string)

SetTemplateType adds the templateType 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

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) WithHTTPClient

func (o *ListTemplatesParams) WithHTTPClient(client *http.Client) *ListTemplatesParams

WithHTTPClient adds the HTTPClient to the list templates params

func (*ListTemplatesParams) WithTemplateType

func (o *ListTemplatesParams) WithTemplateType(templateType *string) *ListTemplatesParams

WithTemplateType adds the templateType 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) (interface{}, error)

ReadResponse reads a server response into the received o.

type ListTemplatesUnauthorized

type ListTemplatesUnauthorized struct {
}

ListTemplatesUnauthorized describes a response with status code 401, with default header values.

User is not authenticated

func NewListTemplatesUnauthorized

func NewListTemplatesUnauthorized() *ListTemplatesUnauthorized

NewListTemplatesUnauthorized creates a ListTemplatesUnauthorized with default headers values

func (*ListTemplatesUnauthorized) Code added in v4.0.1

func (o *ListTemplatesUnauthorized) Code() int

Code gets the status code for the list templates unauthorized response

func (*ListTemplatesUnauthorized) Error

func (o *ListTemplatesUnauthorized) Error() string

func (*ListTemplatesUnauthorized) IsClientError

func (o *ListTemplatesUnauthorized) IsClientError() bool

IsClientError returns true when this list templates unauthorized response has a 4xx status code

func (*ListTemplatesUnauthorized) IsCode

func (o *ListTemplatesUnauthorized) IsCode(code int) bool

IsCode returns true when this list templates unauthorized response a status code equal to that given

func (*ListTemplatesUnauthorized) IsRedirect

func (o *ListTemplatesUnauthorized) IsRedirect() bool

IsRedirect returns true when this list templates unauthorized response has a 3xx status code

func (*ListTemplatesUnauthorized) IsServerError

func (o *ListTemplatesUnauthorized) IsServerError() bool

IsServerError returns true when this list templates unauthorized response has a 5xx status code

func (*ListTemplatesUnauthorized) IsSuccess

func (o *ListTemplatesUnauthorized) IsSuccess() bool

IsSuccess returns true when this list templates unauthorized response has a 2xx status code

func (*ListTemplatesUnauthorized) String

func (o *ListTemplatesUnauthorized) String() string

Jump to

Keyboard shortcuts

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