Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateSite(params *CreateSiteParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateSiteCreated, *CreateSiteAccepted, error)
- func (a *Client) DeleteSite(params *DeleteSiteParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteSiteAccepted, *DeleteSiteNoContent, error)
- func (a *Client) GetSite(params *GetSiteParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetSiteOK, error)
- func (a *Client) GetSites(params *GetSitesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetSitesOK, error)
- func (a *Client) ReplaceSite(params *ReplaceSiteParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ReplaceSiteOK, *ReplaceSiteAccepted, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreateSiteAccepted
- func (o *CreateSiteAccepted) Code() int
- func (o *CreateSiteAccepted) Error() string
- func (o *CreateSiteAccepted) GetPayload() *models.Site
- func (o *CreateSiteAccepted) IsClientError() bool
- func (o *CreateSiteAccepted) IsCode(code int) bool
- func (o *CreateSiteAccepted) IsRedirect() bool
- func (o *CreateSiteAccepted) IsServerError() bool
- func (o *CreateSiteAccepted) IsSuccess() bool
- func (o *CreateSiteAccepted) String() string
- type CreateSiteBadRequest
- func (o *CreateSiteBadRequest) Code() int
- func (o *CreateSiteBadRequest) Error() string
- func (o *CreateSiteBadRequest) GetPayload() *models.Error
- func (o *CreateSiteBadRequest) IsClientError() bool
- func (o *CreateSiteBadRequest) IsCode(code int) bool
- func (o *CreateSiteBadRequest) IsRedirect() bool
- func (o *CreateSiteBadRequest) IsServerError() bool
- func (o *CreateSiteBadRequest) IsSuccess() bool
- func (o *CreateSiteBadRequest) String() string
- type CreateSiteConflict
- func (o *CreateSiteConflict) Code() int
- func (o *CreateSiteConflict) Error() string
- func (o *CreateSiteConflict) GetPayload() *models.Error
- func (o *CreateSiteConflict) IsClientError() bool
- func (o *CreateSiteConflict) IsCode(code int) bool
- func (o *CreateSiteConflict) IsRedirect() bool
- func (o *CreateSiteConflict) IsServerError() bool
- func (o *CreateSiteConflict) IsSuccess() bool
- func (o *CreateSiteConflict) String() string
- type CreateSiteCreated
- func (o *CreateSiteCreated) Code() int
- func (o *CreateSiteCreated) Error() string
- func (o *CreateSiteCreated) GetPayload() *models.Site
- func (o *CreateSiteCreated) IsClientError() bool
- func (o *CreateSiteCreated) IsCode(code int) bool
- func (o *CreateSiteCreated) IsRedirect() bool
- func (o *CreateSiteCreated) IsServerError() bool
- func (o *CreateSiteCreated) IsSuccess() bool
- func (o *CreateSiteCreated) String() string
- type CreateSiteDefault
- func (o *CreateSiteDefault) Code() int
- func (o *CreateSiteDefault) Error() string
- func (o *CreateSiteDefault) GetPayload() *models.Error
- func (o *CreateSiteDefault) IsClientError() bool
- func (o *CreateSiteDefault) IsCode(code int) bool
- func (o *CreateSiteDefault) IsRedirect() bool
- func (o *CreateSiteDefault) IsServerError() bool
- func (o *CreateSiteDefault) IsSuccess() bool
- func (o *CreateSiteDefault) String() string
- type CreateSiteParams
- func (o *CreateSiteParams) SetContext(ctx context.Context)
- func (o *CreateSiteParams) SetData(data *models.Site)
- func (o *CreateSiteParams) SetDefaults()
- func (o *CreateSiteParams) SetForceReload(forceReload *bool)
- func (o *CreateSiteParams) SetHTTPClient(client *http.Client)
- func (o *CreateSiteParams) SetTimeout(timeout time.Duration)
- func (o *CreateSiteParams) SetTransactionID(transactionID *string)
- func (o *CreateSiteParams) SetVersion(version *int64)
- func (o *CreateSiteParams) WithContext(ctx context.Context) *CreateSiteParams
- func (o *CreateSiteParams) WithData(data *models.Site) *CreateSiteParams
- func (o *CreateSiteParams) WithDefaults() *CreateSiteParams
- func (o *CreateSiteParams) WithForceReload(forceReload *bool) *CreateSiteParams
- func (o *CreateSiteParams) WithHTTPClient(client *http.Client) *CreateSiteParams
- func (o *CreateSiteParams) WithTimeout(timeout time.Duration) *CreateSiteParams
- func (o *CreateSiteParams) WithTransactionID(transactionID *string) *CreateSiteParams
- func (o *CreateSiteParams) WithVersion(version *int64) *CreateSiteParams
- func (o *CreateSiteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateSiteReader
- type DeleteSiteAccepted
- func (o *DeleteSiteAccepted) Code() int
- func (o *DeleteSiteAccepted) Error() string
- func (o *DeleteSiteAccepted) IsClientError() bool
- func (o *DeleteSiteAccepted) IsCode(code int) bool
- func (o *DeleteSiteAccepted) IsRedirect() bool
- func (o *DeleteSiteAccepted) IsServerError() bool
- func (o *DeleteSiteAccepted) IsSuccess() bool
- func (o *DeleteSiteAccepted) String() string
- type DeleteSiteDefault
- func (o *DeleteSiteDefault) Code() int
- func (o *DeleteSiteDefault) Error() string
- func (o *DeleteSiteDefault) GetPayload() *models.Error
- func (o *DeleteSiteDefault) IsClientError() bool
- func (o *DeleteSiteDefault) IsCode(code int) bool
- func (o *DeleteSiteDefault) IsRedirect() bool
- func (o *DeleteSiteDefault) IsServerError() bool
- func (o *DeleteSiteDefault) IsSuccess() bool
- func (o *DeleteSiteDefault) String() string
- type DeleteSiteNoContent
- func (o *DeleteSiteNoContent) Code() int
- func (o *DeleteSiteNoContent) Error() string
- func (o *DeleteSiteNoContent) IsClientError() bool
- func (o *DeleteSiteNoContent) IsCode(code int) bool
- func (o *DeleteSiteNoContent) IsRedirect() bool
- func (o *DeleteSiteNoContent) IsServerError() bool
- func (o *DeleteSiteNoContent) IsSuccess() bool
- func (o *DeleteSiteNoContent) String() string
- type DeleteSiteNotFound
- func (o *DeleteSiteNotFound) Code() int
- func (o *DeleteSiteNotFound) Error() string
- func (o *DeleteSiteNotFound) GetPayload() *models.Error
- func (o *DeleteSiteNotFound) IsClientError() bool
- func (o *DeleteSiteNotFound) IsCode(code int) bool
- func (o *DeleteSiteNotFound) IsRedirect() bool
- func (o *DeleteSiteNotFound) IsServerError() bool
- func (o *DeleteSiteNotFound) IsSuccess() bool
- func (o *DeleteSiteNotFound) String() string
- type DeleteSiteParams
- func (o *DeleteSiteParams) SetContext(ctx context.Context)
- func (o *DeleteSiteParams) SetDefaults()
- func (o *DeleteSiteParams) SetForceReload(forceReload *bool)
- func (o *DeleteSiteParams) SetHTTPClient(client *http.Client)
- func (o *DeleteSiteParams) SetName(name string)
- func (o *DeleteSiteParams) SetTimeout(timeout time.Duration)
- func (o *DeleteSiteParams) SetTransactionID(transactionID *string)
- func (o *DeleteSiteParams) SetVersion(version *int64)
- func (o *DeleteSiteParams) WithContext(ctx context.Context) *DeleteSiteParams
- func (o *DeleteSiteParams) WithDefaults() *DeleteSiteParams
- func (o *DeleteSiteParams) WithForceReload(forceReload *bool) *DeleteSiteParams
- func (o *DeleteSiteParams) WithHTTPClient(client *http.Client) *DeleteSiteParams
- func (o *DeleteSiteParams) WithName(name string) *DeleteSiteParams
- func (o *DeleteSiteParams) WithTimeout(timeout time.Duration) *DeleteSiteParams
- func (o *DeleteSiteParams) WithTransactionID(transactionID *string) *DeleteSiteParams
- func (o *DeleteSiteParams) WithVersion(version *int64) *DeleteSiteParams
- func (o *DeleteSiteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteSiteReader
- type GetSiteDefault
- func (o *GetSiteDefault) Code() int
- func (o *GetSiteDefault) Error() string
- func (o *GetSiteDefault) GetPayload() *models.Error
- func (o *GetSiteDefault) IsClientError() bool
- func (o *GetSiteDefault) IsCode(code int) bool
- func (o *GetSiteDefault) IsRedirect() bool
- func (o *GetSiteDefault) IsServerError() bool
- func (o *GetSiteDefault) IsSuccess() bool
- func (o *GetSiteDefault) String() string
- type GetSiteNotFound
- func (o *GetSiteNotFound) Code() int
- func (o *GetSiteNotFound) Error() string
- func (o *GetSiteNotFound) GetPayload() *models.Error
- func (o *GetSiteNotFound) IsClientError() bool
- func (o *GetSiteNotFound) IsCode(code int) bool
- func (o *GetSiteNotFound) IsRedirect() bool
- func (o *GetSiteNotFound) IsServerError() bool
- func (o *GetSiteNotFound) IsSuccess() bool
- func (o *GetSiteNotFound) String() string
- type GetSiteOK
- func (o *GetSiteOK) Code() int
- func (o *GetSiteOK) Error() string
- func (o *GetSiteOK) GetPayload() *GetSiteOKBody
- func (o *GetSiteOK) IsClientError() bool
- func (o *GetSiteOK) IsCode(code int) bool
- func (o *GetSiteOK) IsRedirect() bool
- func (o *GetSiteOK) IsServerError() bool
- func (o *GetSiteOK) IsSuccess() bool
- func (o *GetSiteOK) String() string
- type GetSiteOKBody
- type GetSiteParams
- func (o *GetSiteParams) SetContext(ctx context.Context)
- func (o *GetSiteParams) SetDefaults()
- func (o *GetSiteParams) SetHTTPClient(client *http.Client)
- func (o *GetSiteParams) SetName(name string)
- func (o *GetSiteParams) SetTimeout(timeout time.Duration)
- func (o *GetSiteParams) SetTransactionID(transactionID *string)
- func (o *GetSiteParams) WithContext(ctx context.Context) *GetSiteParams
- func (o *GetSiteParams) WithDefaults() *GetSiteParams
- func (o *GetSiteParams) WithHTTPClient(client *http.Client) *GetSiteParams
- func (o *GetSiteParams) WithName(name string) *GetSiteParams
- func (o *GetSiteParams) WithTimeout(timeout time.Duration) *GetSiteParams
- func (o *GetSiteParams) WithTransactionID(transactionID *string) *GetSiteParams
- func (o *GetSiteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSiteReader
- type GetSitesDefault
- func (o *GetSitesDefault) Code() int
- func (o *GetSitesDefault) Error() string
- func (o *GetSitesDefault) GetPayload() *models.Error
- func (o *GetSitesDefault) IsClientError() bool
- func (o *GetSitesDefault) IsCode(code int) bool
- func (o *GetSitesDefault) IsRedirect() bool
- func (o *GetSitesDefault) IsServerError() bool
- func (o *GetSitesDefault) IsSuccess() bool
- func (o *GetSitesDefault) String() string
- type GetSitesOK
- func (o *GetSitesOK) Code() int
- func (o *GetSitesOK) Error() string
- func (o *GetSitesOK) GetPayload() *GetSitesOKBody
- func (o *GetSitesOK) IsClientError() bool
- func (o *GetSitesOK) IsCode(code int) bool
- func (o *GetSitesOK) IsRedirect() bool
- func (o *GetSitesOK) IsServerError() bool
- func (o *GetSitesOK) IsSuccess() bool
- func (o *GetSitesOK) String() string
- type GetSitesOKBody
- type GetSitesParams
- func (o *GetSitesParams) SetContext(ctx context.Context)
- func (o *GetSitesParams) SetDefaults()
- func (o *GetSitesParams) SetHTTPClient(client *http.Client)
- func (o *GetSitesParams) SetTimeout(timeout time.Duration)
- func (o *GetSitesParams) SetTransactionID(transactionID *string)
- func (o *GetSitesParams) WithContext(ctx context.Context) *GetSitesParams
- func (o *GetSitesParams) WithDefaults() *GetSitesParams
- func (o *GetSitesParams) WithHTTPClient(client *http.Client) *GetSitesParams
- func (o *GetSitesParams) WithTimeout(timeout time.Duration) *GetSitesParams
- func (o *GetSitesParams) WithTransactionID(transactionID *string) *GetSitesParams
- func (o *GetSitesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSitesReader
- type ReplaceSiteAccepted
- func (o *ReplaceSiteAccepted) Code() int
- func (o *ReplaceSiteAccepted) Error() string
- func (o *ReplaceSiteAccepted) GetPayload() *models.Site
- func (o *ReplaceSiteAccepted) IsClientError() bool
- func (o *ReplaceSiteAccepted) IsCode(code int) bool
- func (o *ReplaceSiteAccepted) IsRedirect() bool
- func (o *ReplaceSiteAccepted) IsServerError() bool
- func (o *ReplaceSiteAccepted) IsSuccess() bool
- func (o *ReplaceSiteAccepted) String() string
- type ReplaceSiteBadRequest
- func (o *ReplaceSiteBadRequest) Code() int
- func (o *ReplaceSiteBadRequest) Error() string
- func (o *ReplaceSiteBadRequest) GetPayload() *models.Error
- func (o *ReplaceSiteBadRequest) IsClientError() bool
- func (o *ReplaceSiteBadRequest) IsCode(code int) bool
- func (o *ReplaceSiteBadRequest) IsRedirect() bool
- func (o *ReplaceSiteBadRequest) IsServerError() bool
- func (o *ReplaceSiteBadRequest) IsSuccess() bool
- func (o *ReplaceSiteBadRequest) String() string
- type ReplaceSiteDefault
- func (o *ReplaceSiteDefault) Code() int
- func (o *ReplaceSiteDefault) Error() string
- func (o *ReplaceSiteDefault) GetPayload() *models.Error
- func (o *ReplaceSiteDefault) IsClientError() bool
- func (o *ReplaceSiteDefault) IsCode(code int) bool
- func (o *ReplaceSiteDefault) IsRedirect() bool
- func (o *ReplaceSiteDefault) IsServerError() bool
- func (o *ReplaceSiteDefault) IsSuccess() bool
- func (o *ReplaceSiteDefault) String() string
- type ReplaceSiteNotFound
- func (o *ReplaceSiteNotFound) Code() int
- func (o *ReplaceSiteNotFound) Error() string
- func (o *ReplaceSiteNotFound) GetPayload() *models.Error
- func (o *ReplaceSiteNotFound) IsClientError() bool
- func (o *ReplaceSiteNotFound) IsCode(code int) bool
- func (o *ReplaceSiteNotFound) IsRedirect() bool
- func (o *ReplaceSiteNotFound) IsServerError() bool
- func (o *ReplaceSiteNotFound) IsSuccess() bool
- func (o *ReplaceSiteNotFound) String() string
- type ReplaceSiteOK
- func (o *ReplaceSiteOK) Code() int
- func (o *ReplaceSiteOK) Error() string
- func (o *ReplaceSiteOK) GetPayload() *models.Site
- func (o *ReplaceSiteOK) IsClientError() bool
- func (o *ReplaceSiteOK) IsCode(code int) bool
- func (o *ReplaceSiteOK) IsRedirect() bool
- func (o *ReplaceSiteOK) IsServerError() bool
- func (o *ReplaceSiteOK) IsSuccess() bool
- func (o *ReplaceSiteOK) String() string
- type ReplaceSiteParams
- func (o *ReplaceSiteParams) SetContext(ctx context.Context)
- func (o *ReplaceSiteParams) SetData(data *models.Site)
- func (o *ReplaceSiteParams) SetDefaults()
- func (o *ReplaceSiteParams) SetForceReload(forceReload *bool)
- func (o *ReplaceSiteParams) SetHTTPClient(client *http.Client)
- func (o *ReplaceSiteParams) SetName(name string)
- func (o *ReplaceSiteParams) SetTimeout(timeout time.Duration)
- func (o *ReplaceSiteParams) SetTransactionID(transactionID *string)
- func (o *ReplaceSiteParams) SetVersion(version *int64)
- func (o *ReplaceSiteParams) WithContext(ctx context.Context) *ReplaceSiteParams
- func (o *ReplaceSiteParams) WithData(data *models.Site) *ReplaceSiteParams
- func (o *ReplaceSiteParams) WithDefaults() *ReplaceSiteParams
- func (o *ReplaceSiteParams) WithForceReload(forceReload *bool) *ReplaceSiteParams
- func (o *ReplaceSiteParams) WithHTTPClient(client *http.Client) *ReplaceSiteParams
- func (o *ReplaceSiteParams) WithName(name string) *ReplaceSiteParams
- func (o *ReplaceSiteParams) WithTimeout(timeout time.Duration) *ReplaceSiteParams
- func (o *ReplaceSiteParams) WithTransactionID(transactionID *string) *ReplaceSiteParams
- func (o *ReplaceSiteParams) WithVersion(version *int64) *ReplaceSiteParams
- func (o *ReplaceSiteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ReplaceSiteReader
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 sites API
func (*Client) CreateSite ¶
func (a *Client) CreateSite(params *CreateSiteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateSiteCreated, *CreateSiteAccepted, error)
CreateSite adds a site
Adds a new site to the configuration file.
func (*Client) DeleteSite ¶
func (a *Client) DeleteSite(params *DeleteSiteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSiteAccepted, *DeleteSiteNoContent, error)
DeleteSite deletes a site
Deletes a site from the configuration by it's name.
func (*Client) GetSite ¶
func (a *Client) GetSite(params *GetSiteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSiteOK, error)
GetSite returns a site
Returns one site configuration by it's name.
func (*Client) GetSites ¶
func (a *Client) GetSites(params *GetSitesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSitesOK, error)
GetSites returns an array of sites
Returns an array of all configured sites.
func (*Client) ReplaceSite ¶
func (a *Client) ReplaceSite(params *ReplaceSiteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ReplaceSiteOK, *ReplaceSiteAccepted, error)
ReplaceSite replaces a site
Replaces a site configuration by it's 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 { CreateSite(params *CreateSiteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateSiteCreated, *CreateSiteAccepted, error) DeleteSite(params *DeleteSiteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSiteAccepted, *DeleteSiteNoContent, error) GetSite(params *GetSiteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSiteOK, error) GetSites(params *GetSitesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSitesOK, error) ReplaceSite(params *ReplaceSiteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ReplaceSiteOK, *ReplaceSiteAccepted, 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 sites API client.
type CreateSiteAccepted ¶
type CreateSiteAccepted struct { /* ID of the requested reload */ ReloadID string Payload *models.Site }
CreateSiteAccepted describes a response with status code 202, with default header values.
Configuration change accepted and reload requested
func NewCreateSiteAccepted ¶
func NewCreateSiteAccepted() *CreateSiteAccepted
NewCreateSiteAccepted creates a CreateSiteAccepted with default headers values
func (*CreateSiteAccepted) Code ¶ added in v1.1.5
func (o *CreateSiteAccepted) Code() int
Code gets the status code for the create site accepted response
func (*CreateSiteAccepted) Error ¶
func (o *CreateSiteAccepted) Error() string
func (*CreateSiteAccepted) GetPayload ¶
func (o *CreateSiteAccepted) GetPayload() *models.Site
func (*CreateSiteAccepted) IsClientError ¶ added in v1.1.0
func (o *CreateSiteAccepted) IsClientError() bool
IsClientError returns true when this create site accepted response has a 4xx status code
func (*CreateSiteAccepted) IsCode ¶ added in v1.1.0
func (o *CreateSiteAccepted) IsCode(code int) bool
IsCode returns true when this create site accepted response a status code equal to that given
func (*CreateSiteAccepted) IsRedirect ¶ added in v1.1.0
func (o *CreateSiteAccepted) IsRedirect() bool
IsRedirect returns true when this create site accepted response has a 3xx status code
func (*CreateSiteAccepted) IsServerError ¶ added in v1.1.0
func (o *CreateSiteAccepted) IsServerError() bool
IsServerError returns true when this create site accepted response has a 5xx status code
func (*CreateSiteAccepted) IsSuccess ¶ added in v1.1.0
func (o *CreateSiteAccepted) IsSuccess() bool
IsSuccess returns true when this create site accepted response has a 2xx status code
func (*CreateSiteAccepted) String ¶ added in v1.1.0
func (o *CreateSiteAccepted) String() string
type CreateSiteBadRequest ¶
type CreateSiteBadRequest struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error }
CreateSiteBadRequest describes a response with status code 400, with default header values.
Bad request
func NewCreateSiteBadRequest ¶
func NewCreateSiteBadRequest() *CreateSiteBadRequest
NewCreateSiteBadRequest creates a CreateSiteBadRequest with default headers values
func (*CreateSiteBadRequest) Code ¶ added in v1.1.5
func (o *CreateSiteBadRequest) Code() int
Code gets the status code for the create site bad request response
func (*CreateSiteBadRequest) Error ¶
func (o *CreateSiteBadRequest) Error() string
func (*CreateSiteBadRequest) GetPayload ¶
func (o *CreateSiteBadRequest) GetPayload() *models.Error
func (*CreateSiteBadRequest) IsClientError ¶ added in v1.1.0
func (o *CreateSiteBadRequest) IsClientError() bool
IsClientError returns true when this create site bad request response has a 4xx status code
func (*CreateSiteBadRequest) IsCode ¶ added in v1.1.0
func (o *CreateSiteBadRequest) IsCode(code int) bool
IsCode returns true when this create site bad request response a status code equal to that given
func (*CreateSiteBadRequest) IsRedirect ¶ added in v1.1.0
func (o *CreateSiteBadRequest) IsRedirect() bool
IsRedirect returns true when this create site bad request response has a 3xx status code
func (*CreateSiteBadRequest) IsServerError ¶ added in v1.1.0
func (o *CreateSiteBadRequest) IsServerError() bool
IsServerError returns true when this create site bad request response has a 5xx status code
func (*CreateSiteBadRequest) IsSuccess ¶ added in v1.1.0
func (o *CreateSiteBadRequest) IsSuccess() bool
IsSuccess returns true when this create site bad request response has a 2xx status code
func (*CreateSiteBadRequest) String ¶ added in v1.1.0
func (o *CreateSiteBadRequest) String() string
type CreateSiteConflict ¶
type CreateSiteConflict struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error }
CreateSiteConflict describes a response with status code 409, with default header values.
The specified resource already exists
func NewCreateSiteConflict ¶
func NewCreateSiteConflict() *CreateSiteConflict
NewCreateSiteConflict creates a CreateSiteConflict with default headers values
func (*CreateSiteConflict) Code ¶ added in v1.1.5
func (o *CreateSiteConflict) Code() int
Code gets the status code for the create site conflict response
func (*CreateSiteConflict) Error ¶
func (o *CreateSiteConflict) Error() string
func (*CreateSiteConflict) GetPayload ¶
func (o *CreateSiteConflict) GetPayload() *models.Error
func (*CreateSiteConflict) IsClientError ¶ added in v1.1.0
func (o *CreateSiteConflict) IsClientError() bool
IsClientError returns true when this create site conflict response has a 4xx status code
func (*CreateSiteConflict) IsCode ¶ added in v1.1.0
func (o *CreateSiteConflict) IsCode(code int) bool
IsCode returns true when this create site conflict response a status code equal to that given
func (*CreateSiteConflict) IsRedirect ¶ added in v1.1.0
func (o *CreateSiteConflict) IsRedirect() bool
IsRedirect returns true when this create site conflict response has a 3xx status code
func (*CreateSiteConflict) IsServerError ¶ added in v1.1.0
func (o *CreateSiteConflict) IsServerError() bool
IsServerError returns true when this create site conflict response has a 5xx status code
func (*CreateSiteConflict) IsSuccess ¶ added in v1.1.0
func (o *CreateSiteConflict) IsSuccess() bool
IsSuccess returns true when this create site conflict response has a 2xx status code
func (*CreateSiteConflict) String ¶ added in v1.1.0
func (o *CreateSiteConflict) String() string
type CreateSiteCreated ¶
CreateSiteCreated describes a response with status code 201, with default header values.
Site created
func NewCreateSiteCreated ¶
func NewCreateSiteCreated() *CreateSiteCreated
NewCreateSiteCreated creates a CreateSiteCreated with default headers values
func (*CreateSiteCreated) Code ¶ added in v1.1.5
func (o *CreateSiteCreated) Code() int
Code gets the status code for the create site created response
func (*CreateSiteCreated) Error ¶
func (o *CreateSiteCreated) Error() string
func (*CreateSiteCreated) GetPayload ¶
func (o *CreateSiteCreated) GetPayload() *models.Site
func (*CreateSiteCreated) IsClientError ¶ added in v1.1.0
func (o *CreateSiteCreated) IsClientError() bool
IsClientError returns true when this create site created response has a 4xx status code
func (*CreateSiteCreated) IsCode ¶ added in v1.1.0
func (o *CreateSiteCreated) IsCode(code int) bool
IsCode returns true when this create site created response a status code equal to that given
func (*CreateSiteCreated) IsRedirect ¶ added in v1.1.0
func (o *CreateSiteCreated) IsRedirect() bool
IsRedirect returns true when this create site created response has a 3xx status code
func (*CreateSiteCreated) IsServerError ¶ added in v1.1.0
func (o *CreateSiteCreated) IsServerError() bool
IsServerError returns true when this create site created response has a 5xx status code
func (*CreateSiteCreated) IsSuccess ¶ added in v1.1.0
func (o *CreateSiteCreated) IsSuccess() bool
IsSuccess returns true when this create site created response has a 2xx status code
func (*CreateSiteCreated) String ¶ added in v1.1.0
func (o *CreateSiteCreated) String() string
type CreateSiteDefault ¶
type CreateSiteDefault struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error // contains filtered or unexported fields }
CreateSiteDefault describes a response with status code -1, with default header values.
General Error
func NewCreateSiteDefault ¶
func NewCreateSiteDefault(code int) *CreateSiteDefault
NewCreateSiteDefault creates a CreateSiteDefault with default headers values
func (*CreateSiteDefault) Code ¶
func (o *CreateSiteDefault) Code() int
Code gets the status code for the create site default response
func (*CreateSiteDefault) Error ¶
func (o *CreateSiteDefault) Error() string
func (*CreateSiteDefault) GetPayload ¶
func (o *CreateSiteDefault) GetPayload() *models.Error
func (*CreateSiteDefault) IsClientError ¶ added in v1.1.0
func (o *CreateSiteDefault) IsClientError() bool
IsClientError returns true when this create site default response has a 4xx status code
func (*CreateSiteDefault) IsCode ¶ added in v1.1.0
func (o *CreateSiteDefault) IsCode(code int) bool
IsCode returns true when this create site default response a status code equal to that given
func (*CreateSiteDefault) IsRedirect ¶ added in v1.1.0
func (o *CreateSiteDefault) IsRedirect() bool
IsRedirect returns true when this create site default response has a 3xx status code
func (*CreateSiteDefault) IsServerError ¶ added in v1.1.0
func (o *CreateSiteDefault) IsServerError() bool
IsServerError returns true when this create site default response has a 5xx status code
func (*CreateSiteDefault) IsSuccess ¶ added in v1.1.0
func (o *CreateSiteDefault) IsSuccess() bool
IsSuccess returns true when this create site default response has a 2xx status code
func (*CreateSiteDefault) String ¶ added in v1.1.0
func (o *CreateSiteDefault) String() string
type CreateSiteParams ¶
type CreateSiteParams struct { // Data. Data *models.Site /* 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 }
CreateSiteParams contains all the parameters to send to the API endpoint
for the create site operation. Typically these are written to a http.Request.
func NewCreateSiteParams ¶
func NewCreateSiteParams() *CreateSiteParams
NewCreateSiteParams creates a new CreateSiteParams 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 NewCreateSiteParamsWithContext ¶
func NewCreateSiteParamsWithContext(ctx context.Context) *CreateSiteParams
NewCreateSiteParamsWithContext creates a new CreateSiteParams object with the ability to set a context for a request.
func NewCreateSiteParamsWithHTTPClient ¶
func NewCreateSiteParamsWithHTTPClient(client *http.Client) *CreateSiteParams
NewCreateSiteParamsWithHTTPClient creates a new CreateSiteParams object with the ability to set a custom HTTPClient for a request.
func NewCreateSiteParamsWithTimeout ¶
func NewCreateSiteParamsWithTimeout(timeout time.Duration) *CreateSiteParams
NewCreateSiteParamsWithTimeout creates a new CreateSiteParams object with the ability to set a timeout on a request.
func (*CreateSiteParams) SetContext ¶
func (o *CreateSiteParams) SetContext(ctx context.Context)
SetContext adds the context to the create site params
func (*CreateSiteParams) SetData ¶
func (o *CreateSiteParams) SetData(data *models.Site)
SetData adds the data to the create site params
func (*CreateSiteParams) SetDefaults ¶
func (o *CreateSiteParams) SetDefaults()
SetDefaults hydrates default values in the create site params (not the query body).
All values with no default are reset to their zero value.
func (*CreateSiteParams) SetForceReload ¶
func (o *CreateSiteParams) SetForceReload(forceReload *bool)
SetForceReload adds the forceReload to the create site params
func (*CreateSiteParams) SetHTTPClient ¶
func (o *CreateSiteParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create site params
func (*CreateSiteParams) SetTimeout ¶
func (o *CreateSiteParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create site params
func (*CreateSiteParams) SetTransactionID ¶
func (o *CreateSiteParams) SetTransactionID(transactionID *string)
SetTransactionID adds the transactionId to the create site params
func (*CreateSiteParams) SetVersion ¶
func (o *CreateSiteParams) SetVersion(version *int64)
SetVersion adds the version to the create site params
func (*CreateSiteParams) WithContext ¶
func (o *CreateSiteParams) WithContext(ctx context.Context) *CreateSiteParams
WithContext adds the context to the create site params
func (*CreateSiteParams) WithData ¶
func (o *CreateSiteParams) WithData(data *models.Site) *CreateSiteParams
WithData adds the data to the create site params
func (*CreateSiteParams) WithDefaults ¶
func (o *CreateSiteParams) WithDefaults() *CreateSiteParams
WithDefaults hydrates default values in the create site params (not the query body).
All values with no default are reset to their zero value.
func (*CreateSiteParams) WithForceReload ¶
func (o *CreateSiteParams) WithForceReload(forceReload *bool) *CreateSiteParams
WithForceReload adds the forceReload to the create site params
func (*CreateSiteParams) WithHTTPClient ¶
func (o *CreateSiteParams) WithHTTPClient(client *http.Client) *CreateSiteParams
WithHTTPClient adds the HTTPClient to the create site params
func (*CreateSiteParams) WithTimeout ¶
func (o *CreateSiteParams) WithTimeout(timeout time.Duration) *CreateSiteParams
WithTimeout adds the timeout to the create site params
func (*CreateSiteParams) WithTransactionID ¶
func (o *CreateSiteParams) WithTransactionID(transactionID *string) *CreateSiteParams
WithTransactionID adds the transactionID to the create site params
func (*CreateSiteParams) WithVersion ¶
func (o *CreateSiteParams) WithVersion(version *int64) *CreateSiteParams
WithVersion adds the version to the create site params
func (*CreateSiteParams) WriteToRequest ¶
func (o *CreateSiteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateSiteReader ¶
type CreateSiteReader struct {
// contains filtered or unexported fields
}
CreateSiteReader is a Reader for the CreateSite structure.
func (*CreateSiteReader) ReadResponse ¶
func (o *CreateSiteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteSiteAccepted ¶
type DeleteSiteAccepted struct { /* ID of the requested reload */ ReloadID string }
DeleteSiteAccepted describes a response with status code 202, with default header values.
Configuration change accepted and reload requested
func NewDeleteSiteAccepted ¶
func NewDeleteSiteAccepted() *DeleteSiteAccepted
NewDeleteSiteAccepted creates a DeleteSiteAccepted with default headers values
func (*DeleteSiteAccepted) Code ¶ added in v1.1.5
func (o *DeleteSiteAccepted) Code() int
Code gets the status code for the delete site accepted response
func (*DeleteSiteAccepted) Error ¶
func (o *DeleteSiteAccepted) Error() string
func (*DeleteSiteAccepted) IsClientError ¶ added in v1.1.0
func (o *DeleteSiteAccepted) IsClientError() bool
IsClientError returns true when this delete site accepted response has a 4xx status code
func (*DeleteSiteAccepted) IsCode ¶ added in v1.1.0
func (o *DeleteSiteAccepted) IsCode(code int) bool
IsCode returns true when this delete site accepted response a status code equal to that given
func (*DeleteSiteAccepted) IsRedirect ¶ added in v1.1.0
func (o *DeleteSiteAccepted) IsRedirect() bool
IsRedirect returns true when this delete site accepted response has a 3xx status code
func (*DeleteSiteAccepted) IsServerError ¶ added in v1.1.0
func (o *DeleteSiteAccepted) IsServerError() bool
IsServerError returns true when this delete site accepted response has a 5xx status code
func (*DeleteSiteAccepted) IsSuccess ¶ added in v1.1.0
func (o *DeleteSiteAccepted) IsSuccess() bool
IsSuccess returns true when this delete site accepted response has a 2xx status code
func (*DeleteSiteAccepted) String ¶ added in v1.1.0
func (o *DeleteSiteAccepted) String() string
type DeleteSiteDefault ¶
type DeleteSiteDefault struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error // contains filtered or unexported fields }
DeleteSiteDefault describes a response with status code -1, with default header values.
General Error
func NewDeleteSiteDefault ¶
func NewDeleteSiteDefault(code int) *DeleteSiteDefault
NewDeleteSiteDefault creates a DeleteSiteDefault with default headers values
func (*DeleteSiteDefault) Code ¶
func (o *DeleteSiteDefault) Code() int
Code gets the status code for the delete site default response
func (*DeleteSiteDefault) Error ¶
func (o *DeleteSiteDefault) Error() string
func (*DeleteSiteDefault) GetPayload ¶
func (o *DeleteSiteDefault) GetPayload() *models.Error
func (*DeleteSiteDefault) IsClientError ¶ added in v1.1.0
func (o *DeleteSiteDefault) IsClientError() bool
IsClientError returns true when this delete site default response has a 4xx status code
func (*DeleteSiteDefault) IsCode ¶ added in v1.1.0
func (o *DeleteSiteDefault) IsCode(code int) bool
IsCode returns true when this delete site default response a status code equal to that given
func (*DeleteSiteDefault) IsRedirect ¶ added in v1.1.0
func (o *DeleteSiteDefault) IsRedirect() bool
IsRedirect returns true when this delete site default response has a 3xx status code
func (*DeleteSiteDefault) IsServerError ¶ added in v1.1.0
func (o *DeleteSiteDefault) IsServerError() bool
IsServerError returns true when this delete site default response has a 5xx status code
func (*DeleteSiteDefault) IsSuccess ¶ added in v1.1.0
func (o *DeleteSiteDefault) IsSuccess() bool
IsSuccess returns true when this delete site default response has a 2xx status code
func (*DeleteSiteDefault) String ¶ added in v1.1.0
func (o *DeleteSiteDefault) String() string
type DeleteSiteNoContent ¶
type DeleteSiteNoContent struct { }
DeleteSiteNoContent describes a response with status code 204, with default header values.
Site deleted
func NewDeleteSiteNoContent ¶
func NewDeleteSiteNoContent() *DeleteSiteNoContent
NewDeleteSiteNoContent creates a DeleteSiteNoContent with default headers values
func (*DeleteSiteNoContent) Code ¶ added in v1.1.5
func (o *DeleteSiteNoContent) Code() int
Code gets the status code for the delete site no content response
func (*DeleteSiteNoContent) Error ¶
func (o *DeleteSiteNoContent) Error() string
func (*DeleteSiteNoContent) IsClientError ¶ added in v1.1.0
func (o *DeleteSiteNoContent) IsClientError() bool
IsClientError returns true when this delete site no content response has a 4xx status code
func (*DeleteSiteNoContent) IsCode ¶ added in v1.1.0
func (o *DeleteSiteNoContent) IsCode(code int) bool
IsCode returns true when this delete site no content response a status code equal to that given
func (*DeleteSiteNoContent) IsRedirect ¶ added in v1.1.0
func (o *DeleteSiteNoContent) IsRedirect() bool
IsRedirect returns true when this delete site no content response has a 3xx status code
func (*DeleteSiteNoContent) IsServerError ¶ added in v1.1.0
func (o *DeleteSiteNoContent) IsServerError() bool
IsServerError returns true when this delete site no content response has a 5xx status code
func (*DeleteSiteNoContent) IsSuccess ¶ added in v1.1.0
func (o *DeleteSiteNoContent) IsSuccess() bool
IsSuccess returns true when this delete site no content response has a 2xx status code
func (*DeleteSiteNoContent) String ¶ added in v1.1.0
func (o *DeleteSiteNoContent) String() string
type DeleteSiteNotFound ¶
type DeleteSiteNotFound struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error }
DeleteSiteNotFound describes a response with status code 404, with default header values.
The specified resource was not found
func NewDeleteSiteNotFound ¶
func NewDeleteSiteNotFound() *DeleteSiteNotFound
NewDeleteSiteNotFound creates a DeleteSiteNotFound with default headers values
func (*DeleteSiteNotFound) Code ¶ added in v1.1.5
func (o *DeleteSiteNotFound) Code() int
Code gets the status code for the delete site not found response
func (*DeleteSiteNotFound) Error ¶
func (o *DeleteSiteNotFound) Error() string
func (*DeleteSiteNotFound) GetPayload ¶
func (o *DeleteSiteNotFound) GetPayload() *models.Error
func (*DeleteSiteNotFound) IsClientError ¶ added in v1.1.0
func (o *DeleteSiteNotFound) IsClientError() bool
IsClientError returns true when this delete site not found response has a 4xx status code
func (*DeleteSiteNotFound) IsCode ¶ added in v1.1.0
func (o *DeleteSiteNotFound) IsCode(code int) bool
IsCode returns true when this delete site not found response a status code equal to that given
func (*DeleteSiteNotFound) IsRedirect ¶ added in v1.1.0
func (o *DeleteSiteNotFound) IsRedirect() bool
IsRedirect returns true when this delete site not found response has a 3xx status code
func (*DeleteSiteNotFound) IsServerError ¶ added in v1.1.0
func (o *DeleteSiteNotFound) IsServerError() bool
IsServerError returns true when this delete site not found response has a 5xx status code
func (*DeleteSiteNotFound) IsSuccess ¶ added in v1.1.0
func (o *DeleteSiteNotFound) IsSuccess() bool
IsSuccess returns true when this delete site not found response has a 2xx status code
func (*DeleteSiteNotFound) String ¶ added in v1.1.0
func (o *DeleteSiteNotFound) String() string
type DeleteSiteParams ¶
type DeleteSiteParams 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. Site frontend 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 }
DeleteSiteParams contains all the parameters to send to the API endpoint
for the delete site operation. Typically these are written to a http.Request.
func NewDeleteSiteParams ¶
func NewDeleteSiteParams() *DeleteSiteParams
NewDeleteSiteParams creates a new DeleteSiteParams 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 NewDeleteSiteParamsWithContext ¶
func NewDeleteSiteParamsWithContext(ctx context.Context) *DeleteSiteParams
NewDeleteSiteParamsWithContext creates a new DeleteSiteParams object with the ability to set a context for a request.
func NewDeleteSiteParamsWithHTTPClient ¶
func NewDeleteSiteParamsWithHTTPClient(client *http.Client) *DeleteSiteParams
NewDeleteSiteParamsWithHTTPClient creates a new DeleteSiteParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteSiteParamsWithTimeout ¶
func NewDeleteSiteParamsWithTimeout(timeout time.Duration) *DeleteSiteParams
NewDeleteSiteParamsWithTimeout creates a new DeleteSiteParams object with the ability to set a timeout on a request.
func (*DeleteSiteParams) SetContext ¶
func (o *DeleteSiteParams) SetContext(ctx context.Context)
SetContext adds the context to the delete site params
func (*DeleteSiteParams) SetDefaults ¶
func (o *DeleteSiteParams) SetDefaults()
SetDefaults hydrates default values in the delete site params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteSiteParams) SetForceReload ¶
func (o *DeleteSiteParams) SetForceReload(forceReload *bool)
SetForceReload adds the forceReload to the delete site params
func (*DeleteSiteParams) SetHTTPClient ¶
func (o *DeleteSiteParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete site params
func (*DeleteSiteParams) SetName ¶
func (o *DeleteSiteParams) SetName(name string)
SetName adds the name to the delete site params
func (*DeleteSiteParams) SetTimeout ¶
func (o *DeleteSiteParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete site params
func (*DeleteSiteParams) SetTransactionID ¶
func (o *DeleteSiteParams) SetTransactionID(transactionID *string)
SetTransactionID adds the transactionId to the delete site params
func (*DeleteSiteParams) SetVersion ¶
func (o *DeleteSiteParams) SetVersion(version *int64)
SetVersion adds the version to the delete site params
func (*DeleteSiteParams) WithContext ¶
func (o *DeleteSiteParams) WithContext(ctx context.Context) *DeleteSiteParams
WithContext adds the context to the delete site params
func (*DeleteSiteParams) WithDefaults ¶
func (o *DeleteSiteParams) WithDefaults() *DeleteSiteParams
WithDefaults hydrates default values in the delete site params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteSiteParams) WithForceReload ¶
func (o *DeleteSiteParams) WithForceReload(forceReload *bool) *DeleteSiteParams
WithForceReload adds the forceReload to the delete site params
func (*DeleteSiteParams) WithHTTPClient ¶
func (o *DeleteSiteParams) WithHTTPClient(client *http.Client) *DeleteSiteParams
WithHTTPClient adds the HTTPClient to the delete site params
func (*DeleteSiteParams) WithName ¶
func (o *DeleteSiteParams) WithName(name string) *DeleteSiteParams
WithName adds the name to the delete site params
func (*DeleteSiteParams) WithTimeout ¶
func (o *DeleteSiteParams) WithTimeout(timeout time.Duration) *DeleteSiteParams
WithTimeout adds the timeout to the delete site params
func (*DeleteSiteParams) WithTransactionID ¶
func (o *DeleteSiteParams) WithTransactionID(transactionID *string) *DeleteSiteParams
WithTransactionID adds the transactionID to the delete site params
func (*DeleteSiteParams) WithVersion ¶
func (o *DeleteSiteParams) WithVersion(version *int64) *DeleteSiteParams
WithVersion adds the version to the delete site params
func (*DeleteSiteParams) WriteToRequest ¶
func (o *DeleteSiteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteSiteReader ¶
type DeleteSiteReader struct {
// contains filtered or unexported fields
}
DeleteSiteReader is a Reader for the DeleteSite structure.
func (*DeleteSiteReader) ReadResponse ¶
func (o *DeleteSiteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetSiteDefault ¶
type GetSiteDefault struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error // contains filtered or unexported fields }
GetSiteDefault describes a response with status code -1, with default header values.
General Error
func NewGetSiteDefault ¶
func NewGetSiteDefault(code int) *GetSiteDefault
NewGetSiteDefault creates a GetSiteDefault with default headers values
func (*GetSiteDefault) Code ¶
func (o *GetSiteDefault) Code() int
Code gets the status code for the get site default response
func (*GetSiteDefault) Error ¶
func (o *GetSiteDefault) Error() string
func (*GetSiteDefault) GetPayload ¶
func (o *GetSiteDefault) GetPayload() *models.Error
func (*GetSiteDefault) IsClientError ¶ added in v1.1.0
func (o *GetSiteDefault) IsClientError() bool
IsClientError returns true when this get site default response has a 4xx status code
func (*GetSiteDefault) IsCode ¶ added in v1.1.0
func (o *GetSiteDefault) IsCode(code int) bool
IsCode returns true when this get site default response a status code equal to that given
func (*GetSiteDefault) IsRedirect ¶ added in v1.1.0
func (o *GetSiteDefault) IsRedirect() bool
IsRedirect returns true when this get site default response has a 3xx status code
func (*GetSiteDefault) IsServerError ¶ added in v1.1.0
func (o *GetSiteDefault) IsServerError() bool
IsServerError returns true when this get site default response has a 5xx status code
func (*GetSiteDefault) IsSuccess ¶ added in v1.1.0
func (o *GetSiteDefault) IsSuccess() bool
IsSuccess returns true when this get site default response has a 2xx status code
func (*GetSiteDefault) String ¶ added in v1.1.0
func (o *GetSiteDefault) String() string
type GetSiteNotFound ¶
type GetSiteNotFound struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error }
GetSiteNotFound describes a response with status code 404, with default header values.
The specified resource was not found
func NewGetSiteNotFound ¶
func NewGetSiteNotFound() *GetSiteNotFound
NewGetSiteNotFound creates a GetSiteNotFound with default headers values
func (*GetSiteNotFound) Code ¶ added in v1.1.5
func (o *GetSiteNotFound) Code() int
Code gets the status code for the get site not found response
func (*GetSiteNotFound) Error ¶
func (o *GetSiteNotFound) Error() string
func (*GetSiteNotFound) GetPayload ¶
func (o *GetSiteNotFound) GetPayload() *models.Error
func (*GetSiteNotFound) IsClientError ¶ added in v1.1.0
func (o *GetSiteNotFound) IsClientError() bool
IsClientError returns true when this get site not found response has a 4xx status code
func (*GetSiteNotFound) IsCode ¶ added in v1.1.0
func (o *GetSiteNotFound) IsCode(code int) bool
IsCode returns true when this get site not found response a status code equal to that given
func (*GetSiteNotFound) IsRedirect ¶ added in v1.1.0
func (o *GetSiteNotFound) IsRedirect() bool
IsRedirect returns true when this get site not found response has a 3xx status code
func (*GetSiteNotFound) IsServerError ¶ added in v1.1.0
func (o *GetSiteNotFound) IsServerError() bool
IsServerError returns true when this get site not found response has a 5xx status code
func (*GetSiteNotFound) IsSuccess ¶ added in v1.1.0
func (o *GetSiteNotFound) IsSuccess() bool
IsSuccess returns true when this get site not found response has a 2xx status code
func (*GetSiteNotFound) String ¶ added in v1.1.0
func (o *GetSiteNotFound) String() string
type GetSiteOK ¶
type GetSiteOK struct { /* Configuration file version */ ConfigurationVersion string Payload *GetSiteOKBody }
GetSiteOK describes a response with status code 200, with default header values.
Successful operation
func NewGetSiteOK ¶
func NewGetSiteOK() *GetSiteOK
NewGetSiteOK creates a GetSiteOK with default headers values
func (*GetSiteOK) GetPayload ¶
func (o *GetSiteOK) GetPayload() *GetSiteOKBody
func (*GetSiteOK) IsClientError ¶ added in v1.1.0
IsClientError returns true when this get site o k response has a 4xx status code
func (*GetSiteOK) IsCode ¶ added in v1.1.0
IsCode returns true when this get site o k response a status code equal to that given
func (*GetSiteOK) IsRedirect ¶ added in v1.1.0
IsRedirect returns true when this get site o k response has a 3xx status code
func (*GetSiteOK) IsServerError ¶ added in v1.1.0
IsServerError returns true when this get site o k response has a 5xx status code
type GetSiteOKBody ¶
type GetSiteOKBody struct { // version Version int64 `json:"_version,omitempty"` // data Data *models.Site `json:"data,omitempty"` }
GetSiteOKBody get site o k body swagger:model GetSiteOKBody
func (*GetSiteOKBody) ContextValidate ¶
ContextValidate validate this get site o k body based on the context it is used
func (*GetSiteOKBody) MarshalBinary ¶
func (o *GetSiteOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetSiteOKBody) UnmarshalBinary ¶
func (o *GetSiteOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetSiteParams ¶
type GetSiteParams struct { /* Name. Site frontend 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 }
GetSiteParams contains all the parameters to send to the API endpoint
for the get site operation. Typically these are written to a http.Request.
func NewGetSiteParams ¶
func NewGetSiteParams() *GetSiteParams
NewGetSiteParams creates a new GetSiteParams 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 NewGetSiteParamsWithContext ¶
func NewGetSiteParamsWithContext(ctx context.Context) *GetSiteParams
NewGetSiteParamsWithContext creates a new GetSiteParams object with the ability to set a context for a request.
func NewGetSiteParamsWithHTTPClient ¶
func NewGetSiteParamsWithHTTPClient(client *http.Client) *GetSiteParams
NewGetSiteParamsWithHTTPClient creates a new GetSiteParams object with the ability to set a custom HTTPClient for a request.
func NewGetSiteParamsWithTimeout ¶
func NewGetSiteParamsWithTimeout(timeout time.Duration) *GetSiteParams
NewGetSiteParamsWithTimeout creates a new GetSiteParams object with the ability to set a timeout on a request.
func (*GetSiteParams) SetContext ¶
func (o *GetSiteParams) SetContext(ctx context.Context)
SetContext adds the context to the get site params
func (*GetSiteParams) SetDefaults ¶
func (o *GetSiteParams) SetDefaults()
SetDefaults hydrates default values in the get site params (not the query body).
All values with no default are reset to their zero value.
func (*GetSiteParams) SetHTTPClient ¶
func (o *GetSiteParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get site params
func (*GetSiteParams) SetName ¶
func (o *GetSiteParams) SetName(name string)
SetName adds the name to the get site params
func (*GetSiteParams) SetTimeout ¶
func (o *GetSiteParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get site params
func (*GetSiteParams) SetTransactionID ¶
func (o *GetSiteParams) SetTransactionID(transactionID *string)
SetTransactionID adds the transactionId to the get site params
func (*GetSiteParams) WithContext ¶
func (o *GetSiteParams) WithContext(ctx context.Context) *GetSiteParams
WithContext adds the context to the get site params
func (*GetSiteParams) WithDefaults ¶
func (o *GetSiteParams) WithDefaults() *GetSiteParams
WithDefaults hydrates default values in the get site params (not the query body).
All values with no default are reset to their zero value.
func (*GetSiteParams) WithHTTPClient ¶
func (o *GetSiteParams) WithHTTPClient(client *http.Client) *GetSiteParams
WithHTTPClient adds the HTTPClient to the get site params
func (*GetSiteParams) WithName ¶
func (o *GetSiteParams) WithName(name string) *GetSiteParams
WithName adds the name to the get site params
func (*GetSiteParams) WithTimeout ¶
func (o *GetSiteParams) WithTimeout(timeout time.Duration) *GetSiteParams
WithTimeout adds the timeout to the get site params
func (*GetSiteParams) WithTransactionID ¶
func (o *GetSiteParams) WithTransactionID(transactionID *string) *GetSiteParams
WithTransactionID adds the transactionID to the get site params
func (*GetSiteParams) WriteToRequest ¶
func (o *GetSiteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetSiteReader ¶
type GetSiteReader struct {
// contains filtered or unexported fields
}
GetSiteReader is a Reader for the GetSite structure.
func (*GetSiteReader) ReadResponse ¶
func (o *GetSiteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetSitesDefault ¶
type GetSitesDefault struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error // contains filtered or unexported fields }
GetSitesDefault describes a response with status code -1, with default header values.
General Error
func NewGetSitesDefault ¶
func NewGetSitesDefault(code int) *GetSitesDefault
NewGetSitesDefault creates a GetSitesDefault with default headers values
func (*GetSitesDefault) Code ¶
func (o *GetSitesDefault) Code() int
Code gets the status code for the get sites default response
func (*GetSitesDefault) Error ¶
func (o *GetSitesDefault) Error() string
func (*GetSitesDefault) GetPayload ¶
func (o *GetSitesDefault) GetPayload() *models.Error
func (*GetSitesDefault) IsClientError ¶ added in v1.1.0
func (o *GetSitesDefault) IsClientError() bool
IsClientError returns true when this get sites default response has a 4xx status code
func (*GetSitesDefault) IsCode ¶ added in v1.1.0
func (o *GetSitesDefault) IsCode(code int) bool
IsCode returns true when this get sites default response a status code equal to that given
func (*GetSitesDefault) IsRedirect ¶ added in v1.1.0
func (o *GetSitesDefault) IsRedirect() bool
IsRedirect returns true when this get sites default response has a 3xx status code
func (*GetSitesDefault) IsServerError ¶ added in v1.1.0
func (o *GetSitesDefault) IsServerError() bool
IsServerError returns true when this get sites default response has a 5xx status code
func (*GetSitesDefault) IsSuccess ¶ added in v1.1.0
func (o *GetSitesDefault) IsSuccess() bool
IsSuccess returns true when this get sites default response has a 2xx status code
func (*GetSitesDefault) String ¶ added in v1.1.0
func (o *GetSitesDefault) String() string
type GetSitesOK ¶
type GetSitesOK struct { /* Configuration file version */ ConfigurationVersion string Payload *GetSitesOKBody }
GetSitesOK describes a response with status code 200, with default header values.
Successful operation
func NewGetSitesOK ¶
func NewGetSitesOK() *GetSitesOK
NewGetSitesOK creates a GetSitesOK with default headers values
func (*GetSitesOK) Code ¶ added in v1.1.5
func (o *GetSitesOK) Code() int
Code gets the status code for the get sites o k response
func (*GetSitesOK) Error ¶
func (o *GetSitesOK) Error() string
func (*GetSitesOK) GetPayload ¶
func (o *GetSitesOK) GetPayload() *GetSitesOKBody
func (*GetSitesOK) IsClientError ¶ added in v1.1.0
func (o *GetSitesOK) IsClientError() bool
IsClientError returns true when this get sites o k response has a 4xx status code
func (*GetSitesOK) IsCode ¶ added in v1.1.0
func (o *GetSitesOK) IsCode(code int) bool
IsCode returns true when this get sites o k response a status code equal to that given
func (*GetSitesOK) IsRedirect ¶ added in v1.1.0
func (o *GetSitesOK) IsRedirect() bool
IsRedirect returns true when this get sites o k response has a 3xx status code
func (*GetSitesOK) IsServerError ¶ added in v1.1.0
func (o *GetSitesOK) IsServerError() bool
IsServerError returns true when this get sites o k response has a 5xx status code
func (*GetSitesOK) IsSuccess ¶ added in v1.1.0
func (o *GetSitesOK) IsSuccess() bool
IsSuccess returns true when this get sites o k response has a 2xx status code
func (*GetSitesOK) String ¶ added in v1.1.0
func (o *GetSitesOK) String() string
type GetSitesOKBody ¶
type GetSitesOKBody struct { // version Version int64 `json:"_version,omitempty"` // data // Required: true Data models.Sites `json:"data"` }
GetSitesOKBody get sites o k body swagger:model GetSitesOKBody
func (*GetSitesOKBody) ContextValidate ¶
ContextValidate validate this get sites o k body based on the context it is used
func (*GetSitesOKBody) MarshalBinary ¶
func (o *GetSitesOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetSitesOKBody) UnmarshalBinary ¶
func (o *GetSitesOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetSitesParams ¶
type GetSitesParams 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 }
GetSitesParams contains all the parameters to send to the API endpoint
for the get sites operation. Typically these are written to a http.Request.
func NewGetSitesParams ¶
func NewGetSitesParams() *GetSitesParams
NewGetSitesParams creates a new GetSitesParams 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 NewGetSitesParamsWithContext ¶
func NewGetSitesParamsWithContext(ctx context.Context) *GetSitesParams
NewGetSitesParamsWithContext creates a new GetSitesParams object with the ability to set a context for a request.
func NewGetSitesParamsWithHTTPClient ¶
func NewGetSitesParamsWithHTTPClient(client *http.Client) *GetSitesParams
NewGetSitesParamsWithHTTPClient creates a new GetSitesParams object with the ability to set a custom HTTPClient for a request.
func NewGetSitesParamsWithTimeout ¶
func NewGetSitesParamsWithTimeout(timeout time.Duration) *GetSitesParams
NewGetSitesParamsWithTimeout creates a new GetSitesParams object with the ability to set a timeout on a request.
func (*GetSitesParams) SetContext ¶
func (o *GetSitesParams) SetContext(ctx context.Context)
SetContext adds the context to the get sites params
func (*GetSitesParams) SetDefaults ¶
func (o *GetSitesParams) SetDefaults()
SetDefaults hydrates default values in the get sites params (not the query body).
All values with no default are reset to their zero value.
func (*GetSitesParams) SetHTTPClient ¶
func (o *GetSitesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get sites params
func (*GetSitesParams) SetTimeout ¶
func (o *GetSitesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get sites params
func (*GetSitesParams) SetTransactionID ¶
func (o *GetSitesParams) SetTransactionID(transactionID *string)
SetTransactionID adds the transactionId to the get sites params
func (*GetSitesParams) WithContext ¶
func (o *GetSitesParams) WithContext(ctx context.Context) *GetSitesParams
WithContext adds the context to the get sites params
func (*GetSitesParams) WithDefaults ¶
func (o *GetSitesParams) WithDefaults() *GetSitesParams
WithDefaults hydrates default values in the get sites params (not the query body).
All values with no default are reset to their zero value.
func (*GetSitesParams) WithHTTPClient ¶
func (o *GetSitesParams) WithHTTPClient(client *http.Client) *GetSitesParams
WithHTTPClient adds the HTTPClient to the get sites params
func (*GetSitesParams) WithTimeout ¶
func (o *GetSitesParams) WithTimeout(timeout time.Duration) *GetSitesParams
WithTimeout adds the timeout to the get sites params
func (*GetSitesParams) WithTransactionID ¶
func (o *GetSitesParams) WithTransactionID(transactionID *string) *GetSitesParams
WithTransactionID adds the transactionID to the get sites params
func (*GetSitesParams) WriteToRequest ¶
func (o *GetSitesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetSitesReader ¶
type GetSitesReader struct {
// contains filtered or unexported fields
}
GetSitesReader is a Reader for the GetSites structure.
func (*GetSitesReader) ReadResponse ¶
func (o *GetSitesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ReplaceSiteAccepted ¶
type ReplaceSiteAccepted struct { /* ID of the requested reload */ ReloadID string Payload *models.Site }
ReplaceSiteAccepted describes a response with status code 202, with default header values.
Configuration change accepted and reload requested
func NewReplaceSiteAccepted ¶
func NewReplaceSiteAccepted() *ReplaceSiteAccepted
NewReplaceSiteAccepted creates a ReplaceSiteAccepted with default headers values
func (*ReplaceSiteAccepted) Code ¶ added in v1.1.5
func (o *ReplaceSiteAccepted) Code() int
Code gets the status code for the replace site accepted response
func (*ReplaceSiteAccepted) Error ¶
func (o *ReplaceSiteAccepted) Error() string
func (*ReplaceSiteAccepted) GetPayload ¶
func (o *ReplaceSiteAccepted) GetPayload() *models.Site
func (*ReplaceSiteAccepted) IsClientError ¶ added in v1.1.0
func (o *ReplaceSiteAccepted) IsClientError() bool
IsClientError returns true when this replace site accepted response has a 4xx status code
func (*ReplaceSiteAccepted) IsCode ¶ added in v1.1.0
func (o *ReplaceSiteAccepted) IsCode(code int) bool
IsCode returns true when this replace site accepted response a status code equal to that given
func (*ReplaceSiteAccepted) IsRedirect ¶ added in v1.1.0
func (o *ReplaceSiteAccepted) IsRedirect() bool
IsRedirect returns true when this replace site accepted response has a 3xx status code
func (*ReplaceSiteAccepted) IsServerError ¶ added in v1.1.0
func (o *ReplaceSiteAccepted) IsServerError() bool
IsServerError returns true when this replace site accepted response has a 5xx status code
func (*ReplaceSiteAccepted) IsSuccess ¶ added in v1.1.0
func (o *ReplaceSiteAccepted) IsSuccess() bool
IsSuccess returns true when this replace site accepted response has a 2xx status code
func (*ReplaceSiteAccepted) String ¶ added in v1.1.0
func (o *ReplaceSiteAccepted) String() string
type ReplaceSiteBadRequest ¶
type ReplaceSiteBadRequest struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error }
ReplaceSiteBadRequest describes a response with status code 400, with default header values.
Bad request
func NewReplaceSiteBadRequest ¶
func NewReplaceSiteBadRequest() *ReplaceSiteBadRequest
NewReplaceSiteBadRequest creates a ReplaceSiteBadRequest with default headers values
func (*ReplaceSiteBadRequest) Code ¶ added in v1.1.5
func (o *ReplaceSiteBadRequest) Code() int
Code gets the status code for the replace site bad request response
func (*ReplaceSiteBadRequest) Error ¶
func (o *ReplaceSiteBadRequest) Error() string
func (*ReplaceSiteBadRequest) GetPayload ¶
func (o *ReplaceSiteBadRequest) GetPayload() *models.Error
func (*ReplaceSiteBadRequest) IsClientError ¶ added in v1.1.0
func (o *ReplaceSiteBadRequest) IsClientError() bool
IsClientError returns true when this replace site bad request response has a 4xx status code
func (*ReplaceSiteBadRequest) IsCode ¶ added in v1.1.0
func (o *ReplaceSiteBadRequest) IsCode(code int) bool
IsCode returns true when this replace site bad request response a status code equal to that given
func (*ReplaceSiteBadRequest) IsRedirect ¶ added in v1.1.0
func (o *ReplaceSiteBadRequest) IsRedirect() bool
IsRedirect returns true when this replace site bad request response has a 3xx status code
func (*ReplaceSiteBadRequest) IsServerError ¶ added in v1.1.0
func (o *ReplaceSiteBadRequest) IsServerError() bool
IsServerError returns true when this replace site bad request response has a 5xx status code
func (*ReplaceSiteBadRequest) IsSuccess ¶ added in v1.1.0
func (o *ReplaceSiteBadRequest) IsSuccess() bool
IsSuccess returns true when this replace site bad request response has a 2xx status code
func (*ReplaceSiteBadRequest) String ¶ added in v1.1.0
func (o *ReplaceSiteBadRequest) String() string
type ReplaceSiteDefault ¶
type ReplaceSiteDefault struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error // contains filtered or unexported fields }
ReplaceSiteDefault describes a response with status code -1, with default header values.
General Error
func NewReplaceSiteDefault ¶
func NewReplaceSiteDefault(code int) *ReplaceSiteDefault
NewReplaceSiteDefault creates a ReplaceSiteDefault with default headers values
func (*ReplaceSiteDefault) Code ¶
func (o *ReplaceSiteDefault) Code() int
Code gets the status code for the replace site default response
func (*ReplaceSiteDefault) Error ¶
func (o *ReplaceSiteDefault) Error() string
func (*ReplaceSiteDefault) GetPayload ¶
func (o *ReplaceSiteDefault) GetPayload() *models.Error
func (*ReplaceSiteDefault) IsClientError ¶ added in v1.1.0
func (o *ReplaceSiteDefault) IsClientError() bool
IsClientError returns true when this replace site default response has a 4xx status code
func (*ReplaceSiteDefault) IsCode ¶ added in v1.1.0
func (o *ReplaceSiteDefault) IsCode(code int) bool
IsCode returns true when this replace site default response a status code equal to that given
func (*ReplaceSiteDefault) IsRedirect ¶ added in v1.1.0
func (o *ReplaceSiteDefault) IsRedirect() bool
IsRedirect returns true when this replace site default response has a 3xx status code
func (*ReplaceSiteDefault) IsServerError ¶ added in v1.1.0
func (o *ReplaceSiteDefault) IsServerError() bool
IsServerError returns true when this replace site default response has a 5xx status code
func (*ReplaceSiteDefault) IsSuccess ¶ added in v1.1.0
func (o *ReplaceSiteDefault) IsSuccess() bool
IsSuccess returns true when this replace site default response has a 2xx status code
func (*ReplaceSiteDefault) String ¶ added in v1.1.0
func (o *ReplaceSiteDefault) String() string
type ReplaceSiteNotFound ¶
type ReplaceSiteNotFound struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error }
ReplaceSiteNotFound describes a response with status code 404, with default header values.
The specified resource was not found
func NewReplaceSiteNotFound ¶
func NewReplaceSiteNotFound() *ReplaceSiteNotFound
NewReplaceSiteNotFound creates a ReplaceSiteNotFound with default headers values
func (*ReplaceSiteNotFound) Code ¶ added in v1.1.5
func (o *ReplaceSiteNotFound) Code() int
Code gets the status code for the replace site not found response
func (*ReplaceSiteNotFound) Error ¶
func (o *ReplaceSiteNotFound) Error() string
func (*ReplaceSiteNotFound) GetPayload ¶
func (o *ReplaceSiteNotFound) GetPayload() *models.Error
func (*ReplaceSiteNotFound) IsClientError ¶ added in v1.1.0
func (o *ReplaceSiteNotFound) IsClientError() bool
IsClientError returns true when this replace site not found response has a 4xx status code
func (*ReplaceSiteNotFound) IsCode ¶ added in v1.1.0
func (o *ReplaceSiteNotFound) IsCode(code int) bool
IsCode returns true when this replace site not found response a status code equal to that given
func (*ReplaceSiteNotFound) IsRedirect ¶ added in v1.1.0
func (o *ReplaceSiteNotFound) IsRedirect() bool
IsRedirect returns true when this replace site not found response has a 3xx status code
func (*ReplaceSiteNotFound) IsServerError ¶ added in v1.1.0
func (o *ReplaceSiteNotFound) IsServerError() bool
IsServerError returns true when this replace site not found response has a 5xx status code
func (*ReplaceSiteNotFound) IsSuccess ¶ added in v1.1.0
func (o *ReplaceSiteNotFound) IsSuccess() bool
IsSuccess returns true when this replace site not found response has a 2xx status code
func (*ReplaceSiteNotFound) String ¶ added in v1.1.0
func (o *ReplaceSiteNotFound) String() string
type ReplaceSiteOK ¶
ReplaceSiteOK describes a response with status code 200, with default header values.
Site replaced
func NewReplaceSiteOK ¶
func NewReplaceSiteOK() *ReplaceSiteOK
NewReplaceSiteOK creates a ReplaceSiteOK with default headers values
func (*ReplaceSiteOK) Code ¶ added in v1.1.5
func (o *ReplaceSiteOK) Code() int
Code gets the status code for the replace site o k response
func (*ReplaceSiteOK) Error ¶
func (o *ReplaceSiteOK) Error() string
func (*ReplaceSiteOK) GetPayload ¶
func (o *ReplaceSiteOK) GetPayload() *models.Site
func (*ReplaceSiteOK) IsClientError ¶ added in v1.1.0
func (o *ReplaceSiteOK) IsClientError() bool
IsClientError returns true when this replace site o k response has a 4xx status code
func (*ReplaceSiteOK) IsCode ¶ added in v1.1.0
func (o *ReplaceSiteOK) IsCode(code int) bool
IsCode returns true when this replace site o k response a status code equal to that given
func (*ReplaceSiteOK) IsRedirect ¶ added in v1.1.0
func (o *ReplaceSiteOK) IsRedirect() bool
IsRedirect returns true when this replace site o k response has a 3xx status code
func (*ReplaceSiteOK) IsServerError ¶ added in v1.1.0
func (o *ReplaceSiteOK) IsServerError() bool
IsServerError returns true when this replace site o k response has a 5xx status code
func (*ReplaceSiteOK) IsSuccess ¶ added in v1.1.0
func (o *ReplaceSiteOK) IsSuccess() bool
IsSuccess returns true when this replace site o k response has a 2xx status code
func (*ReplaceSiteOK) String ¶ added in v1.1.0
func (o *ReplaceSiteOK) String() string
type ReplaceSiteParams ¶
type ReplaceSiteParams struct { // Data. Data *models.Site /* 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. Site frontend 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 }
ReplaceSiteParams contains all the parameters to send to the API endpoint
for the replace site operation. Typically these are written to a http.Request.
func NewReplaceSiteParams ¶
func NewReplaceSiteParams() *ReplaceSiteParams
NewReplaceSiteParams creates a new ReplaceSiteParams 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 NewReplaceSiteParamsWithContext ¶
func NewReplaceSiteParamsWithContext(ctx context.Context) *ReplaceSiteParams
NewReplaceSiteParamsWithContext creates a new ReplaceSiteParams object with the ability to set a context for a request.
func NewReplaceSiteParamsWithHTTPClient ¶
func NewReplaceSiteParamsWithHTTPClient(client *http.Client) *ReplaceSiteParams
NewReplaceSiteParamsWithHTTPClient creates a new ReplaceSiteParams object with the ability to set a custom HTTPClient for a request.
func NewReplaceSiteParamsWithTimeout ¶
func NewReplaceSiteParamsWithTimeout(timeout time.Duration) *ReplaceSiteParams
NewReplaceSiteParamsWithTimeout creates a new ReplaceSiteParams object with the ability to set a timeout on a request.
func (*ReplaceSiteParams) SetContext ¶
func (o *ReplaceSiteParams) SetContext(ctx context.Context)
SetContext adds the context to the replace site params
func (*ReplaceSiteParams) SetData ¶
func (o *ReplaceSiteParams) SetData(data *models.Site)
SetData adds the data to the replace site params
func (*ReplaceSiteParams) SetDefaults ¶
func (o *ReplaceSiteParams) SetDefaults()
SetDefaults hydrates default values in the replace site params (not the query body).
All values with no default are reset to their zero value.
func (*ReplaceSiteParams) SetForceReload ¶
func (o *ReplaceSiteParams) SetForceReload(forceReload *bool)
SetForceReload adds the forceReload to the replace site params
func (*ReplaceSiteParams) SetHTTPClient ¶
func (o *ReplaceSiteParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the replace site params
func (*ReplaceSiteParams) SetName ¶
func (o *ReplaceSiteParams) SetName(name string)
SetName adds the name to the replace site params
func (*ReplaceSiteParams) SetTimeout ¶
func (o *ReplaceSiteParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the replace site params
func (*ReplaceSiteParams) SetTransactionID ¶
func (o *ReplaceSiteParams) SetTransactionID(transactionID *string)
SetTransactionID adds the transactionId to the replace site params
func (*ReplaceSiteParams) SetVersion ¶
func (o *ReplaceSiteParams) SetVersion(version *int64)
SetVersion adds the version to the replace site params
func (*ReplaceSiteParams) WithContext ¶
func (o *ReplaceSiteParams) WithContext(ctx context.Context) *ReplaceSiteParams
WithContext adds the context to the replace site params
func (*ReplaceSiteParams) WithData ¶
func (o *ReplaceSiteParams) WithData(data *models.Site) *ReplaceSiteParams
WithData adds the data to the replace site params
func (*ReplaceSiteParams) WithDefaults ¶
func (o *ReplaceSiteParams) WithDefaults() *ReplaceSiteParams
WithDefaults hydrates default values in the replace site params (not the query body).
All values with no default are reset to their zero value.
func (*ReplaceSiteParams) WithForceReload ¶
func (o *ReplaceSiteParams) WithForceReload(forceReload *bool) *ReplaceSiteParams
WithForceReload adds the forceReload to the replace site params
func (*ReplaceSiteParams) WithHTTPClient ¶
func (o *ReplaceSiteParams) WithHTTPClient(client *http.Client) *ReplaceSiteParams
WithHTTPClient adds the HTTPClient to the replace site params
func (*ReplaceSiteParams) WithName ¶
func (o *ReplaceSiteParams) WithName(name string) *ReplaceSiteParams
WithName adds the name to the replace site params
func (*ReplaceSiteParams) WithTimeout ¶
func (o *ReplaceSiteParams) WithTimeout(timeout time.Duration) *ReplaceSiteParams
WithTimeout adds the timeout to the replace site params
func (*ReplaceSiteParams) WithTransactionID ¶
func (o *ReplaceSiteParams) WithTransactionID(transactionID *string) *ReplaceSiteParams
WithTransactionID adds the transactionID to the replace site params
func (*ReplaceSiteParams) WithVersion ¶
func (o *ReplaceSiteParams) WithVersion(version *int64) *ReplaceSiteParams
WithVersion adds the version to the replace site params
func (*ReplaceSiteParams) WriteToRequest ¶
func (o *ReplaceSiteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ReplaceSiteReader ¶
type ReplaceSiteReader struct {
// contains filtered or unexported fields
}
ReplaceSiteReader is a Reader for the ReplaceSite structure.
func (*ReplaceSiteReader) ReadResponse ¶
func (o *ReplaceSiteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.