web

package
v0.0.0-...-7b99a6d Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 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 web API

func (*Client) GetStyling

func (a *Client) GetStyling(params *GetStylingParams, opts ...ClientOption) (*GetStylingOK, error)

GetStyling gets styling for a tenant

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 {
	GetStyling(params *GetStylingParams, opts ...ClientOption) (*GetStylingOK, 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 web API client.

type GetStylingNotFound

type GetStylingNotFound struct {
	Payload *models.Error
}

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

Not found

func NewGetStylingNotFound

func NewGetStylingNotFound() *GetStylingNotFound

NewGetStylingNotFound creates a GetStylingNotFound with default headers values

func (*GetStylingNotFound) Code

func (o *GetStylingNotFound) Code() int

Code gets the status code for the get styling not found response

func (*GetStylingNotFound) Error

func (o *GetStylingNotFound) Error() string

func (*GetStylingNotFound) GetPayload

func (o *GetStylingNotFound) GetPayload() *models.Error

func (*GetStylingNotFound) IsClientError

func (o *GetStylingNotFound) IsClientError() bool

IsClientError returns true when this get styling not found response has a 4xx status code

func (*GetStylingNotFound) IsCode

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

IsCode returns true when this get styling not found response a status code equal to that given

func (*GetStylingNotFound) IsRedirect

func (o *GetStylingNotFound) IsRedirect() bool

IsRedirect returns true when this get styling not found response has a 3xx status code

func (*GetStylingNotFound) IsServerError

func (o *GetStylingNotFound) IsServerError() bool

IsServerError returns true when this get styling not found response has a 5xx status code

func (*GetStylingNotFound) IsSuccess

func (o *GetStylingNotFound) IsSuccess() bool

IsSuccess returns true when this get styling not found response has a 2xx status code

func (*GetStylingNotFound) String

func (o *GetStylingNotFound) String() string

type GetStylingOK

type GetStylingOK struct {
	Payload *models.Styling
}

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

Styling

func NewGetStylingOK

func NewGetStylingOK() *GetStylingOK

NewGetStylingOK creates a GetStylingOK with default headers values

func (*GetStylingOK) Code

func (o *GetStylingOK) Code() int

Code gets the status code for the get styling o k response

func (*GetStylingOK) Error

func (o *GetStylingOK) Error() string

func (*GetStylingOK) GetPayload

func (o *GetStylingOK) GetPayload() *models.Styling

func (*GetStylingOK) IsClientError

func (o *GetStylingOK) IsClientError() bool

IsClientError returns true when this get styling o k response has a 4xx status code

func (*GetStylingOK) IsCode

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

IsCode returns true when this get styling o k response a status code equal to that given

func (*GetStylingOK) IsRedirect

func (o *GetStylingOK) IsRedirect() bool

IsRedirect returns true when this get styling o k response has a 3xx status code

func (*GetStylingOK) IsServerError

func (o *GetStylingOK) IsServerError() bool

IsServerError returns true when this get styling o k response has a 5xx status code

func (*GetStylingOK) IsSuccess

func (o *GetStylingOK) IsSuccess() bool

IsSuccess returns true when this get styling o k response has a 2xx status code

func (*GetStylingOK) String

func (o *GetStylingOK) String() string

type GetStylingParams

type GetStylingParams struct {

	/* Aid.

	   Authorization server id

	   Default: "admin"
	*/
	Aid string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetStylingParams contains all the parameters to send to the API endpoint

for the get styling operation.

Typically these are written to a http.Request.

func NewGetStylingParams

func NewGetStylingParams() *GetStylingParams

NewGetStylingParams creates a new GetStylingParams 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 NewGetStylingParamsWithContext

func NewGetStylingParamsWithContext(ctx context.Context) *GetStylingParams

NewGetStylingParamsWithContext creates a new GetStylingParams object with the ability to set a context for a request.

func NewGetStylingParamsWithHTTPClient

func NewGetStylingParamsWithHTTPClient(client *http.Client) *GetStylingParams

NewGetStylingParamsWithHTTPClient creates a new GetStylingParams object with the ability to set a custom HTTPClient for a request.

func NewGetStylingParamsWithTimeout

func NewGetStylingParamsWithTimeout(timeout time.Duration) *GetStylingParams

NewGetStylingParamsWithTimeout creates a new GetStylingParams object with the ability to set a timeout on a request.

func (*GetStylingParams) SetAid

func (o *GetStylingParams) SetAid(aid string)

SetAid adds the aid to the get styling params

func (*GetStylingParams) SetContext

func (o *GetStylingParams) SetContext(ctx context.Context)

SetContext adds the context to the get styling params

func (*GetStylingParams) SetDefaults

func (o *GetStylingParams) SetDefaults()

SetDefaults hydrates default values in the get styling params (not the query body).

All values with no default are reset to their zero value.

func (*GetStylingParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get styling params

func (*GetStylingParams) SetTimeout

func (o *GetStylingParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get styling params

func (*GetStylingParams) WithAid

func (o *GetStylingParams) WithAid(aid string) *GetStylingParams

WithAid adds the aid to the get styling params

func (*GetStylingParams) WithContext

func (o *GetStylingParams) WithContext(ctx context.Context) *GetStylingParams

WithContext adds the context to the get styling params

func (*GetStylingParams) WithDefaults

func (o *GetStylingParams) WithDefaults() *GetStylingParams

WithDefaults hydrates default values in the get styling params (not the query body).

All values with no default are reset to their zero value.

func (*GetStylingParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get styling params

func (*GetStylingParams) WithTimeout

func (o *GetStylingParams) WithTimeout(timeout time.Duration) *GetStylingParams

WithTimeout adds the timeout to the get styling params

func (*GetStylingParams) WriteToRequest

func (o *GetStylingParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetStylingReader

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

GetStylingReader is a Reader for the GetStyling structure.

func (*GetStylingReader) ReadResponse

func (o *GetStylingReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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