constrainttemplates

package
v2.17.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 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) (*CreateConstraintTemplateOK, error)

CreateConstraintTemplate Create constraint template

func (*Client) DeleteConstraintTemplate

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

DeleteConstraintTemplate Deletes the specified cluster

func (*Client) GetConstraintTemplate

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

GetConstraintTemplate Get constraint templates specified by name

func (*Client) ListConstraintTemplates

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

ListConstraintTemplates lists constraint templates

func (*Client) PatchConstraintTemplate

func (a *Client) PatchConstraintTemplate(params *PatchConstraintTemplateParams, authInfo runtime.ClientAuthInfoWriter) (*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 ClientService

type ClientService interface {
	CreateConstraintTemplate(params *CreateConstraintTemplateParams, authInfo runtime.ClientAuthInfoWriter) (*CreateConstraintTemplateOK, error)

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

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

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

	PatchConstraintTemplate(params *PatchConstraintTemplateParams, authInfo runtime.ClientAuthInfoWriter) (*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 handles this case 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

type CreateConstraintTemplateForbidden

type CreateConstraintTemplateForbidden struct {
}

CreateConstraintTemplateForbidden handles this case 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

type CreateConstraintTemplateOK

type CreateConstraintTemplateOK struct {
	Payload *models.ConstraintTemplate
}

CreateConstraintTemplateOK handles this case with default header values.

ConstraintTemplate

func NewCreateConstraintTemplateOK

func NewCreateConstraintTemplateOK() *CreateConstraintTemplateOK

NewCreateConstraintTemplateOK creates a CreateConstraintTemplateOK with default headers values

func (*CreateConstraintTemplateOK) Error

func (*CreateConstraintTemplateOK) GetPayload

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 values initialized.

func NewCreateConstraintTemplateParamsWithContext

func NewCreateConstraintTemplateParamsWithContext(ctx context.Context) *CreateConstraintTemplateParams

NewCreateConstraintTemplateParamsWithContext creates a new CreateConstraintTemplateParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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

type DeleteConstraintTemplateDefault

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

DeleteConstraintTemplateDefault handles this case 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

type DeleteConstraintTemplateForbidden

type DeleteConstraintTemplateForbidden struct {
}

DeleteConstraintTemplateForbidden handles this case 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

type DeleteConstraintTemplateOK

type DeleteConstraintTemplateOK struct {
}

DeleteConstraintTemplateOK handles this case 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

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 values initialized.

func NewDeleteConstraintTemplateParamsWithContext

func NewDeleteConstraintTemplateParamsWithContext(ctx context.Context) *DeleteConstraintTemplateParams

NewDeleteConstraintTemplateParamsWithContext creates a new DeleteConstraintTemplateParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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

type GetConstraintTemplateDefault

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

GetConstraintTemplateDefault handles this case 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

type GetConstraintTemplateForbidden

type GetConstraintTemplateForbidden struct {
}

GetConstraintTemplateForbidden handles this case 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

type GetConstraintTemplateOK

type GetConstraintTemplateOK struct {
	Payload *models.ConstraintTemplate
}

GetConstraintTemplateOK handles this case 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

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 values initialized.

func NewGetConstraintTemplateParamsWithContext

func NewGetConstraintTemplateParamsWithContext(ctx context.Context) *GetConstraintTemplateParams

NewGetConstraintTemplateParamsWithContext creates a new GetConstraintTemplateParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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

type ListConstraintTemplatesDefault

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

ListConstraintTemplatesDefault handles this case 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

type ListConstraintTemplatesForbidden

type ListConstraintTemplatesForbidden struct {
}

ListConstraintTemplatesForbidden handles this case 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

type ListConstraintTemplatesOK

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

ListConstraintTemplatesOK handles this case 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

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 values initialized.

func NewListConstraintTemplatesParamsWithContext

func NewListConstraintTemplatesParamsWithContext(ctx context.Context) *ListConstraintTemplatesParams

NewListConstraintTemplatesParamsWithContext creates a new ListConstraintTemplatesParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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

type PatchConstraintTemplateDefault

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

PatchConstraintTemplateDefault handles this case 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

type PatchConstraintTemplateForbidden

type PatchConstraintTemplateForbidden struct {
}

PatchConstraintTemplateForbidden handles this case 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

type PatchConstraintTemplateOK

type PatchConstraintTemplateOK struct {
	Payload *models.ConstraintTemplate
}

PatchConstraintTemplateOK handles this case 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

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 values initialized.

func NewPatchConstraintTemplateParamsWithContext

func NewPatchConstraintTemplateParamsWithContext(ctx context.Context) *PatchConstraintTemplateParams

NewPatchConstraintTemplateParamsWithContext creates a new PatchConstraintTemplateParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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

Jump to

Keyboard shortcuts

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