terminator

package
v0.20.132 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: Apache-2.0 Imports: 11 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 terminator API

func (*Client) CreateTerminator

func (a *Client) CreateTerminator(params *CreateTerminatorParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateTerminatorCreated, error)

CreateTerminator creates a terminator resource

Create a terminator resource. Requires admin access.

func (*Client) DeleteTerminator

func (a *Client) DeleteTerminator(params *DeleteTerminatorParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteTerminatorOK, error)

DeleteTerminator deletes a terminator

Delete a terminator by id. Requires admin access.

func (*Client) DetailTerminator

func (a *Client) DetailTerminator(params *DetailTerminatorParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DetailTerminatorOK, error)

DetailTerminator retrieves a single terminator

Retrieves a single terminator by id. Requires admin access.

func (*Client) ListTerminators

func (a *Client) ListTerminators(params *ListTerminatorsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListTerminatorsOK, error)

ListTerminators lists terminators

Retrieves a list of terminator resources; supports filtering, sorting, and pagination. Requires admin access.

func (*Client) PatchTerminator

func (a *Client) PatchTerminator(params *PatchTerminatorParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchTerminatorOK, error)

PatchTerminator updates the supplied fields on a terminator

Update the supplied fields on a terminator. Requires admin access.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) UpdateTerminator

func (a *Client) UpdateTerminator(params *UpdateTerminatorParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateTerminatorOK, error)

UpdateTerminator updates all fields on a terminator

Update all fields on a terminator by id. Requires admin access.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateTerminator(params *CreateTerminatorParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateTerminatorCreated, error)

	DeleteTerminator(params *DeleteTerminatorParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteTerminatorOK, error)

	DetailTerminator(params *DetailTerminatorParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DetailTerminatorOK, error)

	ListTerminators(params *ListTerminatorsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListTerminatorsOK, error)

	PatchTerminator(params *PatchTerminatorParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchTerminatorOK, error)

	UpdateTerminator(params *UpdateTerminatorParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateTerminatorOK, 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 terminator API client.

type CreateTerminatorBadRequest

type CreateTerminatorBadRequest struct {
	Payload *rest_model.APIErrorEnvelope
}
CreateTerminatorBadRequest describes a response with status code 400, with default header values.

The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information

func NewCreateTerminatorBadRequest

func NewCreateTerminatorBadRequest() *CreateTerminatorBadRequest

NewCreateTerminatorBadRequest creates a CreateTerminatorBadRequest with default headers values

func (*CreateTerminatorBadRequest) Error

func (*CreateTerminatorBadRequest) GetPayload

type CreateTerminatorCreated

type CreateTerminatorCreated struct {
	Payload *rest_model.CreateEnvelope
}
CreateTerminatorCreated describes a response with status code 201, with default header values.

The create request was successful and the resource has been added at the following location

func NewCreateTerminatorCreated

func NewCreateTerminatorCreated() *CreateTerminatorCreated

NewCreateTerminatorCreated creates a CreateTerminatorCreated with default headers values

func (*CreateTerminatorCreated) Error

func (o *CreateTerminatorCreated) Error() string

func (*CreateTerminatorCreated) GetPayload

type CreateTerminatorParams

type CreateTerminatorParams struct {

	/* Terminator.

	   A terminator to create
	*/
	Terminator *rest_model.TerminatorCreate

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

CreateTerminatorParams contains all the parameters to send to the API endpoint

for the create terminator operation.

Typically these are written to a http.Request.

func NewCreateTerminatorParams

func NewCreateTerminatorParams() *CreateTerminatorParams

NewCreateTerminatorParams creates a new CreateTerminatorParams 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 NewCreateTerminatorParamsWithContext

func NewCreateTerminatorParamsWithContext(ctx context.Context) *CreateTerminatorParams

NewCreateTerminatorParamsWithContext creates a new CreateTerminatorParams object with the ability to set a context for a request.

func NewCreateTerminatorParamsWithHTTPClient

func NewCreateTerminatorParamsWithHTTPClient(client *http.Client) *CreateTerminatorParams

NewCreateTerminatorParamsWithHTTPClient creates a new CreateTerminatorParams object with the ability to set a custom HTTPClient for a request.

func NewCreateTerminatorParamsWithTimeout

func NewCreateTerminatorParamsWithTimeout(timeout time.Duration) *CreateTerminatorParams

NewCreateTerminatorParamsWithTimeout creates a new CreateTerminatorParams object with the ability to set a timeout on a request.

func (*CreateTerminatorParams) SetContext

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

SetContext adds the context to the create terminator params

func (*CreateTerminatorParams) SetDefaults

func (o *CreateTerminatorParams) SetDefaults()

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

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

func (*CreateTerminatorParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create terminator params

func (*CreateTerminatorParams) SetTerminator

func (o *CreateTerminatorParams) SetTerminator(terminator *rest_model.TerminatorCreate)

SetTerminator adds the terminator to the create terminator params

func (*CreateTerminatorParams) SetTimeout

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

SetTimeout adds the timeout to the create terminator params

func (*CreateTerminatorParams) WithContext

WithContext adds the context to the create terminator params

func (*CreateTerminatorParams) WithDefaults

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

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

func (*CreateTerminatorParams) WithHTTPClient

func (o *CreateTerminatorParams) WithHTTPClient(client *http.Client) *CreateTerminatorParams

WithHTTPClient adds the HTTPClient to the create terminator params

func (*CreateTerminatorParams) WithTerminator

WithTerminator adds the terminator to the create terminator params

func (*CreateTerminatorParams) WithTimeout

WithTimeout adds the timeout to the create terminator params

func (*CreateTerminatorParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateTerminatorReader

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

CreateTerminatorReader is a Reader for the CreateTerminator structure.

func (*CreateTerminatorReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateTerminatorUnauthorized

type CreateTerminatorUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}
CreateTerminatorUnauthorized describes a response with status code 401, with default header values.

The currently supplied session does not have the correct access rights to request this resource

func NewCreateTerminatorUnauthorized

func NewCreateTerminatorUnauthorized() *CreateTerminatorUnauthorized

NewCreateTerminatorUnauthorized creates a CreateTerminatorUnauthorized with default headers values

func (*CreateTerminatorUnauthorized) Error

func (*CreateTerminatorUnauthorized) GetPayload

type DeleteTerminatorBadRequest

type DeleteTerminatorBadRequest struct {
	Payload *rest_model.APIErrorEnvelope
}
DeleteTerminatorBadRequest describes a response with status code 400, with default header values.

The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information

func NewDeleteTerminatorBadRequest

func NewDeleteTerminatorBadRequest() *DeleteTerminatorBadRequest

NewDeleteTerminatorBadRequest creates a DeleteTerminatorBadRequest with default headers values

func (*DeleteTerminatorBadRequest) Error

func (*DeleteTerminatorBadRequest) GetPayload

type DeleteTerminatorConflict

type DeleteTerminatorConflict struct {
	Payload *rest_model.APIErrorEnvelope
}
DeleteTerminatorConflict describes a response with status code 409, with default header values.

The resource requested to be removed/altered cannot be as it is referenced by another object.

func NewDeleteTerminatorConflict

func NewDeleteTerminatorConflict() *DeleteTerminatorConflict

NewDeleteTerminatorConflict creates a DeleteTerminatorConflict with default headers values

func (*DeleteTerminatorConflict) Error

func (o *DeleteTerminatorConflict) Error() string

func (*DeleteTerminatorConflict) GetPayload

type DeleteTerminatorOK

type DeleteTerminatorOK struct {
	Payload *rest_model.Empty
}
DeleteTerminatorOK describes a response with status code 200, with default header values.

The delete request was successful and the resource has been removed

func NewDeleteTerminatorOK

func NewDeleteTerminatorOK() *DeleteTerminatorOK

NewDeleteTerminatorOK creates a DeleteTerminatorOK with default headers values

func (*DeleteTerminatorOK) Error

func (o *DeleteTerminatorOK) Error() string

func (*DeleteTerminatorOK) GetPayload

func (o *DeleteTerminatorOK) GetPayload() *rest_model.Empty

type DeleteTerminatorParams

type DeleteTerminatorParams struct {

	/* ID.

	   The id of the requested resource
	*/
	ID string

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

DeleteTerminatorParams contains all the parameters to send to the API endpoint

for the delete terminator operation.

Typically these are written to a http.Request.

func NewDeleteTerminatorParams

func NewDeleteTerminatorParams() *DeleteTerminatorParams

NewDeleteTerminatorParams creates a new DeleteTerminatorParams 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 NewDeleteTerminatorParamsWithContext

func NewDeleteTerminatorParamsWithContext(ctx context.Context) *DeleteTerminatorParams

NewDeleteTerminatorParamsWithContext creates a new DeleteTerminatorParams object with the ability to set a context for a request.

func NewDeleteTerminatorParamsWithHTTPClient

func NewDeleteTerminatorParamsWithHTTPClient(client *http.Client) *DeleteTerminatorParams

NewDeleteTerminatorParamsWithHTTPClient creates a new DeleteTerminatorParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteTerminatorParamsWithTimeout

func NewDeleteTerminatorParamsWithTimeout(timeout time.Duration) *DeleteTerminatorParams

NewDeleteTerminatorParamsWithTimeout creates a new DeleteTerminatorParams object with the ability to set a timeout on a request.

func (*DeleteTerminatorParams) SetContext

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

SetContext adds the context to the delete terminator params

func (*DeleteTerminatorParams) SetDefaults

func (o *DeleteTerminatorParams) SetDefaults()

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

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

func (*DeleteTerminatorParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete terminator params

func (*DeleteTerminatorParams) SetID

func (o *DeleteTerminatorParams) SetID(id string)

SetID adds the id to the delete terminator params

func (*DeleteTerminatorParams) SetTimeout

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

SetTimeout adds the timeout to the delete terminator params

func (*DeleteTerminatorParams) WithContext

WithContext adds the context to the delete terminator params

func (*DeleteTerminatorParams) WithDefaults

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

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

func (*DeleteTerminatorParams) WithHTTPClient

func (o *DeleteTerminatorParams) WithHTTPClient(client *http.Client) *DeleteTerminatorParams

WithHTTPClient adds the HTTPClient to the delete terminator params

func (*DeleteTerminatorParams) WithID

WithID adds the id to the delete terminator params

func (*DeleteTerminatorParams) WithTimeout

WithTimeout adds the timeout to the delete terminator params

func (*DeleteTerminatorParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteTerminatorReader

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

DeleteTerminatorReader is a Reader for the DeleteTerminator structure.

func (*DeleteTerminatorReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteTerminatorUnauthorized

type DeleteTerminatorUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}
DeleteTerminatorUnauthorized describes a response with status code 401, with default header values.

The currently supplied session does not have the correct access rights to request this resource

func NewDeleteTerminatorUnauthorized

func NewDeleteTerminatorUnauthorized() *DeleteTerminatorUnauthorized

NewDeleteTerminatorUnauthorized creates a DeleteTerminatorUnauthorized with default headers values

func (*DeleteTerminatorUnauthorized) Error

func (*DeleteTerminatorUnauthorized) GetPayload

type DetailTerminatorNotFound

type DetailTerminatorNotFound struct {
	Payload *rest_model.APIErrorEnvelope
}
DetailTerminatorNotFound describes a response with status code 404, with default header values.

The requested resource does not exist

func NewDetailTerminatorNotFound

func NewDetailTerminatorNotFound() *DetailTerminatorNotFound

NewDetailTerminatorNotFound creates a DetailTerminatorNotFound with default headers values

func (*DetailTerminatorNotFound) Error

func (o *DetailTerminatorNotFound) Error() string

func (*DetailTerminatorNotFound) GetPayload

type DetailTerminatorOK

type DetailTerminatorOK struct {
	Payload *rest_model.DetailTerminatorEnvelope
}
DetailTerminatorOK describes a response with status code 200, with default header values.

A single terminator

func NewDetailTerminatorOK

func NewDetailTerminatorOK() *DetailTerminatorOK

NewDetailTerminatorOK creates a DetailTerminatorOK with default headers values

func (*DetailTerminatorOK) Error

func (o *DetailTerminatorOK) Error() string

func (*DetailTerminatorOK) GetPayload

type DetailTerminatorParams

type DetailTerminatorParams struct {

	/* ID.

	   The id of the requested resource
	*/
	ID string

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

DetailTerminatorParams contains all the parameters to send to the API endpoint

for the detail terminator operation.

Typically these are written to a http.Request.

func NewDetailTerminatorParams

func NewDetailTerminatorParams() *DetailTerminatorParams

NewDetailTerminatorParams creates a new DetailTerminatorParams 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 NewDetailTerminatorParamsWithContext

func NewDetailTerminatorParamsWithContext(ctx context.Context) *DetailTerminatorParams

NewDetailTerminatorParamsWithContext creates a new DetailTerminatorParams object with the ability to set a context for a request.

func NewDetailTerminatorParamsWithHTTPClient

func NewDetailTerminatorParamsWithHTTPClient(client *http.Client) *DetailTerminatorParams

NewDetailTerminatorParamsWithHTTPClient creates a new DetailTerminatorParams object with the ability to set a custom HTTPClient for a request.

func NewDetailTerminatorParamsWithTimeout

func NewDetailTerminatorParamsWithTimeout(timeout time.Duration) *DetailTerminatorParams

NewDetailTerminatorParamsWithTimeout creates a new DetailTerminatorParams object with the ability to set a timeout on a request.

func (*DetailTerminatorParams) SetContext

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

SetContext adds the context to the detail terminator params

func (*DetailTerminatorParams) SetDefaults

func (o *DetailTerminatorParams) SetDefaults()

SetDefaults hydrates default values in the detail terminator params (not the query body).

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

func (*DetailTerminatorParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the detail terminator params

func (*DetailTerminatorParams) SetID

func (o *DetailTerminatorParams) SetID(id string)

SetID adds the id to the detail terminator params

func (*DetailTerminatorParams) SetTimeout

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

SetTimeout adds the timeout to the detail terminator params

func (*DetailTerminatorParams) WithContext

WithContext adds the context to the detail terminator params

func (*DetailTerminatorParams) WithDefaults

WithDefaults hydrates default values in the detail terminator params (not the query body).

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

func (*DetailTerminatorParams) WithHTTPClient

func (o *DetailTerminatorParams) WithHTTPClient(client *http.Client) *DetailTerminatorParams

WithHTTPClient adds the HTTPClient to the detail terminator params

func (*DetailTerminatorParams) WithID

WithID adds the id to the detail terminator params

func (*DetailTerminatorParams) WithTimeout

WithTimeout adds the timeout to the detail terminator params

func (*DetailTerminatorParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DetailTerminatorReader

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

DetailTerminatorReader is a Reader for the DetailTerminator structure.

func (*DetailTerminatorReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DetailTerminatorUnauthorized

type DetailTerminatorUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}
DetailTerminatorUnauthorized describes a response with status code 401, with default header values.

The currently supplied session does not have the correct access rights to request this resource

func NewDetailTerminatorUnauthorized

func NewDetailTerminatorUnauthorized() *DetailTerminatorUnauthorized

NewDetailTerminatorUnauthorized creates a DetailTerminatorUnauthorized with default headers values

func (*DetailTerminatorUnauthorized) Error

func (*DetailTerminatorUnauthorized) GetPayload

type ListTerminatorsBadRequest added in v0.19.176

type ListTerminatorsBadRequest struct {
	Payload *rest_model.APIErrorEnvelope
}
ListTerminatorsBadRequest describes a response with status code 400, with default header values.

The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information

func NewListTerminatorsBadRequest added in v0.19.176

func NewListTerminatorsBadRequest() *ListTerminatorsBadRequest

NewListTerminatorsBadRequest creates a ListTerminatorsBadRequest with default headers values

func (*ListTerminatorsBadRequest) Error added in v0.19.176

func (o *ListTerminatorsBadRequest) Error() string

func (*ListTerminatorsBadRequest) GetPayload added in v0.19.176

type ListTerminatorsOK

type ListTerminatorsOK struct {
	Payload *rest_model.ListTerminatorsEnvelope
}
ListTerminatorsOK describes a response with status code 200, with default header values.

A list of terminators

func NewListTerminatorsOK

func NewListTerminatorsOK() *ListTerminatorsOK

NewListTerminatorsOK creates a ListTerminatorsOK with default headers values

func (*ListTerminatorsOK) Error

func (o *ListTerminatorsOK) Error() string

func (*ListTerminatorsOK) GetPayload

type ListTerminatorsParams

type ListTerminatorsParams struct {

	// Filter.
	Filter *string

	// Limit.
	Limit *int64

	// Offset.
	Offset *int64

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

ListTerminatorsParams contains all the parameters to send to the API endpoint

for the list terminators operation.

Typically these are written to a http.Request.

func NewListTerminatorsParams

func NewListTerminatorsParams() *ListTerminatorsParams

NewListTerminatorsParams creates a new ListTerminatorsParams 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 NewListTerminatorsParamsWithContext

func NewListTerminatorsParamsWithContext(ctx context.Context) *ListTerminatorsParams

NewListTerminatorsParamsWithContext creates a new ListTerminatorsParams object with the ability to set a context for a request.

func NewListTerminatorsParamsWithHTTPClient

func NewListTerminatorsParamsWithHTTPClient(client *http.Client) *ListTerminatorsParams

NewListTerminatorsParamsWithHTTPClient creates a new ListTerminatorsParams object with the ability to set a custom HTTPClient for a request.

func NewListTerminatorsParamsWithTimeout

func NewListTerminatorsParamsWithTimeout(timeout time.Duration) *ListTerminatorsParams

NewListTerminatorsParamsWithTimeout creates a new ListTerminatorsParams object with the ability to set a timeout on a request.

func (*ListTerminatorsParams) SetContext

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

SetContext adds the context to the list terminators params

func (*ListTerminatorsParams) SetDefaults

func (o *ListTerminatorsParams) SetDefaults()

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

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

func (*ListTerminatorsParams) SetFilter

func (o *ListTerminatorsParams) SetFilter(filter *string)

SetFilter adds the filter to the list terminators params

func (*ListTerminatorsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list terminators params

func (*ListTerminatorsParams) SetLimit

func (o *ListTerminatorsParams) SetLimit(limit *int64)

SetLimit adds the limit to the list terminators params

func (*ListTerminatorsParams) SetOffset

func (o *ListTerminatorsParams) SetOffset(offset *int64)

SetOffset adds the offset to the list terminators params

func (*ListTerminatorsParams) SetTimeout

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

SetTimeout adds the timeout to the list terminators params

func (*ListTerminatorsParams) WithContext

WithContext adds the context to the list terminators params

func (*ListTerminatorsParams) WithDefaults

func (o *ListTerminatorsParams) WithDefaults() *ListTerminatorsParams

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

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

func (*ListTerminatorsParams) WithFilter

func (o *ListTerminatorsParams) WithFilter(filter *string) *ListTerminatorsParams

WithFilter adds the filter to the list terminators params

func (*ListTerminatorsParams) WithHTTPClient

func (o *ListTerminatorsParams) WithHTTPClient(client *http.Client) *ListTerminatorsParams

WithHTTPClient adds the HTTPClient to the list terminators params

func (*ListTerminatorsParams) WithLimit

func (o *ListTerminatorsParams) WithLimit(limit *int64) *ListTerminatorsParams

WithLimit adds the limit to the list terminators params

func (*ListTerminatorsParams) WithOffset

func (o *ListTerminatorsParams) WithOffset(offset *int64) *ListTerminatorsParams

WithOffset adds the offset to the list terminators params

func (*ListTerminatorsParams) WithTimeout

func (o *ListTerminatorsParams) WithTimeout(timeout time.Duration) *ListTerminatorsParams

WithTimeout adds the timeout to the list terminators params

func (*ListTerminatorsParams) WriteToRequest

func (o *ListTerminatorsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ListTerminatorsReader

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

ListTerminatorsReader is a Reader for the ListTerminators structure.

func (*ListTerminatorsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListTerminatorsUnauthorized

type ListTerminatorsUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}
ListTerminatorsUnauthorized describes a response with status code 401, with default header values.

The currently supplied session does not have the correct access rights to request this resource

func NewListTerminatorsUnauthorized

func NewListTerminatorsUnauthorized() *ListTerminatorsUnauthorized

NewListTerminatorsUnauthorized creates a ListTerminatorsUnauthorized with default headers values

func (*ListTerminatorsUnauthorized) Error

func (*ListTerminatorsUnauthorized) GetPayload

type PatchTerminatorBadRequest

type PatchTerminatorBadRequest struct {
	Payload *rest_model.APIErrorEnvelope
}
PatchTerminatorBadRequest describes a response with status code 400, with default header values.

The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information

func NewPatchTerminatorBadRequest

func NewPatchTerminatorBadRequest() *PatchTerminatorBadRequest

NewPatchTerminatorBadRequest creates a PatchTerminatorBadRequest with default headers values

func (*PatchTerminatorBadRequest) Error

func (o *PatchTerminatorBadRequest) Error() string

func (*PatchTerminatorBadRequest) GetPayload

type PatchTerminatorNotFound

type PatchTerminatorNotFound struct {
	Payload *rest_model.APIErrorEnvelope
}
PatchTerminatorNotFound describes a response with status code 404, with default header values.

The requested resource does not exist

func NewPatchTerminatorNotFound

func NewPatchTerminatorNotFound() *PatchTerminatorNotFound

NewPatchTerminatorNotFound creates a PatchTerminatorNotFound with default headers values

func (*PatchTerminatorNotFound) Error

func (o *PatchTerminatorNotFound) Error() string

func (*PatchTerminatorNotFound) GetPayload

type PatchTerminatorOK

type PatchTerminatorOK struct {
	Payload *rest_model.Empty
}
PatchTerminatorOK describes a response with status code 200, with default header values.

The patch request was successful and the resource has been altered

func NewPatchTerminatorOK

func NewPatchTerminatorOK() *PatchTerminatorOK

NewPatchTerminatorOK creates a PatchTerminatorOK with default headers values

func (*PatchTerminatorOK) Error

func (o *PatchTerminatorOK) Error() string

func (*PatchTerminatorOK) GetPayload

func (o *PatchTerminatorOK) GetPayload() *rest_model.Empty

type PatchTerminatorParams

type PatchTerminatorParams struct {

	/* ID.

	   The id of the requested resource
	*/
	ID string

	/* Terminator.

	   A terminator patch object
	*/
	Terminator *rest_model.TerminatorPatch

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

PatchTerminatorParams contains all the parameters to send to the API endpoint

for the patch terminator operation.

Typically these are written to a http.Request.

func NewPatchTerminatorParams

func NewPatchTerminatorParams() *PatchTerminatorParams

NewPatchTerminatorParams creates a new PatchTerminatorParams 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 NewPatchTerminatorParamsWithContext

func NewPatchTerminatorParamsWithContext(ctx context.Context) *PatchTerminatorParams

NewPatchTerminatorParamsWithContext creates a new PatchTerminatorParams object with the ability to set a context for a request.

func NewPatchTerminatorParamsWithHTTPClient

func NewPatchTerminatorParamsWithHTTPClient(client *http.Client) *PatchTerminatorParams

NewPatchTerminatorParamsWithHTTPClient creates a new PatchTerminatorParams object with the ability to set a custom HTTPClient for a request.

func NewPatchTerminatorParamsWithTimeout

func NewPatchTerminatorParamsWithTimeout(timeout time.Duration) *PatchTerminatorParams

NewPatchTerminatorParamsWithTimeout creates a new PatchTerminatorParams object with the ability to set a timeout on a request.

func (*PatchTerminatorParams) SetContext

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

SetContext adds the context to the patch terminator params

func (*PatchTerminatorParams) SetDefaults

func (o *PatchTerminatorParams) SetDefaults()

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

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

func (*PatchTerminatorParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the patch terminator params

func (*PatchTerminatorParams) SetID

func (o *PatchTerminatorParams) SetID(id string)

SetID adds the id to the patch terminator params

func (*PatchTerminatorParams) SetTerminator

func (o *PatchTerminatorParams) SetTerminator(terminator *rest_model.TerminatorPatch)

SetTerminator adds the terminator to the patch terminator params

func (*PatchTerminatorParams) SetTimeout

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

SetTimeout adds the timeout to the patch terminator params

func (*PatchTerminatorParams) WithContext

WithContext adds the context to the patch terminator params

func (*PatchTerminatorParams) WithDefaults

func (o *PatchTerminatorParams) WithDefaults() *PatchTerminatorParams

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

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

func (*PatchTerminatorParams) WithHTTPClient

func (o *PatchTerminatorParams) WithHTTPClient(client *http.Client) *PatchTerminatorParams

WithHTTPClient adds the HTTPClient to the patch terminator params

func (*PatchTerminatorParams) WithID

WithID adds the id to the patch terminator params

func (*PatchTerminatorParams) WithTerminator

WithTerminator adds the terminator to the patch terminator params

func (*PatchTerminatorParams) WithTimeout

func (o *PatchTerminatorParams) WithTimeout(timeout time.Duration) *PatchTerminatorParams

WithTimeout adds the timeout to the patch terminator params

func (*PatchTerminatorParams) WriteToRequest

func (o *PatchTerminatorParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PatchTerminatorReader

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

PatchTerminatorReader is a Reader for the PatchTerminator structure.

func (*PatchTerminatorReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PatchTerminatorUnauthorized

type PatchTerminatorUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}
PatchTerminatorUnauthorized describes a response with status code 401, with default header values.

The currently supplied session does not have the correct access rights to request this resource

func NewPatchTerminatorUnauthorized

func NewPatchTerminatorUnauthorized() *PatchTerminatorUnauthorized

NewPatchTerminatorUnauthorized creates a PatchTerminatorUnauthorized with default headers values

func (*PatchTerminatorUnauthorized) Error

func (*PatchTerminatorUnauthorized) GetPayload

type UpdateTerminatorBadRequest

type UpdateTerminatorBadRequest struct {
	Payload *rest_model.APIErrorEnvelope
}
UpdateTerminatorBadRequest describes a response with status code 400, with default header values.

The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information

func NewUpdateTerminatorBadRequest

func NewUpdateTerminatorBadRequest() *UpdateTerminatorBadRequest

NewUpdateTerminatorBadRequest creates a UpdateTerminatorBadRequest with default headers values

func (*UpdateTerminatorBadRequest) Error

func (*UpdateTerminatorBadRequest) GetPayload

type UpdateTerminatorNotFound

type UpdateTerminatorNotFound struct {
	Payload *rest_model.APIErrorEnvelope
}
UpdateTerminatorNotFound describes a response with status code 404, with default header values.

The requested resource does not exist

func NewUpdateTerminatorNotFound

func NewUpdateTerminatorNotFound() *UpdateTerminatorNotFound

NewUpdateTerminatorNotFound creates a UpdateTerminatorNotFound with default headers values

func (*UpdateTerminatorNotFound) Error

func (o *UpdateTerminatorNotFound) Error() string

func (*UpdateTerminatorNotFound) GetPayload

type UpdateTerminatorOK

type UpdateTerminatorOK struct {
	Payload *rest_model.Empty
}
UpdateTerminatorOK describes a response with status code 200, with default header values.

The update request was successful and the resource has been altered

func NewUpdateTerminatorOK

func NewUpdateTerminatorOK() *UpdateTerminatorOK

NewUpdateTerminatorOK creates a UpdateTerminatorOK with default headers values

func (*UpdateTerminatorOK) Error

func (o *UpdateTerminatorOK) Error() string

func (*UpdateTerminatorOK) GetPayload

func (o *UpdateTerminatorOK) GetPayload() *rest_model.Empty

type UpdateTerminatorParams

type UpdateTerminatorParams struct {

	/* ID.

	   The id of the requested resource
	*/
	ID string

	/* Terminator.

	   A terminator update object
	*/
	Terminator *rest_model.TerminatorUpdate

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

UpdateTerminatorParams contains all the parameters to send to the API endpoint

for the update terminator operation.

Typically these are written to a http.Request.

func NewUpdateTerminatorParams

func NewUpdateTerminatorParams() *UpdateTerminatorParams

NewUpdateTerminatorParams creates a new UpdateTerminatorParams 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 NewUpdateTerminatorParamsWithContext

func NewUpdateTerminatorParamsWithContext(ctx context.Context) *UpdateTerminatorParams

NewUpdateTerminatorParamsWithContext creates a new UpdateTerminatorParams object with the ability to set a context for a request.

func NewUpdateTerminatorParamsWithHTTPClient

func NewUpdateTerminatorParamsWithHTTPClient(client *http.Client) *UpdateTerminatorParams

NewUpdateTerminatorParamsWithHTTPClient creates a new UpdateTerminatorParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateTerminatorParamsWithTimeout

func NewUpdateTerminatorParamsWithTimeout(timeout time.Duration) *UpdateTerminatorParams

NewUpdateTerminatorParamsWithTimeout creates a new UpdateTerminatorParams object with the ability to set a timeout on a request.

func (*UpdateTerminatorParams) SetContext

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

SetContext adds the context to the update terminator params

func (*UpdateTerminatorParams) SetDefaults

func (o *UpdateTerminatorParams) SetDefaults()

SetDefaults hydrates default values in the update terminator params (not the query body).

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

func (*UpdateTerminatorParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update terminator params

func (*UpdateTerminatorParams) SetID

func (o *UpdateTerminatorParams) SetID(id string)

SetID adds the id to the update terminator params

func (*UpdateTerminatorParams) SetTerminator

func (o *UpdateTerminatorParams) SetTerminator(terminator *rest_model.TerminatorUpdate)

SetTerminator adds the terminator to the update terminator params

func (*UpdateTerminatorParams) SetTimeout

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

SetTimeout adds the timeout to the update terminator params

func (*UpdateTerminatorParams) WithContext

WithContext adds the context to the update terminator params

func (*UpdateTerminatorParams) WithDefaults

WithDefaults hydrates default values in the update terminator params (not the query body).

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

func (*UpdateTerminatorParams) WithHTTPClient

func (o *UpdateTerminatorParams) WithHTTPClient(client *http.Client) *UpdateTerminatorParams

WithHTTPClient adds the HTTPClient to the update terminator params

func (*UpdateTerminatorParams) WithID

WithID adds the id to the update terminator params

func (*UpdateTerminatorParams) WithTerminator

WithTerminator adds the terminator to the update terminator params

func (*UpdateTerminatorParams) WithTimeout

WithTimeout adds the timeout to the update terminator params

func (*UpdateTerminatorParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateTerminatorReader

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

UpdateTerminatorReader is a Reader for the UpdateTerminator structure.

func (*UpdateTerminatorReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateTerminatorUnauthorized

type UpdateTerminatorUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}
UpdateTerminatorUnauthorized describes a response with status code 401, with default header values.

The currently supplied session does not have the correct access rights to request this resource

func NewUpdateTerminatorUnauthorized

func NewUpdateTerminatorUnauthorized() *UpdateTerminatorUnauthorized

NewUpdateTerminatorUnauthorized creates a UpdateTerminatorUnauthorized with default headers values

func (*UpdateTerminatorUnauthorized) Error

func (*UpdateTerminatorUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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