resource_controls

package
v2.29.2 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2025 License: MIT Imports: 12 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 resource controls API

func (*Client) ResourceControlCreate

func (a *Client) ResourceControlCreate(params *ResourceControlCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ResourceControlCreateOK, error)
ResourceControlCreate creates a new resource control

Create a new resource control to restrict access to a Docker resource.

**Access policy**: administrator

func (*Client) ResourceControlDelete

func (a *Client) ResourceControlDelete(params *ResourceControlDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ResourceControlDeleteNoContent, error)
ResourceControlDelete removes a resource control

Remove a resource control.

**Access policy**: administrator

func (*Client) ResourceControlUpdate

func (a *Client) ResourceControlUpdate(params *ResourceControlUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ResourceControlUpdateOK, error)
ResourceControlUpdate updates a resource control

Update a resource control

**Access policy**: authenticated

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 may be used to customize the behavior of Client methods.

type ClientService

type ClientService interface {
	ResourceControlCreate(params *ResourceControlCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ResourceControlCreateOK, error)

	ResourceControlDelete(params *ResourceControlDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ResourceControlDeleteNoContent, error)

	ResourceControlUpdate(params *ResourceControlUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ResourceControlUpdateOK, 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 resource controls API client.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new resource controls API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new resource controls API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type ResourceControlCreateBadRequest

type ResourceControlCreateBadRequest struct {
}

ResourceControlCreateBadRequest describes a response with status code 400, with default header values.

Invalid request

func NewResourceControlCreateBadRequest

func NewResourceControlCreateBadRequest() *ResourceControlCreateBadRequest

NewResourceControlCreateBadRequest creates a ResourceControlCreateBadRequest with default headers values

func (*ResourceControlCreateBadRequest) Code

Code gets the status code for the resource control create bad request response

func (*ResourceControlCreateBadRequest) Error

func (*ResourceControlCreateBadRequest) IsClientError

func (o *ResourceControlCreateBadRequest) IsClientError() bool

IsClientError returns true when this resource control create bad request response has a 4xx status code

func (*ResourceControlCreateBadRequest) IsCode

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

IsCode returns true when this resource control create bad request response a status code equal to that given

func (*ResourceControlCreateBadRequest) IsRedirect

func (o *ResourceControlCreateBadRequest) IsRedirect() bool

IsRedirect returns true when this resource control create bad request response has a 3xx status code

func (*ResourceControlCreateBadRequest) IsServerError

func (o *ResourceControlCreateBadRequest) IsServerError() bool

IsServerError returns true when this resource control create bad request response has a 5xx status code

func (*ResourceControlCreateBadRequest) IsSuccess

func (o *ResourceControlCreateBadRequest) IsSuccess() bool

IsSuccess returns true when this resource control create bad request response has a 2xx status code

func (*ResourceControlCreateBadRequest) String

type ResourceControlCreateConflict

type ResourceControlCreateConflict struct {
}

ResourceControlCreateConflict describes a response with status code 409, with default header values.

A resource control is already associated to this resource

func NewResourceControlCreateConflict

func NewResourceControlCreateConflict() *ResourceControlCreateConflict

NewResourceControlCreateConflict creates a ResourceControlCreateConflict with default headers values

func (*ResourceControlCreateConflict) Code

Code gets the status code for the resource control create conflict response

func (*ResourceControlCreateConflict) Error

func (*ResourceControlCreateConflict) IsClientError

func (o *ResourceControlCreateConflict) IsClientError() bool

IsClientError returns true when this resource control create conflict response has a 4xx status code

func (*ResourceControlCreateConflict) IsCode

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

IsCode returns true when this resource control create conflict response a status code equal to that given

func (*ResourceControlCreateConflict) IsRedirect

func (o *ResourceControlCreateConflict) IsRedirect() bool

IsRedirect returns true when this resource control create conflict response has a 3xx status code

func (*ResourceControlCreateConflict) IsServerError

func (o *ResourceControlCreateConflict) IsServerError() bool

IsServerError returns true when this resource control create conflict response has a 5xx status code

func (*ResourceControlCreateConflict) IsSuccess

func (o *ResourceControlCreateConflict) IsSuccess() bool

IsSuccess returns true when this resource control create conflict response has a 2xx status code

func (*ResourceControlCreateConflict) String

type ResourceControlCreateInternalServerError

type ResourceControlCreateInternalServerError struct {
}

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

Server error

func NewResourceControlCreateInternalServerError

func NewResourceControlCreateInternalServerError() *ResourceControlCreateInternalServerError

NewResourceControlCreateInternalServerError creates a ResourceControlCreateInternalServerError with default headers values

func (*ResourceControlCreateInternalServerError) Code

Code gets the status code for the resource control create internal server error response

func (*ResourceControlCreateInternalServerError) Error

func (*ResourceControlCreateInternalServerError) IsClientError

IsClientError returns true when this resource control create internal server error response has a 4xx status code

func (*ResourceControlCreateInternalServerError) IsCode

IsCode returns true when this resource control create internal server error response a status code equal to that given

func (*ResourceControlCreateInternalServerError) IsRedirect

IsRedirect returns true when this resource control create internal server error response has a 3xx status code

func (*ResourceControlCreateInternalServerError) IsServerError

IsServerError returns true when this resource control create internal server error response has a 5xx status code

func (*ResourceControlCreateInternalServerError) IsSuccess

IsSuccess returns true when this resource control create internal server error response has a 2xx status code

func (*ResourceControlCreateInternalServerError) String

type ResourceControlCreateOK

type ResourceControlCreateOK struct {
	Payload *models.PortainerResourceControl
}

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

Success

func NewResourceControlCreateOK

func NewResourceControlCreateOK() *ResourceControlCreateOK

NewResourceControlCreateOK creates a ResourceControlCreateOK with default headers values

func (*ResourceControlCreateOK) Code

func (o *ResourceControlCreateOK) Code() int

Code gets the status code for the resource control create o k response

func (*ResourceControlCreateOK) Error

func (o *ResourceControlCreateOK) Error() string

func (*ResourceControlCreateOK) GetPayload

func (*ResourceControlCreateOK) IsClientError

func (o *ResourceControlCreateOK) IsClientError() bool

IsClientError returns true when this resource control create o k response has a 4xx status code

func (*ResourceControlCreateOK) IsCode

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

IsCode returns true when this resource control create o k response a status code equal to that given

func (*ResourceControlCreateOK) IsRedirect

func (o *ResourceControlCreateOK) IsRedirect() bool

IsRedirect returns true when this resource control create o k response has a 3xx status code

func (*ResourceControlCreateOK) IsServerError

func (o *ResourceControlCreateOK) IsServerError() bool

IsServerError returns true when this resource control create o k response has a 5xx status code

func (*ResourceControlCreateOK) IsSuccess

func (o *ResourceControlCreateOK) IsSuccess() bool

IsSuccess returns true when this resource control create o k response has a 2xx status code

func (*ResourceControlCreateOK) String

func (o *ResourceControlCreateOK) String() string

type ResourceControlCreateParams

type ResourceControlCreateParams struct {

	/* Body.

	   Resource control details
	*/
	Body *models.ResourcecontrolsResourceControlCreatePayload

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

ResourceControlCreateParams contains all the parameters to send to the API endpoint

for the resource control create operation.

Typically these are written to a http.Request.

func NewResourceControlCreateParams

func NewResourceControlCreateParams() *ResourceControlCreateParams

NewResourceControlCreateParams creates a new ResourceControlCreateParams 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 NewResourceControlCreateParamsWithContext

func NewResourceControlCreateParamsWithContext(ctx context.Context) *ResourceControlCreateParams

NewResourceControlCreateParamsWithContext creates a new ResourceControlCreateParams object with the ability to set a context for a request.

func NewResourceControlCreateParamsWithHTTPClient

func NewResourceControlCreateParamsWithHTTPClient(client *http.Client) *ResourceControlCreateParams

NewResourceControlCreateParamsWithHTTPClient creates a new ResourceControlCreateParams object with the ability to set a custom HTTPClient for a request.

func NewResourceControlCreateParamsWithTimeout

func NewResourceControlCreateParamsWithTimeout(timeout time.Duration) *ResourceControlCreateParams

NewResourceControlCreateParamsWithTimeout creates a new ResourceControlCreateParams object with the ability to set a timeout on a request.

func (*ResourceControlCreateParams) SetBody

SetBody adds the body to the resource control create params

func (*ResourceControlCreateParams) SetContext

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

SetContext adds the context to the resource control create params

func (*ResourceControlCreateParams) SetDefaults

func (o *ResourceControlCreateParams) SetDefaults()

SetDefaults hydrates default values in the resource control create params (not the query body).

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

func (*ResourceControlCreateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the resource control create params

func (*ResourceControlCreateParams) SetTimeout

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

SetTimeout adds the timeout to the resource control create params

func (*ResourceControlCreateParams) WithBody

WithBody adds the body to the resource control create params

func (*ResourceControlCreateParams) WithContext

WithContext adds the context to the resource control create params

func (*ResourceControlCreateParams) WithDefaults

WithDefaults hydrates default values in the resource control create params (not the query body).

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

func (*ResourceControlCreateParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the resource control create params

func (*ResourceControlCreateParams) WithTimeout

WithTimeout adds the timeout to the resource control create params

func (*ResourceControlCreateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ResourceControlCreateReader

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

ResourceControlCreateReader is a Reader for the ResourceControlCreate structure.

func (*ResourceControlCreateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ResourceControlDeleteBadRequest

type ResourceControlDeleteBadRequest struct {
}

ResourceControlDeleteBadRequest describes a response with status code 400, with default header values.

Invalid request

func NewResourceControlDeleteBadRequest

func NewResourceControlDeleteBadRequest() *ResourceControlDeleteBadRequest

NewResourceControlDeleteBadRequest creates a ResourceControlDeleteBadRequest with default headers values

func (*ResourceControlDeleteBadRequest) Code

Code gets the status code for the resource control delete bad request response

func (*ResourceControlDeleteBadRequest) Error

func (*ResourceControlDeleteBadRequest) IsClientError

func (o *ResourceControlDeleteBadRequest) IsClientError() bool

IsClientError returns true when this resource control delete bad request response has a 4xx status code

func (*ResourceControlDeleteBadRequest) IsCode

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

IsCode returns true when this resource control delete bad request response a status code equal to that given

func (*ResourceControlDeleteBadRequest) IsRedirect

func (o *ResourceControlDeleteBadRequest) IsRedirect() bool

IsRedirect returns true when this resource control delete bad request response has a 3xx status code

func (*ResourceControlDeleteBadRequest) IsServerError

func (o *ResourceControlDeleteBadRequest) IsServerError() bool

IsServerError returns true when this resource control delete bad request response has a 5xx status code

func (*ResourceControlDeleteBadRequest) IsSuccess

func (o *ResourceControlDeleteBadRequest) IsSuccess() bool

IsSuccess returns true when this resource control delete bad request response has a 2xx status code

func (*ResourceControlDeleteBadRequest) String

type ResourceControlDeleteInternalServerError

type ResourceControlDeleteInternalServerError struct {
}

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

Server error

func NewResourceControlDeleteInternalServerError

func NewResourceControlDeleteInternalServerError() *ResourceControlDeleteInternalServerError

NewResourceControlDeleteInternalServerError creates a ResourceControlDeleteInternalServerError with default headers values

func (*ResourceControlDeleteInternalServerError) Code

Code gets the status code for the resource control delete internal server error response

func (*ResourceControlDeleteInternalServerError) Error

func (*ResourceControlDeleteInternalServerError) IsClientError

IsClientError returns true when this resource control delete internal server error response has a 4xx status code

func (*ResourceControlDeleteInternalServerError) IsCode

IsCode returns true when this resource control delete internal server error response a status code equal to that given

func (*ResourceControlDeleteInternalServerError) IsRedirect

IsRedirect returns true when this resource control delete internal server error response has a 3xx status code

func (*ResourceControlDeleteInternalServerError) IsServerError

IsServerError returns true when this resource control delete internal server error response has a 5xx status code

func (*ResourceControlDeleteInternalServerError) IsSuccess

IsSuccess returns true when this resource control delete internal server error response has a 2xx status code

func (*ResourceControlDeleteInternalServerError) String

type ResourceControlDeleteNoContent

type ResourceControlDeleteNoContent struct {
}

ResourceControlDeleteNoContent describes a response with status code 204, with default header values.

Success

func NewResourceControlDeleteNoContent

func NewResourceControlDeleteNoContent() *ResourceControlDeleteNoContent

NewResourceControlDeleteNoContent creates a ResourceControlDeleteNoContent with default headers values

func (*ResourceControlDeleteNoContent) Code

Code gets the status code for the resource control delete no content response

func (*ResourceControlDeleteNoContent) Error

func (*ResourceControlDeleteNoContent) IsClientError

func (o *ResourceControlDeleteNoContent) IsClientError() bool

IsClientError returns true when this resource control delete no content response has a 4xx status code

func (*ResourceControlDeleteNoContent) IsCode

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

IsCode returns true when this resource control delete no content response a status code equal to that given

func (*ResourceControlDeleteNoContent) IsRedirect

func (o *ResourceControlDeleteNoContent) IsRedirect() bool

IsRedirect returns true when this resource control delete no content response has a 3xx status code

func (*ResourceControlDeleteNoContent) IsServerError

func (o *ResourceControlDeleteNoContent) IsServerError() bool

IsServerError returns true when this resource control delete no content response has a 5xx status code

func (*ResourceControlDeleteNoContent) IsSuccess

func (o *ResourceControlDeleteNoContent) IsSuccess() bool

IsSuccess returns true when this resource control delete no content response has a 2xx status code

func (*ResourceControlDeleteNoContent) String

type ResourceControlDeleteNotFound

type ResourceControlDeleteNotFound struct {
}

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

Resource control not found

func NewResourceControlDeleteNotFound

func NewResourceControlDeleteNotFound() *ResourceControlDeleteNotFound

NewResourceControlDeleteNotFound creates a ResourceControlDeleteNotFound with default headers values

func (*ResourceControlDeleteNotFound) Code

Code gets the status code for the resource control delete not found response

func (*ResourceControlDeleteNotFound) Error

func (*ResourceControlDeleteNotFound) IsClientError

func (o *ResourceControlDeleteNotFound) IsClientError() bool

IsClientError returns true when this resource control delete not found response has a 4xx status code

func (*ResourceControlDeleteNotFound) IsCode

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

IsCode returns true when this resource control delete not found response a status code equal to that given

func (*ResourceControlDeleteNotFound) IsRedirect

func (o *ResourceControlDeleteNotFound) IsRedirect() bool

IsRedirect returns true when this resource control delete not found response has a 3xx status code

func (*ResourceControlDeleteNotFound) IsServerError

func (o *ResourceControlDeleteNotFound) IsServerError() bool

IsServerError returns true when this resource control delete not found response has a 5xx status code

func (*ResourceControlDeleteNotFound) IsSuccess

func (o *ResourceControlDeleteNotFound) IsSuccess() bool

IsSuccess returns true when this resource control delete not found response has a 2xx status code

func (*ResourceControlDeleteNotFound) String

type ResourceControlDeleteParams

type ResourceControlDeleteParams struct {

	/* ID.

	   Resource control identifier
	*/
	ID int64

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

ResourceControlDeleteParams contains all the parameters to send to the API endpoint

for the resource control delete operation.

Typically these are written to a http.Request.

func NewResourceControlDeleteParams

func NewResourceControlDeleteParams() *ResourceControlDeleteParams

NewResourceControlDeleteParams creates a new ResourceControlDeleteParams 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 NewResourceControlDeleteParamsWithContext

func NewResourceControlDeleteParamsWithContext(ctx context.Context) *ResourceControlDeleteParams

NewResourceControlDeleteParamsWithContext creates a new ResourceControlDeleteParams object with the ability to set a context for a request.

func NewResourceControlDeleteParamsWithHTTPClient

func NewResourceControlDeleteParamsWithHTTPClient(client *http.Client) *ResourceControlDeleteParams

NewResourceControlDeleteParamsWithHTTPClient creates a new ResourceControlDeleteParams object with the ability to set a custom HTTPClient for a request.

func NewResourceControlDeleteParamsWithTimeout

func NewResourceControlDeleteParamsWithTimeout(timeout time.Duration) *ResourceControlDeleteParams

NewResourceControlDeleteParamsWithTimeout creates a new ResourceControlDeleteParams object with the ability to set a timeout on a request.

func (*ResourceControlDeleteParams) SetContext

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

SetContext adds the context to the resource control delete params

func (*ResourceControlDeleteParams) SetDefaults

func (o *ResourceControlDeleteParams) SetDefaults()

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

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

func (*ResourceControlDeleteParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the resource control delete params

func (*ResourceControlDeleteParams) SetID

func (o *ResourceControlDeleteParams) SetID(id int64)

SetID adds the id to the resource control delete params

func (*ResourceControlDeleteParams) SetTimeout

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

SetTimeout adds the timeout to the resource control delete params

func (*ResourceControlDeleteParams) WithContext

WithContext adds the context to the resource control delete params

func (*ResourceControlDeleteParams) WithDefaults

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

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

func (*ResourceControlDeleteParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the resource control delete params

func (*ResourceControlDeleteParams) WithID

WithID adds the id to the resource control delete params

func (*ResourceControlDeleteParams) WithTimeout

WithTimeout adds the timeout to the resource control delete params

func (*ResourceControlDeleteParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ResourceControlDeleteReader

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

ResourceControlDeleteReader is a Reader for the ResourceControlDelete structure.

func (*ResourceControlDeleteReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ResourceControlUpdateBadRequest

type ResourceControlUpdateBadRequest struct {
}

ResourceControlUpdateBadRequest describes a response with status code 400, with default header values.

Invalid request

func NewResourceControlUpdateBadRequest

func NewResourceControlUpdateBadRequest() *ResourceControlUpdateBadRequest

NewResourceControlUpdateBadRequest creates a ResourceControlUpdateBadRequest with default headers values

func (*ResourceControlUpdateBadRequest) Code

Code gets the status code for the resource control update bad request response

func (*ResourceControlUpdateBadRequest) Error

func (*ResourceControlUpdateBadRequest) IsClientError

func (o *ResourceControlUpdateBadRequest) IsClientError() bool

IsClientError returns true when this resource control update bad request response has a 4xx status code

func (*ResourceControlUpdateBadRequest) IsCode

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

IsCode returns true when this resource control update bad request response a status code equal to that given

func (*ResourceControlUpdateBadRequest) IsRedirect

func (o *ResourceControlUpdateBadRequest) IsRedirect() bool

IsRedirect returns true when this resource control update bad request response has a 3xx status code

func (*ResourceControlUpdateBadRequest) IsServerError

func (o *ResourceControlUpdateBadRequest) IsServerError() bool

IsServerError returns true when this resource control update bad request response has a 5xx status code

func (*ResourceControlUpdateBadRequest) IsSuccess

func (o *ResourceControlUpdateBadRequest) IsSuccess() bool

IsSuccess returns true when this resource control update bad request response has a 2xx status code

func (*ResourceControlUpdateBadRequest) String

type ResourceControlUpdateForbidden

type ResourceControlUpdateForbidden struct {
}

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

Unauthorized

func NewResourceControlUpdateForbidden

func NewResourceControlUpdateForbidden() *ResourceControlUpdateForbidden

NewResourceControlUpdateForbidden creates a ResourceControlUpdateForbidden with default headers values

func (*ResourceControlUpdateForbidden) Code

Code gets the status code for the resource control update forbidden response

func (*ResourceControlUpdateForbidden) Error

func (*ResourceControlUpdateForbidden) IsClientError

func (o *ResourceControlUpdateForbidden) IsClientError() bool

IsClientError returns true when this resource control update forbidden response has a 4xx status code

func (*ResourceControlUpdateForbidden) IsCode

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

IsCode returns true when this resource control update forbidden response a status code equal to that given

func (*ResourceControlUpdateForbidden) IsRedirect

func (o *ResourceControlUpdateForbidden) IsRedirect() bool

IsRedirect returns true when this resource control update forbidden response has a 3xx status code

func (*ResourceControlUpdateForbidden) IsServerError

func (o *ResourceControlUpdateForbidden) IsServerError() bool

IsServerError returns true when this resource control update forbidden response has a 5xx status code

func (*ResourceControlUpdateForbidden) IsSuccess

func (o *ResourceControlUpdateForbidden) IsSuccess() bool

IsSuccess returns true when this resource control update forbidden response has a 2xx status code

func (*ResourceControlUpdateForbidden) String

type ResourceControlUpdateInternalServerError

type ResourceControlUpdateInternalServerError struct {
}

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

Server error

func NewResourceControlUpdateInternalServerError

func NewResourceControlUpdateInternalServerError() *ResourceControlUpdateInternalServerError

NewResourceControlUpdateInternalServerError creates a ResourceControlUpdateInternalServerError with default headers values

func (*ResourceControlUpdateInternalServerError) Code

Code gets the status code for the resource control update internal server error response

func (*ResourceControlUpdateInternalServerError) Error

func (*ResourceControlUpdateInternalServerError) IsClientError

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

func (*ResourceControlUpdateInternalServerError) IsCode

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

func (*ResourceControlUpdateInternalServerError) IsRedirect

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

func (*ResourceControlUpdateInternalServerError) IsServerError

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

func (*ResourceControlUpdateInternalServerError) IsSuccess

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

func (*ResourceControlUpdateInternalServerError) String

type ResourceControlUpdateNotFound

type ResourceControlUpdateNotFound struct {
}

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

Resource control not found

func NewResourceControlUpdateNotFound

func NewResourceControlUpdateNotFound() *ResourceControlUpdateNotFound

NewResourceControlUpdateNotFound creates a ResourceControlUpdateNotFound with default headers values

func (*ResourceControlUpdateNotFound) Code

Code gets the status code for the resource control update not found response

func (*ResourceControlUpdateNotFound) Error

func (*ResourceControlUpdateNotFound) IsClientError

func (o *ResourceControlUpdateNotFound) IsClientError() bool

IsClientError returns true when this resource control update not found response has a 4xx status code

func (*ResourceControlUpdateNotFound) IsCode

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

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

func (*ResourceControlUpdateNotFound) IsRedirect

func (o *ResourceControlUpdateNotFound) IsRedirect() bool

IsRedirect returns true when this resource control update not found response has a 3xx status code

func (*ResourceControlUpdateNotFound) IsServerError

func (o *ResourceControlUpdateNotFound) IsServerError() bool

IsServerError returns true when this resource control update not found response has a 5xx status code

func (*ResourceControlUpdateNotFound) IsSuccess

func (o *ResourceControlUpdateNotFound) IsSuccess() bool

IsSuccess returns true when this resource control update not found response has a 2xx status code

func (*ResourceControlUpdateNotFound) String

type ResourceControlUpdateOK

type ResourceControlUpdateOK struct {
	Payload *models.PortainerResourceControl
}

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

Success

func NewResourceControlUpdateOK

func NewResourceControlUpdateOK() *ResourceControlUpdateOK

NewResourceControlUpdateOK creates a ResourceControlUpdateOK with default headers values

func (*ResourceControlUpdateOK) Code

func (o *ResourceControlUpdateOK) Code() int

Code gets the status code for the resource control update o k response

func (*ResourceControlUpdateOK) Error

func (o *ResourceControlUpdateOK) Error() string

func (*ResourceControlUpdateOK) GetPayload

func (*ResourceControlUpdateOK) IsClientError

func (o *ResourceControlUpdateOK) IsClientError() bool

IsClientError returns true when this resource control update o k response has a 4xx status code

func (*ResourceControlUpdateOK) IsCode

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

IsCode returns true when this resource control update o k response a status code equal to that given

func (*ResourceControlUpdateOK) IsRedirect

func (o *ResourceControlUpdateOK) IsRedirect() bool

IsRedirect returns true when this resource control update o k response has a 3xx status code

func (*ResourceControlUpdateOK) IsServerError

func (o *ResourceControlUpdateOK) IsServerError() bool

IsServerError returns true when this resource control update o k response has a 5xx status code

func (*ResourceControlUpdateOK) IsSuccess

func (o *ResourceControlUpdateOK) IsSuccess() bool

IsSuccess returns true when this resource control update o k response has a 2xx status code

func (*ResourceControlUpdateOK) String

func (o *ResourceControlUpdateOK) String() string

type ResourceControlUpdateParams

type ResourceControlUpdateParams struct {

	/* Body.

	   Resource control details
	*/
	Body *models.ResourcecontrolsResourceControlUpdatePayload

	/* ID.

	   Resource control identifier
	*/
	ID int64

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

ResourceControlUpdateParams contains all the parameters to send to the API endpoint

for the resource control update operation.

Typically these are written to a http.Request.

func NewResourceControlUpdateParams

func NewResourceControlUpdateParams() *ResourceControlUpdateParams

NewResourceControlUpdateParams creates a new ResourceControlUpdateParams 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 NewResourceControlUpdateParamsWithContext

func NewResourceControlUpdateParamsWithContext(ctx context.Context) *ResourceControlUpdateParams

NewResourceControlUpdateParamsWithContext creates a new ResourceControlUpdateParams object with the ability to set a context for a request.

func NewResourceControlUpdateParamsWithHTTPClient

func NewResourceControlUpdateParamsWithHTTPClient(client *http.Client) *ResourceControlUpdateParams

NewResourceControlUpdateParamsWithHTTPClient creates a new ResourceControlUpdateParams object with the ability to set a custom HTTPClient for a request.

func NewResourceControlUpdateParamsWithTimeout

func NewResourceControlUpdateParamsWithTimeout(timeout time.Duration) *ResourceControlUpdateParams

NewResourceControlUpdateParamsWithTimeout creates a new ResourceControlUpdateParams object with the ability to set a timeout on a request.

func (*ResourceControlUpdateParams) SetBody

SetBody adds the body to the resource control update params

func (*ResourceControlUpdateParams) SetContext

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

SetContext adds the context to the resource control update params

func (*ResourceControlUpdateParams) SetDefaults

func (o *ResourceControlUpdateParams) SetDefaults()

SetDefaults hydrates default values in the resource control update params (not the query body).

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

func (*ResourceControlUpdateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the resource control update params

func (*ResourceControlUpdateParams) SetID

func (o *ResourceControlUpdateParams) SetID(id int64)

SetID adds the id to the resource control update params

func (*ResourceControlUpdateParams) SetTimeout

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

SetTimeout adds the timeout to the resource control update params

func (*ResourceControlUpdateParams) WithBody

WithBody adds the body to the resource control update params

func (*ResourceControlUpdateParams) WithContext

WithContext adds the context to the resource control update params

func (*ResourceControlUpdateParams) WithDefaults

WithDefaults hydrates default values in the resource control update params (not the query body).

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

func (*ResourceControlUpdateParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the resource control update params

func (*ResourceControlUpdateParams) WithID

WithID adds the id to the resource control update params

func (*ResourceControlUpdateParams) WithTimeout

WithTimeout adds the timeout to the resource control update params

func (*ResourceControlUpdateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ResourceControlUpdateReader

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

ResourceControlUpdateReader is a Reader for the ResourceControlUpdate structure.

func (*ResourceControlUpdateReader) ReadResponse

func (o *ResourceControlUpdateReader) 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