Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateProgram(params *CreateProgramParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateProgramCreated, *CreateProgramAccepted, error)
- func (a *Client) DeleteProgram(params *DeleteProgramParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteProgramAccepted, *DeleteProgramNoContent, error)
- func (a *Client) GetProgram(params *GetProgramParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetProgramOK, error)
- func (a *Client) GetPrograms(params *GetProgramsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetProgramsOK, error)
- func (a *Client) ReplaceProgram(params *ReplaceProgramParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ReplaceProgramOK, *ReplaceProgramAccepted, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreateProgramAccepted
- func (o *CreateProgramAccepted) Code() int
- func (o *CreateProgramAccepted) Error() string
- func (o *CreateProgramAccepted) GetPayload() *models.Program
- func (o *CreateProgramAccepted) IsClientError() bool
- func (o *CreateProgramAccepted) IsCode(code int) bool
- func (o *CreateProgramAccepted) IsRedirect() bool
- func (o *CreateProgramAccepted) IsServerError() bool
- func (o *CreateProgramAccepted) IsSuccess() bool
- func (o *CreateProgramAccepted) String() string
- type CreateProgramBadRequest
- func (o *CreateProgramBadRequest) Code() int
- func (o *CreateProgramBadRequest) Error() string
- func (o *CreateProgramBadRequest) GetPayload() *models.Error
- func (o *CreateProgramBadRequest) IsClientError() bool
- func (o *CreateProgramBadRequest) IsCode(code int) bool
- func (o *CreateProgramBadRequest) IsRedirect() bool
- func (o *CreateProgramBadRequest) IsServerError() bool
- func (o *CreateProgramBadRequest) IsSuccess() bool
- func (o *CreateProgramBadRequest) String() string
- type CreateProgramConflict
- func (o *CreateProgramConflict) Code() int
- func (o *CreateProgramConflict) Error() string
- func (o *CreateProgramConflict) GetPayload() *models.Error
- func (o *CreateProgramConflict) IsClientError() bool
- func (o *CreateProgramConflict) IsCode(code int) bool
- func (o *CreateProgramConflict) IsRedirect() bool
- func (o *CreateProgramConflict) IsServerError() bool
- func (o *CreateProgramConflict) IsSuccess() bool
- func (o *CreateProgramConflict) String() string
- type CreateProgramCreated
- func (o *CreateProgramCreated) Code() int
- func (o *CreateProgramCreated) Error() string
- func (o *CreateProgramCreated) GetPayload() *models.Program
- func (o *CreateProgramCreated) IsClientError() bool
- func (o *CreateProgramCreated) IsCode(code int) bool
- func (o *CreateProgramCreated) IsRedirect() bool
- func (o *CreateProgramCreated) IsServerError() bool
- func (o *CreateProgramCreated) IsSuccess() bool
- func (o *CreateProgramCreated) String() string
- type CreateProgramDefault
- func (o *CreateProgramDefault) Code() int
- func (o *CreateProgramDefault) Error() string
- func (o *CreateProgramDefault) GetPayload() *models.Error
- func (o *CreateProgramDefault) IsClientError() bool
- func (o *CreateProgramDefault) IsCode(code int) bool
- func (o *CreateProgramDefault) IsRedirect() bool
- func (o *CreateProgramDefault) IsServerError() bool
- func (o *CreateProgramDefault) IsSuccess() bool
- func (o *CreateProgramDefault) String() string
- type CreateProgramParams
- func (o *CreateProgramParams) SetContext(ctx context.Context)
- func (o *CreateProgramParams) SetData(data *models.Program)
- func (o *CreateProgramParams) SetDefaults()
- func (o *CreateProgramParams) SetForceReload(forceReload *bool)
- func (o *CreateProgramParams) SetHTTPClient(client *http.Client)
- func (o *CreateProgramParams) SetTimeout(timeout time.Duration)
- func (o *CreateProgramParams) SetTransactionID(transactionID *string)
- func (o *CreateProgramParams) SetVersion(version *int64)
- func (o *CreateProgramParams) WithContext(ctx context.Context) *CreateProgramParams
- func (o *CreateProgramParams) WithData(data *models.Program) *CreateProgramParams
- func (o *CreateProgramParams) WithDefaults() *CreateProgramParams
- func (o *CreateProgramParams) WithForceReload(forceReload *bool) *CreateProgramParams
- func (o *CreateProgramParams) WithHTTPClient(client *http.Client) *CreateProgramParams
- func (o *CreateProgramParams) WithTimeout(timeout time.Duration) *CreateProgramParams
- func (o *CreateProgramParams) WithTransactionID(transactionID *string) *CreateProgramParams
- func (o *CreateProgramParams) WithVersion(version *int64) *CreateProgramParams
- func (o *CreateProgramParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateProgramReader
- type DeleteProgramAccepted
- func (o *DeleteProgramAccepted) Code() int
- func (o *DeleteProgramAccepted) Error() string
- func (o *DeleteProgramAccepted) IsClientError() bool
- func (o *DeleteProgramAccepted) IsCode(code int) bool
- func (o *DeleteProgramAccepted) IsRedirect() bool
- func (o *DeleteProgramAccepted) IsServerError() bool
- func (o *DeleteProgramAccepted) IsSuccess() bool
- func (o *DeleteProgramAccepted) String() string
- type DeleteProgramDefault
- func (o *DeleteProgramDefault) Code() int
- func (o *DeleteProgramDefault) Error() string
- func (o *DeleteProgramDefault) GetPayload() *models.Error
- func (o *DeleteProgramDefault) IsClientError() bool
- func (o *DeleteProgramDefault) IsCode(code int) bool
- func (o *DeleteProgramDefault) IsRedirect() bool
- func (o *DeleteProgramDefault) IsServerError() bool
- func (o *DeleteProgramDefault) IsSuccess() bool
- func (o *DeleteProgramDefault) String() string
- type DeleteProgramNoContent
- func (o *DeleteProgramNoContent) Code() int
- func (o *DeleteProgramNoContent) Error() string
- func (o *DeleteProgramNoContent) IsClientError() bool
- func (o *DeleteProgramNoContent) IsCode(code int) bool
- func (o *DeleteProgramNoContent) IsRedirect() bool
- func (o *DeleteProgramNoContent) IsServerError() bool
- func (o *DeleteProgramNoContent) IsSuccess() bool
- func (o *DeleteProgramNoContent) String() string
- type DeleteProgramNotFound
- func (o *DeleteProgramNotFound) Code() int
- func (o *DeleteProgramNotFound) Error() string
- func (o *DeleteProgramNotFound) GetPayload() *models.Error
- func (o *DeleteProgramNotFound) IsClientError() bool
- func (o *DeleteProgramNotFound) IsCode(code int) bool
- func (o *DeleteProgramNotFound) IsRedirect() bool
- func (o *DeleteProgramNotFound) IsServerError() bool
- func (o *DeleteProgramNotFound) IsSuccess() bool
- func (o *DeleteProgramNotFound) String() string
- type DeleteProgramParams
- func (o *DeleteProgramParams) SetContext(ctx context.Context)
- func (o *DeleteProgramParams) SetDefaults()
- func (o *DeleteProgramParams) SetForceReload(forceReload *bool)
- func (o *DeleteProgramParams) SetHTTPClient(client *http.Client)
- func (o *DeleteProgramParams) SetName(name string)
- func (o *DeleteProgramParams) SetTimeout(timeout time.Duration)
- func (o *DeleteProgramParams) SetTransactionID(transactionID *string)
- func (o *DeleteProgramParams) SetVersion(version *int64)
- func (o *DeleteProgramParams) WithContext(ctx context.Context) *DeleteProgramParams
- func (o *DeleteProgramParams) WithDefaults() *DeleteProgramParams
- func (o *DeleteProgramParams) WithForceReload(forceReload *bool) *DeleteProgramParams
- func (o *DeleteProgramParams) WithHTTPClient(client *http.Client) *DeleteProgramParams
- func (o *DeleteProgramParams) WithName(name string) *DeleteProgramParams
- func (o *DeleteProgramParams) WithTimeout(timeout time.Duration) *DeleteProgramParams
- func (o *DeleteProgramParams) WithTransactionID(transactionID *string) *DeleteProgramParams
- func (o *DeleteProgramParams) WithVersion(version *int64) *DeleteProgramParams
- func (o *DeleteProgramParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteProgramReader
- type GetProgramDefault
- func (o *GetProgramDefault) Code() int
- func (o *GetProgramDefault) Error() string
- func (o *GetProgramDefault) GetPayload() *models.Error
- func (o *GetProgramDefault) IsClientError() bool
- func (o *GetProgramDefault) IsCode(code int) bool
- func (o *GetProgramDefault) IsRedirect() bool
- func (o *GetProgramDefault) IsServerError() bool
- func (o *GetProgramDefault) IsSuccess() bool
- func (o *GetProgramDefault) String() string
- type GetProgramNotFound
- func (o *GetProgramNotFound) Code() int
- func (o *GetProgramNotFound) Error() string
- func (o *GetProgramNotFound) GetPayload() *models.Error
- func (o *GetProgramNotFound) IsClientError() bool
- func (o *GetProgramNotFound) IsCode(code int) bool
- func (o *GetProgramNotFound) IsRedirect() bool
- func (o *GetProgramNotFound) IsServerError() bool
- func (o *GetProgramNotFound) IsSuccess() bool
- func (o *GetProgramNotFound) String() string
- type GetProgramOK
- func (o *GetProgramOK) Code() int
- func (o *GetProgramOK) Error() string
- func (o *GetProgramOK) GetPayload() *GetProgramOKBody
- func (o *GetProgramOK) IsClientError() bool
- func (o *GetProgramOK) IsCode(code int) bool
- func (o *GetProgramOK) IsRedirect() bool
- func (o *GetProgramOK) IsServerError() bool
- func (o *GetProgramOK) IsSuccess() bool
- func (o *GetProgramOK) String() string
- type GetProgramOKBody
- type GetProgramParams
- func (o *GetProgramParams) SetContext(ctx context.Context)
- func (o *GetProgramParams) SetDefaults()
- func (o *GetProgramParams) SetHTTPClient(client *http.Client)
- func (o *GetProgramParams) SetName(name string)
- func (o *GetProgramParams) SetTimeout(timeout time.Duration)
- func (o *GetProgramParams) SetTransactionID(transactionID *string)
- func (o *GetProgramParams) WithContext(ctx context.Context) *GetProgramParams
- func (o *GetProgramParams) WithDefaults() *GetProgramParams
- func (o *GetProgramParams) WithHTTPClient(client *http.Client) *GetProgramParams
- func (o *GetProgramParams) WithName(name string) *GetProgramParams
- func (o *GetProgramParams) WithTimeout(timeout time.Duration) *GetProgramParams
- func (o *GetProgramParams) WithTransactionID(transactionID *string) *GetProgramParams
- func (o *GetProgramParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetProgramReader
- type GetProgramsDefault
- func (o *GetProgramsDefault) Code() int
- func (o *GetProgramsDefault) Error() string
- func (o *GetProgramsDefault) GetPayload() *models.Error
- func (o *GetProgramsDefault) IsClientError() bool
- func (o *GetProgramsDefault) IsCode(code int) bool
- func (o *GetProgramsDefault) IsRedirect() bool
- func (o *GetProgramsDefault) IsServerError() bool
- func (o *GetProgramsDefault) IsSuccess() bool
- func (o *GetProgramsDefault) String() string
- type GetProgramsOK
- func (o *GetProgramsOK) Code() int
- func (o *GetProgramsOK) Error() string
- func (o *GetProgramsOK) GetPayload() *GetProgramsOKBody
- func (o *GetProgramsOK) IsClientError() bool
- func (o *GetProgramsOK) IsCode(code int) bool
- func (o *GetProgramsOK) IsRedirect() bool
- func (o *GetProgramsOK) IsServerError() bool
- func (o *GetProgramsOK) IsSuccess() bool
- func (o *GetProgramsOK) String() string
- type GetProgramsOKBody
- type GetProgramsParams
- func (o *GetProgramsParams) SetContext(ctx context.Context)
- func (o *GetProgramsParams) SetDefaults()
- func (o *GetProgramsParams) SetHTTPClient(client *http.Client)
- func (o *GetProgramsParams) SetTimeout(timeout time.Duration)
- func (o *GetProgramsParams) SetTransactionID(transactionID *string)
- func (o *GetProgramsParams) WithContext(ctx context.Context) *GetProgramsParams
- func (o *GetProgramsParams) WithDefaults() *GetProgramsParams
- func (o *GetProgramsParams) WithHTTPClient(client *http.Client) *GetProgramsParams
- func (o *GetProgramsParams) WithTimeout(timeout time.Duration) *GetProgramsParams
- func (o *GetProgramsParams) WithTransactionID(transactionID *string) *GetProgramsParams
- func (o *GetProgramsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetProgramsReader
- type ReplaceProgramAccepted
- func (o *ReplaceProgramAccepted) Code() int
- func (o *ReplaceProgramAccepted) Error() string
- func (o *ReplaceProgramAccepted) GetPayload() *models.Program
- func (o *ReplaceProgramAccepted) IsClientError() bool
- func (o *ReplaceProgramAccepted) IsCode(code int) bool
- func (o *ReplaceProgramAccepted) IsRedirect() bool
- func (o *ReplaceProgramAccepted) IsServerError() bool
- func (o *ReplaceProgramAccepted) IsSuccess() bool
- func (o *ReplaceProgramAccepted) String() string
- type ReplaceProgramBadRequest
- func (o *ReplaceProgramBadRequest) Code() int
- func (o *ReplaceProgramBadRequest) Error() string
- func (o *ReplaceProgramBadRequest) GetPayload() *models.Error
- func (o *ReplaceProgramBadRequest) IsClientError() bool
- func (o *ReplaceProgramBadRequest) IsCode(code int) bool
- func (o *ReplaceProgramBadRequest) IsRedirect() bool
- func (o *ReplaceProgramBadRequest) IsServerError() bool
- func (o *ReplaceProgramBadRequest) IsSuccess() bool
- func (o *ReplaceProgramBadRequest) String() string
- type ReplaceProgramDefault
- func (o *ReplaceProgramDefault) Code() int
- func (o *ReplaceProgramDefault) Error() string
- func (o *ReplaceProgramDefault) GetPayload() *models.Error
- func (o *ReplaceProgramDefault) IsClientError() bool
- func (o *ReplaceProgramDefault) IsCode(code int) bool
- func (o *ReplaceProgramDefault) IsRedirect() bool
- func (o *ReplaceProgramDefault) IsServerError() bool
- func (o *ReplaceProgramDefault) IsSuccess() bool
- func (o *ReplaceProgramDefault) String() string
- type ReplaceProgramNotFound
- func (o *ReplaceProgramNotFound) Code() int
- func (o *ReplaceProgramNotFound) Error() string
- func (o *ReplaceProgramNotFound) GetPayload() *models.Error
- func (o *ReplaceProgramNotFound) IsClientError() bool
- func (o *ReplaceProgramNotFound) IsCode(code int) bool
- func (o *ReplaceProgramNotFound) IsRedirect() bool
- func (o *ReplaceProgramNotFound) IsServerError() bool
- func (o *ReplaceProgramNotFound) IsSuccess() bool
- func (o *ReplaceProgramNotFound) String() string
- type ReplaceProgramOK
- func (o *ReplaceProgramOK) Code() int
- func (o *ReplaceProgramOK) Error() string
- func (o *ReplaceProgramOK) GetPayload() *models.Program
- func (o *ReplaceProgramOK) IsClientError() bool
- func (o *ReplaceProgramOK) IsCode(code int) bool
- func (o *ReplaceProgramOK) IsRedirect() bool
- func (o *ReplaceProgramOK) IsServerError() bool
- func (o *ReplaceProgramOK) IsSuccess() bool
- func (o *ReplaceProgramOK) String() string
- type ReplaceProgramParams
- func NewReplaceProgramParams() *ReplaceProgramParams
- func NewReplaceProgramParamsWithContext(ctx context.Context) *ReplaceProgramParams
- func NewReplaceProgramParamsWithHTTPClient(client *http.Client) *ReplaceProgramParams
- func NewReplaceProgramParamsWithTimeout(timeout time.Duration) *ReplaceProgramParams
- func (o *ReplaceProgramParams) SetContext(ctx context.Context)
- func (o *ReplaceProgramParams) SetData(data *models.Program)
- func (o *ReplaceProgramParams) SetDefaults()
- func (o *ReplaceProgramParams) SetForceReload(forceReload *bool)
- func (o *ReplaceProgramParams) SetHTTPClient(client *http.Client)
- func (o *ReplaceProgramParams) SetName(name string)
- func (o *ReplaceProgramParams) SetTimeout(timeout time.Duration)
- func (o *ReplaceProgramParams) SetTransactionID(transactionID *string)
- func (o *ReplaceProgramParams) SetVersion(version *int64)
- func (o *ReplaceProgramParams) WithContext(ctx context.Context) *ReplaceProgramParams
- func (o *ReplaceProgramParams) WithData(data *models.Program) *ReplaceProgramParams
- func (o *ReplaceProgramParams) WithDefaults() *ReplaceProgramParams
- func (o *ReplaceProgramParams) WithForceReload(forceReload *bool) *ReplaceProgramParams
- func (o *ReplaceProgramParams) WithHTTPClient(client *http.Client) *ReplaceProgramParams
- func (o *ReplaceProgramParams) WithName(name string) *ReplaceProgramParams
- func (o *ReplaceProgramParams) WithTimeout(timeout time.Duration) *ReplaceProgramParams
- func (o *ReplaceProgramParams) WithTransactionID(transactionID *string) *ReplaceProgramParams
- func (o *ReplaceProgramParams) WithVersion(version *int64) *ReplaceProgramParams
- func (o *ReplaceProgramParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ReplaceProgramReader
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 ¶
func (a *Client) CreateProgram(params *CreateProgramParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateProgramCreated, *CreateProgramAccepted, error)
CreateProgram adds a program
Adds a new program to the process-manager configuration file.
func (*Client) DeleteProgram ¶
func (a *Client) DeleteProgram(params *DeleteProgramParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteProgramAccepted, *DeleteProgramNoContent, error)
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 ¶
func (a *Client) ReplaceProgram(params *ReplaceProgramParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ReplaceProgramOK, *ReplaceProgramAccepted, error)
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 ¶
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 ¶
func (o *CreateProgramParams) WithContext(ctx context.Context) *CreateProgramParams
WithContext adds the context to the create program params
func (*CreateProgramParams) WithData ¶
func (o *CreateProgramParams) WithData(data *models.Program) *CreateProgramParams
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 ¶
func (o *DeleteProgramParams) WithContext(ctx context.Context) *DeleteProgramParams
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 ¶
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
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 ¶
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
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 ¶
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 ¶
func (o *ReplaceProgramParams) WithContext(ctx context.Context) *ReplaceProgramParams
WithContext adds the context to the replace program params
func (*ReplaceProgramParams) WithData ¶
func (o *ReplaceProgramParams) WithData(data *models.Program) *ReplaceProgramParams
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 ¶
func (o *ReplaceProgramParams) WithName(name string) *ReplaceProgramParams
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.
Source Files ¶
- create_program_parameters.go
- create_program_responses.go
- delete_program_parameters.go
- delete_program_responses.go
- get_program_parameters.go
- get_program_responses.go
- get_programs_parameters.go
- get_programs_responses.go
- process_manager_client.go
- replace_program_parameters.go
- replace_program_responses.go