folder_permissions

package
v0.0.0-...-59d2d35 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 11 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 folder permissions API

func (*Client) GetFolderPermissionList

func (a *Client) GetFolderPermissionList(folderUID string, opts ...ClientOption) (*GetFolderPermissionListOK, error)

GetFolderPermissionList gets all existing permissions for the folder with the given uid

func (*Client) GetFolderPermissionListWithParams

func (a *Client) GetFolderPermissionListWithParams(params *GetFolderPermissionListParams, opts ...ClientOption) (*GetFolderPermissionListOK, error)

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateFolderPermissions

func (a *Client) UpdateFolderPermissions(folderUID string, body *models.UpdateDashboardACLCommand, opts ...ClientOption) (*UpdateFolderPermissionsOK, error)

UpdateFolderPermissions updates permissions for a folder this operation will remove existing permissions if they re not included in the request

func (*Client) UpdateFolderPermissionsWithParams

func (a *Client) UpdateFolderPermissionsWithParams(params *UpdateFolderPermissionsParams, opts ...ClientOption) (*UpdateFolderPermissionsOK, error)

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

func WithAuthInfo

func WithAuthInfo(authInfo runtime.ClientAuthInfoWriter) ClientOption

WithAuthInfo changes the transport on the client

type ClientService

type ClientService interface {
	GetFolderPermissionList(folderUID string, opts ...ClientOption) (*GetFolderPermissionListOK, error)
	GetFolderPermissionListWithParams(params *GetFolderPermissionListParams, opts ...ClientOption) (*GetFolderPermissionListOK, error)

	UpdateFolderPermissions(folderUID string, body *models.UpdateDashboardACLCommand, opts ...ClientOption) (*UpdateFolderPermissionsOK, error)
	UpdateFolderPermissionsWithParams(params *UpdateFolderPermissionsParams, opts ...ClientOption) (*UpdateFolderPermissionsOK, 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 folder permissions API client.

type GetFolderPermissionListForbidden

type GetFolderPermissionListForbidden struct {
	Payload *models.ErrorResponseBody
}

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

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewGetFolderPermissionListForbidden

func NewGetFolderPermissionListForbidden() *GetFolderPermissionListForbidden

NewGetFolderPermissionListForbidden creates a GetFolderPermissionListForbidden with default headers values

func (*GetFolderPermissionListForbidden) Code

Code gets the status code for the get folder permission list forbidden response

func (*GetFolderPermissionListForbidden) Error

func (*GetFolderPermissionListForbidden) GetPayload

func (*GetFolderPermissionListForbidden) IsClientError

func (o *GetFolderPermissionListForbidden) IsClientError() bool

IsClientError returns true when this get folder permission list forbidden response has a 4xx status code

func (*GetFolderPermissionListForbidden) IsCode

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

IsCode returns true when this get folder permission list forbidden response a status code equal to that given

func (*GetFolderPermissionListForbidden) IsRedirect

func (o *GetFolderPermissionListForbidden) IsRedirect() bool

IsRedirect returns true when this get folder permission list forbidden response has a 3xx status code

func (*GetFolderPermissionListForbidden) IsServerError

func (o *GetFolderPermissionListForbidden) IsServerError() bool

IsServerError returns true when this get folder permission list forbidden response has a 5xx status code

func (*GetFolderPermissionListForbidden) IsSuccess

func (o *GetFolderPermissionListForbidden) IsSuccess() bool

IsSuccess returns true when this get folder permission list forbidden response has a 2xx status code

func (*GetFolderPermissionListForbidden) String

type GetFolderPermissionListInternalServerError

type GetFolderPermissionListInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewGetFolderPermissionListInternalServerError

func NewGetFolderPermissionListInternalServerError() *GetFolderPermissionListInternalServerError

NewGetFolderPermissionListInternalServerError creates a GetFolderPermissionListInternalServerError with default headers values

func (*GetFolderPermissionListInternalServerError) Code

Code gets the status code for the get folder permission list internal server error response

func (*GetFolderPermissionListInternalServerError) Error

func (*GetFolderPermissionListInternalServerError) GetPayload

func (*GetFolderPermissionListInternalServerError) IsClientError

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

func (*GetFolderPermissionListInternalServerError) IsCode

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

func (*GetFolderPermissionListInternalServerError) IsRedirect

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

func (*GetFolderPermissionListInternalServerError) IsServerError

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

func (*GetFolderPermissionListInternalServerError) IsSuccess

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

func (*GetFolderPermissionListInternalServerError) String

type GetFolderPermissionListNotFound

type GetFolderPermissionListNotFound struct {
	Payload *models.ErrorResponseBody
}

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

NotFoundError is returned when the requested resource was not found.

func NewGetFolderPermissionListNotFound

func NewGetFolderPermissionListNotFound() *GetFolderPermissionListNotFound

NewGetFolderPermissionListNotFound creates a GetFolderPermissionListNotFound with default headers values

func (*GetFolderPermissionListNotFound) Code

Code gets the status code for the get folder permission list not found response

func (*GetFolderPermissionListNotFound) Error

func (*GetFolderPermissionListNotFound) GetPayload

func (*GetFolderPermissionListNotFound) IsClientError

func (o *GetFolderPermissionListNotFound) IsClientError() bool

IsClientError returns true when this get folder permission list not found response has a 4xx status code

func (*GetFolderPermissionListNotFound) IsCode

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

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

func (*GetFolderPermissionListNotFound) IsRedirect

func (o *GetFolderPermissionListNotFound) IsRedirect() bool

IsRedirect returns true when this get folder permission list not found response has a 3xx status code

func (*GetFolderPermissionListNotFound) IsServerError

func (o *GetFolderPermissionListNotFound) IsServerError() bool

IsServerError returns true when this get folder permission list not found response has a 5xx status code

func (*GetFolderPermissionListNotFound) IsSuccess

func (o *GetFolderPermissionListNotFound) IsSuccess() bool

IsSuccess returns true when this get folder permission list not found response has a 2xx status code

func (*GetFolderPermissionListNotFound) String

type GetFolderPermissionListOK

type GetFolderPermissionListOK struct {
	Payload []*models.DashboardACLInfoDTO
}

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

(empty)

func NewGetFolderPermissionListOK

func NewGetFolderPermissionListOK() *GetFolderPermissionListOK

NewGetFolderPermissionListOK creates a GetFolderPermissionListOK with default headers values

func (*GetFolderPermissionListOK) Code

func (o *GetFolderPermissionListOK) Code() int

Code gets the status code for the get folder permission list Ok response

func (*GetFolderPermissionListOK) Error

func (o *GetFolderPermissionListOK) Error() string

func (*GetFolderPermissionListOK) GetPayload

func (*GetFolderPermissionListOK) IsClientError

func (o *GetFolderPermissionListOK) IsClientError() bool

IsClientError returns true when this get folder permission list Ok response has a 4xx status code

func (*GetFolderPermissionListOK) IsCode

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

IsCode returns true when this get folder permission list Ok response a status code equal to that given

func (*GetFolderPermissionListOK) IsRedirect

func (o *GetFolderPermissionListOK) IsRedirect() bool

IsRedirect returns true when this get folder permission list Ok response has a 3xx status code

func (*GetFolderPermissionListOK) IsServerError

func (o *GetFolderPermissionListOK) IsServerError() bool

IsServerError returns true when this get folder permission list Ok response has a 5xx status code

func (*GetFolderPermissionListOK) IsSuccess

func (o *GetFolderPermissionListOK) IsSuccess() bool

IsSuccess returns true when this get folder permission list Ok response has a 2xx status code

func (*GetFolderPermissionListOK) String

func (o *GetFolderPermissionListOK) String() string

type GetFolderPermissionListParams

type GetFolderPermissionListParams struct {

	// FolderUID.
	FolderUID string

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

GetFolderPermissionListParams contains all the parameters to send to the API endpoint

for the get folder permission list operation.

Typically these are written to a http.Request.

func NewGetFolderPermissionListParams

func NewGetFolderPermissionListParams() *GetFolderPermissionListParams

NewGetFolderPermissionListParams creates a new GetFolderPermissionListParams 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 NewGetFolderPermissionListParamsWithContext

func NewGetFolderPermissionListParamsWithContext(ctx context.Context) *GetFolderPermissionListParams

NewGetFolderPermissionListParamsWithContext creates a new GetFolderPermissionListParams object with the ability to set a context for a request.

func NewGetFolderPermissionListParamsWithHTTPClient

func NewGetFolderPermissionListParamsWithHTTPClient(client *http.Client) *GetFolderPermissionListParams

NewGetFolderPermissionListParamsWithHTTPClient creates a new GetFolderPermissionListParams object with the ability to set a custom HTTPClient for a request.

func NewGetFolderPermissionListParamsWithTimeout

func NewGetFolderPermissionListParamsWithTimeout(timeout time.Duration) *GetFolderPermissionListParams

NewGetFolderPermissionListParamsWithTimeout creates a new GetFolderPermissionListParams object with the ability to set a timeout on a request.

func (*GetFolderPermissionListParams) SetContext

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

SetContext adds the context to the get folder permission list params

func (*GetFolderPermissionListParams) SetDefaults

func (o *GetFolderPermissionListParams) SetDefaults()

SetDefaults hydrates default values in the get folder permission list params (not the query body).

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

func (*GetFolderPermissionListParams) SetFolderUID

func (o *GetFolderPermissionListParams) SetFolderUID(folderUID string)

SetFolderUID adds the folderUid to the get folder permission list params

func (*GetFolderPermissionListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get folder permission list params

func (*GetFolderPermissionListParams) SetTimeout

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

SetTimeout adds the timeout to the get folder permission list params

func (*GetFolderPermissionListParams) WithContext

WithContext adds the context to the get folder permission list params

func (*GetFolderPermissionListParams) WithDefaults

WithDefaults hydrates default values in the get folder permission list params (not the query body).

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

func (*GetFolderPermissionListParams) WithFolderUID

WithFolderUID adds the folderUID to the get folder permission list params

func (*GetFolderPermissionListParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get folder permission list params

func (*GetFolderPermissionListParams) WithTimeout

WithTimeout adds the timeout to the get folder permission list params

func (*GetFolderPermissionListParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetFolderPermissionListReader

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

GetFolderPermissionListReader is a Reader for the GetFolderPermissionList structure.

func (*GetFolderPermissionListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetFolderPermissionListUnauthorized

type GetFolderPermissionListUnauthorized struct {
	Payload *models.ErrorResponseBody
}

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

UnauthorizedError is returned when the request is not authenticated.

func NewGetFolderPermissionListUnauthorized

func NewGetFolderPermissionListUnauthorized() *GetFolderPermissionListUnauthorized

NewGetFolderPermissionListUnauthorized creates a GetFolderPermissionListUnauthorized with default headers values

func (*GetFolderPermissionListUnauthorized) Code

Code gets the status code for the get folder permission list unauthorized response

func (*GetFolderPermissionListUnauthorized) Error

func (*GetFolderPermissionListUnauthorized) GetPayload

func (*GetFolderPermissionListUnauthorized) IsClientError

func (o *GetFolderPermissionListUnauthorized) IsClientError() bool

IsClientError returns true when this get folder permission list unauthorized response has a 4xx status code

func (*GetFolderPermissionListUnauthorized) IsCode

IsCode returns true when this get folder permission list unauthorized response a status code equal to that given

func (*GetFolderPermissionListUnauthorized) IsRedirect

func (o *GetFolderPermissionListUnauthorized) IsRedirect() bool

IsRedirect returns true when this get folder permission list unauthorized response has a 3xx status code

func (*GetFolderPermissionListUnauthorized) IsServerError

func (o *GetFolderPermissionListUnauthorized) IsServerError() bool

IsServerError returns true when this get folder permission list unauthorized response has a 5xx status code

func (*GetFolderPermissionListUnauthorized) IsSuccess

IsSuccess returns true when this get folder permission list unauthorized response has a 2xx status code

func (*GetFolderPermissionListUnauthorized) String

type UpdateFolderPermissionsForbidden

type UpdateFolderPermissionsForbidden struct {
	Payload *models.ErrorResponseBody
}

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

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewUpdateFolderPermissionsForbidden

func NewUpdateFolderPermissionsForbidden() *UpdateFolderPermissionsForbidden

NewUpdateFolderPermissionsForbidden creates a UpdateFolderPermissionsForbidden with default headers values

func (*UpdateFolderPermissionsForbidden) Code

Code gets the status code for the update folder permissions forbidden response

func (*UpdateFolderPermissionsForbidden) Error

func (*UpdateFolderPermissionsForbidden) GetPayload

func (*UpdateFolderPermissionsForbidden) IsClientError

func (o *UpdateFolderPermissionsForbidden) IsClientError() bool

IsClientError returns true when this update folder permissions forbidden response has a 4xx status code

func (*UpdateFolderPermissionsForbidden) IsCode

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

IsCode returns true when this update folder permissions forbidden response a status code equal to that given

func (*UpdateFolderPermissionsForbidden) IsRedirect

func (o *UpdateFolderPermissionsForbidden) IsRedirect() bool

IsRedirect returns true when this update folder permissions forbidden response has a 3xx status code

func (*UpdateFolderPermissionsForbidden) IsServerError

func (o *UpdateFolderPermissionsForbidden) IsServerError() bool

IsServerError returns true when this update folder permissions forbidden response has a 5xx status code

func (*UpdateFolderPermissionsForbidden) IsSuccess

func (o *UpdateFolderPermissionsForbidden) IsSuccess() bool

IsSuccess returns true when this update folder permissions forbidden response has a 2xx status code

func (*UpdateFolderPermissionsForbidden) String

type UpdateFolderPermissionsInternalServerError

type UpdateFolderPermissionsInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewUpdateFolderPermissionsInternalServerError

func NewUpdateFolderPermissionsInternalServerError() *UpdateFolderPermissionsInternalServerError

NewUpdateFolderPermissionsInternalServerError creates a UpdateFolderPermissionsInternalServerError with default headers values

func (*UpdateFolderPermissionsInternalServerError) Code

Code gets the status code for the update folder permissions internal server error response

func (*UpdateFolderPermissionsInternalServerError) Error

func (*UpdateFolderPermissionsInternalServerError) GetPayload

func (*UpdateFolderPermissionsInternalServerError) IsClientError

IsClientError returns true when this update folder permissions internal server error response has a 4xx status code

func (*UpdateFolderPermissionsInternalServerError) IsCode

IsCode returns true when this update folder permissions internal server error response a status code equal to that given

func (*UpdateFolderPermissionsInternalServerError) IsRedirect

IsRedirect returns true when this update folder permissions internal server error response has a 3xx status code

func (*UpdateFolderPermissionsInternalServerError) IsServerError

IsServerError returns true when this update folder permissions internal server error response has a 5xx status code

func (*UpdateFolderPermissionsInternalServerError) IsSuccess

IsSuccess returns true when this update folder permissions internal server error response has a 2xx status code

func (*UpdateFolderPermissionsInternalServerError) String

type UpdateFolderPermissionsNotFound

type UpdateFolderPermissionsNotFound struct {
	Payload *models.ErrorResponseBody
}

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

NotFoundError is returned when the requested resource was not found.

func NewUpdateFolderPermissionsNotFound

func NewUpdateFolderPermissionsNotFound() *UpdateFolderPermissionsNotFound

NewUpdateFolderPermissionsNotFound creates a UpdateFolderPermissionsNotFound with default headers values

func (*UpdateFolderPermissionsNotFound) Code

Code gets the status code for the update folder permissions not found response

func (*UpdateFolderPermissionsNotFound) Error

func (*UpdateFolderPermissionsNotFound) GetPayload

func (*UpdateFolderPermissionsNotFound) IsClientError

func (o *UpdateFolderPermissionsNotFound) IsClientError() bool

IsClientError returns true when this update folder permissions not found response has a 4xx status code

func (*UpdateFolderPermissionsNotFound) IsCode

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

IsCode returns true when this update folder permissions not found response a status code equal to that given

func (*UpdateFolderPermissionsNotFound) IsRedirect

func (o *UpdateFolderPermissionsNotFound) IsRedirect() bool

IsRedirect returns true when this update folder permissions not found response has a 3xx status code

func (*UpdateFolderPermissionsNotFound) IsServerError

func (o *UpdateFolderPermissionsNotFound) IsServerError() bool

IsServerError returns true when this update folder permissions not found response has a 5xx status code

func (*UpdateFolderPermissionsNotFound) IsSuccess

func (o *UpdateFolderPermissionsNotFound) IsSuccess() bool

IsSuccess returns true when this update folder permissions not found response has a 2xx status code

func (*UpdateFolderPermissionsNotFound) String

type UpdateFolderPermissionsOK

type UpdateFolderPermissionsOK struct {
	Payload *models.SuccessResponseBody
}

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

An OKResponse is returned if the request was successful.

func NewUpdateFolderPermissionsOK

func NewUpdateFolderPermissionsOK() *UpdateFolderPermissionsOK

NewUpdateFolderPermissionsOK creates a UpdateFolderPermissionsOK with default headers values

func (*UpdateFolderPermissionsOK) Code

func (o *UpdateFolderPermissionsOK) Code() int

Code gets the status code for the update folder permissions Ok response

func (*UpdateFolderPermissionsOK) Error

func (o *UpdateFolderPermissionsOK) Error() string

func (*UpdateFolderPermissionsOK) GetPayload

func (*UpdateFolderPermissionsOK) IsClientError

func (o *UpdateFolderPermissionsOK) IsClientError() bool

IsClientError returns true when this update folder permissions Ok response has a 4xx status code

func (*UpdateFolderPermissionsOK) IsCode

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

IsCode returns true when this update folder permissions Ok response a status code equal to that given

func (*UpdateFolderPermissionsOK) IsRedirect

func (o *UpdateFolderPermissionsOK) IsRedirect() bool

IsRedirect returns true when this update folder permissions Ok response has a 3xx status code

func (*UpdateFolderPermissionsOK) IsServerError

func (o *UpdateFolderPermissionsOK) IsServerError() bool

IsServerError returns true when this update folder permissions Ok response has a 5xx status code

func (*UpdateFolderPermissionsOK) IsSuccess

func (o *UpdateFolderPermissionsOK) IsSuccess() bool

IsSuccess returns true when this update folder permissions Ok response has a 2xx status code

func (*UpdateFolderPermissionsOK) String

func (o *UpdateFolderPermissionsOK) String() string

type UpdateFolderPermissionsParams

type UpdateFolderPermissionsParams struct {

	// Body.
	Body *models.UpdateDashboardACLCommand

	// FolderUID.
	FolderUID string

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

UpdateFolderPermissionsParams contains all the parameters to send to the API endpoint

for the update folder permissions operation.

Typically these are written to a http.Request.

func NewUpdateFolderPermissionsParams

func NewUpdateFolderPermissionsParams() *UpdateFolderPermissionsParams

NewUpdateFolderPermissionsParams creates a new UpdateFolderPermissionsParams 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 NewUpdateFolderPermissionsParamsWithContext

func NewUpdateFolderPermissionsParamsWithContext(ctx context.Context) *UpdateFolderPermissionsParams

NewUpdateFolderPermissionsParamsWithContext creates a new UpdateFolderPermissionsParams object with the ability to set a context for a request.

func NewUpdateFolderPermissionsParamsWithHTTPClient

func NewUpdateFolderPermissionsParamsWithHTTPClient(client *http.Client) *UpdateFolderPermissionsParams

NewUpdateFolderPermissionsParamsWithHTTPClient creates a new UpdateFolderPermissionsParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateFolderPermissionsParamsWithTimeout

func NewUpdateFolderPermissionsParamsWithTimeout(timeout time.Duration) *UpdateFolderPermissionsParams

NewUpdateFolderPermissionsParamsWithTimeout creates a new UpdateFolderPermissionsParams object with the ability to set a timeout on a request.

func (*UpdateFolderPermissionsParams) SetBody

SetBody adds the body to the update folder permissions params

func (*UpdateFolderPermissionsParams) SetContext

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

SetContext adds the context to the update folder permissions params

func (*UpdateFolderPermissionsParams) SetDefaults

func (o *UpdateFolderPermissionsParams) SetDefaults()

SetDefaults hydrates default values in the update folder permissions params (not the query body).

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

func (*UpdateFolderPermissionsParams) SetFolderUID

func (o *UpdateFolderPermissionsParams) SetFolderUID(folderUID string)

SetFolderUID adds the folderUid to the update folder permissions params

func (*UpdateFolderPermissionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update folder permissions params

func (*UpdateFolderPermissionsParams) SetTimeout

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

SetTimeout adds the timeout to the update folder permissions params

func (*UpdateFolderPermissionsParams) WithBody

WithBody adds the body to the update folder permissions params

func (*UpdateFolderPermissionsParams) WithContext

WithContext adds the context to the update folder permissions params

func (*UpdateFolderPermissionsParams) WithDefaults

WithDefaults hydrates default values in the update folder permissions params (not the query body).

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

func (*UpdateFolderPermissionsParams) WithFolderUID

WithFolderUID adds the folderUID to the update folder permissions params

func (*UpdateFolderPermissionsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update folder permissions params

func (*UpdateFolderPermissionsParams) WithTimeout

WithTimeout adds the timeout to the update folder permissions params

func (*UpdateFolderPermissionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateFolderPermissionsReader

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

UpdateFolderPermissionsReader is a Reader for the UpdateFolderPermissions structure.

func (*UpdateFolderPermissionsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateFolderPermissionsUnauthorized

type UpdateFolderPermissionsUnauthorized struct {
	Payload *models.ErrorResponseBody
}

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

UnauthorizedError is returned when the request is not authenticated.

func NewUpdateFolderPermissionsUnauthorized

func NewUpdateFolderPermissionsUnauthorized() *UpdateFolderPermissionsUnauthorized

NewUpdateFolderPermissionsUnauthorized creates a UpdateFolderPermissionsUnauthorized with default headers values

func (*UpdateFolderPermissionsUnauthorized) Code

Code gets the status code for the update folder permissions unauthorized response

func (*UpdateFolderPermissionsUnauthorized) Error

func (*UpdateFolderPermissionsUnauthorized) GetPayload

func (*UpdateFolderPermissionsUnauthorized) IsClientError

func (o *UpdateFolderPermissionsUnauthorized) IsClientError() bool

IsClientError returns true when this update folder permissions unauthorized response has a 4xx status code

func (*UpdateFolderPermissionsUnauthorized) IsCode

IsCode returns true when this update folder permissions unauthorized response a status code equal to that given

func (*UpdateFolderPermissionsUnauthorized) IsRedirect

func (o *UpdateFolderPermissionsUnauthorized) IsRedirect() bool

IsRedirect returns true when this update folder permissions unauthorized response has a 3xx status code

func (*UpdateFolderPermissionsUnauthorized) IsServerError

func (o *UpdateFolderPermissionsUnauthorized) IsServerError() bool

IsServerError returns true when this update folder permissions unauthorized response has a 5xx status code

func (*UpdateFolderPermissionsUnauthorized) IsSuccess

IsSuccess returns true when this update folder permissions unauthorized response has a 2xx status code

func (*UpdateFolderPermissionsUnauthorized) String

Jump to

Keyboard shortcuts

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