Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type DeleteDefaultConstraintDefault
- type DeleteDefaultConstraintForbidden
- type DeleteDefaultConstraintOK
- type DeleteDefaultConstraintParams
- func NewDeleteDefaultConstraintParams() *DeleteDefaultConstraintParams
- func NewDeleteDefaultConstraintParamsWithContext(ctx context.Context) *DeleteDefaultConstraintParams
- func NewDeleteDefaultConstraintParamsWithHTTPClient(client *http.Client) *DeleteDefaultConstraintParams
- func NewDeleteDefaultConstraintParamsWithTimeout(timeout time.Duration) *DeleteDefaultConstraintParams
- func (o *DeleteDefaultConstraintParams) SetContext(ctx context.Context)
- func (o *DeleteDefaultConstraintParams) SetDefaults()
- func (o *DeleteDefaultConstraintParams) SetHTTPClient(client *http.Client)
- func (o *DeleteDefaultConstraintParams) SetName(constraintName string)
- func (o *DeleteDefaultConstraintParams) SetTimeout(timeout time.Duration)
- func (o *DeleteDefaultConstraintParams) WithContext(ctx context.Context) *DeleteDefaultConstraintParams
- func (o *DeleteDefaultConstraintParams) WithDefaults() *DeleteDefaultConstraintParams
- func (o *DeleteDefaultConstraintParams) WithHTTPClient(client *http.Client) *DeleteDefaultConstraintParams
- func (o *DeleteDefaultConstraintParams) WithName(constraintName string) *DeleteDefaultConstraintParams
- func (o *DeleteDefaultConstraintParams) WithTimeout(timeout time.Duration) *DeleteDefaultConstraintParams
- func (o *DeleteDefaultConstraintParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteDefaultConstraintReader
- type DeleteDefaultConstraintUnauthorized
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 ¶
func (o *DeleteDefaultConstraintDefault) Code() int
Code gets the status code for the delete default constraint default response
func (*DeleteDefaultConstraintDefault) Error ¶
func (o *DeleteDefaultConstraintDefault) Error() string
func (*DeleteDefaultConstraintDefault) GetPayload ¶
func (o *DeleteDefaultConstraintDefault) GetPayload() *models.ErrorResponse
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 ¶
func (o *DeleteDefaultConstraintForbidden) Error() string
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 ¶
func (o *DeleteDefaultConstraintParams) WithContext(ctx context.Context) *DeleteDefaultConstraintParams
WithContext adds the context to the delete default constraint params
func (*DeleteDefaultConstraintParams) WithDefaults ¶
func (o *DeleteDefaultConstraintParams) WithDefaults() *DeleteDefaultConstraintParams
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 ¶
func (o *DeleteDefaultConstraintParams) WithHTTPClient(client *http.Client) *DeleteDefaultConstraintParams
WithHTTPClient adds the HTTPClient to the delete default constraint params
func (*DeleteDefaultConstraintParams) WithName ¶
func (o *DeleteDefaultConstraintParams) WithName(constraintName string) *DeleteDefaultConstraintParams
WithName adds the constraintName to the delete default constraint params
func (*DeleteDefaultConstraintParams) WithTimeout ¶
func (o *DeleteDefaultConstraintParams) WithTimeout(timeout time.Duration) *DeleteDefaultConstraintParams
WithTimeout adds the timeout to the delete default constraint params
func (*DeleteDefaultConstraintParams) WriteToRequest ¶
func (o *DeleteDefaultConstraintParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *DeleteDefaultConstraintUnauthorized) Error() string