Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateDefaultConstraint(params *CreateDefaultConstraintParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateDefaultConstraintOK, error)
- func (a *Client) GetDefaultConstraint(params *GetDefaultConstraintParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetDefaultConstraintOK, error)
- func (a *Client) ListDefaultConstraint(params *ListDefaultConstraintParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListDefaultConstraintOK, error)
- func (a *Client) PatchDefaultConstraint(params *PatchDefaultConstraintParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PatchDefaultConstraintOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreateDefaultConstraintDefault
- type CreateDefaultConstraintForbidden
- type CreateDefaultConstraintOK
- type CreateDefaultConstraintParams
- func NewCreateDefaultConstraintParams() *CreateDefaultConstraintParams
- func NewCreateDefaultConstraintParamsWithContext(ctx context.Context) *CreateDefaultConstraintParams
- func NewCreateDefaultConstraintParamsWithHTTPClient(client *http.Client) *CreateDefaultConstraintParams
- func NewCreateDefaultConstraintParamsWithTimeout(timeout time.Duration) *CreateDefaultConstraintParams
- func (o *CreateDefaultConstraintParams) SetBody(body *models.ConstraintBody)
- func (o *CreateDefaultConstraintParams) SetContext(ctx context.Context)
- func (o *CreateDefaultConstraintParams) SetDefaults()
- func (o *CreateDefaultConstraintParams) SetHTTPClient(client *http.Client)
- func (o *CreateDefaultConstraintParams) SetTimeout(timeout time.Duration)
- func (o *CreateDefaultConstraintParams) WithBody(body *models.ConstraintBody) *CreateDefaultConstraintParams
- func (o *CreateDefaultConstraintParams) WithContext(ctx context.Context) *CreateDefaultConstraintParams
- func (o *CreateDefaultConstraintParams) WithDefaults() *CreateDefaultConstraintParams
- func (o *CreateDefaultConstraintParams) WithHTTPClient(client *http.Client) *CreateDefaultConstraintParams
- func (o *CreateDefaultConstraintParams) WithTimeout(timeout time.Duration) *CreateDefaultConstraintParams
- func (o *CreateDefaultConstraintParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateDefaultConstraintReader
- type CreateDefaultConstraintUnauthorized
- type GetDefaultConstraintDefault
- type GetDefaultConstraintForbidden
- type GetDefaultConstraintOK
- type GetDefaultConstraintParams
- func NewGetDefaultConstraintParams() *GetDefaultConstraintParams
- func NewGetDefaultConstraintParamsWithContext(ctx context.Context) *GetDefaultConstraintParams
- func NewGetDefaultConstraintParamsWithHTTPClient(client *http.Client) *GetDefaultConstraintParams
- func NewGetDefaultConstraintParamsWithTimeout(timeout time.Duration) *GetDefaultConstraintParams
- func (o *GetDefaultConstraintParams) SetContext(ctx context.Context)
- func (o *GetDefaultConstraintParams) SetDefaults()
- func (o *GetDefaultConstraintParams) SetHTTPClient(client *http.Client)
- func (o *GetDefaultConstraintParams) SetName(constraintName string)
- func (o *GetDefaultConstraintParams) SetTimeout(timeout time.Duration)
- func (o *GetDefaultConstraintParams) WithContext(ctx context.Context) *GetDefaultConstraintParams
- func (o *GetDefaultConstraintParams) WithDefaults() *GetDefaultConstraintParams
- func (o *GetDefaultConstraintParams) WithHTTPClient(client *http.Client) *GetDefaultConstraintParams
- func (o *GetDefaultConstraintParams) WithName(constraintName string) *GetDefaultConstraintParams
- func (o *GetDefaultConstraintParams) WithTimeout(timeout time.Duration) *GetDefaultConstraintParams
- func (o *GetDefaultConstraintParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetDefaultConstraintReader
- type GetDefaultConstraintUnauthorized
- type ListDefaultConstraintDefault
- type ListDefaultConstraintForbidden
- type ListDefaultConstraintOK
- type ListDefaultConstraintParams
- func NewListDefaultConstraintParams() *ListDefaultConstraintParams
- func NewListDefaultConstraintParamsWithContext(ctx context.Context) *ListDefaultConstraintParams
- func NewListDefaultConstraintParamsWithHTTPClient(client *http.Client) *ListDefaultConstraintParams
- func NewListDefaultConstraintParamsWithTimeout(timeout time.Duration) *ListDefaultConstraintParams
- func (o *ListDefaultConstraintParams) SetContext(ctx context.Context)
- func (o *ListDefaultConstraintParams) SetDefaults()
- func (o *ListDefaultConstraintParams) SetHTTPClient(client *http.Client)
- func (o *ListDefaultConstraintParams) SetTimeout(timeout time.Duration)
- func (o *ListDefaultConstraintParams) WithContext(ctx context.Context) *ListDefaultConstraintParams
- func (o *ListDefaultConstraintParams) WithDefaults() *ListDefaultConstraintParams
- func (o *ListDefaultConstraintParams) WithHTTPClient(client *http.Client) *ListDefaultConstraintParams
- func (o *ListDefaultConstraintParams) WithTimeout(timeout time.Duration) *ListDefaultConstraintParams
- func (o *ListDefaultConstraintParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListDefaultConstraintReader
- type ListDefaultConstraintUnauthorized
- type PatchDefaultConstraintDefault
- type PatchDefaultConstraintForbidden
- type PatchDefaultConstraintOK
- type PatchDefaultConstraintParams
- func NewPatchDefaultConstraintParams() *PatchDefaultConstraintParams
- func NewPatchDefaultConstraintParamsWithContext(ctx context.Context) *PatchDefaultConstraintParams
- func NewPatchDefaultConstraintParamsWithHTTPClient(client *http.Client) *PatchDefaultConstraintParams
- func NewPatchDefaultConstraintParamsWithTimeout(timeout time.Duration) *PatchDefaultConstraintParams
- func (o *PatchDefaultConstraintParams) SetContext(ctx context.Context)
- func (o *PatchDefaultConstraintParams) SetDefaults()
- func (o *PatchDefaultConstraintParams) SetHTTPClient(client *http.Client)
- func (o *PatchDefaultConstraintParams) SetName(constraintName string)
- func (o *PatchDefaultConstraintParams) SetPatch(patch interface{})
- func (o *PatchDefaultConstraintParams) SetTimeout(timeout time.Duration)
- func (o *PatchDefaultConstraintParams) WithContext(ctx context.Context) *PatchDefaultConstraintParams
- func (o *PatchDefaultConstraintParams) WithDefaults() *PatchDefaultConstraintParams
- func (o *PatchDefaultConstraintParams) WithHTTPClient(client *http.Client) *PatchDefaultConstraintParams
- func (o *PatchDefaultConstraintParams) WithName(constraintName string) *PatchDefaultConstraintParams
- func (o *PatchDefaultConstraintParams) WithPatch(patch interface{}) *PatchDefaultConstraintParams
- func (o *PatchDefaultConstraintParams) WithTimeout(timeout time.Duration) *PatchDefaultConstraintParams
- func (o *PatchDefaultConstraintParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PatchDefaultConstraintReader
- type PatchDefaultConstraintUnauthorized
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 constraint API
func (*Client) CreateDefaultConstraint ¶
func (a *Client) CreateDefaultConstraint(params *CreateDefaultConstraintParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateDefaultConstraintOK, error)
CreateDefaultConstraint Creates default constraint
func (*Client) GetDefaultConstraint ¶
func (a *Client) GetDefaultConstraint(params *GetDefaultConstraintParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDefaultConstraintOK, error)
GetDefaultConstraint Gets an specified default constraint
func (*Client) ListDefaultConstraint ¶
func (a *Client) ListDefaultConstraint(params *ListDefaultConstraintParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListDefaultConstraintOK, error)
ListDefaultConstraint lists default constraint
func (*Client) PatchDefaultConstraint ¶
func (a *Client) PatchDefaultConstraint(params *PatchDefaultConstraintParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchDefaultConstraintOK, error)
PatchDefaultConstraint Patch 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 { CreateDefaultConstraint(params *CreateDefaultConstraintParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateDefaultConstraintOK, error) GetDefaultConstraint(params *GetDefaultConstraintParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDefaultConstraintOK, error) ListDefaultConstraint(params *ListDefaultConstraintParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListDefaultConstraintOK, error) PatchDefaultConstraint(params *PatchDefaultConstraintParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchDefaultConstraintOK, 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 constraint API client.
type CreateDefaultConstraintDefault ¶
type CreateDefaultConstraintDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
CreateDefaultConstraintDefault describes a response with status code -1, with default header values.
errorResponse
func NewCreateDefaultConstraintDefault ¶
func NewCreateDefaultConstraintDefault(code int) *CreateDefaultConstraintDefault
NewCreateDefaultConstraintDefault creates a CreateDefaultConstraintDefault with default headers values
func (*CreateDefaultConstraintDefault) Code ¶
func (o *CreateDefaultConstraintDefault) Code() int
Code gets the status code for the create default constraint default response
func (*CreateDefaultConstraintDefault) Error ¶
func (o *CreateDefaultConstraintDefault) Error() string
func (*CreateDefaultConstraintDefault) GetPayload ¶
func (o *CreateDefaultConstraintDefault) GetPayload() *models.ErrorResponse
type CreateDefaultConstraintForbidden ¶
type CreateDefaultConstraintForbidden struct { }
CreateDefaultConstraintForbidden describes a response with status code 403, with default header values.
EmptyResponse is a empty response
func NewCreateDefaultConstraintForbidden ¶
func NewCreateDefaultConstraintForbidden() *CreateDefaultConstraintForbidden
NewCreateDefaultConstraintForbidden creates a CreateDefaultConstraintForbidden with default headers values
func (*CreateDefaultConstraintForbidden) Error ¶
func (o *CreateDefaultConstraintForbidden) Error() string
type CreateDefaultConstraintOK ¶
type CreateDefaultConstraintOK struct {
Payload *models.Constraint
}
CreateDefaultConstraintOK describes a response with status code 200, with default header values.
Constraint
func NewCreateDefaultConstraintOK ¶
func NewCreateDefaultConstraintOK() *CreateDefaultConstraintOK
NewCreateDefaultConstraintOK creates a CreateDefaultConstraintOK with default headers values
func (*CreateDefaultConstraintOK) Error ¶
func (o *CreateDefaultConstraintOK) Error() string
func (*CreateDefaultConstraintOK) GetPayload ¶
func (o *CreateDefaultConstraintOK) GetPayload() *models.Constraint
type CreateDefaultConstraintParams ¶
type CreateDefaultConstraintParams struct { // Body. Body *models.ConstraintBody Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateDefaultConstraintParams contains all the parameters to send to the API endpoint
for the create default constraint operation. Typically these are written to a http.Request.
func NewCreateDefaultConstraintParams ¶
func NewCreateDefaultConstraintParams() *CreateDefaultConstraintParams
NewCreateDefaultConstraintParams creates a new CreateDefaultConstraintParams 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 NewCreateDefaultConstraintParamsWithContext ¶
func NewCreateDefaultConstraintParamsWithContext(ctx context.Context) *CreateDefaultConstraintParams
NewCreateDefaultConstraintParamsWithContext creates a new CreateDefaultConstraintParams object with the ability to set a context for a request.
func NewCreateDefaultConstraintParamsWithHTTPClient ¶
func NewCreateDefaultConstraintParamsWithHTTPClient(client *http.Client) *CreateDefaultConstraintParams
NewCreateDefaultConstraintParamsWithHTTPClient creates a new CreateDefaultConstraintParams object with the ability to set a custom HTTPClient for a request.
func NewCreateDefaultConstraintParamsWithTimeout ¶
func NewCreateDefaultConstraintParamsWithTimeout(timeout time.Duration) *CreateDefaultConstraintParams
NewCreateDefaultConstraintParamsWithTimeout creates a new CreateDefaultConstraintParams object with the ability to set a timeout on a request.
func (*CreateDefaultConstraintParams) SetBody ¶
func (o *CreateDefaultConstraintParams) SetBody(body *models.ConstraintBody)
SetBody adds the body to the create default constraint params
func (*CreateDefaultConstraintParams) SetContext ¶
func (o *CreateDefaultConstraintParams) SetContext(ctx context.Context)
SetContext adds the context to the create default constraint params
func (*CreateDefaultConstraintParams) SetDefaults ¶
func (o *CreateDefaultConstraintParams) SetDefaults()
SetDefaults hydrates default values in the create default constraint params (not the query body).
All values with no default are reset to their zero value.
func (*CreateDefaultConstraintParams) SetHTTPClient ¶
func (o *CreateDefaultConstraintParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create default constraint params
func (*CreateDefaultConstraintParams) SetTimeout ¶
func (o *CreateDefaultConstraintParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create default constraint params
func (*CreateDefaultConstraintParams) WithBody ¶
func (o *CreateDefaultConstraintParams) WithBody(body *models.ConstraintBody) *CreateDefaultConstraintParams
WithBody adds the body to the create default constraint params
func (*CreateDefaultConstraintParams) WithContext ¶
func (o *CreateDefaultConstraintParams) WithContext(ctx context.Context) *CreateDefaultConstraintParams
WithContext adds the context to the create default constraint params
func (*CreateDefaultConstraintParams) WithDefaults ¶
func (o *CreateDefaultConstraintParams) WithDefaults() *CreateDefaultConstraintParams
WithDefaults hydrates default values in the create default constraint params (not the query body).
All values with no default are reset to their zero value.
func (*CreateDefaultConstraintParams) WithHTTPClient ¶
func (o *CreateDefaultConstraintParams) WithHTTPClient(client *http.Client) *CreateDefaultConstraintParams
WithHTTPClient adds the HTTPClient to the create default constraint params
func (*CreateDefaultConstraintParams) WithTimeout ¶
func (o *CreateDefaultConstraintParams) WithTimeout(timeout time.Duration) *CreateDefaultConstraintParams
WithTimeout adds the timeout to the create default constraint params
func (*CreateDefaultConstraintParams) WriteToRequest ¶
func (o *CreateDefaultConstraintParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateDefaultConstraintReader ¶
type CreateDefaultConstraintReader struct {
// contains filtered or unexported fields
}
CreateDefaultConstraintReader is a Reader for the CreateDefaultConstraint structure.
func (*CreateDefaultConstraintReader) ReadResponse ¶
func (o *CreateDefaultConstraintReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateDefaultConstraintUnauthorized ¶
type CreateDefaultConstraintUnauthorized struct { }
CreateDefaultConstraintUnauthorized describes a response with status code 401, with default header values.
EmptyResponse is a empty response
func NewCreateDefaultConstraintUnauthorized ¶
func NewCreateDefaultConstraintUnauthorized() *CreateDefaultConstraintUnauthorized
NewCreateDefaultConstraintUnauthorized creates a CreateDefaultConstraintUnauthorized with default headers values
func (*CreateDefaultConstraintUnauthorized) Error ¶
func (o *CreateDefaultConstraintUnauthorized) Error() string
type GetDefaultConstraintDefault ¶
type GetDefaultConstraintDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
GetDefaultConstraintDefault describes a response with status code -1, with default header values.
errorResponse
func NewGetDefaultConstraintDefault ¶
func NewGetDefaultConstraintDefault(code int) *GetDefaultConstraintDefault
NewGetDefaultConstraintDefault creates a GetDefaultConstraintDefault with default headers values
func (*GetDefaultConstraintDefault) Code ¶
func (o *GetDefaultConstraintDefault) Code() int
Code gets the status code for the get default constraint default response
func (*GetDefaultConstraintDefault) Error ¶
func (o *GetDefaultConstraintDefault) Error() string
func (*GetDefaultConstraintDefault) GetPayload ¶
func (o *GetDefaultConstraintDefault) GetPayload() *models.ErrorResponse
type GetDefaultConstraintForbidden ¶
type GetDefaultConstraintForbidden struct { }
GetDefaultConstraintForbidden describes a response with status code 403, with default header values.
EmptyResponse is a empty response
func NewGetDefaultConstraintForbidden ¶
func NewGetDefaultConstraintForbidden() *GetDefaultConstraintForbidden
NewGetDefaultConstraintForbidden creates a GetDefaultConstraintForbidden with default headers values
func (*GetDefaultConstraintForbidden) Error ¶
func (o *GetDefaultConstraintForbidden) Error() string
type GetDefaultConstraintOK ¶
type GetDefaultConstraintOK struct {
Payload *models.Constraint
}
GetDefaultConstraintOK describes a response with status code 200, with default header values.
Constraint
func NewGetDefaultConstraintOK ¶
func NewGetDefaultConstraintOK() *GetDefaultConstraintOK
NewGetDefaultConstraintOK creates a GetDefaultConstraintOK with default headers values
func (*GetDefaultConstraintOK) Error ¶
func (o *GetDefaultConstraintOK) Error() string
func (*GetDefaultConstraintOK) GetPayload ¶
func (o *GetDefaultConstraintOK) GetPayload() *models.Constraint
type GetDefaultConstraintParams ¶
type GetDefaultConstraintParams struct { // ConstraintName. Name string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetDefaultConstraintParams contains all the parameters to send to the API endpoint
for the get default constraint operation. Typically these are written to a http.Request.
func NewGetDefaultConstraintParams ¶
func NewGetDefaultConstraintParams() *GetDefaultConstraintParams
NewGetDefaultConstraintParams creates a new GetDefaultConstraintParams 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 NewGetDefaultConstraintParamsWithContext ¶
func NewGetDefaultConstraintParamsWithContext(ctx context.Context) *GetDefaultConstraintParams
NewGetDefaultConstraintParamsWithContext creates a new GetDefaultConstraintParams object with the ability to set a context for a request.
func NewGetDefaultConstraintParamsWithHTTPClient ¶
func NewGetDefaultConstraintParamsWithHTTPClient(client *http.Client) *GetDefaultConstraintParams
NewGetDefaultConstraintParamsWithHTTPClient creates a new GetDefaultConstraintParams object with the ability to set a custom HTTPClient for a request.
func NewGetDefaultConstraintParamsWithTimeout ¶
func NewGetDefaultConstraintParamsWithTimeout(timeout time.Duration) *GetDefaultConstraintParams
NewGetDefaultConstraintParamsWithTimeout creates a new GetDefaultConstraintParams object with the ability to set a timeout on a request.
func (*GetDefaultConstraintParams) SetContext ¶
func (o *GetDefaultConstraintParams) SetContext(ctx context.Context)
SetContext adds the context to the get default constraint params
func (*GetDefaultConstraintParams) SetDefaults ¶
func (o *GetDefaultConstraintParams) SetDefaults()
SetDefaults hydrates default values in the get default constraint params (not the query body).
All values with no default are reset to their zero value.
func (*GetDefaultConstraintParams) SetHTTPClient ¶
func (o *GetDefaultConstraintParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get default constraint params
func (*GetDefaultConstraintParams) SetName ¶
func (o *GetDefaultConstraintParams) SetName(constraintName string)
SetName adds the constraintName to the get default constraint params
func (*GetDefaultConstraintParams) SetTimeout ¶
func (o *GetDefaultConstraintParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get default constraint params
func (*GetDefaultConstraintParams) WithContext ¶
func (o *GetDefaultConstraintParams) WithContext(ctx context.Context) *GetDefaultConstraintParams
WithContext adds the context to the get default constraint params
func (*GetDefaultConstraintParams) WithDefaults ¶
func (o *GetDefaultConstraintParams) WithDefaults() *GetDefaultConstraintParams
WithDefaults hydrates default values in the get default constraint params (not the query body).
All values with no default are reset to their zero value.
func (*GetDefaultConstraintParams) WithHTTPClient ¶
func (o *GetDefaultConstraintParams) WithHTTPClient(client *http.Client) *GetDefaultConstraintParams
WithHTTPClient adds the HTTPClient to the get default constraint params
func (*GetDefaultConstraintParams) WithName ¶
func (o *GetDefaultConstraintParams) WithName(constraintName string) *GetDefaultConstraintParams
WithName adds the constraintName to the get default constraint params
func (*GetDefaultConstraintParams) WithTimeout ¶
func (o *GetDefaultConstraintParams) WithTimeout(timeout time.Duration) *GetDefaultConstraintParams
WithTimeout adds the timeout to the get default constraint params
func (*GetDefaultConstraintParams) WriteToRequest ¶
func (o *GetDefaultConstraintParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetDefaultConstraintReader ¶
type GetDefaultConstraintReader struct {
// contains filtered or unexported fields
}
GetDefaultConstraintReader is a Reader for the GetDefaultConstraint structure.
func (*GetDefaultConstraintReader) ReadResponse ¶
func (o *GetDefaultConstraintReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetDefaultConstraintUnauthorized ¶
type GetDefaultConstraintUnauthorized struct { }
GetDefaultConstraintUnauthorized describes a response with status code 401, with default header values.
EmptyResponse is a empty response
func NewGetDefaultConstraintUnauthorized ¶
func NewGetDefaultConstraintUnauthorized() *GetDefaultConstraintUnauthorized
NewGetDefaultConstraintUnauthorized creates a GetDefaultConstraintUnauthorized with default headers values
func (*GetDefaultConstraintUnauthorized) Error ¶
func (o *GetDefaultConstraintUnauthorized) Error() string
type ListDefaultConstraintDefault ¶
type ListDefaultConstraintDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
ListDefaultConstraintDefault describes a response with status code -1, with default header values.
errorResponse
func NewListDefaultConstraintDefault ¶
func NewListDefaultConstraintDefault(code int) *ListDefaultConstraintDefault
NewListDefaultConstraintDefault creates a ListDefaultConstraintDefault with default headers values
func (*ListDefaultConstraintDefault) Code ¶
func (o *ListDefaultConstraintDefault) Code() int
Code gets the status code for the list default constraint default response
func (*ListDefaultConstraintDefault) Error ¶
func (o *ListDefaultConstraintDefault) Error() string
func (*ListDefaultConstraintDefault) GetPayload ¶
func (o *ListDefaultConstraintDefault) GetPayload() *models.ErrorResponse
type ListDefaultConstraintForbidden ¶
type ListDefaultConstraintForbidden struct { }
ListDefaultConstraintForbidden describes a response with status code 403, with default header values.
EmptyResponse is a empty response
func NewListDefaultConstraintForbidden ¶
func NewListDefaultConstraintForbidden() *ListDefaultConstraintForbidden
NewListDefaultConstraintForbidden creates a ListDefaultConstraintForbidden with default headers values
func (*ListDefaultConstraintForbidden) Error ¶
func (o *ListDefaultConstraintForbidden) Error() string
type ListDefaultConstraintOK ¶
type ListDefaultConstraintOK struct {
Payload []*models.Constraint
}
ListDefaultConstraintOK describes a response with status code 200, with default header values.
Constraint
func NewListDefaultConstraintOK ¶
func NewListDefaultConstraintOK() *ListDefaultConstraintOK
NewListDefaultConstraintOK creates a ListDefaultConstraintOK with default headers values
func (*ListDefaultConstraintOK) Error ¶
func (o *ListDefaultConstraintOK) Error() string
func (*ListDefaultConstraintOK) GetPayload ¶
func (o *ListDefaultConstraintOK) GetPayload() []*models.Constraint
type ListDefaultConstraintParams ¶
type ListDefaultConstraintParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListDefaultConstraintParams contains all the parameters to send to the API endpoint
for the list default constraint operation. Typically these are written to a http.Request.
func NewListDefaultConstraintParams ¶
func NewListDefaultConstraintParams() *ListDefaultConstraintParams
NewListDefaultConstraintParams creates a new ListDefaultConstraintParams 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 NewListDefaultConstraintParamsWithContext ¶
func NewListDefaultConstraintParamsWithContext(ctx context.Context) *ListDefaultConstraintParams
NewListDefaultConstraintParamsWithContext creates a new ListDefaultConstraintParams object with the ability to set a context for a request.
func NewListDefaultConstraintParamsWithHTTPClient ¶
func NewListDefaultConstraintParamsWithHTTPClient(client *http.Client) *ListDefaultConstraintParams
NewListDefaultConstraintParamsWithHTTPClient creates a new ListDefaultConstraintParams object with the ability to set a custom HTTPClient for a request.
func NewListDefaultConstraintParamsWithTimeout ¶
func NewListDefaultConstraintParamsWithTimeout(timeout time.Duration) *ListDefaultConstraintParams
NewListDefaultConstraintParamsWithTimeout creates a new ListDefaultConstraintParams object with the ability to set a timeout on a request.
func (*ListDefaultConstraintParams) SetContext ¶
func (o *ListDefaultConstraintParams) SetContext(ctx context.Context)
SetContext adds the context to the list default constraint params
func (*ListDefaultConstraintParams) SetDefaults ¶
func (o *ListDefaultConstraintParams) SetDefaults()
SetDefaults hydrates default values in the list default constraint params (not the query body).
All values with no default are reset to their zero value.
func (*ListDefaultConstraintParams) SetHTTPClient ¶
func (o *ListDefaultConstraintParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list default constraint params
func (*ListDefaultConstraintParams) SetTimeout ¶
func (o *ListDefaultConstraintParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list default constraint params
func (*ListDefaultConstraintParams) WithContext ¶
func (o *ListDefaultConstraintParams) WithContext(ctx context.Context) *ListDefaultConstraintParams
WithContext adds the context to the list default constraint params
func (*ListDefaultConstraintParams) WithDefaults ¶
func (o *ListDefaultConstraintParams) WithDefaults() *ListDefaultConstraintParams
WithDefaults hydrates default values in the list default constraint params (not the query body).
All values with no default are reset to their zero value.
func (*ListDefaultConstraintParams) WithHTTPClient ¶
func (o *ListDefaultConstraintParams) WithHTTPClient(client *http.Client) *ListDefaultConstraintParams
WithHTTPClient adds the HTTPClient to the list default constraint params
func (*ListDefaultConstraintParams) WithTimeout ¶
func (o *ListDefaultConstraintParams) WithTimeout(timeout time.Duration) *ListDefaultConstraintParams
WithTimeout adds the timeout to the list default constraint params
func (*ListDefaultConstraintParams) WriteToRequest ¶
func (o *ListDefaultConstraintParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListDefaultConstraintReader ¶
type ListDefaultConstraintReader struct {
// contains filtered or unexported fields
}
ListDefaultConstraintReader is a Reader for the ListDefaultConstraint structure.
func (*ListDefaultConstraintReader) ReadResponse ¶
func (o *ListDefaultConstraintReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListDefaultConstraintUnauthorized ¶
type ListDefaultConstraintUnauthorized struct { }
ListDefaultConstraintUnauthorized describes a response with status code 401, with default header values.
EmptyResponse is a empty response
func NewListDefaultConstraintUnauthorized ¶
func NewListDefaultConstraintUnauthorized() *ListDefaultConstraintUnauthorized
NewListDefaultConstraintUnauthorized creates a ListDefaultConstraintUnauthorized with default headers values
func (*ListDefaultConstraintUnauthorized) Error ¶
func (o *ListDefaultConstraintUnauthorized) Error() string
type PatchDefaultConstraintDefault ¶
type PatchDefaultConstraintDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
PatchDefaultConstraintDefault describes a response with status code -1, with default header values.
errorResponse
func NewPatchDefaultConstraintDefault ¶
func NewPatchDefaultConstraintDefault(code int) *PatchDefaultConstraintDefault
NewPatchDefaultConstraintDefault creates a PatchDefaultConstraintDefault with default headers values
func (*PatchDefaultConstraintDefault) Code ¶
func (o *PatchDefaultConstraintDefault) Code() int
Code gets the status code for the patch default constraint default response
func (*PatchDefaultConstraintDefault) Error ¶
func (o *PatchDefaultConstraintDefault) Error() string
func (*PatchDefaultConstraintDefault) GetPayload ¶
func (o *PatchDefaultConstraintDefault) GetPayload() *models.ErrorResponse
type PatchDefaultConstraintForbidden ¶
type PatchDefaultConstraintForbidden struct { }
PatchDefaultConstraintForbidden describes a response with status code 403, with default header values.
EmptyResponse is a empty response
func NewPatchDefaultConstraintForbidden ¶
func NewPatchDefaultConstraintForbidden() *PatchDefaultConstraintForbidden
NewPatchDefaultConstraintForbidden creates a PatchDefaultConstraintForbidden with default headers values
func (*PatchDefaultConstraintForbidden) Error ¶
func (o *PatchDefaultConstraintForbidden) Error() string
type PatchDefaultConstraintOK ¶
type PatchDefaultConstraintOK struct {
Payload *models.Constraint
}
PatchDefaultConstraintOK describes a response with status code 200, with default header values.
Constraint
func NewPatchDefaultConstraintOK ¶
func NewPatchDefaultConstraintOK() *PatchDefaultConstraintOK
NewPatchDefaultConstraintOK creates a PatchDefaultConstraintOK with default headers values
func (*PatchDefaultConstraintOK) Error ¶
func (o *PatchDefaultConstraintOK) Error() string
func (*PatchDefaultConstraintOK) GetPayload ¶
func (o *PatchDefaultConstraintOK) GetPayload() *models.Constraint
type PatchDefaultConstraintParams ¶
type PatchDefaultConstraintParams struct { // Patch. Patch interface{} // ConstraintName. Name string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PatchDefaultConstraintParams contains all the parameters to send to the API endpoint
for the patch default constraint operation. Typically these are written to a http.Request.
func NewPatchDefaultConstraintParams ¶
func NewPatchDefaultConstraintParams() *PatchDefaultConstraintParams
NewPatchDefaultConstraintParams creates a new PatchDefaultConstraintParams 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 NewPatchDefaultConstraintParamsWithContext ¶
func NewPatchDefaultConstraintParamsWithContext(ctx context.Context) *PatchDefaultConstraintParams
NewPatchDefaultConstraintParamsWithContext creates a new PatchDefaultConstraintParams object with the ability to set a context for a request.
func NewPatchDefaultConstraintParamsWithHTTPClient ¶
func NewPatchDefaultConstraintParamsWithHTTPClient(client *http.Client) *PatchDefaultConstraintParams
NewPatchDefaultConstraintParamsWithHTTPClient creates a new PatchDefaultConstraintParams object with the ability to set a custom HTTPClient for a request.
func NewPatchDefaultConstraintParamsWithTimeout ¶
func NewPatchDefaultConstraintParamsWithTimeout(timeout time.Duration) *PatchDefaultConstraintParams
NewPatchDefaultConstraintParamsWithTimeout creates a new PatchDefaultConstraintParams object with the ability to set a timeout on a request.
func (*PatchDefaultConstraintParams) SetContext ¶
func (o *PatchDefaultConstraintParams) SetContext(ctx context.Context)
SetContext adds the context to the patch default constraint params
func (*PatchDefaultConstraintParams) SetDefaults ¶
func (o *PatchDefaultConstraintParams) SetDefaults()
SetDefaults hydrates default values in the patch default constraint params (not the query body).
All values with no default are reset to their zero value.
func (*PatchDefaultConstraintParams) SetHTTPClient ¶
func (o *PatchDefaultConstraintParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the patch default constraint params
func (*PatchDefaultConstraintParams) SetName ¶
func (o *PatchDefaultConstraintParams) SetName(constraintName string)
SetName adds the constraintName to the patch default constraint params
func (*PatchDefaultConstraintParams) SetPatch ¶
func (o *PatchDefaultConstraintParams) SetPatch(patch interface{})
SetPatch adds the patch to the patch default constraint params
func (*PatchDefaultConstraintParams) SetTimeout ¶
func (o *PatchDefaultConstraintParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the patch default constraint params
func (*PatchDefaultConstraintParams) WithContext ¶
func (o *PatchDefaultConstraintParams) WithContext(ctx context.Context) *PatchDefaultConstraintParams
WithContext adds the context to the patch default constraint params
func (*PatchDefaultConstraintParams) WithDefaults ¶
func (o *PatchDefaultConstraintParams) WithDefaults() *PatchDefaultConstraintParams
WithDefaults hydrates default values in the patch default constraint params (not the query body).
All values with no default are reset to their zero value.
func (*PatchDefaultConstraintParams) WithHTTPClient ¶
func (o *PatchDefaultConstraintParams) WithHTTPClient(client *http.Client) *PatchDefaultConstraintParams
WithHTTPClient adds the HTTPClient to the patch default constraint params
func (*PatchDefaultConstraintParams) WithName ¶
func (o *PatchDefaultConstraintParams) WithName(constraintName string) *PatchDefaultConstraintParams
WithName adds the constraintName to the patch default constraint params
func (*PatchDefaultConstraintParams) WithPatch ¶
func (o *PatchDefaultConstraintParams) WithPatch(patch interface{}) *PatchDefaultConstraintParams
WithPatch adds the patch to the patch default constraint params
func (*PatchDefaultConstraintParams) WithTimeout ¶
func (o *PatchDefaultConstraintParams) WithTimeout(timeout time.Duration) *PatchDefaultConstraintParams
WithTimeout adds the timeout to the patch default constraint params
func (*PatchDefaultConstraintParams) WriteToRequest ¶
func (o *PatchDefaultConstraintParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PatchDefaultConstraintReader ¶
type PatchDefaultConstraintReader struct {
// contains filtered or unexported fields
}
PatchDefaultConstraintReader is a Reader for the PatchDefaultConstraint structure.
func (*PatchDefaultConstraintReader) ReadResponse ¶
func (o *PatchDefaultConstraintReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PatchDefaultConstraintUnauthorized ¶
type PatchDefaultConstraintUnauthorized struct { }
PatchDefaultConstraintUnauthorized describes a response with status code 401, with default header values.
EmptyResponse is a empty response
func NewPatchDefaultConstraintUnauthorized ¶
func NewPatchDefaultConstraintUnauthorized() *PatchDefaultConstraintUnauthorized
NewPatchDefaultConstraintUnauthorized creates a PatchDefaultConstraintUnauthorized with default headers values
func (*PatchDefaultConstraintUnauthorized) Error ¶
func (o *PatchDefaultConstraintUnauthorized) Error() string
Source Files
¶
- constraint_client.go
- create_default_constraint_parameters.go
- create_default_constraint_responses.go
- get_default_constraint_parameters.go
- get_default_constraint_responses.go
- list_default_constraint_parameters.go
- list_default_constraint_responses.go
- patch_default_constraint_parameters.go
- patch_default_constraint_responses.go