constraints

package
v0.0.0-...-192cafe Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 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 constraints API

func (*Client) DeleteDefaultConstraint

func (a *Client) DeleteDefaultConstraint(params *DeleteDefaultConstraintParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteDefaultConstraintOK, error)

DeleteDefaultConstraint deletes a specified default constraint

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 {
	DeleteDefaultConstraint(params *DeleteDefaultConstraintParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteDefaultConstraintOK, 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 constraints API client.

type DeleteDefaultConstraintDefault

type DeleteDefaultConstraintDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}
DeleteDefaultConstraintDefault describes a response with status code -1, with default header values.

errorResponse

func NewDeleteDefaultConstraintDefault

func NewDeleteDefaultConstraintDefault(code int) *DeleteDefaultConstraintDefault

NewDeleteDefaultConstraintDefault creates a DeleteDefaultConstraintDefault with default headers values

func (*DeleteDefaultConstraintDefault) Code

Code gets the status code for the delete default constraint default response

func (*DeleteDefaultConstraintDefault) Error

func (*DeleteDefaultConstraintDefault) GetPayload

type DeleteDefaultConstraintForbidden

type DeleteDefaultConstraintForbidden struct {
}
DeleteDefaultConstraintForbidden describes a response with status code 403, with default header values.

EmptyResponse is a empty response

func NewDeleteDefaultConstraintForbidden

func NewDeleteDefaultConstraintForbidden() *DeleteDefaultConstraintForbidden

NewDeleteDefaultConstraintForbidden creates a DeleteDefaultConstraintForbidden with default headers values

func (*DeleteDefaultConstraintForbidden) Error

type DeleteDefaultConstraintOK

type DeleteDefaultConstraintOK struct {
}
DeleteDefaultConstraintOK describes a response with status code 200, with default header values.

EmptyResponse is a empty response

func NewDeleteDefaultConstraintOK

func NewDeleteDefaultConstraintOK() *DeleteDefaultConstraintOK

NewDeleteDefaultConstraintOK creates a DeleteDefaultConstraintOK with default headers values

func (*DeleteDefaultConstraintOK) Error

func (o *DeleteDefaultConstraintOK) Error() string

type DeleteDefaultConstraintParams

type DeleteDefaultConstraintParams struct {

	// ConstraintName.
	Name string

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

DeleteDefaultConstraintParams contains all the parameters to send to the API endpoint

for the delete default constraint operation.

Typically these are written to a http.Request.

func NewDeleteDefaultConstraintParams

func NewDeleteDefaultConstraintParams() *DeleteDefaultConstraintParams

NewDeleteDefaultConstraintParams creates a new DeleteDefaultConstraintParams 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 NewDeleteDefaultConstraintParamsWithContext

func NewDeleteDefaultConstraintParamsWithContext(ctx context.Context) *DeleteDefaultConstraintParams

NewDeleteDefaultConstraintParamsWithContext creates a new DeleteDefaultConstraintParams object with the ability to set a context for a request.

func NewDeleteDefaultConstraintParamsWithHTTPClient

func NewDeleteDefaultConstraintParamsWithHTTPClient(client *http.Client) *DeleteDefaultConstraintParams

NewDeleteDefaultConstraintParamsWithHTTPClient creates a new DeleteDefaultConstraintParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteDefaultConstraintParamsWithTimeout

func NewDeleteDefaultConstraintParamsWithTimeout(timeout time.Duration) *DeleteDefaultConstraintParams

NewDeleteDefaultConstraintParamsWithTimeout creates a new DeleteDefaultConstraintParams object with the ability to set a timeout on a request.

func (*DeleteDefaultConstraintParams) SetContext

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

SetContext adds the context to the delete default constraint params

func (*DeleteDefaultConstraintParams) SetDefaults

func (o *DeleteDefaultConstraintParams) SetDefaults()

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

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

func (*DeleteDefaultConstraintParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete default constraint params

func (*DeleteDefaultConstraintParams) SetName

func (o *DeleteDefaultConstraintParams) SetName(constraintName string)

SetName adds the constraintName to the delete default constraint params

func (*DeleteDefaultConstraintParams) SetTimeout

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

SetTimeout adds the timeout to the delete default constraint params

func (*DeleteDefaultConstraintParams) WithContext

WithContext adds the context to the delete default constraint params

func (*DeleteDefaultConstraintParams) WithDefaults

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

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

func (*DeleteDefaultConstraintParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete default constraint params

func (*DeleteDefaultConstraintParams) WithName

WithName adds the constraintName to the delete default constraint params

func (*DeleteDefaultConstraintParams) WithTimeout

WithTimeout adds the timeout to the delete default constraint params

func (*DeleteDefaultConstraintParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteDefaultConstraintReader

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

DeleteDefaultConstraintReader is a Reader for the DeleteDefaultConstraint structure.

func (*DeleteDefaultConstraintReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteDefaultConstraintUnauthorized

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

EmptyResponse is a empty response

func NewDeleteDefaultConstraintUnauthorized

func NewDeleteDefaultConstraintUnauthorized() *DeleteDefaultConstraintUnauthorized

NewDeleteDefaultConstraintUnauthorized creates a DeleteDefaultConstraintUnauthorized with default headers values

func (*DeleteDefaultConstraintUnauthorized) Error

Jump to

Keyboard shortcuts

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