admin_tree_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 admin tree service API

func (*Client) ListAdminTree

func (a *Client) ListAdminTree(params *ListAdminTreeParams, opts ...ClientOption) (*ListAdminTreeOK, error)

ListAdminTree lists files and folders starting at the root first level lists the datasources

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) StatAdminTree

func (a *Client) StatAdminTree(params *StatAdminTreeParams, opts ...ClientOption) (*StatAdminTreeOK, error)

StatAdminTree reads a node information inside the admin tree

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	ListAdminTree(params *ListAdminTreeParams, opts ...ClientOption) (*ListAdminTreeOK, error)

	StatAdminTree(params *StatAdminTreeParams, opts ...ClientOption) (*StatAdminTreeOK, 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 admin tree service API client.

type ListAdminTreeForbidden

type ListAdminTreeForbidden struct {
	Payload *models.RestError
}

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

User has no permission to access this resource

func NewListAdminTreeForbidden

func NewListAdminTreeForbidden() *ListAdminTreeForbidden

NewListAdminTreeForbidden creates a ListAdminTreeForbidden with default headers values

func (*ListAdminTreeForbidden) Code added in v4.0.1

func (o *ListAdminTreeForbidden) Code() int

Code gets the status code for the list admin tree forbidden response

func (*ListAdminTreeForbidden) Error

func (o *ListAdminTreeForbidden) Error() string

func (*ListAdminTreeForbidden) GetPayload

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

func (*ListAdminTreeForbidden) IsClientError

func (o *ListAdminTreeForbidden) IsClientError() bool

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

func (*ListAdminTreeForbidden) IsCode

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

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

func (*ListAdminTreeForbidden) IsRedirect

func (o *ListAdminTreeForbidden) IsRedirect() bool

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

func (*ListAdminTreeForbidden) IsServerError

func (o *ListAdminTreeForbidden) IsServerError() bool

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

func (*ListAdminTreeForbidden) IsSuccess

func (o *ListAdminTreeForbidden) IsSuccess() bool

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

func (*ListAdminTreeForbidden) String

func (o *ListAdminTreeForbidden) String() string

type ListAdminTreeInternalServerError

type ListAdminTreeInternalServerError struct {
	Payload *models.RestError
}

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

An internal error occurred in the backend

func NewListAdminTreeInternalServerError

func NewListAdminTreeInternalServerError() *ListAdminTreeInternalServerError

NewListAdminTreeInternalServerError creates a ListAdminTreeInternalServerError with default headers values

func (*ListAdminTreeInternalServerError) Code added in v4.0.1

Code gets the status code for the list admin tree internal server error response

func (*ListAdminTreeInternalServerError) Error

func (*ListAdminTreeInternalServerError) GetPayload

func (*ListAdminTreeInternalServerError) IsClientError

func (o *ListAdminTreeInternalServerError) IsClientError() bool

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

func (*ListAdminTreeInternalServerError) IsCode

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

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

func (*ListAdminTreeInternalServerError) IsRedirect

func (o *ListAdminTreeInternalServerError) IsRedirect() bool

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

func (*ListAdminTreeInternalServerError) IsServerError

func (o *ListAdminTreeInternalServerError) IsServerError() bool

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

func (*ListAdminTreeInternalServerError) IsSuccess

func (o *ListAdminTreeInternalServerError) IsSuccess() bool

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

func (*ListAdminTreeInternalServerError) String

type ListAdminTreeNotFound

type ListAdminTreeNotFound struct {
	Payload *models.RestError
}

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

Resource does not exist in the system

func NewListAdminTreeNotFound

func NewListAdminTreeNotFound() *ListAdminTreeNotFound

NewListAdminTreeNotFound creates a ListAdminTreeNotFound with default headers values

func (*ListAdminTreeNotFound) Code added in v4.0.1

func (o *ListAdminTreeNotFound) Code() int

Code gets the status code for the list admin tree not found response

func (*ListAdminTreeNotFound) Error

func (o *ListAdminTreeNotFound) Error() string

func (*ListAdminTreeNotFound) GetPayload

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

func (*ListAdminTreeNotFound) IsClientError

func (o *ListAdminTreeNotFound) IsClientError() bool

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

func (*ListAdminTreeNotFound) IsCode

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

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

func (*ListAdminTreeNotFound) IsRedirect

func (o *ListAdminTreeNotFound) IsRedirect() bool

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

func (*ListAdminTreeNotFound) IsServerError

func (o *ListAdminTreeNotFound) IsServerError() bool

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

func (*ListAdminTreeNotFound) IsSuccess

func (o *ListAdminTreeNotFound) IsSuccess() bool

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

func (*ListAdminTreeNotFound) String

func (o *ListAdminTreeNotFound) String() string

type ListAdminTreeOK

type ListAdminTreeOK struct {
	Payload *models.RestNodesCollection
}

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

A successful response.

func NewListAdminTreeOK

func NewListAdminTreeOK() *ListAdminTreeOK

NewListAdminTreeOK creates a ListAdminTreeOK with default headers values

func (*ListAdminTreeOK) Code added in v4.0.1

func (o *ListAdminTreeOK) Code() int

Code gets the status code for the list admin tree o k response

func (*ListAdminTreeOK) Error

func (o *ListAdminTreeOK) Error() string

func (*ListAdminTreeOK) GetPayload

func (o *ListAdminTreeOK) GetPayload() *models.RestNodesCollection

func (*ListAdminTreeOK) IsClientError

func (o *ListAdminTreeOK) IsClientError() bool

IsClientError returns true when this list admin tree o k response has a 4xx status code

func (*ListAdminTreeOK) IsCode

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

IsCode returns true when this list admin tree o k response a status code equal to that given

func (*ListAdminTreeOK) IsRedirect

func (o *ListAdminTreeOK) IsRedirect() bool

IsRedirect returns true when this list admin tree o k response has a 3xx status code

func (*ListAdminTreeOK) IsServerError

func (o *ListAdminTreeOK) IsServerError() bool

IsServerError returns true when this list admin tree o k response has a 5xx status code

func (*ListAdminTreeOK) IsSuccess

func (o *ListAdminTreeOK) IsSuccess() bool

IsSuccess returns true when this list admin tree o k response has a 2xx status code

func (*ListAdminTreeOK) String

func (o *ListAdminTreeOK) String() string

type ListAdminTreeParams

type ListAdminTreeParams struct {

	// Body.
	Body *models.TreeListNodesRequest

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

ListAdminTreeParams contains all the parameters to send to the API endpoint

for the list admin tree operation.

Typically these are written to a http.Request.

func NewListAdminTreeParams

func NewListAdminTreeParams() *ListAdminTreeParams

NewListAdminTreeParams creates a new ListAdminTreeParams 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 NewListAdminTreeParamsWithContext

func NewListAdminTreeParamsWithContext(ctx context.Context) *ListAdminTreeParams

NewListAdminTreeParamsWithContext creates a new ListAdminTreeParams object with the ability to set a context for a request.

func NewListAdminTreeParamsWithHTTPClient

func NewListAdminTreeParamsWithHTTPClient(client *http.Client) *ListAdminTreeParams

NewListAdminTreeParamsWithHTTPClient creates a new ListAdminTreeParams object with the ability to set a custom HTTPClient for a request.

func NewListAdminTreeParamsWithTimeout

func NewListAdminTreeParamsWithTimeout(timeout time.Duration) *ListAdminTreeParams

NewListAdminTreeParamsWithTimeout creates a new ListAdminTreeParams object with the ability to set a timeout on a request.

func (*ListAdminTreeParams) SetBody

SetBody adds the body to the list admin tree params

func (*ListAdminTreeParams) SetContext

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

SetContext adds the context to the list admin tree params

func (*ListAdminTreeParams) SetDefaults

func (o *ListAdminTreeParams) SetDefaults()

SetDefaults hydrates default values in the list admin tree params (not the query body).

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

func (*ListAdminTreeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list admin tree params

func (*ListAdminTreeParams) SetTimeout

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

SetTimeout adds the timeout to the list admin tree params

func (*ListAdminTreeParams) WithBody

WithBody adds the body to the list admin tree params

func (*ListAdminTreeParams) WithContext

WithContext adds the context to the list admin tree params

func (*ListAdminTreeParams) WithDefaults

func (o *ListAdminTreeParams) WithDefaults() *ListAdminTreeParams

WithDefaults hydrates default values in the list admin tree params (not the query body).

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

func (*ListAdminTreeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list admin tree params

func (*ListAdminTreeParams) WithTimeout

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

WithTimeout adds the timeout to the list admin tree params

func (*ListAdminTreeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListAdminTreeReader

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

ListAdminTreeReader is a Reader for the ListAdminTree structure.

func (*ListAdminTreeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListAdminTreeUnauthorized

type ListAdminTreeUnauthorized struct {
}

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

User is not authenticated

func NewListAdminTreeUnauthorized

func NewListAdminTreeUnauthorized() *ListAdminTreeUnauthorized

NewListAdminTreeUnauthorized creates a ListAdminTreeUnauthorized with default headers values

func (*ListAdminTreeUnauthorized) Code added in v4.0.1

func (o *ListAdminTreeUnauthorized) Code() int

Code gets the status code for the list admin tree unauthorized response

func (*ListAdminTreeUnauthorized) Error

func (o *ListAdminTreeUnauthorized) Error() string

func (*ListAdminTreeUnauthorized) IsClientError

func (o *ListAdminTreeUnauthorized) IsClientError() bool

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

func (*ListAdminTreeUnauthorized) IsCode

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

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

func (*ListAdminTreeUnauthorized) IsRedirect

func (o *ListAdminTreeUnauthorized) IsRedirect() bool

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

func (*ListAdminTreeUnauthorized) IsServerError

func (o *ListAdminTreeUnauthorized) IsServerError() bool

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

func (*ListAdminTreeUnauthorized) IsSuccess

func (o *ListAdminTreeUnauthorized) IsSuccess() bool

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

func (*ListAdminTreeUnauthorized) String

func (o *ListAdminTreeUnauthorized) String() string

type StatAdminTreeForbidden

type StatAdminTreeForbidden struct {
	Payload *models.RestError
}

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

User has no permission to access this resource

func NewStatAdminTreeForbidden

func NewStatAdminTreeForbidden() *StatAdminTreeForbidden

NewStatAdminTreeForbidden creates a StatAdminTreeForbidden with default headers values

func (*StatAdminTreeForbidden) Code added in v4.0.1

func (o *StatAdminTreeForbidden) Code() int

Code gets the status code for the stat admin tree forbidden response

func (*StatAdminTreeForbidden) Error

func (o *StatAdminTreeForbidden) Error() string

func (*StatAdminTreeForbidden) GetPayload

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

func (*StatAdminTreeForbidden) IsClientError

func (o *StatAdminTreeForbidden) IsClientError() bool

IsClientError returns true when this stat admin tree forbidden response has a 4xx status code

func (*StatAdminTreeForbidden) IsCode

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

IsCode returns true when this stat admin tree forbidden response a status code equal to that given

func (*StatAdminTreeForbidden) IsRedirect

func (o *StatAdminTreeForbidden) IsRedirect() bool

IsRedirect returns true when this stat admin tree forbidden response has a 3xx status code

func (*StatAdminTreeForbidden) IsServerError

func (o *StatAdminTreeForbidden) IsServerError() bool

IsServerError returns true when this stat admin tree forbidden response has a 5xx status code

func (*StatAdminTreeForbidden) IsSuccess

func (o *StatAdminTreeForbidden) IsSuccess() bool

IsSuccess returns true when this stat admin tree forbidden response has a 2xx status code

func (*StatAdminTreeForbidden) String

func (o *StatAdminTreeForbidden) String() string

type StatAdminTreeInternalServerError

type StatAdminTreeInternalServerError struct {
	Payload *models.RestError
}

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

An internal error occurred in the backend

func NewStatAdminTreeInternalServerError

func NewStatAdminTreeInternalServerError() *StatAdminTreeInternalServerError

NewStatAdminTreeInternalServerError creates a StatAdminTreeInternalServerError with default headers values

func (*StatAdminTreeInternalServerError) Code added in v4.0.1

Code gets the status code for the stat admin tree internal server error response

func (*StatAdminTreeInternalServerError) Error

func (*StatAdminTreeInternalServerError) GetPayload

func (*StatAdminTreeInternalServerError) IsClientError

func (o *StatAdminTreeInternalServerError) IsClientError() bool

IsClientError returns true when this stat admin tree internal server error response has a 4xx status code

func (*StatAdminTreeInternalServerError) IsCode

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

IsCode returns true when this stat admin tree internal server error response a status code equal to that given

func (*StatAdminTreeInternalServerError) IsRedirect

func (o *StatAdminTreeInternalServerError) IsRedirect() bool

IsRedirect returns true when this stat admin tree internal server error response has a 3xx status code

func (*StatAdminTreeInternalServerError) IsServerError

func (o *StatAdminTreeInternalServerError) IsServerError() bool

IsServerError returns true when this stat admin tree internal server error response has a 5xx status code

func (*StatAdminTreeInternalServerError) IsSuccess

func (o *StatAdminTreeInternalServerError) IsSuccess() bool

IsSuccess returns true when this stat admin tree internal server error response has a 2xx status code

func (*StatAdminTreeInternalServerError) String

type StatAdminTreeNotFound

type StatAdminTreeNotFound struct {
	Payload *models.RestError
}

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

Resource does not exist in the system

func NewStatAdminTreeNotFound

func NewStatAdminTreeNotFound() *StatAdminTreeNotFound

NewStatAdminTreeNotFound creates a StatAdminTreeNotFound with default headers values

func (*StatAdminTreeNotFound) Code added in v4.0.1

func (o *StatAdminTreeNotFound) Code() int

Code gets the status code for the stat admin tree not found response

func (*StatAdminTreeNotFound) Error

func (o *StatAdminTreeNotFound) Error() string

func (*StatAdminTreeNotFound) GetPayload

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

func (*StatAdminTreeNotFound) IsClientError

func (o *StatAdminTreeNotFound) IsClientError() bool

IsClientError returns true when this stat admin tree not found response has a 4xx status code

func (*StatAdminTreeNotFound) IsCode

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

IsCode returns true when this stat admin tree not found response a status code equal to that given

func (*StatAdminTreeNotFound) IsRedirect

func (o *StatAdminTreeNotFound) IsRedirect() bool

IsRedirect returns true when this stat admin tree not found response has a 3xx status code

func (*StatAdminTreeNotFound) IsServerError

func (o *StatAdminTreeNotFound) IsServerError() bool

IsServerError returns true when this stat admin tree not found response has a 5xx status code

func (*StatAdminTreeNotFound) IsSuccess

func (o *StatAdminTreeNotFound) IsSuccess() bool

IsSuccess returns true when this stat admin tree not found response has a 2xx status code

func (*StatAdminTreeNotFound) String

func (o *StatAdminTreeNotFound) String() string

type StatAdminTreeOK

type StatAdminTreeOK struct {
	Payload *models.TreeReadNodeResponse
}

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

A successful response.

func NewStatAdminTreeOK

func NewStatAdminTreeOK() *StatAdminTreeOK

NewStatAdminTreeOK creates a StatAdminTreeOK with default headers values

func (*StatAdminTreeOK) Code added in v4.0.1

func (o *StatAdminTreeOK) Code() int

Code gets the status code for the stat admin tree o k response

func (*StatAdminTreeOK) Error

func (o *StatAdminTreeOK) Error() string

func (*StatAdminTreeOK) GetPayload

func (o *StatAdminTreeOK) GetPayload() *models.TreeReadNodeResponse

func (*StatAdminTreeOK) IsClientError

func (o *StatAdminTreeOK) IsClientError() bool

IsClientError returns true when this stat admin tree o k response has a 4xx status code

func (*StatAdminTreeOK) IsCode

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

IsCode returns true when this stat admin tree o k response a status code equal to that given

func (*StatAdminTreeOK) IsRedirect

func (o *StatAdminTreeOK) IsRedirect() bool

IsRedirect returns true when this stat admin tree o k response has a 3xx status code

func (*StatAdminTreeOK) IsServerError

func (o *StatAdminTreeOK) IsServerError() bool

IsServerError returns true when this stat admin tree o k response has a 5xx status code

func (*StatAdminTreeOK) IsSuccess

func (o *StatAdminTreeOK) IsSuccess() bool

IsSuccess returns true when this stat admin tree o k response has a 2xx status code

func (*StatAdminTreeOK) String

func (o *StatAdminTreeOK) String() string

type StatAdminTreeParams

type StatAdminTreeParams struct {

	// Body.
	Body *models.TreeReadNodeRequest

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

StatAdminTreeParams contains all the parameters to send to the API endpoint

for the stat admin tree operation.

Typically these are written to a http.Request.

func NewStatAdminTreeParams

func NewStatAdminTreeParams() *StatAdminTreeParams

NewStatAdminTreeParams creates a new StatAdminTreeParams 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 NewStatAdminTreeParamsWithContext

func NewStatAdminTreeParamsWithContext(ctx context.Context) *StatAdminTreeParams

NewStatAdminTreeParamsWithContext creates a new StatAdminTreeParams object with the ability to set a context for a request.

func NewStatAdminTreeParamsWithHTTPClient

func NewStatAdminTreeParamsWithHTTPClient(client *http.Client) *StatAdminTreeParams

NewStatAdminTreeParamsWithHTTPClient creates a new StatAdminTreeParams object with the ability to set a custom HTTPClient for a request.

func NewStatAdminTreeParamsWithTimeout

func NewStatAdminTreeParamsWithTimeout(timeout time.Duration) *StatAdminTreeParams

NewStatAdminTreeParamsWithTimeout creates a new StatAdminTreeParams object with the ability to set a timeout on a request.

func (*StatAdminTreeParams) SetBody

SetBody adds the body to the stat admin tree params

func (*StatAdminTreeParams) SetContext

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

SetContext adds the context to the stat admin tree params

func (*StatAdminTreeParams) SetDefaults

func (o *StatAdminTreeParams) SetDefaults()

SetDefaults hydrates default values in the stat admin tree params (not the query body).

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

func (*StatAdminTreeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the stat admin tree params

func (*StatAdminTreeParams) SetTimeout

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

SetTimeout adds the timeout to the stat admin tree params

func (*StatAdminTreeParams) WithBody

WithBody adds the body to the stat admin tree params

func (*StatAdminTreeParams) WithContext

WithContext adds the context to the stat admin tree params

func (*StatAdminTreeParams) WithDefaults

func (o *StatAdminTreeParams) WithDefaults() *StatAdminTreeParams

WithDefaults hydrates default values in the stat admin tree params (not the query body).

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

func (*StatAdminTreeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the stat admin tree params

func (*StatAdminTreeParams) WithTimeout

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

WithTimeout adds the timeout to the stat admin tree params

func (*StatAdminTreeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type StatAdminTreeReader

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

StatAdminTreeReader is a Reader for the StatAdminTree structure.

func (*StatAdminTreeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type StatAdminTreeUnauthorized

type StatAdminTreeUnauthorized struct {
}

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

User is not authenticated

func NewStatAdminTreeUnauthorized

func NewStatAdminTreeUnauthorized() *StatAdminTreeUnauthorized

NewStatAdminTreeUnauthorized creates a StatAdminTreeUnauthorized with default headers values

func (*StatAdminTreeUnauthorized) Code added in v4.0.1

func (o *StatAdminTreeUnauthorized) Code() int

Code gets the status code for the stat admin tree unauthorized response

func (*StatAdminTreeUnauthorized) Error

func (o *StatAdminTreeUnauthorized) Error() string

func (*StatAdminTreeUnauthorized) IsClientError

func (o *StatAdminTreeUnauthorized) IsClientError() bool

IsClientError returns true when this stat admin tree unauthorized response has a 4xx status code

func (*StatAdminTreeUnauthorized) IsCode

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

IsCode returns true when this stat admin tree unauthorized response a status code equal to that given

func (*StatAdminTreeUnauthorized) IsRedirect

func (o *StatAdminTreeUnauthorized) IsRedirect() bool

IsRedirect returns true when this stat admin tree unauthorized response has a 3xx status code

func (*StatAdminTreeUnauthorized) IsServerError

func (o *StatAdminTreeUnauthorized) IsServerError() bool

IsServerError returns true when this stat admin tree unauthorized response has a 5xx status code

func (*StatAdminTreeUnauthorized) IsSuccess

func (o *StatAdminTreeUnauthorized) IsSuccess() bool

IsSuccess returns true when this stat admin tree unauthorized response has a 2xx status code

func (*StatAdminTreeUnauthorized) String

func (o *StatAdminTreeUnauthorized) String() string

Jump to

Keyboard shortcuts

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