acl_service

package
v3.0.3-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 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 acl service API

func (*Client) DeleteACL

func (a *Client) DeleteACL(params *DeleteACLParams, opts ...ClientOption) (*DeleteACLOK, error)

DeleteACL deletes one or more a c ls

func (*Client) PutACL

func (a *Client) PutACL(params *PutACLParams, opts ...ClientOption) (*PutACLOK, error)

PutACL stores an ACL

func (*Client) SearchAcls

func (a *Client) SearchAcls(params *SearchAclsParams, opts ...ClientOption) (*SearchAclsOK, error)

SearchAcls searches acls

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 {
	DeleteACL(params *DeleteACLParams, opts ...ClientOption) (*DeleteACLOK, error)

	PutACL(params *PutACLParams, opts ...ClientOption) (*PutACLOK, error)

	SearchAcls(params *SearchAclsParams, opts ...ClientOption) (*SearchAclsOK, 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 acl service API client.

type DeleteACLForbidden

type DeleteACLForbidden struct {
	Payload *models.RestError
}
DeleteACLForbidden describes a response with status code 403, with default header values.

User has no permission to access this resource

func NewDeleteACLForbidden

func NewDeleteACLForbidden() *DeleteACLForbidden

NewDeleteACLForbidden creates a DeleteACLForbidden with default headers values

func (*DeleteACLForbidden) Error

func (o *DeleteACLForbidden) Error() string

func (*DeleteACLForbidden) GetPayload

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

type DeleteACLInternalServerError

type DeleteACLInternalServerError struct {
	Payload *models.RestError
}
DeleteACLInternalServerError describes a response with status code 500, with default header values.

An internal error occurred in the backend

func NewDeleteACLInternalServerError

func NewDeleteACLInternalServerError() *DeleteACLInternalServerError

NewDeleteACLInternalServerError creates a DeleteACLInternalServerError with default headers values

func (*DeleteACLInternalServerError) Error

func (*DeleteACLInternalServerError) GetPayload

type DeleteACLNotFound

type DeleteACLNotFound struct {
	Payload *models.RestError
}
DeleteACLNotFound describes a response with status code 404, with default header values.

Resource does not exist in the system

func NewDeleteACLNotFound

func NewDeleteACLNotFound() *DeleteACLNotFound

NewDeleteACLNotFound creates a DeleteACLNotFound with default headers values

func (*DeleteACLNotFound) Error

func (o *DeleteACLNotFound) Error() string

func (*DeleteACLNotFound) GetPayload

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

type DeleteACLOK

type DeleteACLOK struct {
	Payload *models.RestDeleteResponse
}
DeleteACLOK describes a response with status code 200, with default header values.

DeleteACLOK delete Acl o k

func NewDeleteACLOK

func NewDeleteACLOK() *DeleteACLOK

NewDeleteACLOK creates a DeleteACLOK with default headers values

func (*DeleteACLOK) Error

func (o *DeleteACLOK) Error() string

func (*DeleteACLOK) GetPayload

func (o *DeleteACLOK) GetPayload() *models.RestDeleteResponse

type DeleteACLParams

type DeleteACLParams struct {

	// Body.
	Body *models.IdmACL

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

DeleteACLParams contains all the parameters to send to the API endpoint

for the delete Acl operation.

Typically these are written to a http.Request.

func NewDeleteACLParams

func NewDeleteACLParams() *DeleteACLParams

NewDeleteACLParams creates a new DeleteACLParams 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 NewDeleteACLParamsWithContext

func NewDeleteACLParamsWithContext(ctx context.Context) *DeleteACLParams

NewDeleteACLParamsWithContext creates a new DeleteACLParams object with the ability to set a context for a request.

func NewDeleteACLParamsWithHTTPClient

func NewDeleteACLParamsWithHTTPClient(client *http.Client) *DeleteACLParams

NewDeleteACLParamsWithHTTPClient creates a new DeleteACLParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteACLParamsWithTimeout

func NewDeleteACLParamsWithTimeout(timeout time.Duration) *DeleteACLParams

NewDeleteACLParamsWithTimeout creates a new DeleteACLParams object with the ability to set a timeout on a request.

func (*DeleteACLParams) SetBody

func (o *DeleteACLParams) SetBody(body *models.IdmACL)

SetBody adds the body to the delete Acl params

func (*DeleteACLParams) SetContext

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

SetContext adds the context to the delete Acl params

func (*DeleteACLParams) SetDefaults

func (o *DeleteACLParams) SetDefaults()

SetDefaults hydrates default values in the delete Acl params (not the query body).

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

func (*DeleteACLParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete Acl params

func (*DeleteACLParams) SetTimeout

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

SetTimeout adds the timeout to the delete Acl params

func (*DeleteACLParams) WithBody

func (o *DeleteACLParams) WithBody(body *models.IdmACL) *DeleteACLParams

WithBody adds the body to the delete Acl params

func (*DeleteACLParams) WithContext

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

WithContext adds the context to the delete Acl params

func (*DeleteACLParams) WithDefaults

func (o *DeleteACLParams) WithDefaults() *DeleteACLParams

WithDefaults hydrates default values in the delete Acl params (not the query body).

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

func (*DeleteACLParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete Acl params

func (*DeleteACLParams) WithTimeout

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

WithTimeout adds the timeout to the delete Acl params

func (*DeleteACLParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteACLReader

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

DeleteACLReader is a Reader for the DeleteACL structure.

func (*DeleteACLReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteACLUnauthorized

type DeleteACLUnauthorized struct {
}
DeleteACLUnauthorized describes a response with status code 401, with default header values.

User is not authenticated

func NewDeleteACLUnauthorized

func NewDeleteACLUnauthorized() *DeleteACLUnauthorized

NewDeleteACLUnauthorized creates a DeleteACLUnauthorized with default headers values

func (*DeleteACLUnauthorized) Error

func (o *DeleteACLUnauthorized) Error() string

type PutACLForbidden

type PutACLForbidden struct {
	Payload *models.RestError
}
PutACLForbidden describes a response with status code 403, with default header values.

User has no permission to access this resource

func NewPutACLForbidden

func NewPutACLForbidden() *PutACLForbidden

NewPutACLForbidden creates a PutACLForbidden with default headers values

func (*PutACLForbidden) Error

func (o *PutACLForbidden) Error() string

func (*PutACLForbidden) GetPayload

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

type PutACLInternalServerError

type PutACLInternalServerError struct {
	Payload *models.RestError
}
PutACLInternalServerError describes a response with status code 500, with default header values.

An internal error occurred in the backend

func NewPutACLInternalServerError

func NewPutACLInternalServerError() *PutACLInternalServerError

NewPutACLInternalServerError creates a PutACLInternalServerError with default headers values

func (*PutACLInternalServerError) Error

func (o *PutACLInternalServerError) Error() string

func (*PutACLInternalServerError) GetPayload

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

type PutACLNotFound

type PutACLNotFound struct {
	Payload *models.RestError
}
PutACLNotFound describes a response with status code 404, with default header values.

Resource does not exist in the system

func NewPutACLNotFound

func NewPutACLNotFound() *PutACLNotFound

NewPutACLNotFound creates a PutACLNotFound with default headers values

func (*PutACLNotFound) Error

func (o *PutACLNotFound) Error() string

func (*PutACLNotFound) GetPayload

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

type PutACLOK

type PutACLOK struct {
	Payload *models.IdmACL
}
PutACLOK describes a response with status code 200, with default header values.

PutACLOK put Acl o k

func NewPutACLOK

func NewPutACLOK() *PutACLOK

NewPutACLOK creates a PutACLOK with default headers values

func (*PutACLOK) Error

func (o *PutACLOK) Error() string

func (*PutACLOK) GetPayload

func (o *PutACLOK) GetPayload() *models.IdmACL

type PutACLParams

type PutACLParams struct {

	// Body.
	Body *models.IdmACL

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

PutACLParams contains all the parameters to send to the API endpoint

for the put Acl operation.

Typically these are written to a http.Request.

func NewPutACLParams

func NewPutACLParams() *PutACLParams

NewPutACLParams creates a new PutACLParams 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 NewPutACLParamsWithContext

func NewPutACLParamsWithContext(ctx context.Context) *PutACLParams

NewPutACLParamsWithContext creates a new PutACLParams object with the ability to set a context for a request.

func NewPutACLParamsWithHTTPClient

func NewPutACLParamsWithHTTPClient(client *http.Client) *PutACLParams

NewPutACLParamsWithHTTPClient creates a new PutACLParams object with the ability to set a custom HTTPClient for a request.

func NewPutACLParamsWithTimeout

func NewPutACLParamsWithTimeout(timeout time.Duration) *PutACLParams

NewPutACLParamsWithTimeout creates a new PutACLParams object with the ability to set a timeout on a request.

func (*PutACLParams) SetBody

func (o *PutACLParams) SetBody(body *models.IdmACL)

SetBody adds the body to the put Acl params

func (*PutACLParams) SetContext

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

SetContext adds the context to the put Acl params

func (*PutACLParams) SetDefaults

func (o *PutACLParams) SetDefaults()

SetDefaults hydrates default values in the put Acl params (not the query body).

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

func (*PutACLParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the put Acl params

func (*PutACLParams) SetTimeout

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

SetTimeout adds the timeout to the put Acl params

func (*PutACLParams) WithBody

func (o *PutACLParams) WithBody(body *models.IdmACL) *PutACLParams

WithBody adds the body to the put Acl params

func (*PutACLParams) WithContext

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

WithContext adds the context to the put Acl params

func (*PutACLParams) WithDefaults

func (o *PutACLParams) WithDefaults() *PutACLParams

WithDefaults hydrates default values in the put Acl params (not the query body).

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

func (*PutACLParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the put Acl params

func (*PutACLParams) WithTimeout

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

WithTimeout adds the timeout to the put Acl params

func (*PutACLParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PutACLReader

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

PutACLReader is a Reader for the PutACL structure.

func (*PutACLReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PutACLUnauthorized

type PutACLUnauthorized struct {
}
PutACLUnauthorized describes a response with status code 401, with default header values.

User is not authenticated

func NewPutACLUnauthorized

func NewPutACLUnauthorized() *PutACLUnauthorized

NewPutACLUnauthorized creates a PutACLUnauthorized with default headers values

func (*PutACLUnauthorized) Error

func (o *PutACLUnauthorized) Error() string

type SearchAclsForbidden

type SearchAclsForbidden struct {
	Payload *models.RestError
}
SearchAclsForbidden describes a response with status code 403, with default header values.

User has no permission to access this resource

func NewSearchAclsForbidden

func NewSearchAclsForbidden() *SearchAclsForbidden

NewSearchAclsForbidden creates a SearchAclsForbidden with default headers values

func (*SearchAclsForbidden) Error

func (o *SearchAclsForbidden) Error() string

func (*SearchAclsForbidden) GetPayload

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

type SearchAclsInternalServerError

type SearchAclsInternalServerError struct {
	Payload *models.RestError
}
SearchAclsInternalServerError describes a response with status code 500, with default header values.

An internal error occurred in the backend

func NewSearchAclsInternalServerError

func NewSearchAclsInternalServerError() *SearchAclsInternalServerError

NewSearchAclsInternalServerError creates a SearchAclsInternalServerError with default headers values

func (*SearchAclsInternalServerError) Error

func (*SearchAclsInternalServerError) GetPayload

type SearchAclsNotFound

type SearchAclsNotFound struct {
	Payload *models.RestError
}
SearchAclsNotFound describes a response with status code 404, with default header values.

Resource does not exist in the system

func NewSearchAclsNotFound

func NewSearchAclsNotFound() *SearchAclsNotFound

NewSearchAclsNotFound creates a SearchAclsNotFound with default headers values

func (*SearchAclsNotFound) Error

func (o *SearchAclsNotFound) Error() string

func (*SearchAclsNotFound) GetPayload

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

type SearchAclsOK

type SearchAclsOK struct {
	Payload *models.RestACLCollection
}
SearchAclsOK describes a response with status code 200, with default header values.

SearchAclsOK search acls o k

func NewSearchAclsOK

func NewSearchAclsOK() *SearchAclsOK

NewSearchAclsOK creates a SearchAclsOK with default headers values

func (*SearchAclsOK) Error

func (o *SearchAclsOK) Error() string

func (*SearchAclsOK) GetPayload

func (o *SearchAclsOK) GetPayload() *models.RestACLCollection

type SearchAclsParams

type SearchAclsParams struct {

	// Body.
	Body *models.RestSearchACLRequest

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

SearchAclsParams contains all the parameters to send to the API endpoint

for the search acls operation.

Typically these are written to a http.Request.

func NewSearchAclsParams

func NewSearchAclsParams() *SearchAclsParams

NewSearchAclsParams creates a new SearchAclsParams 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 NewSearchAclsParamsWithContext

func NewSearchAclsParamsWithContext(ctx context.Context) *SearchAclsParams

NewSearchAclsParamsWithContext creates a new SearchAclsParams object with the ability to set a context for a request.

func NewSearchAclsParamsWithHTTPClient

func NewSearchAclsParamsWithHTTPClient(client *http.Client) *SearchAclsParams

NewSearchAclsParamsWithHTTPClient creates a new SearchAclsParams object with the ability to set a custom HTTPClient for a request.

func NewSearchAclsParamsWithTimeout

func NewSearchAclsParamsWithTimeout(timeout time.Duration) *SearchAclsParams

NewSearchAclsParamsWithTimeout creates a new SearchAclsParams object with the ability to set a timeout on a request.

func (*SearchAclsParams) SetBody

func (o *SearchAclsParams) SetBody(body *models.RestSearchACLRequest)

SetBody adds the body to the search acls params

func (*SearchAclsParams) SetContext

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

SetContext adds the context to the search acls params

func (*SearchAclsParams) SetDefaults

func (o *SearchAclsParams) SetDefaults()

SetDefaults hydrates default values in the search acls params (not the query body).

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

func (*SearchAclsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the search acls params

func (*SearchAclsParams) SetTimeout

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

SetTimeout adds the timeout to the search acls params

func (*SearchAclsParams) WithBody

WithBody adds the body to the search acls params

func (*SearchAclsParams) WithContext

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

WithContext adds the context to the search acls params

func (*SearchAclsParams) WithDefaults

func (o *SearchAclsParams) WithDefaults() *SearchAclsParams

WithDefaults hydrates default values in the search acls params (not the query body).

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

func (*SearchAclsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the search acls params

func (*SearchAclsParams) WithTimeout

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

WithTimeout adds the timeout to the search acls params

func (*SearchAclsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SearchAclsReader

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

SearchAclsReader is a Reader for the SearchAcls structure.

func (*SearchAclsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SearchAclsUnauthorized

type SearchAclsUnauthorized struct {
}
SearchAclsUnauthorized describes a response with status code 401, with default header values.

User is not authenticated

func NewSearchAclsUnauthorized

func NewSearchAclsUnauthorized() *SearchAclsUnauthorized

NewSearchAclsUnauthorized creates a SearchAclsUnauthorized with default headers values

func (*SearchAclsUnauthorized) Error

func (o *SearchAclsUnauthorized) Error() string

Jump to

Keyboard shortcuts

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