process_manager

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 12 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 process manager API

func (*Client) CreateProgram

CreateProgram adds a program

Adds a new program to the process-manager configuration file.

func (*Client) DeleteProgram

DeleteProgram deletes a program

Deletes a program from the process-manager configuration file by its name.

func (*Client) GetProgram

func (a *Client) GetProgram(params *GetProgramParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProgramOK, error)

GetProgram returns a program

Returns one program by its name from the process-manager configuration file.

func (*Client) GetPrograms

func (a *Client) GetPrograms(params *GetProgramsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProgramsOK, error)

GetPrograms returns an array of programs

Returns an array of all configured programs in the process-manager configuration file.

func (*Client) ReplaceProgram

ReplaceProgram replaces a program

Replaces a program from the process-manager configuration by its name.

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 {
	CreateProgram(params *CreateProgramParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateProgramCreated, *CreateProgramAccepted, error)

	DeleteProgram(params *DeleteProgramParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteProgramAccepted, *DeleteProgramNoContent, error)

	GetProgram(params *GetProgramParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProgramOK, error)

	GetPrograms(params *GetProgramsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProgramsOK, error)

	ReplaceProgram(params *ReplaceProgramParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ReplaceProgramOK, *ReplaceProgramAccepted, 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 process manager API client.

type CreateProgramAccepted

type CreateProgramAccepted struct {

	/* ID of the requested reload
	 */
	ReloadID string

	Payload *models.Program
}

CreateProgramAccepted describes a response with status code 202, with default header values.

Configuration change accepted and reload requested

func NewCreateProgramAccepted

func NewCreateProgramAccepted() *CreateProgramAccepted

NewCreateProgramAccepted creates a CreateProgramAccepted with default headers values

func (*CreateProgramAccepted) Code added in v1.1.5

func (o *CreateProgramAccepted) Code() int

Code gets the status code for the create program accepted response

func (*CreateProgramAccepted) Error

func (o *CreateProgramAccepted) Error() string

func (*CreateProgramAccepted) GetPayload

func (o *CreateProgramAccepted) GetPayload() *models.Program

func (*CreateProgramAccepted) IsClientError

func (o *CreateProgramAccepted) IsClientError() bool

IsClientError returns true when this create program accepted response has a 4xx status code

func (*CreateProgramAccepted) IsCode

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

IsCode returns true when this create program accepted response a status code equal to that given

func (*CreateProgramAccepted) IsRedirect

func (o *CreateProgramAccepted) IsRedirect() bool

IsRedirect returns true when this create program accepted response has a 3xx status code

func (*CreateProgramAccepted) IsServerError

func (o *CreateProgramAccepted) IsServerError() bool

IsServerError returns true when this create program accepted response has a 5xx status code

func (*CreateProgramAccepted) IsSuccess

func (o *CreateProgramAccepted) IsSuccess() bool

IsSuccess returns true when this create program accepted response has a 2xx status code

func (*CreateProgramAccepted) String

func (o *CreateProgramAccepted) String() string

type CreateProgramBadRequest

type CreateProgramBadRequest struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

CreateProgramBadRequest describes a response with status code 400, with default header values.

Bad request

func NewCreateProgramBadRequest

func NewCreateProgramBadRequest() *CreateProgramBadRequest

NewCreateProgramBadRequest creates a CreateProgramBadRequest with default headers values

func (*CreateProgramBadRequest) Code added in v1.1.5

func (o *CreateProgramBadRequest) Code() int

Code gets the status code for the create program bad request response

func (*CreateProgramBadRequest) Error

func (o *CreateProgramBadRequest) Error() string

func (*CreateProgramBadRequest) GetPayload

func (o *CreateProgramBadRequest) GetPayload() *models.Error

func (*CreateProgramBadRequest) IsClientError

func (o *CreateProgramBadRequest) IsClientError() bool

IsClientError returns true when this create program bad request response has a 4xx status code

func (*CreateProgramBadRequest) IsCode

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

IsCode returns true when this create program bad request response a status code equal to that given

func (*CreateProgramBadRequest) IsRedirect

func (o *CreateProgramBadRequest) IsRedirect() bool

IsRedirect returns true when this create program bad request response has a 3xx status code

func (*CreateProgramBadRequest) IsServerError

func (o *CreateProgramBadRequest) IsServerError() bool

IsServerError returns true when this create program bad request response has a 5xx status code

func (*CreateProgramBadRequest) IsSuccess

func (o *CreateProgramBadRequest) IsSuccess() bool

IsSuccess returns true when this create program bad request response has a 2xx status code

func (*CreateProgramBadRequest) String

func (o *CreateProgramBadRequest) String() string

type CreateProgramConflict

type CreateProgramConflict struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

CreateProgramConflict describes a response with status code 409, with default header values.

The specified resource already exists

func NewCreateProgramConflict

func NewCreateProgramConflict() *CreateProgramConflict

NewCreateProgramConflict creates a CreateProgramConflict with default headers values

func (*CreateProgramConflict) Code added in v1.1.5

func (o *CreateProgramConflict) Code() int

Code gets the status code for the create program conflict response

func (*CreateProgramConflict) Error

func (o *CreateProgramConflict) Error() string

func (*CreateProgramConflict) GetPayload

func (o *CreateProgramConflict) GetPayload() *models.Error

func (*CreateProgramConflict) IsClientError

func (o *CreateProgramConflict) IsClientError() bool

IsClientError returns true when this create program conflict response has a 4xx status code

func (*CreateProgramConflict) IsCode

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

IsCode returns true when this create program conflict response a status code equal to that given

func (*CreateProgramConflict) IsRedirect

func (o *CreateProgramConflict) IsRedirect() bool

IsRedirect returns true when this create program conflict response has a 3xx status code

func (*CreateProgramConflict) IsServerError

func (o *CreateProgramConflict) IsServerError() bool

IsServerError returns true when this create program conflict response has a 5xx status code

func (*CreateProgramConflict) IsSuccess

func (o *CreateProgramConflict) IsSuccess() bool

IsSuccess returns true when this create program conflict response has a 2xx status code

func (*CreateProgramConflict) String

func (o *CreateProgramConflict) String() string

type CreateProgramCreated

type CreateProgramCreated struct {
	Payload *models.Program
}

CreateProgramCreated describes a response with status code 201, with default header values.

Program created

func NewCreateProgramCreated

func NewCreateProgramCreated() *CreateProgramCreated

NewCreateProgramCreated creates a CreateProgramCreated with default headers values

func (*CreateProgramCreated) Code added in v1.1.5

func (o *CreateProgramCreated) Code() int

Code gets the status code for the create program created response

func (*CreateProgramCreated) Error

func (o *CreateProgramCreated) Error() string

func (*CreateProgramCreated) GetPayload

func (o *CreateProgramCreated) GetPayload() *models.Program

func (*CreateProgramCreated) IsClientError

func (o *CreateProgramCreated) IsClientError() bool

IsClientError returns true when this create program created response has a 4xx status code

func (*CreateProgramCreated) IsCode

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

IsCode returns true when this create program created response a status code equal to that given

func (*CreateProgramCreated) IsRedirect

func (o *CreateProgramCreated) IsRedirect() bool

IsRedirect returns true when this create program created response has a 3xx status code

func (*CreateProgramCreated) IsServerError

func (o *CreateProgramCreated) IsServerError() bool

IsServerError returns true when this create program created response has a 5xx status code

func (*CreateProgramCreated) IsSuccess

func (o *CreateProgramCreated) IsSuccess() bool

IsSuccess returns true when this create program created response has a 2xx status code

func (*CreateProgramCreated) String

func (o *CreateProgramCreated) String() string

type CreateProgramDefault

type CreateProgramDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

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

General Error

func NewCreateProgramDefault

func NewCreateProgramDefault(code int) *CreateProgramDefault

NewCreateProgramDefault creates a CreateProgramDefault with default headers values

func (*CreateProgramDefault) Code

func (o *CreateProgramDefault) Code() int

Code gets the status code for the create program default response

func (*CreateProgramDefault) Error

func (o *CreateProgramDefault) Error() string

func (*CreateProgramDefault) GetPayload

func (o *CreateProgramDefault) GetPayload() *models.Error

func (*CreateProgramDefault) IsClientError

func (o *CreateProgramDefault) IsClientError() bool

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

func (*CreateProgramDefault) IsCode

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

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

func (*CreateProgramDefault) IsRedirect

func (o *CreateProgramDefault) IsRedirect() bool

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

func (*CreateProgramDefault) IsServerError

func (o *CreateProgramDefault) IsServerError() bool

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

func (*CreateProgramDefault) IsSuccess

func (o *CreateProgramDefault) IsSuccess() bool

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

func (*CreateProgramDefault) String

func (o *CreateProgramDefault) String() string

type CreateProgramParams

type CreateProgramParams struct {

	// Data.
	Data *models.Program

	/* ForceReload.

	   If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.
	*/
	ForceReload *bool

	/* TransactionID.

	   ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	*/
	TransactionID *string

	/* Version.

	   Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
	*/
	Version *int64

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

CreateProgramParams contains all the parameters to send to the API endpoint

for the create program operation.

Typically these are written to a http.Request.

func NewCreateProgramParams

func NewCreateProgramParams() *CreateProgramParams

NewCreateProgramParams creates a new CreateProgramParams 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 NewCreateProgramParamsWithContext

func NewCreateProgramParamsWithContext(ctx context.Context) *CreateProgramParams

NewCreateProgramParamsWithContext creates a new CreateProgramParams object with the ability to set a context for a request.

func NewCreateProgramParamsWithHTTPClient

func NewCreateProgramParamsWithHTTPClient(client *http.Client) *CreateProgramParams

NewCreateProgramParamsWithHTTPClient creates a new CreateProgramParams object with the ability to set a custom HTTPClient for a request.

func NewCreateProgramParamsWithTimeout

func NewCreateProgramParamsWithTimeout(timeout time.Duration) *CreateProgramParams

NewCreateProgramParamsWithTimeout creates a new CreateProgramParams object with the ability to set a timeout on a request.

func (*CreateProgramParams) SetContext

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

SetContext adds the context to the create program params

func (*CreateProgramParams) SetData

func (o *CreateProgramParams) SetData(data *models.Program)

SetData adds the data to the create program params

func (*CreateProgramParams) SetDefaults

func (o *CreateProgramParams) SetDefaults()

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

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

func (*CreateProgramParams) SetForceReload

func (o *CreateProgramParams) SetForceReload(forceReload *bool)

SetForceReload adds the forceReload to the create program params

func (*CreateProgramParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create program params

func (*CreateProgramParams) SetTimeout

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

SetTimeout adds the timeout to the create program params

func (*CreateProgramParams) SetTransactionID

func (o *CreateProgramParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the create program params

func (*CreateProgramParams) SetVersion

func (o *CreateProgramParams) SetVersion(version *int64)

SetVersion adds the version to the create program params

func (*CreateProgramParams) WithContext

WithContext adds the context to the create program params

func (*CreateProgramParams) WithData

WithData adds the data to the create program params

func (*CreateProgramParams) WithDefaults

func (o *CreateProgramParams) WithDefaults() *CreateProgramParams

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

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

func (*CreateProgramParams) WithForceReload

func (o *CreateProgramParams) WithForceReload(forceReload *bool) *CreateProgramParams

WithForceReload adds the forceReload to the create program params

func (*CreateProgramParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create program params

func (*CreateProgramParams) WithTimeout

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

WithTimeout adds the timeout to the create program params

func (*CreateProgramParams) WithTransactionID

func (o *CreateProgramParams) WithTransactionID(transactionID *string) *CreateProgramParams

WithTransactionID adds the transactionID to the create program params

func (*CreateProgramParams) WithVersion

func (o *CreateProgramParams) WithVersion(version *int64) *CreateProgramParams

WithVersion adds the version to the create program params

func (*CreateProgramParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateProgramReader

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

CreateProgramReader is a Reader for the CreateProgram structure.

func (*CreateProgramReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteProgramAccepted

type DeleteProgramAccepted struct {

	/* ID of the requested reload
	 */
	ReloadID string
}

DeleteProgramAccepted describes a response with status code 202, with default header values.

Configuration change accepted and reload requested

func NewDeleteProgramAccepted

func NewDeleteProgramAccepted() *DeleteProgramAccepted

NewDeleteProgramAccepted creates a DeleteProgramAccepted with default headers values

func (*DeleteProgramAccepted) Code added in v1.1.5

func (o *DeleteProgramAccepted) Code() int

Code gets the status code for the delete program accepted response

func (*DeleteProgramAccepted) Error

func (o *DeleteProgramAccepted) Error() string

func (*DeleteProgramAccepted) IsClientError

func (o *DeleteProgramAccepted) IsClientError() bool

IsClientError returns true when this delete program accepted response has a 4xx status code

func (*DeleteProgramAccepted) IsCode

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

IsCode returns true when this delete program accepted response a status code equal to that given

func (*DeleteProgramAccepted) IsRedirect

func (o *DeleteProgramAccepted) IsRedirect() bool

IsRedirect returns true when this delete program accepted response has a 3xx status code

func (*DeleteProgramAccepted) IsServerError

func (o *DeleteProgramAccepted) IsServerError() bool

IsServerError returns true when this delete program accepted response has a 5xx status code

func (*DeleteProgramAccepted) IsSuccess

func (o *DeleteProgramAccepted) IsSuccess() bool

IsSuccess returns true when this delete program accepted response has a 2xx status code

func (*DeleteProgramAccepted) String

func (o *DeleteProgramAccepted) String() string

type DeleteProgramDefault

type DeleteProgramDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

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

General Error

func NewDeleteProgramDefault

func NewDeleteProgramDefault(code int) *DeleteProgramDefault

NewDeleteProgramDefault creates a DeleteProgramDefault with default headers values

func (*DeleteProgramDefault) Code

func (o *DeleteProgramDefault) Code() int

Code gets the status code for the delete program default response

func (*DeleteProgramDefault) Error

func (o *DeleteProgramDefault) Error() string

func (*DeleteProgramDefault) GetPayload

func (o *DeleteProgramDefault) GetPayload() *models.Error

func (*DeleteProgramDefault) IsClientError

func (o *DeleteProgramDefault) IsClientError() bool

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

func (*DeleteProgramDefault) IsCode

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

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

func (*DeleteProgramDefault) IsRedirect

func (o *DeleteProgramDefault) IsRedirect() bool

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

func (*DeleteProgramDefault) IsServerError

func (o *DeleteProgramDefault) IsServerError() bool

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

func (*DeleteProgramDefault) IsSuccess

func (o *DeleteProgramDefault) IsSuccess() bool

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

func (*DeleteProgramDefault) String

func (o *DeleteProgramDefault) String() string

type DeleteProgramNoContent

type DeleteProgramNoContent struct {
}

DeleteProgramNoContent describes a response with status code 204, with default header values.

Program deleted

func NewDeleteProgramNoContent

func NewDeleteProgramNoContent() *DeleteProgramNoContent

NewDeleteProgramNoContent creates a DeleteProgramNoContent with default headers values

func (*DeleteProgramNoContent) Code added in v1.1.5

func (o *DeleteProgramNoContent) Code() int

Code gets the status code for the delete program no content response

func (*DeleteProgramNoContent) Error

func (o *DeleteProgramNoContent) Error() string

func (*DeleteProgramNoContent) IsClientError

func (o *DeleteProgramNoContent) IsClientError() bool

IsClientError returns true when this delete program no content response has a 4xx status code

func (*DeleteProgramNoContent) IsCode

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

IsCode returns true when this delete program no content response a status code equal to that given

func (*DeleteProgramNoContent) IsRedirect

func (o *DeleteProgramNoContent) IsRedirect() bool

IsRedirect returns true when this delete program no content response has a 3xx status code

func (*DeleteProgramNoContent) IsServerError

func (o *DeleteProgramNoContent) IsServerError() bool

IsServerError returns true when this delete program no content response has a 5xx status code

func (*DeleteProgramNoContent) IsSuccess

func (o *DeleteProgramNoContent) IsSuccess() bool

IsSuccess returns true when this delete program no content response has a 2xx status code

func (*DeleteProgramNoContent) String

func (o *DeleteProgramNoContent) String() string

type DeleteProgramNotFound

type DeleteProgramNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

DeleteProgramNotFound describes a response with status code 404, with default header values.

The specified resource was not found

func NewDeleteProgramNotFound

func NewDeleteProgramNotFound() *DeleteProgramNotFound

NewDeleteProgramNotFound creates a DeleteProgramNotFound with default headers values

func (*DeleteProgramNotFound) Code added in v1.1.5

func (o *DeleteProgramNotFound) Code() int

Code gets the status code for the delete program not found response

func (*DeleteProgramNotFound) Error

func (o *DeleteProgramNotFound) Error() string

func (*DeleteProgramNotFound) GetPayload

func (o *DeleteProgramNotFound) GetPayload() *models.Error

func (*DeleteProgramNotFound) IsClientError

func (o *DeleteProgramNotFound) IsClientError() bool

IsClientError returns true when this delete program not found response has a 4xx status code

func (*DeleteProgramNotFound) IsCode

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

IsCode returns true when this delete program not found response a status code equal to that given

func (*DeleteProgramNotFound) IsRedirect

func (o *DeleteProgramNotFound) IsRedirect() bool

IsRedirect returns true when this delete program not found response has a 3xx status code

func (*DeleteProgramNotFound) IsServerError

func (o *DeleteProgramNotFound) IsServerError() bool

IsServerError returns true when this delete program not found response has a 5xx status code

func (*DeleteProgramNotFound) IsSuccess

func (o *DeleteProgramNotFound) IsSuccess() bool

IsSuccess returns true when this delete program not found response has a 2xx status code

func (*DeleteProgramNotFound) String

func (o *DeleteProgramNotFound) String() string

type DeleteProgramParams

type DeleteProgramParams struct {

	/* ForceReload.

	   If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.
	*/
	ForceReload *bool

	/* Name.

	   Program name
	*/
	Name string

	/* TransactionID.

	   ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	*/
	TransactionID *string

	/* Version.

	   Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
	*/
	Version *int64

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

DeleteProgramParams contains all the parameters to send to the API endpoint

for the delete program operation.

Typically these are written to a http.Request.

func NewDeleteProgramParams

func NewDeleteProgramParams() *DeleteProgramParams

NewDeleteProgramParams creates a new DeleteProgramParams 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 NewDeleteProgramParamsWithContext

func NewDeleteProgramParamsWithContext(ctx context.Context) *DeleteProgramParams

NewDeleteProgramParamsWithContext creates a new DeleteProgramParams object with the ability to set a context for a request.

func NewDeleteProgramParamsWithHTTPClient

func NewDeleteProgramParamsWithHTTPClient(client *http.Client) *DeleteProgramParams

NewDeleteProgramParamsWithHTTPClient creates a new DeleteProgramParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteProgramParamsWithTimeout

func NewDeleteProgramParamsWithTimeout(timeout time.Duration) *DeleteProgramParams

NewDeleteProgramParamsWithTimeout creates a new DeleteProgramParams object with the ability to set a timeout on a request.

func (*DeleteProgramParams) SetContext

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

SetContext adds the context to the delete program params

func (*DeleteProgramParams) SetDefaults

func (o *DeleteProgramParams) SetDefaults()

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

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

func (*DeleteProgramParams) SetForceReload

func (o *DeleteProgramParams) SetForceReload(forceReload *bool)

SetForceReload adds the forceReload to the delete program params

func (*DeleteProgramParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete program params

func (*DeleteProgramParams) SetName

func (o *DeleteProgramParams) SetName(name string)

SetName adds the name to the delete program params

func (*DeleteProgramParams) SetTimeout

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

SetTimeout adds the timeout to the delete program params

func (*DeleteProgramParams) SetTransactionID

func (o *DeleteProgramParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the delete program params

func (*DeleteProgramParams) SetVersion

func (o *DeleteProgramParams) SetVersion(version *int64)

SetVersion adds the version to the delete program params

func (*DeleteProgramParams) WithContext

WithContext adds the context to the delete program params

func (*DeleteProgramParams) WithDefaults

func (o *DeleteProgramParams) WithDefaults() *DeleteProgramParams

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

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

func (*DeleteProgramParams) WithForceReload

func (o *DeleteProgramParams) WithForceReload(forceReload *bool) *DeleteProgramParams

WithForceReload adds the forceReload to the delete program params

func (*DeleteProgramParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete program params

func (*DeleteProgramParams) WithName

func (o *DeleteProgramParams) WithName(name string) *DeleteProgramParams

WithName adds the name to the delete program params

func (*DeleteProgramParams) WithTimeout

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

WithTimeout adds the timeout to the delete program params

func (*DeleteProgramParams) WithTransactionID

func (o *DeleteProgramParams) WithTransactionID(transactionID *string) *DeleteProgramParams

WithTransactionID adds the transactionID to the delete program params

func (*DeleteProgramParams) WithVersion

func (o *DeleteProgramParams) WithVersion(version *int64) *DeleteProgramParams

WithVersion adds the version to the delete program params

func (*DeleteProgramParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteProgramReader

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

DeleteProgramReader is a Reader for the DeleteProgram structure.

func (*DeleteProgramReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetProgramDefault

type GetProgramDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

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

General Error

func NewGetProgramDefault

func NewGetProgramDefault(code int) *GetProgramDefault

NewGetProgramDefault creates a GetProgramDefault with default headers values

func (*GetProgramDefault) Code

func (o *GetProgramDefault) Code() int

Code gets the status code for the get program default response

func (*GetProgramDefault) Error

func (o *GetProgramDefault) Error() string

func (*GetProgramDefault) GetPayload

func (o *GetProgramDefault) GetPayload() *models.Error

func (*GetProgramDefault) IsClientError

func (o *GetProgramDefault) IsClientError() bool

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

func (*GetProgramDefault) IsCode

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

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

func (*GetProgramDefault) IsRedirect

func (o *GetProgramDefault) IsRedirect() bool

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

func (*GetProgramDefault) IsServerError

func (o *GetProgramDefault) IsServerError() bool

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

func (*GetProgramDefault) IsSuccess

func (o *GetProgramDefault) IsSuccess() bool

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

func (*GetProgramDefault) String

func (o *GetProgramDefault) String() string

type GetProgramNotFound

type GetProgramNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

GetProgramNotFound describes a response with status code 404, with default header values.

The specified resource was not found

func NewGetProgramNotFound

func NewGetProgramNotFound() *GetProgramNotFound

NewGetProgramNotFound creates a GetProgramNotFound with default headers values

func (*GetProgramNotFound) Code added in v1.1.5

func (o *GetProgramNotFound) Code() int

Code gets the status code for the get program not found response

func (*GetProgramNotFound) Error

func (o *GetProgramNotFound) Error() string

func (*GetProgramNotFound) GetPayload

func (o *GetProgramNotFound) GetPayload() *models.Error

func (*GetProgramNotFound) IsClientError

func (o *GetProgramNotFound) IsClientError() bool

IsClientError returns true when this get program not found response has a 4xx status code

func (*GetProgramNotFound) IsCode

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

IsCode returns true when this get program not found response a status code equal to that given

func (*GetProgramNotFound) IsRedirect

func (o *GetProgramNotFound) IsRedirect() bool

IsRedirect returns true when this get program not found response has a 3xx status code

func (*GetProgramNotFound) IsServerError

func (o *GetProgramNotFound) IsServerError() bool

IsServerError returns true when this get program not found response has a 5xx status code

func (*GetProgramNotFound) IsSuccess

func (o *GetProgramNotFound) IsSuccess() bool

IsSuccess returns true when this get program not found response has a 2xx status code

func (*GetProgramNotFound) String

func (o *GetProgramNotFound) String() string

type GetProgramOK

type GetProgramOK struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetProgramOKBody
}

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

Successful operation

func NewGetProgramOK

func NewGetProgramOK() *GetProgramOK

NewGetProgramOK creates a GetProgramOK with default headers values

func (*GetProgramOK) Code added in v1.1.5

func (o *GetProgramOK) Code() int

Code gets the status code for the get program o k response

func (*GetProgramOK) Error

func (o *GetProgramOK) Error() string

func (*GetProgramOK) GetPayload

func (o *GetProgramOK) GetPayload() *GetProgramOKBody

func (*GetProgramOK) IsClientError

func (o *GetProgramOK) IsClientError() bool

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

func (*GetProgramOK) IsCode

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

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

func (*GetProgramOK) IsRedirect

func (o *GetProgramOK) IsRedirect() bool

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

func (*GetProgramOK) IsServerError

func (o *GetProgramOK) IsServerError() bool

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

func (*GetProgramOK) IsSuccess

func (o *GetProgramOK) IsSuccess() bool

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

func (*GetProgramOK) String

func (o *GetProgramOK) String() string

type GetProgramOKBody

type GetProgramOKBody struct {

	// version
	Version int64 `json:"_version,omitempty"`

	// data
	Data *models.Program `json:"data,omitempty"`
}

GetProgramOKBody get program o k body swagger:model GetProgramOKBody

func (*GetProgramOKBody) ContextValidate

func (o *GetProgramOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get program o k body based on the context it is used

func (*GetProgramOKBody) MarshalBinary

func (o *GetProgramOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetProgramOKBody) UnmarshalBinary

func (o *GetProgramOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetProgramOKBody) Validate

func (o *GetProgramOKBody) Validate(formats strfmt.Registry) error

Validate validates this get program o k body

type GetProgramParams

type GetProgramParams struct {

	/* Name.

	   Program name
	*/
	Name string

	/* TransactionID.

	   ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	*/
	TransactionID *string

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

GetProgramParams contains all the parameters to send to the API endpoint

for the get program operation.

Typically these are written to a http.Request.

func NewGetProgramParams

func NewGetProgramParams() *GetProgramParams

NewGetProgramParams creates a new GetProgramParams 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 NewGetProgramParamsWithContext

func NewGetProgramParamsWithContext(ctx context.Context) *GetProgramParams

NewGetProgramParamsWithContext creates a new GetProgramParams object with the ability to set a context for a request.

func NewGetProgramParamsWithHTTPClient

func NewGetProgramParamsWithHTTPClient(client *http.Client) *GetProgramParams

NewGetProgramParamsWithHTTPClient creates a new GetProgramParams object with the ability to set a custom HTTPClient for a request.

func NewGetProgramParamsWithTimeout

func NewGetProgramParamsWithTimeout(timeout time.Duration) *GetProgramParams

NewGetProgramParamsWithTimeout creates a new GetProgramParams object with the ability to set a timeout on a request.

func (*GetProgramParams) SetContext

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

SetContext adds the context to the get program params

func (*GetProgramParams) SetDefaults

func (o *GetProgramParams) SetDefaults()

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

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

func (*GetProgramParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get program params

func (*GetProgramParams) SetName

func (o *GetProgramParams) SetName(name string)

SetName adds the name to the get program params

func (*GetProgramParams) SetTimeout

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

SetTimeout adds the timeout to the get program params

func (*GetProgramParams) SetTransactionID

func (o *GetProgramParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the get program params

func (*GetProgramParams) WithContext

func (o *GetProgramParams) WithContext(ctx context.Context) *GetProgramParams

WithContext adds the context to the get program params

func (*GetProgramParams) WithDefaults

func (o *GetProgramParams) WithDefaults() *GetProgramParams

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

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

func (*GetProgramParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get program params

func (*GetProgramParams) WithName

func (o *GetProgramParams) WithName(name string) *GetProgramParams

WithName adds the name to the get program params

func (*GetProgramParams) WithTimeout

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

WithTimeout adds the timeout to the get program params

func (*GetProgramParams) WithTransactionID

func (o *GetProgramParams) WithTransactionID(transactionID *string) *GetProgramParams

WithTransactionID adds the transactionID to the get program params

func (*GetProgramParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetProgramReader

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

GetProgramReader is a Reader for the GetProgram structure.

func (*GetProgramReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetProgramsDefault

type GetProgramsDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

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

General Error

func NewGetProgramsDefault

func NewGetProgramsDefault(code int) *GetProgramsDefault

NewGetProgramsDefault creates a GetProgramsDefault with default headers values

func (*GetProgramsDefault) Code

func (o *GetProgramsDefault) Code() int

Code gets the status code for the get programs default response

func (*GetProgramsDefault) Error

func (o *GetProgramsDefault) Error() string

func (*GetProgramsDefault) GetPayload

func (o *GetProgramsDefault) GetPayload() *models.Error

func (*GetProgramsDefault) IsClientError

func (o *GetProgramsDefault) IsClientError() bool

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

func (*GetProgramsDefault) IsCode

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

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

func (*GetProgramsDefault) IsRedirect

func (o *GetProgramsDefault) IsRedirect() bool

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

func (*GetProgramsDefault) IsServerError

func (o *GetProgramsDefault) IsServerError() bool

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

func (*GetProgramsDefault) IsSuccess

func (o *GetProgramsDefault) IsSuccess() bool

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

func (*GetProgramsDefault) String

func (o *GetProgramsDefault) String() string

type GetProgramsOK

type GetProgramsOK struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetProgramsOKBody
}

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

Successful operation

func NewGetProgramsOK

func NewGetProgramsOK() *GetProgramsOK

NewGetProgramsOK creates a GetProgramsOK with default headers values

func (*GetProgramsOK) Code added in v1.1.5

func (o *GetProgramsOK) Code() int

Code gets the status code for the get programs o k response

func (*GetProgramsOK) Error

func (o *GetProgramsOK) Error() string

func (*GetProgramsOK) GetPayload

func (o *GetProgramsOK) GetPayload() *GetProgramsOKBody

func (*GetProgramsOK) IsClientError

func (o *GetProgramsOK) IsClientError() bool

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

func (*GetProgramsOK) IsCode

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

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

func (*GetProgramsOK) IsRedirect

func (o *GetProgramsOK) IsRedirect() bool

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

func (*GetProgramsOK) IsServerError

func (o *GetProgramsOK) IsServerError() bool

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

func (*GetProgramsOK) IsSuccess

func (o *GetProgramsOK) IsSuccess() bool

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

func (*GetProgramsOK) String

func (o *GetProgramsOK) String() string

type GetProgramsOKBody

type GetProgramsOKBody struct {

	// version
	Version int64 `json:"_version,omitempty"`

	// data
	// Required: true
	Data models.Programs `json:"data"`
}

GetProgramsOKBody get programs o k body swagger:model GetProgramsOKBody

func (*GetProgramsOKBody) ContextValidate

func (o *GetProgramsOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get programs o k body based on the context it is used

func (*GetProgramsOKBody) MarshalBinary

func (o *GetProgramsOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetProgramsOKBody) UnmarshalBinary

func (o *GetProgramsOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetProgramsOKBody) Validate

func (o *GetProgramsOKBody) Validate(formats strfmt.Registry) error

Validate validates this get programs o k body

type GetProgramsParams

type GetProgramsParams struct {

	/* TransactionID.

	   ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	*/
	TransactionID *string

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

GetProgramsParams contains all the parameters to send to the API endpoint

for the get programs operation.

Typically these are written to a http.Request.

func NewGetProgramsParams

func NewGetProgramsParams() *GetProgramsParams

NewGetProgramsParams creates a new GetProgramsParams 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 NewGetProgramsParamsWithContext

func NewGetProgramsParamsWithContext(ctx context.Context) *GetProgramsParams

NewGetProgramsParamsWithContext creates a new GetProgramsParams object with the ability to set a context for a request.

func NewGetProgramsParamsWithHTTPClient

func NewGetProgramsParamsWithHTTPClient(client *http.Client) *GetProgramsParams

NewGetProgramsParamsWithHTTPClient creates a new GetProgramsParams object with the ability to set a custom HTTPClient for a request.

func NewGetProgramsParamsWithTimeout

func NewGetProgramsParamsWithTimeout(timeout time.Duration) *GetProgramsParams

NewGetProgramsParamsWithTimeout creates a new GetProgramsParams object with the ability to set a timeout on a request.

func (*GetProgramsParams) SetContext

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

SetContext adds the context to the get programs params

func (*GetProgramsParams) SetDefaults

func (o *GetProgramsParams) SetDefaults()

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

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

func (*GetProgramsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get programs params

func (*GetProgramsParams) SetTimeout

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

SetTimeout adds the timeout to the get programs params

func (*GetProgramsParams) SetTransactionID

func (o *GetProgramsParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the get programs params

func (*GetProgramsParams) WithContext

func (o *GetProgramsParams) WithContext(ctx context.Context) *GetProgramsParams

WithContext adds the context to the get programs params

func (*GetProgramsParams) WithDefaults

func (o *GetProgramsParams) WithDefaults() *GetProgramsParams

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

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

func (*GetProgramsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get programs params

func (*GetProgramsParams) WithTimeout

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

WithTimeout adds the timeout to the get programs params

func (*GetProgramsParams) WithTransactionID

func (o *GetProgramsParams) WithTransactionID(transactionID *string) *GetProgramsParams

WithTransactionID adds the transactionID to the get programs params

func (*GetProgramsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetProgramsReader

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

GetProgramsReader is a Reader for the GetPrograms structure.

func (*GetProgramsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReplaceProgramAccepted

type ReplaceProgramAccepted struct {

	/* ID of the requested reload
	 */
	ReloadID string

	Payload *models.Program
}

ReplaceProgramAccepted describes a response with status code 202, with default header values.

Configuration change accepted and reload requested

func NewReplaceProgramAccepted

func NewReplaceProgramAccepted() *ReplaceProgramAccepted

NewReplaceProgramAccepted creates a ReplaceProgramAccepted with default headers values

func (*ReplaceProgramAccepted) Code added in v1.1.5

func (o *ReplaceProgramAccepted) Code() int

Code gets the status code for the replace program accepted response

func (*ReplaceProgramAccepted) Error

func (o *ReplaceProgramAccepted) Error() string

func (*ReplaceProgramAccepted) GetPayload

func (o *ReplaceProgramAccepted) GetPayload() *models.Program

func (*ReplaceProgramAccepted) IsClientError

func (o *ReplaceProgramAccepted) IsClientError() bool

IsClientError returns true when this replace program accepted response has a 4xx status code

func (*ReplaceProgramAccepted) IsCode

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

IsCode returns true when this replace program accepted response a status code equal to that given

func (*ReplaceProgramAccepted) IsRedirect

func (o *ReplaceProgramAccepted) IsRedirect() bool

IsRedirect returns true when this replace program accepted response has a 3xx status code

func (*ReplaceProgramAccepted) IsServerError

func (o *ReplaceProgramAccepted) IsServerError() bool

IsServerError returns true when this replace program accepted response has a 5xx status code

func (*ReplaceProgramAccepted) IsSuccess

func (o *ReplaceProgramAccepted) IsSuccess() bool

IsSuccess returns true when this replace program accepted response has a 2xx status code

func (*ReplaceProgramAccepted) String

func (o *ReplaceProgramAccepted) String() string

type ReplaceProgramBadRequest

type ReplaceProgramBadRequest struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

ReplaceProgramBadRequest describes a response with status code 400, with default header values.

Bad request

func NewReplaceProgramBadRequest

func NewReplaceProgramBadRequest() *ReplaceProgramBadRequest

NewReplaceProgramBadRequest creates a ReplaceProgramBadRequest with default headers values

func (*ReplaceProgramBadRequest) Code added in v1.1.5

func (o *ReplaceProgramBadRequest) Code() int

Code gets the status code for the replace program bad request response

func (*ReplaceProgramBadRequest) Error

func (o *ReplaceProgramBadRequest) Error() string

func (*ReplaceProgramBadRequest) GetPayload

func (o *ReplaceProgramBadRequest) GetPayload() *models.Error

func (*ReplaceProgramBadRequest) IsClientError

func (o *ReplaceProgramBadRequest) IsClientError() bool

IsClientError returns true when this replace program bad request response has a 4xx status code

func (*ReplaceProgramBadRequest) IsCode

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

IsCode returns true when this replace program bad request response a status code equal to that given

func (*ReplaceProgramBadRequest) IsRedirect

func (o *ReplaceProgramBadRequest) IsRedirect() bool

IsRedirect returns true when this replace program bad request response has a 3xx status code

func (*ReplaceProgramBadRequest) IsServerError

func (o *ReplaceProgramBadRequest) IsServerError() bool

IsServerError returns true when this replace program bad request response has a 5xx status code

func (*ReplaceProgramBadRequest) IsSuccess

func (o *ReplaceProgramBadRequest) IsSuccess() bool

IsSuccess returns true when this replace program bad request response has a 2xx status code

func (*ReplaceProgramBadRequest) String

func (o *ReplaceProgramBadRequest) String() string

type ReplaceProgramDefault

type ReplaceProgramDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

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

General Error

func NewReplaceProgramDefault

func NewReplaceProgramDefault(code int) *ReplaceProgramDefault

NewReplaceProgramDefault creates a ReplaceProgramDefault with default headers values

func (*ReplaceProgramDefault) Code

func (o *ReplaceProgramDefault) Code() int

Code gets the status code for the replace program default response

func (*ReplaceProgramDefault) Error

func (o *ReplaceProgramDefault) Error() string

func (*ReplaceProgramDefault) GetPayload

func (o *ReplaceProgramDefault) GetPayload() *models.Error

func (*ReplaceProgramDefault) IsClientError

func (o *ReplaceProgramDefault) IsClientError() bool

IsClientError returns true when this replace program default response has a 4xx status code

func (*ReplaceProgramDefault) IsCode

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

IsCode returns true when this replace program default response a status code equal to that given

func (*ReplaceProgramDefault) IsRedirect

func (o *ReplaceProgramDefault) IsRedirect() bool

IsRedirect returns true when this replace program default response has a 3xx status code

func (*ReplaceProgramDefault) IsServerError

func (o *ReplaceProgramDefault) IsServerError() bool

IsServerError returns true when this replace program default response has a 5xx status code

func (*ReplaceProgramDefault) IsSuccess

func (o *ReplaceProgramDefault) IsSuccess() bool

IsSuccess returns true when this replace program default response has a 2xx status code

func (*ReplaceProgramDefault) String

func (o *ReplaceProgramDefault) String() string

type ReplaceProgramNotFound

type ReplaceProgramNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

ReplaceProgramNotFound describes a response with status code 404, with default header values.

The specified resource was not found

func NewReplaceProgramNotFound

func NewReplaceProgramNotFound() *ReplaceProgramNotFound

NewReplaceProgramNotFound creates a ReplaceProgramNotFound with default headers values

func (*ReplaceProgramNotFound) Code added in v1.1.5

func (o *ReplaceProgramNotFound) Code() int

Code gets the status code for the replace program not found response

func (*ReplaceProgramNotFound) Error

func (o *ReplaceProgramNotFound) Error() string

func (*ReplaceProgramNotFound) GetPayload

func (o *ReplaceProgramNotFound) GetPayload() *models.Error

func (*ReplaceProgramNotFound) IsClientError

func (o *ReplaceProgramNotFound) IsClientError() bool

IsClientError returns true when this replace program not found response has a 4xx status code

func (*ReplaceProgramNotFound) IsCode

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

IsCode returns true when this replace program not found response a status code equal to that given

func (*ReplaceProgramNotFound) IsRedirect

func (o *ReplaceProgramNotFound) IsRedirect() bool

IsRedirect returns true when this replace program not found response has a 3xx status code

func (*ReplaceProgramNotFound) IsServerError

func (o *ReplaceProgramNotFound) IsServerError() bool

IsServerError returns true when this replace program not found response has a 5xx status code

func (*ReplaceProgramNotFound) IsSuccess

func (o *ReplaceProgramNotFound) IsSuccess() bool

IsSuccess returns true when this replace program not found response has a 2xx status code

func (*ReplaceProgramNotFound) String

func (o *ReplaceProgramNotFound) String() string

type ReplaceProgramOK

type ReplaceProgramOK struct {
	Payload *models.Program
}

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

Program replaced

func NewReplaceProgramOK

func NewReplaceProgramOK() *ReplaceProgramOK

NewReplaceProgramOK creates a ReplaceProgramOK with default headers values

func (*ReplaceProgramOK) Code added in v1.1.5

func (o *ReplaceProgramOK) Code() int

Code gets the status code for the replace program o k response

func (*ReplaceProgramOK) Error

func (o *ReplaceProgramOK) Error() string

func (*ReplaceProgramOK) GetPayload

func (o *ReplaceProgramOK) GetPayload() *models.Program

func (*ReplaceProgramOK) IsClientError

func (o *ReplaceProgramOK) IsClientError() bool

IsClientError returns true when this replace program o k response has a 4xx status code

func (*ReplaceProgramOK) IsCode

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

IsCode returns true when this replace program o k response a status code equal to that given

func (*ReplaceProgramOK) IsRedirect

func (o *ReplaceProgramOK) IsRedirect() bool

IsRedirect returns true when this replace program o k response has a 3xx status code

func (*ReplaceProgramOK) IsServerError

func (o *ReplaceProgramOK) IsServerError() bool

IsServerError returns true when this replace program o k response has a 5xx status code

func (*ReplaceProgramOK) IsSuccess

func (o *ReplaceProgramOK) IsSuccess() bool

IsSuccess returns true when this replace program o k response has a 2xx status code

func (*ReplaceProgramOK) String

func (o *ReplaceProgramOK) String() string

type ReplaceProgramParams

type ReplaceProgramParams struct {

	// Data.
	Data *models.Program

	/* ForceReload.

	   If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.
	*/
	ForceReload *bool

	/* Name.

	   Program name
	*/
	Name string

	/* TransactionID.

	   ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	*/
	TransactionID *string

	/* Version.

	   Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
	*/
	Version *int64

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

ReplaceProgramParams contains all the parameters to send to the API endpoint

for the replace program operation.

Typically these are written to a http.Request.

func NewReplaceProgramParams

func NewReplaceProgramParams() *ReplaceProgramParams

NewReplaceProgramParams creates a new ReplaceProgramParams 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 NewReplaceProgramParamsWithContext

func NewReplaceProgramParamsWithContext(ctx context.Context) *ReplaceProgramParams

NewReplaceProgramParamsWithContext creates a new ReplaceProgramParams object with the ability to set a context for a request.

func NewReplaceProgramParamsWithHTTPClient

func NewReplaceProgramParamsWithHTTPClient(client *http.Client) *ReplaceProgramParams

NewReplaceProgramParamsWithHTTPClient creates a new ReplaceProgramParams object with the ability to set a custom HTTPClient for a request.

func NewReplaceProgramParamsWithTimeout

func NewReplaceProgramParamsWithTimeout(timeout time.Duration) *ReplaceProgramParams

NewReplaceProgramParamsWithTimeout creates a new ReplaceProgramParams object with the ability to set a timeout on a request.

func (*ReplaceProgramParams) SetContext

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

SetContext adds the context to the replace program params

func (*ReplaceProgramParams) SetData

func (o *ReplaceProgramParams) SetData(data *models.Program)

SetData adds the data to the replace program params

func (*ReplaceProgramParams) SetDefaults

func (o *ReplaceProgramParams) SetDefaults()

SetDefaults hydrates default values in the replace program params (not the query body).

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

func (*ReplaceProgramParams) SetForceReload

func (o *ReplaceProgramParams) SetForceReload(forceReload *bool)

SetForceReload adds the forceReload to the replace program params

func (*ReplaceProgramParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the replace program params

func (*ReplaceProgramParams) SetName

func (o *ReplaceProgramParams) SetName(name string)

SetName adds the name to the replace program params

func (*ReplaceProgramParams) SetTimeout

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

SetTimeout adds the timeout to the replace program params

func (*ReplaceProgramParams) SetTransactionID

func (o *ReplaceProgramParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the replace program params

func (*ReplaceProgramParams) SetVersion

func (o *ReplaceProgramParams) SetVersion(version *int64)

SetVersion adds the version to the replace program params

func (*ReplaceProgramParams) WithContext

WithContext adds the context to the replace program params

func (*ReplaceProgramParams) WithData

WithData adds the data to the replace program params

func (*ReplaceProgramParams) WithDefaults

func (o *ReplaceProgramParams) WithDefaults() *ReplaceProgramParams

WithDefaults hydrates default values in the replace program params (not the query body).

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

func (*ReplaceProgramParams) WithForceReload

func (o *ReplaceProgramParams) WithForceReload(forceReload *bool) *ReplaceProgramParams

WithForceReload adds the forceReload to the replace program params

func (*ReplaceProgramParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the replace program params

func (*ReplaceProgramParams) WithName

WithName adds the name to the replace program params

func (*ReplaceProgramParams) WithTimeout

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

WithTimeout adds the timeout to the replace program params

func (*ReplaceProgramParams) WithTransactionID

func (o *ReplaceProgramParams) WithTransactionID(transactionID *string) *ReplaceProgramParams

WithTransactionID adds the transactionID to the replace program params

func (*ReplaceProgramParams) WithVersion

func (o *ReplaceProgramParams) WithVersion(version *int64) *ReplaceProgramParams

WithVersion adds the version to the replace program params

func (*ReplaceProgramParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ReplaceProgramReader

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

ReplaceProgramReader is a Reader for the ReplaceProgram structure.

func (*ReplaceProgramReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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