constrainttemplates

package
v0.0.0-...-b339f66 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 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 constrainttemplates API

func (*Client) CreateConstraintTemplate

func (a *Client) CreateConstraintTemplate(params *CreateConstraintTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateConstraintTemplateOK, error)

CreateConstraintTemplate Create constraint template

func (*Client) DeleteConstraintTemplate

func (a *Client) DeleteConstraintTemplate(params *DeleteConstraintTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteConstraintTemplateOK, error)

DeleteConstraintTemplate Deletes the specified cluster

func (*Client) GetConstraintTemplate

func (a *Client) GetConstraintTemplate(params *GetConstraintTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetConstraintTemplateOK, error)

GetConstraintTemplate Get constraint templates specified by name

func (*Client) ListConstraintTemplates

func (a *Client) ListConstraintTemplates(params *ListConstraintTemplatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListConstraintTemplatesOK, error)

ListConstraintTemplates lists constraint templates

func (*Client) PatchConstraintTemplate

func (a *Client) PatchConstraintTemplate(params *PatchConstraintTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchConstraintTemplateOK, error)

PatchConstraintTemplate Patch a specified constraint template

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 {
	CreateConstraintTemplate(params *CreateConstraintTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateConstraintTemplateOK, error)

	DeleteConstraintTemplate(params *DeleteConstraintTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteConstraintTemplateOK, error)

	GetConstraintTemplate(params *GetConstraintTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetConstraintTemplateOK, error)

	ListConstraintTemplates(params *ListConstraintTemplatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListConstraintTemplatesOK, error)

	PatchConstraintTemplate(params *PatchConstraintTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchConstraintTemplateOK, 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 constrainttemplates API client.

type CreateConstraintTemplateDefault

type CreateConstraintTemplateDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}

CreateConstraintTemplateDefault describes a response with status code -1, with default header values.

errorResponse

func NewCreateConstraintTemplateDefault

func NewCreateConstraintTemplateDefault(code int) *CreateConstraintTemplateDefault

NewCreateConstraintTemplateDefault creates a CreateConstraintTemplateDefault with default headers values

func (*CreateConstraintTemplateDefault) Code

Code gets the status code for the create constraint template default response

func (*CreateConstraintTemplateDefault) Error

func (*CreateConstraintTemplateDefault) GetPayload

func (*CreateConstraintTemplateDefault) IsClientError

func (o *CreateConstraintTemplateDefault) IsClientError() bool

IsClientError returns true when this create constraint template default response has a 4xx status code

func (*CreateConstraintTemplateDefault) IsCode

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

IsCode returns true when this create constraint template default response a status code equal to that given

func (*CreateConstraintTemplateDefault) IsRedirect

func (o *CreateConstraintTemplateDefault) IsRedirect() bool

IsRedirect returns true when this create constraint template default response has a 3xx status code

func (*CreateConstraintTemplateDefault) IsServerError

func (o *CreateConstraintTemplateDefault) IsServerError() bool

IsServerError returns true when this create constraint template default response has a 5xx status code

func (*CreateConstraintTemplateDefault) IsSuccess

func (o *CreateConstraintTemplateDefault) IsSuccess() bool

IsSuccess returns true when this create constraint template default response has a 2xx status code

func (*CreateConstraintTemplateDefault) String

type CreateConstraintTemplateForbidden

type CreateConstraintTemplateForbidden struct {
}

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

EmptyResponse is a empty response

func NewCreateConstraintTemplateForbidden

func NewCreateConstraintTemplateForbidden() *CreateConstraintTemplateForbidden

NewCreateConstraintTemplateForbidden creates a CreateConstraintTemplateForbidden with default headers values

func (*CreateConstraintTemplateForbidden) Error

func (*CreateConstraintTemplateForbidden) IsClientError

func (o *CreateConstraintTemplateForbidden) IsClientError() bool

IsClientError returns true when this create constraint template forbidden response has a 4xx status code

func (*CreateConstraintTemplateForbidden) IsCode

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

IsCode returns true when this create constraint template forbidden response a status code equal to that given

func (*CreateConstraintTemplateForbidden) IsRedirect

func (o *CreateConstraintTemplateForbidden) IsRedirect() bool

IsRedirect returns true when this create constraint template forbidden response has a 3xx status code

func (*CreateConstraintTemplateForbidden) IsServerError

func (o *CreateConstraintTemplateForbidden) IsServerError() bool

IsServerError returns true when this create constraint template forbidden response has a 5xx status code

func (*CreateConstraintTemplateForbidden) IsSuccess

func (o *CreateConstraintTemplateForbidden) IsSuccess() bool

IsSuccess returns true when this create constraint template forbidden response has a 2xx status code

func (*CreateConstraintTemplateForbidden) String

type CreateConstraintTemplateOK

type CreateConstraintTemplateOK struct {
	Payload *models.ConstraintTemplate
}

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

ConstraintTemplate

func NewCreateConstraintTemplateOK

func NewCreateConstraintTemplateOK() *CreateConstraintTemplateOK

NewCreateConstraintTemplateOK creates a CreateConstraintTemplateOK with default headers values

func (*CreateConstraintTemplateOK) Error

func (*CreateConstraintTemplateOK) GetPayload

func (*CreateConstraintTemplateOK) IsClientError

func (o *CreateConstraintTemplateOK) IsClientError() bool

IsClientError returns true when this create constraint template o k response has a 4xx status code

func (*CreateConstraintTemplateOK) IsCode

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

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

func (*CreateConstraintTemplateOK) IsRedirect

func (o *CreateConstraintTemplateOK) IsRedirect() bool

IsRedirect returns true when this create constraint template o k response has a 3xx status code

func (*CreateConstraintTemplateOK) IsServerError

func (o *CreateConstraintTemplateOK) IsServerError() bool

IsServerError returns true when this create constraint template o k response has a 5xx status code

func (*CreateConstraintTemplateOK) IsSuccess

func (o *CreateConstraintTemplateOK) IsSuccess() bool

IsSuccess returns true when this create constraint template o k response has a 2xx status code

func (*CreateConstraintTemplateOK) String

func (o *CreateConstraintTemplateOK) String() string

type CreateConstraintTemplateParams

type CreateConstraintTemplateParams struct {

	// Body.
	Body *models.CtBody

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

CreateConstraintTemplateParams contains all the parameters to send to the API endpoint

for the create constraint template operation.

Typically these are written to a http.Request.

func NewCreateConstraintTemplateParams

func NewCreateConstraintTemplateParams() *CreateConstraintTemplateParams

NewCreateConstraintTemplateParams creates a new CreateConstraintTemplateParams 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 NewCreateConstraintTemplateParamsWithContext

func NewCreateConstraintTemplateParamsWithContext(ctx context.Context) *CreateConstraintTemplateParams

NewCreateConstraintTemplateParamsWithContext creates a new CreateConstraintTemplateParams object with the ability to set a context for a request.

func NewCreateConstraintTemplateParamsWithHTTPClient

func NewCreateConstraintTemplateParamsWithHTTPClient(client *http.Client) *CreateConstraintTemplateParams

NewCreateConstraintTemplateParamsWithHTTPClient creates a new CreateConstraintTemplateParams object with the ability to set a custom HTTPClient for a request.

func NewCreateConstraintTemplateParamsWithTimeout

func NewCreateConstraintTemplateParamsWithTimeout(timeout time.Duration) *CreateConstraintTemplateParams

NewCreateConstraintTemplateParamsWithTimeout creates a new CreateConstraintTemplateParams object with the ability to set a timeout on a request.

func (*CreateConstraintTemplateParams) SetBody

func (o *CreateConstraintTemplateParams) SetBody(body *models.CtBody)

SetBody adds the body to the create constraint template params

func (*CreateConstraintTemplateParams) SetContext

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

SetContext adds the context to the create constraint template params

func (*CreateConstraintTemplateParams) SetDefaults

func (o *CreateConstraintTemplateParams) SetDefaults()

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

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

func (*CreateConstraintTemplateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create constraint template params

func (*CreateConstraintTemplateParams) SetTimeout

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

SetTimeout adds the timeout to the create constraint template params

func (*CreateConstraintTemplateParams) WithBody

WithBody adds the body to the create constraint template params

func (*CreateConstraintTemplateParams) WithContext

WithContext adds the context to the create constraint template params

func (*CreateConstraintTemplateParams) WithDefaults

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

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

func (*CreateConstraintTemplateParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create constraint template params

func (*CreateConstraintTemplateParams) WithTimeout

WithTimeout adds the timeout to the create constraint template params

func (*CreateConstraintTemplateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateConstraintTemplateReader

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

CreateConstraintTemplateReader is a Reader for the CreateConstraintTemplate structure.

func (*CreateConstraintTemplateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateConstraintTemplateUnauthorized

type CreateConstraintTemplateUnauthorized struct {
}

CreateConstraintTemplateUnauthorized describes a response with status code 401, with default header values.

EmptyResponse is a empty response

func NewCreateConstraintTemplateUnauthorized

func NewCreateConstraintTemplateUnauthorized() *CreateConstraintTemplateUnauthorized

NewCreateConstraintTemplateUnauthorized creates a CreateConstraintTemplateUnauthorized with default headers values

func (*CreateConstraintTemplateUnauthorized) Error

func (*CreateConstraintTemplateUnauthorized) IsClientError

func (o *CreateConstraintTemplateUnauthorized) IsClientError() bool

IsClientError returns true when this create constraint template unauthorized response has a 4xx status code

func (*CreateConstraintTemplateUnauthorized) IsCode

IsCode returns true when this create constraint template unauthorized response a status code equal to that given

func (*CreateConstraintTemplateUnauthorized) IsRedirect

IsRedirect returns true when this create constraint template unauthorized response has a 3xx status code

func (*CreateConstraintTemplateUnauthorized) IsServerError

func (o *CreateConstraintTemplateUnauthorized) IsServerError() bool

IsServerError returns true when this create constraint template unauthorized response has a 5xx status code

func (*CreateConstraintTemplateUnauthorized) IsSuccess

IsSuccess returns true when this create constraint template unauthorized response has a 2xx status code

func (*CreateConstraintTemplateUnauthorized) String

type DeleteConstraintTemplateDefault

type DeleteConstraintTemplateDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}

DeleteConstraintTemplateDefault describes a response with status code -1, with default header values.

errorResponse

func NewDeleteConstraintTemplateDefault

func NewDeleteConstraintTemplateDefault(code int) *DeleteConstraintTemplateDefault

NewDeleteConstraintTemplateDefault creates a DeleteConstraintTemplateDefault with default headers values

func (*DeleteConstraintTemplateDefault) Code

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

func (*DeleteConstraintTemplateDefault) Error

func (*DeleteConstraintTemplateDefault) GetPayload

func (*DeleteConstraintTemplateDefault) IsClientError

func (o *DeleteConstraintTemplateDefault) IsClientError() bool

IsClientError returns true when this delete constraint template default response has a 4xx status code

func (*DeleteConstraintTemplateDefault) IsCode

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

IsCode returns true when this delete constraint template default response a status code equal to that given

func (*DeleteConstraintTemplateDefault) IsRedirect

func (o *DeleteConstraintTemplateDefault) IsRedirect() bool

IsRedirect returns true when this delete constraint template default response has a 3xx status code

func (*DeleteConstraintTemplateDefault) IsServerError

func (o *DeleteConstraintTemplateDefault) IsServerError() bool

IsServerError returns true when this delete constraint template default response has a 5xx status code

func (*DeleteConstraintTemplateDefault) IsSuccess

func (o *DeleteConstraintTemplateDefault) IsSuccess() bool

IsSuccess returns true when this delete constraint template default response has a 2xx status code

func (*DeleteConstraintTemplateDefault) String

type DeleteConstraintTemplateForbidden

type DeleteConstraintTemplateForbidden struct {
}

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

EmptyResponse is a empty response

func NewDeleteConstraintTemplateForbidden

func NewDeleteConstraintTemplateForbidden() *DeleteConstraintTemplateForbidden

NewDeleteConstraintTemplateForbidden creates a DeleteConstraintTemplateForbidden with default headers values

func (*DeleteConstraintTemplateForbidden) Error

func (*DeleteConstraintTemplateForbidden) IsClientError

func (o *DeleteConstraintTemplateForbidden) IsClientError() bool

IsClientError returns true when this delete constraint template forbidden response has a 4xx status code

func (*DeleteConstraintTemplateForbidden) IsCode

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

IsCode returns true when this delete constraint template forbidden response a status code equal to that given

func (*DeleteConstraintTemplateForbidden) IsRedirect

func (o *DeleteConstraintTemplateForbidden) IsRedirect() bool

IsRedirect returns true when this delete constraint template forbidden response has a 3xx status code

func (*DeleteConstraintTemplateForbidden) IsServerError

func (o *DeleteConstraintTemplateForbidden) IsServerError() bool

IsServerError returns true when this delete constraint template forbidden response has a 5xx status code

func (*DeleteConstraintTemplateForbidden) IsSuccess

func (o *DeleteConstraintTemplateForbidden) IsSuccess() bool

IsSuccess returns true when this delete constraint template forbidden response has a 2xx status code

func (*DeleteConstraintTemplateForbidden) String

type DeleteConstraintTemplateOK

type DeleteConstraintTemplateOK struct {
}

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

EmptyResponse is a empty response

func NewDeleteConstraintTemplateOK

func NewDeleteConstraintTemplateOK() *DeleteConstraintTemplateOK

NewDeleteConstraintTemplateOK creates a DeleteConstraintTemplateOK with default headers values

func (*DeleteConstraintTemplateOK) Error

func (*DeleteConstraintTemplateOK) IsClientError

func (o *DeleteConstraintTemplateOK) IsClientError() bool

IsClientError returns true when this delete constraint template o k response has a 4xx status code

func (*DeleteConstraintTemplateOK) IsCode

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

IsCode returns true when this delete constraint template o k response a status code equal to that given

func (*DeleteConstraintTemplateOK) IsRedirect

func (o *DeleteConstraintTemplateOK) IsRedirect() bool

IsRedirect returns true when this delete constraint template o k response has a 3xx status code

func (*DeleteConstraintTemplateOK) IsServerError

func (o *DeleteConstraintTemplateOK) IsServerError() bool

IsServerError returns true when this delete constraint template o k response has a 5xx status code

func (*DeleteConstraintTemplateOK) IsSuccess

func (o *DeleteConstraintTemplateOK) IsSuccess() bool

IsSuccess returns true when this delete constraint template o k response has a 2xx status code

func (*DeleteConstraintTemplateOK) String

func (o *DeleteConstraintTemplateOK) String() string

type DeleteConstraintTemplateParams

type DeleteConstraintTemplateParams struct {

	// CtName.
	Name string

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

DeleteConstraintTemplateParams contains all the parameters to send to the API endpoint

for the delete constraint template operation.

Typically these are written to a http.Request.

func NewDeleteConstraintTemplateParams

func NewDeleteConstraintTemplateParams() *DeleteConstraintTemplateParams

NewDeleteConstraintTemplateParams creates a new DeleteConstraintTemplateParams 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 NewDeleteConstraintTemplateParamsWithContext

func NewDeleteConstraintTemplateParamsWithContext(ctx context.Context) *DeleteConstraintTemplateParams

NewDeleteConstraintTemplateParamsWithContext creates a new DeleteConstraintTemplateParams object with the ability to set a context for a request.

func NewDeleteConstraintTemplateParamsWithHTTPClient

func NewDeleteConstraintTemplateParamsWithHTTPClient(client *http.Client) *DeleteConstraintTemplateParams

NewDeleteConstraintTemplateParamsWithHTTPClient creates a new DeleteConstraintTemplateParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteConstraintTemplateParamsWithTimeout

func NewDeleteConstraintTemplateParamsWithTimeout(timeout time.Duration) *DeleteConstraintTemplateParams

NewDeleteConstraintTemplateParamsWithTimeout creates a new DeleteConstraintTemplateParams object with the ability to set a timeout on a request.

func (*DeleteConstraintTemplateParams) SetContext

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

SetContext adds the context to the delete constraint template params

func (*DeleteConstraintTemplateParams) SetDefaults

func (o *DeleteConstraintTemplateParams) SetDefaults()

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

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

func (*DeleteConstraintTemplateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete constraint template params

func (*DeleteConstraintTemplateParams) SetName

func (o *DeleteConstraintTemplateParams) SetName(ctName string)

SetName adds the ctName to the delete constraint template params

func (*DeleteConstraintTemplateParams) SetTimeout

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

SetTimeout adds the timeout to the delete constraint template params

func (*DeleteConstraintTemplateParams) WithContext

WithContext adds the context to the delete constraint template params

func (*DeleteConstraintTemplateParams) WithDefaults

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

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

func (*DeleteConstraintTemplateParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete constraint template params

func (*DeleteConstraintTemplateParams) WithName

WithName adds the ctName to the delete constraint template params

func (*DeleteConstraintTemplateParams) WithTimeout

WithTimeout adds the timeout to the delete constraint template params

func (*DeleteConstraintTemplateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteConstraintTemplateReader

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

DeleteConstraintTemplateReader is a Reader for the DeleteConstraintTemplate structure.

func (*DeleteConstraintTemplateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteConstraintTemplateUnauthorized

type DeleteConstraintTemplateUnauthorized struct {
}

DeleteConstraintTemplateUnauthorized describes a response with status code 401, with default header values.

EmptyResponse is a empty response

func NewDeleteConstraintTemplateUnauthorized

func NewDeleteConstraintTemplateUnauthorized() *DeleteConstraintTemplateUnauthorized

NewDeleteConstraintTemplateUnauthorized creates a DeleteConstraintTemplateUnauthorized with default headers values

func (*DeleteConstraintTemplateUnauthorized) Error

func (*DeleteConstraintTemplateUnauthorized) IsClientError

func (o *DeleteConstraintTemplateUnauthorized) IsClientError() bool

IsClientError returns true when this delete constraint template unauthorized response has a 4xx status code

func (*DeleteConstraintTemplateUnauthorized) IsCode

IsCode returns true when this delete constraint template unauthorized response a status code equal to that given

func (*DeleteConstraintTemplateUnauthorized) IsRedirect

IsRedirect returns true when this delete constraint template unauthorized response has a 3xx status code

func (*DeleteConstraintTemplateUnauthorized) IsServerError

func (o *DeleteConstraintTemplateUnauthorized) IsServerError() bool

IsServerError returns true when this delete constraint template unauthorized response has a 5xx status code

func (*DeleteConstraintTemplateUnauthorized) IsSuccess

IsSuccess returns true when this delete constraint template unauthorized response has a 2xx status code

func (*DeleteConstraintTemplateUnauthorized) String

type GetConstraintTemplateDefault

type GetConstraintTemplateDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}

GetConstraintTemplateDefault describes a response with status code -1, with default header values.

errorResponse

func NewGetConstraintTemplateDefault

func NewGetConstraintTemplateDefault(code int) *GetConstraintTemplateDefault

NewGetConstraintTemplateDefault creates a GetConstraintTemplateDefault with default headers values

func (*GetConstraintTemplateDefault) Code

Code gets the status code for the get constraint template default response

func (*GetConstraintTemplateDefault) Error

func (*GetConstraintTemplateDefault) GetPayload

func (*GetConstraintTemplateDefault) IsClientError

func (o *GetConstraintTemplateDefault) IsClientError() bool

IsClientError returns true when this get constraint template default response has a 4xx status code

func (*GetConstraintTemplateDefault) IsCode

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

IsCode returns true when this get constraint template default response a status code equal to that given

func (*GetConstraintTemplateDefault) IsRedirect

func (o *GetConstraintTemplateDefault) IsRedirect() bool

IsRedirect returns true when this get constraint template default response has a 3xx status code

func (*GetConstraintTemplateDefault) IsServerError

func (o *GetConstraintTemplateDefault) IsServerError() bool

IsServerError returns true when this get constraint template default response has a 5xx status code

func (*GetConstraintTemplateDefault) IsSuccess

func (o *GetConstraintTemplateDefault) IsSuccess() bool

IsSuccess returns true when this get constraint template default response has a 2xx status code

func (*GetConstraintTemplateDefault) String

type GetConstraintTemplateForbidden

type GetConstraintTemplateForbidden struct {
}

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

EmptyResponse is a empty response

func NewGetConstraintTemplateForbidden

func NewGetConstraintTemplateForbidden() *GetConstraintTemplateForbidden

NewGetConstraintTemplateForbidden creates a GetConstraintTemplateForbidden with default headers values

func (*GetConstraintTemplateForbidden) Error

func (*GetConstraintTemplateForbidden) IsClientError

func (o *GetConstraintTemplateForbidden) IsClientError() bool

IsClientError returns true when this get constraint template forbidden response has a 4xx status code

func (*GetConstraintTemplateForbidden) IsCode

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

IsCode returns true when this get constraint template forbidden response a status code equal to that given

func (*GetConstraintTemplateForbidden) IsRedirect

func (o *GetConstraintTemplateForbidden) IsRedirect() bool

IsRedirect returns true when this get constraint template forbidden response has a 3xx status code

func (*GetConstraintTemplateForbidden) IsServerError

func (o *GetConstraintTemplateForbidden) IsServerError() bool

IsServerError returns true when this get constraint template forbidden response has a 5xx status code

func (*GetConstraintTemplateForbidden) IsSuccess

func (o *GetConstraintTemplateForbidden) IsSuccess() bool

IsSuccess returns true when this get constraint template forbidden response has a 2xx status code

func (*GetConstraintTemplateForbidden) String

type GetConstraintTemplateOK

type GetConstraintTemplateOK struct {
	Payload *models.ConstraintTemplate
}

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

ConstraintTemplate

func NewGetConstraintTemplateOK

func NewGetConstraintTemplateOK() *GetConstraintTemplateOK

NewGetConstraintTemplateOK creates a GetConstraintTemplateOK with default headers values

func (*GetConstraintTemplateOK) Error

func (o *GetConstraintTemplateOK) Error() string

func (*GetConstraintTemplateOK) GetPayload

func (*GetConstraintTemplateOK) IsClientError

func (o *GetConstraintTemplateOK) IsClientError() bool

IsClientError returns true when this get constraint template o k response has a 4xx status code

func (*GetConstraintTemplateOK) IsCode

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

IsCode returns true when this get constraint template o k response a status code equal to that given

func (*GetConstraintTemplateOK) IsRedirect

func (o *GetConstraintTemplateOK) IsRedirect() bool

IsRedirect returns true when this get constraint template o k response has a 3xx status code

func (*GetConstraintTemplateOK) IsServerError

func (o *GetConstraintTemplateOK) IsServerError() bool

IsServerError returns true when this get constraint template o k response has a 5xx status code

func (*GetConstraintTemplateOK) IsSuccess

func (o *GetConstraintTemplateOK) IsSuccess() bool

IsSuccess returns true when this get constraint template o k response has a 2xx status code

func (*GetConstraintTemplateOK) String

func (o *GetConstraintTemplateOK) String() string

type GetConstraintTemplateParams

type GetConstraintTemplateParams struct {

	// CtName.
	Name string

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

GetConstraintTemplateParams contains all the parameters to send to the API endpoint

for the get constraint template operation.

Typically these are written to a http.Request.

func NewGetConstraintTemplateParams

func NewGetConstraintTemplateParams() *GetConstraintTemplateParams

NewGetConstraintTemplateParams creates a new GetConstraintTemplateParams 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 NewGetConstraintTemplateParamsWithContext

func NewGetConstraintTemplateParamsWithContext(ctx context.Context) *GetConstraintTemplateParams

NewGetConstraintTemplateParamsWithContext creates a new GetConstraintTemplateParams object with the ability to set a context for a request.

func NewGetConstraintTemplateParamsWithHTTPClient

func NewGetConstraintTemplateParamsWithHTTPClient(client *http.Client) *GetConstraintTemplateParams

NewGetConstraintTemplateParamsWithHTTPClient creates a new GetConstraintTemplateParams object with the ability to set a custom HTTPClient for a request.

func NewGetConstraintTemplateParamsWithTimeout

func NewGetConstraintTemplateParamsWithTimeout(timeout time.Duration) *GetConstraintTemplateParams

NewGetConstraintTemplateParamsWithTimeout creates a new GetConstraintTemplateParams object with the ability to set a timeout on a request.

func (*GetConstraintTemplateParams) SetContext

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

SetContext adds the context to the get constraint template params

func (*GetConstraintTemplateParams) SetDefaults

func (o *GetConstraintTemplateParams) SetDefaults()

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

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

func (*GetConstraintTemplateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get constraint template params

func (*GetConstraintTemplateParams) SetName

func (o *GetConstraintTemplateParams) SetName(ctName string)

SetName adds the ctName to the get constraint template params

func (*GetConstraintTemplateParams) SetTimeout

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

SetTimeout adds the timeout to the get constraint template params

func (*GetConstraintTemplateParams) WithContext

WithContext adds the context to the get constraint template params

func (*GetConstraintTemplateParams) WithDefaults

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

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

func (*GetConstraintTemplateParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get constraint template params

func (*GetConstraintTemplateParams) WithName

WithName adds the ctName to the get constraint template params

func (*GetConstraintTemplateParams) WithTimeout

WithTimeout adds the timeout to the get constraint template params

func (*GetConstraintTemplateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetConstraintTemplateReader

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

GetConstraintTemplateReader is a Reader for the GetConstraintTemplate structure.

func (*GetConstraintTemplateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetConstraintTemplateUnauthorized

type GetConstraintTemplateUnauthorized struct {
}

GetConstraintTemplateUnauthorized describes a response with status code 401, with default header values.

EmptyResponse is a empty response

func NewGetConstraintTemplateUnauthorized

func NewGetConstraintTemplateUnauthorized() *GetConstraintTemplateUnauthorized

NewGetConstraintTemplateUnauthorized creates a GetConstraintTemplateUnauthorized with default headers values

func (*GetConstraintTemplateUnauthorized) Error

func (*GetConstraintTemplateUnauthorized) IsClientError

func (o *GetConstraintTemplateUnauthorized) IsClientError() bool

IsClientError returns true when this get constraint template unauthorized response has a 4xx status code

func (*GetConstraintTemplateUnauthorized) IsCode

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

IsCode returns true when this get constraint template unauthorized response a status code equal to that given

func (*GetConstraintTemplateUnauthorized) IsRedirect

func (o *GetConstraintTemplateUnauthorized) IsRedirect() bool

IsRedirect returns true when this get constraint template unauthorized response has a 3xx status code

func (*GetConstraintTemplateUnauthorized) IsServerError

func (o *GetConstraintTemplateUnauthorized) IsServerError() bool

IsServerError returns true when this get constraint template unauthorized response has a 5xx status code

func (*GetConstraintTemplateUnauthorized) IsSuccess

func (o *GetConstraintTemplateUnauthorized) IsSuccess() bool

IsSuccess returns true when this get constraint template unauthorized response has a 2xx status code

func (*GetConstraintTemplateUnauthorized) String

type ListConstraintTemplatesDefault

type ListConstraintTemplatesDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}

ListConstraintTemplatesDefault describes a response with status code -1, with default header values.

errorResponse

func NewListConstraintTemplatesDefault

func NewListConstraintTemplatesDefault(code int) *ListConstraintTemplatesDefault

NewListConstraintTemplatesDefault creates a ListConstraintTemplatesDefault with default headers values

func (*ListConstraintTemplatesDefault) Code

Code gets the status code for the list constraint templates default response

func (*ListConstraintTemplatesDefault) Error

func (*ListConstraintTemplatesDefault) GetPayload

func (*ListConstraintTemplatesDefault) IsClientError

func (o *ListConstraintTemplatesDefault) IsClientError() bool

IsClientError returns true when this list constraint templates default response has a 4xx status code

func (*ListConstraintTemplatesDefault) IsCode

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

IsCode returns true when this list constraint templates default response a status code equal to that given

func (*ListConstraintTemplatesDefault) IsRedirect

func (o *ListConstraintTemplatesDefault) IsRedirect() bool

IsRedirect returns true when this list constraint templates default response has a 3xx status code

func (*ListConstraintTemplatesDefault) IsServerError

func (o *ListConstraintTemplatesDefault) IsServerError() bool

IsServerError returns true when this list constraint templates default response has a 5xx status code

func (*ListConstraintTemplatesDefault) IsSuccess

func (o *ListConstraintTemplatesDefault) IsSuccess() bool

IsSuccess returns true when this list constraint templates default response has a 2xx status code

func (*ListConstraintTemplatesDefault) String

type ListConstraintTemplatesForbidden

type ListConstraintTemplatesForbidden struct {
}

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

EmptyResponse is a empty response

func NewListConstraintTemplatesForbidden

func NewListConstraintTemplatesForbidden() *ListConstraintTemplatesForbidden

NewListConstraintTemplatesForbidden creates a ListConstraintTemplatesForbidden with default headers values

func (*ListConstraintTemplatesForbidden) Error

func (*ListConstraintTemplatesForbidden) IsClientError

func (o *ListConstraintTemplatesForbidden) IsClientError() bool

IsClientError returns true when this list constraint templates forbidden response has a 4xx status code

func (*ListConstraintTemplatesForbidden) IsCode

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

IsCode returns true when this list constraint templates forbidden response a status code equal to that given

func (*ListConstraintTemplatesForbidden) IsRedirect

func (o *ListConstraintTemplatesForbidden) IsRedirect() bool

IsRedirect returns true when this list constraint templates forbidden response has a 3xx status code

func (*ListConstraintTemplatesForbidden) IsServerError

func (o *ListConstraintTemplatesForbidden) IsServerError() bool

IsServerError returns true when this list constraint templates forbidden response has a 5xx status code

func (*ListConstraintTemplatesForbidden) IsSuccess

func (o *ListConstraintTemplatesForbidden) IsSuccess() bool

IsSuccess returns true when this list constraint templates forbidden response has a 2xx status code

func (*ListConstraintTemplatesForbidden) String

type ListConstraintTemplatesOK

type ListConstraintTemplatesOK struct {
	Payload []*models.ConstraintTemplate
}

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

ConstraintTemplate

func NewListConstraintTemplatesOK

func NewListConstraintTemplatesOK() *ListConstraintTemplatesOK

NewListConstraintTemplatesOK creates a ListConstraintTemplatesOK with default headers values

func (*ListConstraintTemplatesOK) Error

func (o *ListConstraintTemplatesOK) Error() string

func (*ListConstraintTemplatesOK) GetPayload

func (*ListConstraintTemplatesOK) IsClientError

func (o *ListConstraintTemplatesOK) IsClientError() bool

IsClientError returns true when this list constraint templates o k response has a 4xx status code

func (*ListConstraintTemplatesOK) IsCode

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

IsCode returns true when this list constraint templates o k response a status code equal to that given

func (*ListConstraintTemplatesOK) IsRedirect

func (o *ListConstraintTemplatesOK) IsRedirect() bool

IsRedirect returns true when this list constraint templates o k response has a 3xx status code

func (*ListConstraintTemplatesOK) IsServerError

func (o *ListConstraintTemplatesOK) IsServerError() bool

IsServerError returns true when this list constraint templates o k response has a 5xx status code

func (*ListConstraintTemplatesOK) IsSuccess

func (o *ListConstraintTemplatesOK) IsSuccess() bool

IsSuccess returns true when this list constraint templates o k response has a 2xx status code

func (*ListConstraintTemplatesOK) String

func (o *ListConstraintTemplatesOK) String() string

type ListConstraintTemplatesParams

type ListConstraintTemplatesParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListConstraintTemplatesParams contains all the parameters to send to the API endpoint

for the list constraint templates operation.

Typically these are written to a http.Request.

func NewListConstraintTemplatesParams

func NewListConstraintTemplatesParams() *ListConstraintTemplatesParams

NewListConstraintTemplatesParams creates a new ListConstraintTemplatesParams 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 NewListConstraintTemplatesParamsWithContext

func NewListConstraintTemplatesParamsWithContext(ctx context.Context) *ListConstraintTemplatesParams

NewListConstraintTemplatesParamsWithContext creates a new ListConstraintTemplatesParams object with the ability to set a context for a request.

func NewListConstraintTemplatesParamsWithHTTPClient

func NewListConstraintTemplatesParamsWithHTTPClient(client *http.Client) *ListConstraintTemplatesParams

NewListConstraintTemplatesParamsWithHTTPClient creates a new ListConstraintTemplatesParams object with the ability to set a custom HTTPClient for a request.

func NewListConstraintTemplatesParamsWithTimeout

func NewListConstraintTemplatesParamsWithTimeout(timeout time.Duration) *ListConstraintTemplatesParams

NewListConstraintTemplatesParamsWithTimeout creates a new ListConstraintTemplatesParams object with the ability to set a timeout on a request.

func (*ListConstraintTemplatesParams) SetContext

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

SetContext adds the context to the list constraint templates params

func (*ListConstraintTemplatesParams) SetDefaults

func (o *ListConstraintTemplatesParams) SetDefaults()

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

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

func (*ListConstraintTemplatesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list constraint templates params

func (*ListConstraintTemplatesParams) SetTimeout

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

SetTimeout adds the timeout to the list constraint templates params

func (*ListConstraintTemplatesParams) WithContext

WithContext adds the context to the list constraint templates params

func (*ListConstraintTemplatesParams) WithDefaults

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

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

func (*ListConstraintTemplatesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list constraint templates params

func (*ListConstraintTemplatesParams) WithTimeout

WithTimeout adds the timeout to the list constraint templates params

func (*ListConstraintTemplatesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListConstraintTemplatesReader

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

ListConstraintTemplatesReader is a Reader for the ListConstraintTemplates structure.

func (*ListConstraintTemplatesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListConstraintTemplatesUnauthorized

type ListConstraintTemplatesUnauthorized struct {
}

ListConstraintTemplatesUnauthorized describes a response with status code 401, with default header values.

EmptyResponse is a empty response

func NewListConstraintTemplatesUnauthorized

func NewListConstraintTemplatesUnauthorized() *ListConstraintTemplatesUnauthorized

NewListConstraintTemplatesUnauthorized creates a ListConstraintTemplatesUnauthorized with default headers values

func (*ListConstraintTemplatesUnauthorized) Error

func (*ListConstraintTemplatesUnauthorized) IsClientError

func (o *ListConstraintTemplatesUnauthorized) IsClientError() bool

IsClientError returns true when this list constraint templates unauthorized response has a 4xx status code

func (*ListConstraintTemplatesUnauthorized) IsCode

IsCode returns true when this list constraint templates unauthorized response a status code equal to that given

func (*ListConstraintTemplatesUnauthorized) IsRedirect

func (o *ListConstraintTemplatesUnauthorized) IsRedirect() bool

IsRedirect returns true when this list constraint templates unauthorized response has a 3xx status code

func (*ListConstraintTemplatesUnauthorized) IsServerError

func (o *ListConstraintTemplatesUnauthorized) IsServerError() bool

IsServerError returns true when this list constraint templates unauthorized response has a 5xx status code

func (*ListConstraintTemplatesUnauthorized) IsSuccess

IsSuccess returns true when this list constraint templates unauthorized response has a 2xx status code

func (*ListConstraintTemplatesUnauthorized) String

type PatchConstraintTemplateDefault

type PatchConstraintTemplateDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}

PatchConstraintTemplateDefault describes a response with status code -1, with default header values.

errorResponse

func NewPatchConstraintTemplateDefault

func NewPatchConstraintTemplateDefault(code int) *PatchConstraintTemplateDefault

NewPatchConstraintTemplateDefault creates a PatchConstraintTemplateDefault with default headers values

func (*PatchConstraintTemplateDefault) Code

Code gets the status code for the patch constraint template default response

func (*PatchConstraintTemplateDefault) Error

func (*PatchConstraintTemplateDefault) GetPayload

func (*PatchConstraintTemplateDefault) IsClientError

func (o *PatchConstraintTemplateDefault) IsClientError() bool

IsClientError returns true when this patch constraint template default response has a 4xx status code

func (*PatchConstraintTemplateDefault) IsCode

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

IsCode returns true when this patch constraint template default response a status code equal to that given

func (*PatchConstraintTemplateDefault) IsRedirect

func (o *PatchConstraintTemplateDefault) IsRedirect() bool

IsRedirect returns true when this patch constraint template default response has a 3xx status code

func (*PatchConstraintTemplateDefault) IsServerError

func (o *PatchConstraintTemplateDefault) IsServerError() bool

IsServerError returns true when this patch constraint template default response has a 5xx status code

func (*PatchConstraintTemplateDefault) IsSuccess

func (o *PatchConstraintTemplateDefault) IsSuccess() bool

IsSuccess returns true when this patch constraint template default response has a 2xx status code

func (*PatchConstraintTemplateDefault) String

type PatchConstraintTemplateForbidden

type PatchConstraintTemplateForbidden struct {
}

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

EmptyResponse is a empty response

func NewPatchConstraintTemplateForbidden

func NewPatchConstraintTemplateForbidden() *PatchConstraintTemplateForbidden

NewPatchConstraintTemplateForbidden creates a PatchConstraintTemplateForbidden with default headers values

func (*PatchConstraintTemplateForbidden) Error

func (*PatchConstraintTemplateForbidden) IsClientError

func (o *PatchConstraintTemplateForbidden) IsClientError() bool

IsClientError returns true when this patch constraint template forbidden response has a 4xx status code

func (*PatchConstraintTemplateForbidden) IsCode

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

IsCode returns true when this patch constraint template forbidden response a status code equal to that given

func (*PatchConstraintTemplateForbidden) IsRedirect

func (o *PatchConstraintTemplateForbidden) IsRedirect() bool

IsRedirect returns true when this patch constraint template forbidden response has a 3xx status code

func (*PatchConstraintTemplateForbidden) IsServerError

func (o *PatchConstraintTemplateForbidden) IsServerError() bool

IsServerError returns true when this patch constraint template forbidden response has a 5xx status code

func (*PatchConstraintTemplateForbidden) IsSuccess

func (o *PatchConstraintTemplateForbidden) IsSuccess() bool

IsSuccess returns true when this patch constraint template forbidden response has a 2xx status code

func (*PatchConstraintTemplateForbidden) String

type PatchConstraintTemplateOK

type PatchConstraintTemplateOK struct {
	Payload *models.ConstraintTemplate
}

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

ConstraintTemplate

func NewPatchConstraintTemplateOK

func NewPatchConstraintTemplateOK() *PatchConstraintTemplateOK

NewPatchConstraintTemplateOK creates a PatchConstraintTemplateOK with default headers values

func (*PatchConstraintTemplateOK) Error

func (o *PatchConstraintTemplateOK) Error() string

func (*PatchConstraintTemplateOK) GetPayload

func (*PatchConstraintTemplateOK) IsClientError

func (o *PatchConstraintTemplateOK) IsClientError() bool

IsClientError returns true when this patch constraint template o k response has a 4xx status code

func (*PatchConstraintTemplateOK) IsCode

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

IsCode returns true when this patch constraint template o k response a status code equal to that given

func (*PatchConstraintTemplateOK) IsRedirect

func (o *PatchConstraintTemplateOK) IsRedirect() bool

IsRedirect returns true when this patch constraint template o k response has a 3xx status code

func (*PatchConstraintTemplateOK) IsServerError

func (o *PatchConstraintTemplateOK) IsServerError() bool

IsServerError returns true when this patch constraint template o k response has a 5xx status code

func (*PatchConstraintTemplateOK) IsSuccess

func (o *PatchConstraintTemplateOK) IsSuccess() bool

IsSuccess returns true when this patch constraint template o k response has a 2xx status code

func (*PatchConstraintTemplateOK) String

func (o *PatchConstraintTemplateOK) String() string

type PatchConstraintTemplateParams

type PatchConstraintTemplateParams struct {

	// Patch.
	Patch interface{}

	// CtName.
	Name string

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

PatchConstraintTemplateParams contains all the parameters to send to the API endpoint

for the patch constraint template operation.

Typically these are written to a http.Request.

func NewPatchConstraintTemplateParams

func NewPatchConstraintTemplateParams() *PatchConstraintTemplateParams

NewPatchConstraintTemplateParams creates a new PatchConstraintTemplateParams 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 NewPatchConstraintTemplateParamsWithContext

func NewPatchConstraintTemplateParamsWithContext(ctx context.Context) *PatchConstraintTemplateParams

NewPatchConstraintTemplateParamsWithContext creates a new PatchConstraintTemplateParams object with the ability to set a context for a request.

func NewPatchConstraintTemplateParamsWithHTTPClient

func NewPatchConstraintTemplateParamsWithHTTPClient(client *http.Client) *PatchConstraintTemplateParams

NewPatchConstraintTemplateParamsWithHTTPClient creates a new PatchConstraintTemplateParams object with the ability to set a custom HTTPClient for a request.

func NewPatchConstraintTemplateParamsWithTimeout

func NewPatchConstraintTemplateParamsWithTimeout(timeout time.Duration) *PatchConstraintTemplateParams

NewPatchConstraintTemplateParamsWithTimeout creates a new PatchConstraintTemplateParams object with the ability to set a timeout on a request.

func (*PatchConstraintTemplateParams) SetContext

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

SetContext adds the context to the patch constraint template params

func (*PatchConstraintTemplateParams) SetDefaults

func (o *PatchConstraintTemplateParams) SetDefaults()

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

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

func (*PatchConstraintTemplateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the patch constraint template params

func (*PatchConstraintTemplateParams) SetName

func (o *PatchConstraintTemplateParams) SetName(ctName string)

SetName adds the ctName to the patch constraint template params

func (*PatchConstraintTemplateParams) SetPatch

func (o *PatchConstraintTemplateParams) SetPatch(patch interface{})

SetPatch adds the patch to the patch constraint template params

func (*PatchConstraintTemplateParams) SetTimeout

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

SetTimeout adds the timeout to the patch constraint template params

func (*PatchConstraintTemplateParams) WithContext

WithContext adds the context to the patch constraint template params

func (*PatchConstraintTemplateParams) WithDefaults

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

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

func (*PatchConstraintTemplateParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the patch constraint template params

func (*PatchConstraintTemplateParams) WithName

WithName adds the ctName to the patch constraint template params

func (*PatchConstraintTemplateParams) WithPatch

func (o *PatchConstraintTemplateParams) WithPatch(patch interface{}) *PatchConstraintTemplateParams

WithPatch adds the patch to the patch constraint template params

func (*PatchConstraintTemplateParams) WithTimeout

WithTimeout adds the timeout to the patch constraint template params

func (*PatchConstraintTemplateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PatchConstraintTemplateReader

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

PatchConstraintTemplateReader is a Reader for the PatchConstraintTemplate structure.

func (*PatchConstraintTemplateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PatchConstraintTemplateUnauthorized

type PatchConstraintTemplateUnauthorized struct {
}

PatchConstraintTemplateUnauthorized describes a response with status code 401, with default header values.

EmptyResponse is a empty response

func NewPatchConstraintTemplateUnauthorized

func NewPatchConstraintTemplateUnauthorized() *PatchConstraintTemplateUnauthorized

NewPatchConstraintTemplateUnauthorized creates a PatchConstraintTemplateUnauthorized with default headers values

func (*PatchConstraintTemplateUnauthorized) Error

func (*PatchConstraintTemplateUnauthorized) IsClientError

func (o *PatchConstraintTemplateUnauthorized) IsClientError() bool

IsClientError returns true when this patch constraint template unauthorized response has a 4xx status code

func (*PatchConstraintTemplateUnauthorized) IsCode

IsCode returns true when this patch constraint template unauthorized response a status code equal to that given

func (*PatchConstraintTemplateUnauthorized) IsRedirect

func (o *PatchConstraintTemplateUnauthorized) IsRedirect() bool

IsRedirect returns true when this patch constraint template unauthorized response has a 3xx status code

func (*PatchConstraintTemplateUnauthorized) IsServerError

func (o *PatchConstraintTemplateUnauthorized) IsServerError() bool

IsServerError returns true when this patch constraint template unauthorized response has a 5xx status code

func (*PatchConstraintTemplateUnauthorized) IsSuccess

IsSuccess returns true when this patch constraint template unauthorized response has a 2xx status code

func (*PatchConstraintTemplateUnauthorized) String

Jump to

Keyboard shortcuts

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