Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateService(params *CreateServiceParams, opts ...ClientOption) (*CreateServiceOK, error)
- func (a *Client) DeleteService(params *DeleteServiceParams, opts ...ClientOption) (*DeleteServiceOK, error)
- func (a *Client) ListServices(params *ListServicesParams, opts ...ClientOption) (*ListServicesOK, error)
- func (a *Client) ReadService(params *ReadServiceParams, opts ...ClientOption) (*ReadServiceOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateService(params *UpdateServiceParams, opts ...ClientOption) (*UpdateServiceOK, error)
- type ClientOption
- type ClientService
- type CreateServiceBadRequest
- func (o *CreateServiceBadRequest) Code() int
- func (o *CreateServiceBadRequest) Error() string
- func (o *CreateServiceBadRequest) GetPayload() *models.APIError
- func (o *CreateServiceBadRequest) IsClientError() bool
- func (o *CreateServiceBadRequest) IsCode(code int) bool
- func (o *CreateServiceBadRequest) IsRedirect() bool
- func (o *CreateServiceBadRequest) IsServerError() bool
- func (o *CreateServiceBadRequest) IsSuccess() bool
- func (o *CreateServiceBadRequest) String() string
- type CreateServiceConflict
- func (o *CreateServiceConflict) Code() int
- func (o *CreateServiceConflict) Error() string
- func (o *CreateServiceConflict) GetPayload() *models.APIError
- func (o *CreateServiceConflict) IsClientError() bool
- func (o *CreateServiceConflict) IsCode(code int) bool
- func (o *CreateServiceConflict) IsRedirect() bool
- func (o *CreateServiceConflict) IsServerError() bool
- func (o *CreateServiceConflict) IsSuccess() bool
- func (o *CreateServiceConflict) String() string
- type CreateServiceDefault
- func (o *CreateServiceDefault) Code() int
- func (o *CreateServiceDefault) Error() string
- func (o *CreateServiceDefault) GetPayload() models.GenericError
- func (o *CreateServiceDefault) IsClientError() bool
- func (o *CreateServiceDefault) IsCode(code int) bool
- func (o *CreateServiceDefault) IsRedirect() bool
- func (o *CreateServiceDefault) IsServerError() bool
- func (o *CreateServiceDefault) IsSuccess() bool
- func (o *CreateServiceDefault) String() string
- type CreateServiceInternalServerError
- func (o *CreateServiceInternalServerError) Code() int
- func (o *CreateServiceInternalServerError) Error() string
- func (o *CreateServiceInternalServerError) GetPayload() *models.APIError
- func (o *CreateServiceInternalServerError) IsClientError() bool
- func (o *CreateServiceInternalServerError) IsCode(code int) bool
- func (o *CreateServiceInternalServerError) IsRedirect() bool
- func (o *CreateServiceInternalServerError) IsServerError() bool
- func (o *CreateServiceInternalServerError) IsSuccess() bool
- func (o *CreateServiceInternalServerError) String() string
- type CreateServiceOK
- func (o *CreateServiceOK) Code() int
- func (o *CreateServiceOK) Error() string
- func (o *CreateServiceOK) GetPayload() *models.ConfigunstableCreateServiceResponse
- func (o *CreateServiceOK) IsClientError() bool
- func (o *CreateServiceOK) IsCode(code int) bool
- func (o *CreateServiceOK) IsRedirect() bool
- func (o *CreateServiceOK) IsServerError() bool
- func (o *CreateServiceOK) IsSuccess() bool
- func (o *CreateServiceOK) String() string
- type CreateServiceParams
- func (o *CreateServiceParams) SetBody(body *models.ConfigunstableCreateServiceRequest)
- func (o *CreateServiceParams) SetContext(ctx context.Context)
- func (o *CreateServiceParams) SetDefaults()
- func (o *CreateServiceParams) SetHTTPClient(client *http.Client)
- func (o *CreateServiceParams) SetTimeout(timeout time.Duration)
- func (o *CreateServiceParams) WithBody(body *models.ConfigunstableCreateServiceRequest) *CreateServiceParams
- func (o *CreateServiceParams) WithContext(ctx context.Context) *CreateServiceParams
- func (o *CreateServiceParams) WithDefaults() *CreateServiceParams
- func (o *CreateServiceParams) WithHTTPClient(client *http.Client) *CreateServiceParams
- func (o *CreateServiceParams) WithTimeout(timeout time.Duration) *CreateServiceParams
- func (o *CreateServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateServiceReader
- type DeleteServiceBadRequest
- func (o *DeleteServiceBadRequest) Code() int
- func (o *DeleteServiceBadRequest) Error() string
- func (o *DeleteServiceBadRequest) GetPayload() *models.APIError
- func (o *DeleteServiceBadRequest) IsClientError() bool
- func (o *DeleteServiceBadRequest) IsCode(code int) bool
- func (o *DeleteServiceBadRequest) IsRedirect() bool
- func (o *DeleteServiceBadRequest) IsServerError() bool
- func (o *DeleteServiceBadRequest) IsSuccess() bool
- func (o *DeleteServiceBadRequest) String() string
- type DeleteServiceDefault
- func (o *DeleteServiceDefault) Code() int
- func (o *DeleteServiceDefault) Error() string
- func (o *DeleteServiceDefault) GetPayload() models.GenericError
- func (o *DeleteServiceDefault) IsClientError() bool
- func (o *DeleteServiceDefault) IsCode(code int) bool
- func (o *DeleteServiceDefault) IsRedirect() bool
- func (o *DeleteServiceDefault) IsServerError() bool
- func (o *DeleteServiceDefault) IsSuccess() bool
- func (o *DeleteServiceDefault) String() string
- type DeleteServiceInternalServerError
- func (o *DeleteServiceInternalServerError) Code() int
- func (o *DeleteServiceInternalServerError) Error() string
- func (o *DeleteServiceInternalServerError) GetPayload() *models.APIError
- func (o *DeleteServiceInternalServerError) IsClientError() bool
- func (o *DeleteServiceInternalServerError) IsCode(code int) bool
- func (o *DeleteServiceInternalServerError) IsRedirect() bool
- func (o *DeleteServiceInternalServerError) IsServerError() bool
- func (o *DeleteServiceInternalServerError) IsSuccess() bool
- func (o *DeleteServiceInternalServerError) String() string
- type DeleteServiceNotFound
- func (o *DeleteServiceNotFound) Code() int
- func (o *DeleteServiceNotFound) Error() string
- func (o *DeleteServiceNotFound) GetPayload() *models.APIError
- func (o *DeleteServiceNotFound) IsClientError() bool
- func (o *DeleteServiceNotFound) IsCode(code int) bool
- func (o *DeleteServiceNotFound) IsRedirect() bool
- func (o *DeleteServiceNotFound) IsServerError() bool
- func (o *DeleteServiceNotFound) IsSuccess() bool
- func (o *DeleteServiceNotFound) String() string
- type DeleteServiceOK
- func (o *DeleteServiceOK) Code() int
- func (o *DeleteServiceOK) Error() string
- func (o *DeleteServiceOK) GetPayload() models.ConfigunstableDeleteServiceResponse
- func (o *DeleteServiceOK) IsClientError() bool
- func (o *DeleteServiceOK) IsCode(code int) bool
- func (o *DeleteServiceOK) IsRedirect() bool
- func (o *DeleteServiceOK) IsServerError() bool
- func (o *DeleteServiceOK) IsSuccess() bool
- func (o *DeleteServiceOK) String() string
- type DeleteServiceParams
- func (o *DeleteServiceParams) SetContext(ctx context.Context)
- func (o *DeleteServiceParams) SetDefaults()
- func (o *DeleteServiceParams) SetHTTPClient(client *http.Client)
- func (o *DeleteServiceParams) SetSlug(slug string)
- func (o *DeleteServiceParams) SetTimeout(timeout time.Duration)
- func (o *DeleteServiceParams) WithContext(ctx context.Context) *DeleteServiceParams
- func (o *DeleteServiceParams) WithDefaults() *DeleteServiceParams
- func (o *DeleteServiceParams) WithHTTPClient(client *http.Client) *DeleteServiceParams
- func (o *DeleteServiceParams) WithSlug(slug string) *DeleteServiceParams
- func (o *DeleteServiceParams) WithTimeout(timeout time.Duration) *DeleteServiceParams
- func (o *DeleteServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteServiceReader
- type ListServicesDefault
- func (o *ListServicesDefault) Code() int
- func (o *ListServicesDefault) Error() string
- func (o *ListServicesDefault) GetPayload() models.GenericError
- func (o *ListServicesDefault) IsClientError() bool
- func (o *ListServicesDefault) IsCode(code int) bool
- func (o *ListServicesDefault) IsRedirect() bool
- func (o *ListServicesDefault) IsServerError() bool
- func (o *ListServicesDefault) IsSuccess() bool
- func (o *ListServicesDefault) String() string
- type ListServicesInternalServerError
- func (o *ListServicesInternalServerError) Code() int
- func (o *ListServicesInternalServerError) Error() string
- func (o *ListServicesInternalServerError) GetPayload() *models.APIError
- func (o *ListServicesInternalServerError) IsClientError() bool
- func (o *ListServicesInternalServerError) IsCode(code int) bool
- func (o *ListServicesInternalServerError) IsRedirect() bool
- func (o *ListServicesInternalServerError) IsServerError() bool
- func (o *ListServicesInternalServerError) IsSuccess() bool
- func (o *ListServicesInternalServerError) String() string
- type ListServicesOK
- func (o *ListServicesOK) Code() int
- func (o *ListServicesOK) Error() string
- func (o *ListServicesOK) GetPayload() *models.ConfigunstableListServicesResponse
- func (o *ListServicesOK) IsClientError() bool
- func (o *ListServicesOK) IsCode(code int) bool
- func (o *ListServicesOK) IsRedirect() bool
- func (o *ListServicesOK) IsServerError() bool
- func (o *ListServicesOK) IsSuccess() bool
- func (o *ListServicesOK) String() string
- type ListServicesParams
- func (o *ListServicesParams) SetContext(ctx context.Context)
- func (o *ListServicesParams) SetDefaults()
- func (o *ListServicesParams) SetHTTPClient(client *http.Client)
- func (o *ListServicesParams) SetNames(names []string)
- func (o *ListServicesParams) SetNotificationPolicySlugs(notificationPolicySlugs []string)
- func (o *ListServicesParams) SetPageMaxSize(pageMaxSize *int64)
- func (o *ListServicesParams) SetPageToken(pageToken *string)
- func (o *ListServicesParams) SetSlugs(slugs []string)
- func (o *ListServicesParams) SetTeamSlugs(teamSlugs []string)
- func (o *ListServicesParams) SetTimeout(timeout time.Duration)
- func (o *ListServicesParams) WithContext(ctx context.Context) *ListServicesParams
- func (o *ListServicesParams) WithDefaults() *ListServicesParams
- func (o *ListServicesParams) WithHTTPClient(client *http.Client) *ListServicesParams
- func (o *ListServicesParams) WithNames(names []string) *ListServicesParams
- func (o *ListServicesParams) WithNotificationPolicySlugs(notificationPolicySlugs []string) *ListServicesParams
- func (o *ListServicesParams) WithPageMaxSize(pageMaxSize *int64) *ListServicesParams
- func (o *ListServicesParams) WithPageToken(pageToken *string) *ListServicesParams
- func (o *ListServicesParams) WithSlugs(slugs []string) *ListServicesParams
- func (o *ListServicesParams) WithTeamSlugs(teamSlugs []string) *ListServicesParams
- func (o *ListServicesParams) WithTimeout(timeout time.Duration) *ListServicesParams
- func (o *ListServicesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListServicesReader
- type ReadServiceDefault
- func (o *ReadServiceDefault) Code() int
- func (o *ReadServiceDefault) Error() string
- func (o *ReadServiceDefault) GetPayload() models.GenericError
- func (o *ReadServiceDefault) IsClientError() bool
- func (o *ReadServiceDefault) IsCode(code int) bool
- func (o *ReadServiceDefault) IsRedirect() bool
- func (o *ReadServiceDefault) IsServerError() bool
- func (o *ReadServiceDefault) IsSuccess() bool
- func (o *ReadServiceDefault) String() string
- type ReadServiceInternalServerError
- func (o *ReadServiceInternalServerError) Code() int
- func (o *ReadServiceInternalServerError) Error() string
- func (o *ReadServiceInternalServerError) GetPayload() *models.APIError
- func (o *ReadServiceInternalServerError) IsClientError() bool
- func (o *ReadServiceInternalServerError) IsCode(code int) bool
- func (o *ReadServiceInternalServerError) IsRedirect() bool
- func (o *ReadServiceInternalServerError) IsServerError() bool
- func (o *ReadServiceInternalServerError) IsSuccess() bool
- func (o *ReadServiceInternalServerError) String() string
- type ReadServiceNotFound
- func (o *ReadServiceNotFound) Code() int
- func (o *ReadServiceNotFound) Error() string
- func (o *ReadServiceNotFound) GetPayload() *models.APIError
- func (o *ReadServiceNotFound) IsClientError() bool
- func (o *ReadServiceNotFound) IsCode(code int) bool
- func (o *ReadServiceNotFound) IsRedirect() bool
- func (o *ReadServiceNotFound) IsServerError() bool
- func (o *ReadServiceNotFound) IsSuccess() bool
- func (o *ReadServiceNotFound) String() string
- type ReadServiceOK
- func (o *ReadServiceOK) Code() int
- func (o *ReadServiceOK) Error() string
- func (o *ReadServiceOK) GetPayload() *models.ConfigunstableReadServiceResponse
- func (o *ReadServiceOK) IsClientError() bool
- func (o *ReadServiceOK) IsCode(code int) bool
- func (o *ReadServiceOK) IsRedirect() bool
- func (o *ReadServiceOK) IsServerError() bool
- func (o *ReadServiceOK) IsSuccess() bool
- func (o *ReadServiceOK) String() string
- type ReadServiceParams
- func (o *ReadServiceParams) SetContext(ctx context.Context)
- func (o *ReadServiceParams) SetDefaults()
- func (o *ReadServiceParams) SetHTTPClient(client *http.Client)
- func (o *ReadServiceParams) SetSlug(slug string)
- func (o *ReadServiceParams) SetTimeout(timeout time.Duration)
- func (o *ReadServiceParams) WithContext(ctx context.Context) *ReadServiceParams
- func (o *ReadServiceParams) WithDefaults() *ReadServiceParams
- func (o *ReadServiceParams) WithHTTPClient(client *http.Client) *ReadServiceParams
- func (o *ReadServiceParams) WithSlug(slug string) *ReadServiceParams
- func (o *ReadServiceParams) WithTimeout(timeout time.Duration) *ReadServiceParams
- func (o *ReadServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ReadServiceReader
- type UpdateServiceBadRequest
- func (o *UpdateServiceBadRequest) Code() int
- func (o *UpdateServiceBadRequest) Error() string
- func (o *UpdateServiceBadRequest) GetPayload() *models.APIError
- func (o *UpdateServiceBadRequest) IsClientError() bool
- func (o *UpdateServiceBadRequest) IsCode(code int) bool
- func (o *UpdateServiceBadRequest) IsRedirect() bool
- func (o *UpdateServiceBadRequest) IsServerError() bool
- func (o *UpdateServiceBadRequest) IsSuccess() bool
- func (o *UpdateServiceBadRequest) String() string
- type UpdateServiceBody
- type UpdateServiceConflict
- func (o *UpdateServiceConflict) Code() int
- func (o *UpdateServiceConflict) Error() string
- func (o *UpdateServiceConflict) GetPayload() *models.APIError
- func (o *UpdateServiceConflict) IsClientError() bool
- func (o *UpdateServiceConflict) IsCode(code int) bool
- func (o *UpdateServiceConflict) IsRedirect() bool
- func (o *UpdateServiceConflict) IsServerError() bool
- func (o *UpdateServiceConflict) IsSuccess() bool
- func (o *UpdateServiceConflict) String() string
- type UpdateServiceDefault
- func (o *UpdateServiceDefault) Code() int
- func (o *UpdateServiceDefault) Error() string
- func (o *UpdateServiceDefault) GetPayload() models.GenericError
- func (o *UpdateServiceDefault) IsClientError() bool
- func (o *UpdateServiceDefault) IsCode(code int) bool
- func (o *UpdateServiceDefault) IsRedirect() bool
- func (o *UpdateServiceDefault) IsServerError() bool
- func (o *UpdateServiceDefault) IsSuccess() bool
- func (o *UpdateServiceDefault) String() string
- type UpdateServiceInternalServerError
- func (o *UpdateServiceInternalServerError) Code() int
- func (o *UpdateServiceInternalServerError) Error() string
- func (o *UpdateServiceInternalServerError) GetPayload() *models.APIError
- func (o *UpdateServiceInternalServerError) IsClientError() bool
- func (o *UpdateServiceInternalServerError) IsCode(code int) bool
- func (o *UpdateServiceInternalServerError) IsRedirect() bool
- func (o *UpdateServiceInternalServerError) IsServerError() bool
- func (o *UpdateServiceInternalServerError) IsSuccess() bool
- func (o *UpdateServiceInternalServerError) String() string
- type UpdateServiceNotFound
- func (o *UpdateServiceNotFound) Code() int
- func (o *UpdateServiceNotFound) Error() string
- func (o *UpdateServiceNotFound) GetPayload() *models.APIError
- func (o *UpdateServiceNotFound) IsClientError() bool
- func (o *UpdateServiceNotFound) IsCode(code int) bool
- func (o *UpdateServiceNotFound) IsRedirect() bool
- func (o *UpdateServiceNotFound) IsServerError() bool
- func (o *UpdateServiceNotFound) IsSuccess() bool
- func (o *UpdateServiceNotFound) String() string
- type UpdateServiceOK
- func (o *UpdateServiceOK) Code() int
- func (o *UpdateServiceOK) Error() string
- func (o *UpdateServiceOK) GetPayload() *models.ConfigunstableUpdateServiceResponse
- func (o *UpdateServiceOK) IsClientError() bool
- func (o *UpdateServiceOK) IsCode(code int) bool
- func (o *UpdateServiceOK) IsRedirect() bool
- func (o *UpdateServiceOK) IsServerError() bool
- func (o *UpdateServiceOK) IsSuccess() bool
- func (o *UpdateServiceOK) String() string
- type UpdateServiceParams
- func (o *UpdateServiceParams) SetBody(body UpdateServiceBody)
- func (o *UpdateServiceParams) SetContext(ctx context.Context)
- func (o *UpdateServiceParams) SetDefaults()
- func (o *UpdateServiceParams) SetHTTPClient(client *http.Client)
- func (o *UpdateServiceParams) SetSlug(slug string)
- func (o *UpdateServiceParams) SetTimeout(timeout time.Duration)
- func (o *UpdateServiceParams) WithBody(body UpdateServiceBody) *UpdateServiceParams
- func (o *UpdateServiceParams) WithContext(ctx context.Context) *UpdateServiceParams
- func (o *UpdateServiceParams) WithDefaults() *UpdateServiceParams
- func (o *UpdateServiceParams) WithHTTPClient(client *http.Client) *UpdateServiceParams
- func (o *UpdateServiceParams) WithSlug(slug string) *UpdateServiceParams
- func (o *UpdateServiceParams) WithTimeout(timeout time.Duration) *UpdateServiceParams
- func (o *UpdateServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateServiceReader
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 service API
func (*Client) CreateService ¶
func (a *Client) CreateService(params *CreateServiceParams, opts ...ClientOption) (*CreateServiceOK, error)
CreateService create service API
func (*Client) DeleteService ¶
func (a *Client) DeleteService(params *DeleteServiceParams, opts ...ClientOption) (*DeleteServiceOK, error)
DeleteService delete service API
func (*Client) ListServices ¶
func (a *Client) ListServices(params *ListServicesParams, opts ...ClientOption) (*ListServicesOK, error)
ListServices list services API
func (*Client) ReadService ¶
func (a *Client) ReadService(params *ReadServiceParams, opts ...ClientOption) (*ReadServiceOK, error)
ReadService read service API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateService ¶
func (a *Client) UpdateService(params *UpdateServiceParams, opts ...ClientOption) (*UpdateServiceOK, error)
UpdateService update service API
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { CreateService(params *CreateServiceParams, opts ...ClientOption) (*CreateServiceOK, error) DeleteService(params *DeleteServiceParams, opts ...ClientOption) (*DeleteServiceOK, error) ListServices(params *ListServicesParams, opts ...ClientOption) (*ListServicesOK, error) ReadService(params *ReadServiceParams, opts ...ClientOption) (*ReadServiceOK, error) UpdateService(params *UpdateServiceParams, opts ...ClientOption) (*UpdateServiceOK, 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 service API client.
type CreateServiceBadRequest ¶
CreateServiceBadRequest describes a response with status code 400, with default header values.
Cannot create the Service because the request is invalid.
func NewCreateServiceBadRequest ¶
func NewCreateServiceBadRequest() *CreateServiceBadRequest
NewCreateServiceBadRequest creates a CreateServiceBadRequest with default headers values
func (*CreateServiceBadRequest) Code ¶
func (o *CreateServiceBadRequest) Code() int
Code gets the status code for the create service bad request response
func (*CreateServiceBadRequest) Error ¶
func (o *CreateServiceBadRequest) Error() string
func (*CreateServiceBadRequest) GetPayload ¶
func (o *CreateServiceBadRequest) GetPayload() *models.APIError
func (*CreateServiceBadRequest) IsClientError ¶
func (o *CreateServiceBadRequest) IsClientError() bool
IsClientError returns true when this create service bad request response has a 4xx status code
func (*CreateServiceBadRequest) IsCode ¶
func (o *CreateServiceBadRequest) IsCode(code int) bool
IsCode returns true when this create service bad request response a status code equal to that given
func (*CreateServiceBadRequest) IsRedirect ¶
func (o *CreateServiceBadRequest) IsRedirect() bool
IsRedirect returns true when this create service bad request response has a 3xx status code
func (*CreateServiceBadRequest) IsServerError ¶
func (o *CreateServiceBadRequest) IsServerError() bool
IsServerError returns true when this create service bad request response has a 5xx status code
func (*CreateServiceBadRequest) IsSuccess ¶
func (o *CreateServiceBadRequest) IsSuccess() bool
IsSuccess returns true when this create service bad request response has a 2xx status code
func (*CreateServiceBadRequest) String ¶
func (o *CreateServiceBadRequest) String() string
type CreateServiceConflict ¶
CreateServiceConflict describes a response with status code 409, with default header values.
Cannot create the Service because there is a conflict with an existing Service.
func NewCreateServiceConflict ¶
func NewCreateServiceConflict() *CreateServiceConflict
NewCreateServiceConflict creates a CreateServiceConflict with default headers values
func (*CreateServiceConflict) Code ¶
func (o *CreateServiceConflict) Code() int
Code gets the status code for the create service conflict response
func (*CreateServiceConflict) Error ¶
func (o *CreateServiceConflict) Error() string
func (*CreateServiceConflict) GetPayload ¶
func (o *CreateServiceConflict) GetPayload() *models.APIError
func (*CreateServiceConflict) IsClientError ¶
func (o *CreateServiceConflict) IsClientError() bool
IsClientError returns true when this create service conflict response has a 4xx status code
func (*CreateServiceConflict) IsCode ¶
func (o *CreateServiceConflict) IsCode(code int) bool
IsCode returns true when this create service conflict response a status code equal to that given
func (*CreateServiceConflict) IsRedirect ¶
func (o *CreateServiceConflict) IsRedirect() bool
IsRedirect returns true when this create service conflict response has a 3xx status code
func (*CreateServiceConflict) IsServerError ¶
func (o *CreateServiceConflict) IsServerError() bool
IsServerError returns true when this create service conflict response has a 5xx status code
func (*CreateServiceConflict) IsSuccess ¶
func (o *CreateServiceConflict) IsSuccess() bool
IsSuccess returns true when this create service conflict response has a 2xx status code
func (*CreateServiceConflict) String ¶
func (o *CreateServiceConflict) String() string
type CreateServiceDefault ¶
type CreateServiceDefault struct { Payload models.GenericError // contains filtered or unexported fields }
CreateServiceDefault describes a response with status code -1, with default header values.
An undefined error response.
func NewCreateServiceDefault ¶
func NewCreateServiceDefault(code int) *CreateServiceDefault
NewCreateServiceDefault creates a CreateServiceDefault with default headers values
func (*CreateServiceDefault) Code ¶
func (o *CreateServiceDefault) Code() int
Code gets the status code for the create service default response
func (*CreateServiceDefault) Error ¶
func (o *CreateServiceDefault) Error() string
func (*CreateServiceDefault) GetPayload ¶
func (o *CreateServiceDefault) GetPayload() models.GenericError
func (*CreateServiceDefault) IsClientError ¶
func (o *CreateServiceDefault) IsClientError() bool
IsClientError returns true when this create service default response has a 4xx status code
func (*CreateServiceDefault) IsCode ¶
func (o *CreateServiceDefault) IsCode(code int) bool
IsCode returns true when this create service default response a status code equal to that given
func (*CreateServiceDefault) IsRedirect ¶
func (o *CreateServiceDefault) IsRedirect() bool
IsRedirect returns true when this create service default response has a 3xx status code
func (*CreateServiceDefault) IsServerError ¶
func (o *CreateServiceDefault) IsServerError() bool
IsServerError returns true when this create service default response has a 5xx status code
func (*CreateServiceDefault) IsSuccess ¶
func (o *CreateServiceDefault) IsSuccess() bool
IsSuccess returns true when this create service default response has a 2xx status code
func (*CreateServiceDefault) String ¶
func (o *CreateServiceDefault) String() string
type CreateServiceInternalServerError ¶
CreateServiceInternalServerError describes a response with status code 500, with default header values.
An unexpected error response.
func NewCreateServiceInternalServerError ¶
func NewCreateServiceInternalServerError() *CreateServiceInternalServerError
NewCreateServiceInternalServerError creates a CreateServiceInternalServerError with default headers values
func (*CreateServiceInternalServerError) Code ¶
func (o *CreateServiceInternalServerError) Code() int
Code gets the status code for the create service internal server error response
func (*CreateServiceInternalServerError) Error ¶
func (o *CreateServiceInternalServerError) Error() string
func (*CreateServiceInternalServerError) GetPayload ¶
func (o *CreateServiceInternalServerError) GetPayload() *models.APIError
func (*CreateServiceInternalServerError) IsClientError ¶
func (o *CreateServiceInternalServerError) IsClientError() bool
IsClientError returns true when this create service internal server error response has a 4xx status code
func (*CreateServiceInternalServerError) IsCode ¶
func (o *CreateServiceInternalServerError) IsCode(code int) bool
IsCode returns true when this create service internal server error response a status code equal to that given
func (*CreateServiceInternalServerError) IsRedirect ¶
func (o *CreateServiceInternalServerError) IsRedirect() bool
IsRedirect returns true when this create service internal server error response has a 3xx status code
func (*CreateServiceInternalServerError) IsServerError ¶
func (o *CreateServiceInternalServerError) IsServerError() bool
IsServerError returns true when this create service internal server error response has a 5xx status code
func (*CreateServiceInternalServerError) IsSuccess ¶
func (o *CreateServiceInternalServerError) IsSuccess() bool
IsSuccess returns true when this create service internal server error response has a 2xx status code
func (*CreateServiceInternalServerError) String ¶
func (o *CreateServiceInternalServerError) String() string
type CreateServiceOK ¶
type CreateServiceOK struct {
Payload *models.ConfigunstableCreateServiceResponse
}
CreateServiceOK describes a response with status code 200, with default header values.
A successful response containing the created Service.
func NewCreateServiceOK ¶
func NewCreateServiceOK() *CreateServiceOK
NewCreateServiceOK creates a CreateServiceOK with default headers values
func (*CreateServiceOK) Code ¶
func (o *CreateServiceOK) Code() int
Code gets the status code for the create service o k response
func (*CreateServiceOK) Error ¶
func (o *CreateServiceOK) Error() string
func (*CreateServiceOK) GetPayload ¶
func (o *CreateServiceOK) GetPayload() *models.ConfigunstableCreateServiceResponse
func (*CreateServiceOK) IsClientError ¶
func (o *CreateServiceOK) IsClientError() bool
IsClientError returns true when this create service o k response has a 4xx status code
func (*CreateServiceOK) IsCode ¶
func (o *CreateServiceOK) IsCode(code int) bool
IsCode returns true when this create service o k response a status code equal to that given
func (*CreateServiceOK) IsRedirect ¶
func (o *CreateServiceOK) IsRedirect() bool
IsRedirect returns true when this create service o k response has a 3xx status code
func (*CreateServiceOK) IsServerError ¶
func (o *CreateServiceOK) IsServerError() bool
IsServerError returns true when this create service o k response has a 5xx status code
func (*CreateServiceOK) IsSuccess ¶
func (o *CreateServiceOK) IsSuccess() bool
IsSuccess returns true when this create service o k response has a 2xx status code
func (*CreateServiceOK) String ¶
func (o *CreateServiceOK) String() string
type CreateServiceParams ¶
type CreateServiceParams struct { // Body. Body *models.ConfigunstableCreateServiceRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateServiceParams contains all the parameters to send to the API endpoint
for the create service operation. Typically these are written to a http.Request.
func NewCreateServiceParams ¶
func NewCreateServiceParams() *CreateServiceParams
NewCreateServiceParams creates a new CreateServiceParams 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 NewCreateServiceParamsWithContext ¶
func NewCreateServiceParamsWithContext(ctx context.Context) *CreateServiceParams
NewCreateServiceParamsWithContext creates a new CreateServiceParams object with the ability to set a context for a request.
func NewCreateServiceParamsWithHTTPClient ¶
func NewCreateServiceParamsWithHTTPClient(client *http.Client) *CreateServiceParams
NewCreateServiceParamsWithHTTPClient creates a new CreateServiceParams object with the ability to set a custom HTTPClient for a request.
func NewCreateServiceParamsWithTimeout ¶
func NewCreateServiceParamsWithTimeout(timeout time.Duration) *CreateServiceParams
NewCreateServiceParamsWithTimeout creates a new CreateServiceParams object with the ability to set a timeout on a request.
func (*CreateServiceParams) SetBody ¶
func (o *CreateServiceParams) SetBody(body *models.ConfigunstableCreateServiceRequest)
SetBody adds the body to the create service params
func (*CreateServiceParams) SetContext ¶
func (o *CreateServiceParams) SetContext(ctx context.Context)
SetContext adds the context to the create service params
func (*CreateServiceParams) SetDefaults ¶
func (o *CreateServiceParams) SetDefaults()
SetDefaults hydrates default values in the create service params (not the query body).
All values with no default are reset to their zero value.
func (*CreateServiceParams) SetHTTPClient ¶
func (o *CreateServiceParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create service params
func (*CreateServiceParams) SetTimeout ¶
func (o *CreateServiceParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create service params
func (*CreateServiceParams) WithBody ¶
func (o *CreateServiceParams) WithBody(body *models.ConfigunstableCreateServiceRequest) *CreateServiceParams
WithBody adds the body to the create service params
func (*CreateServiceParams) WithContext ¶
func (o *CreateServiceParams) WithContext(ctx context.Context) *CreateServiceParams
WithContext adds the context to the create service params
func (*CreateServiceParams) WithDefaults ¶
func (o *CreateServiceParams) WithDefaults() *CreateServiceParams
WithDefaults hydrates default values in the create service params (not the query body).
All values with no default are reset to their zero value.
func (*CreateServiceParams) WithHTTPClient ¶
func (o *CreateServiceParams) WithHTTPClient(client *http.Client) *CreateServiceParams
WithHTTPClient adds the HTTPClient to the create service params
func (*CreateServiceParams) WithTimeout ¶
func (o *CreateServiceParams) WithTimeout(timeout time.Duration) *CreateServiceParams
WithTimeout adds the timeout to the create service params
func (*CreateServiceParams) WriteToRequest ¶
func (o *CreateServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateServiceReader ¶
type CreateServiceReader struct {
// contains filtered or unexported fields
}
CreateServiceReader is a Reader for the CreateService structure.
func (*CreateServiceReader) ReadResponse ¶
func (o *CreateServiceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteServiceBadRequest ¶
DeleteServiceBadRequest describes a response with status code 400, with default header values.
Cannot delete the Service because it is in use.
func NewDeleteServiceBadRequest ¶
func NewDeleteServiceBadRequest() *DeleteServiceBadRequest
NewDeleteServiceBadRequest creates a DeleteServiceBadRequest with default headers values
func (*DeleteServiceBadRequest) Code ¶
func (o *DeleteServiceBadRequest) Code() int
Code gets the status code for the delete service bad request response
func (*DeleteServiceBadRequest) Error ¶
func (o *DeleteServiceBadRequest) Error() string
func (*DeleteServiceBadRequest) GetPayload ¶
func (o *DeleteServiceBadRequest) GetPayload() *models.APIError
func (*DeleteServiceBadRequest) IsClientError ¶
func (o *DeleteServiceBadRequest) IsClientError() bool
IsClientError returns true when this delete service bad request response has a 4xx status code
func (*DeleteServiceBadRequest) IsCode ¶
func (o *DeleteServiceBadRequest) IsCode(code int) bool
IsCode returns true when this delete service bad request response a status code equal to that given
func (*DeleteServiceBadRequest) IsRedirect ¶
func (o *DeleteServiceBadRequest) IsRedirect() bool
IsRedirect returns true when this delete service bad request response has a 3xx status code
func (*DeleteServiceBadRequest) IsServerError ¶
func (o *DeleteServiceBadRequest) IsServerError() bool
IsServerError returns true when this delete service bad request response has a 5xx status code
func (*DeleteServiceBadRequest) IsSuccess ¶
func (o *DeleteServiceBadRequest) IsSuccess() bool
IsSuccess returns true when this delete service bad request response has a 2xx status code
func (*DeleteServiceBadRequest) String ¶
func (o *DeleteServiceBadRequest) String() string
type DeleteServiceDefault ¶
type DeleteServiceDefault struct { Payload models.GenericError // contains filtered or unexported fields }
DeleteServiceDefault describes a response with status code -1, with default header values.
An undefined error response.
func NewDeleteServiceDefault ¶
func NewDeleteServiceDefault(code int) *DeleteServiceDefault
NewDeleteServiceDefault creates a DeleteServiceDefault with default headers values
func (*DeleteServiceDefault) Code ¶
func (o *DeleteServiceDefault) Code() int
Code gets the status code for the delete service default response
func (*DeleteServiceDefault) Error ¶
func (o *DeleteServiceDefault) Error() string
func (*DeleteServiceDefault) GetPayload ¶
func (o *DeleteServiceDefault) GetPayload() models.GenericError
func (*DeleteServiceDefault) IsClientError ¶
func (o *DeleteServiceDefault) IsClientError() bool
IsClientError returns true when this delete service default response has a 4xx status code
func (*DeleteServiceDefault) IsCode ¶
func (o *DeleteServiceDefault) IsCode(code int) bool
IsCode returns true when this delete service default response a status code equal to that given
func (*DeleteServiceDefault) IsRedirect ¶
func (o *DeleteServiceDefault) IsRedirect() bool
IsRedirect returns true when this delete service default response has a 3xx status code
func (*DeleteServiceDefault) IsServerError ¶
func (o *DeleteServiceDefault) IsServerError() bool
IsServerError returns true when this delete service default response has a 5xx status code
func (*DeleteServiceDefault) IsSuccess ¶
func (o *DeleteServiceDefault) IsSuccess() bool
IsSuccess returns true when this delete service default response has a 2xx status code
func (*DeleteServiceDefault) String ¶
func (o *DeleteServiceDefault) String() string
type DeleteServiceInternalServerError ¶
DeleteServiceInternalServerError describes a response with status code 500, with default header values.
An unexpected error response.
func NewDeleteServiceInternalServerError ¶
func NewDeleteServiceInternalServerError() *DeleteServiceInternalServerError
NewDeleteServiceInternalServerError creates a DeleteServiceInternalServerError with default headers values
func (*DeleteServiceInternalServerError) Code ¶
func (o *DeleteServiceInternalServerError) Code() int
Code gets the status code for the delete service internal server error response
func (*DeleteServiceInternalServerError) Error ¶
func (o *DeleteServiceInternalServerError) Error() string
func (*DeleteServiceInternalServerError) GetPayload ¶
func (o *DeleteServiceInternalServerError) GetPayload() *models.APIError
func (*DeleteServiceInternalServerError) IsClientError ¶
func (o *DeleteServiceInternalServerError) IsClientError() bool
IsClientError returns true when this delete service internal server error response has a 4xx status code
func (*DeleteServiceInternalServerError) IsCode ¶
func (o *DeleteServiceInternalServerError) IsCode(code int) bool
IsCode returns true when this delete service internal server error response a status code equal to that given
func (*DeleteServiceInternalServerError) IsRedirect ¶
func (o *DeleteServiceInternalServerError) IsRedirect() bool
IsRedirect returns true when this delete service internal server error response has a 3xx status code
func (*DeleteServiceInternalServerError) IsServerError ¶
func (o *DeleteServiceInternalServerError) IsServerError() bool
IsServerError returns true when this delete service internal server error response has a 5xx status code
func (*DeleteServiceInternalServerError) IsSuccess ¶
func (o *DeleteServiceInternalServerError) IsSuccess() bool
IsSuccess returns true when this delete service internal server error response has a 2xx status code
func (*DeleteServiceInternalServerError) String ¶
func (o *DeleteServiceInternalServerError) String() string
type DeleteServiceNotFound ¶
DeleteServiceNotFound describes a response with status code 404, with default header values.
Cannot delete the Service because the slug does not exist.
func NewDeleteServiceNotFound ¶
func NewDeleteServiceNotFound() *DeleteServiceNotFound
NewDeleteServiceNotFound creates a DeleteServiceNotFound with default headers values
func (*DeleteServiceNotFound) Code ¶
func (o *DeleteServiceNotFound) Code() int
Code gets the status code for the delete service not found response
func (*DeleteServiceNotFound) Error ¶
func (o *DeleteServiceNotFound) Error() string
func (*DeleteServiceNotFound) GetPayload ¶
func (o *DeleteServiceNotFound) GetPayload() *models.APIError
func (*DeleteServiceNotFound) IsClientError ¶
func (o *DeleteServiceNotFound) IsClientError() bool
IsClientError returns true when this delete service not found response has a 4xx status code
func (*DeleteServiceNotFound) IsCode ¶
func (o *DeleteServiceNotFound) IsCode(code int) bool
IsCode returns true when this delete service not found response a status code equal to that given
func (*DeleteServiceNotFound) IsRedirect ¶
func (o *DeleteServiceNotFound) IsRedirect() bool
IsRedirect returns true when this delete service not found response has a 3xx status code
func (*DeleteServiceNotFound) IsServerError ¶
func (o *DeleteServiceNotFound) IsServerError() bool
IsServerError returns true when this delete service not found response has a 5xx status code
func (*DeleteServiceNotFound) IsSuccess ¶
func (o *DeleteServiceNotFound) IsSuccess() bool
IsSuccess returns true when this delete service not found response has a 2xx status code
func (*DeleteServiceNotFound) String ¶
func (o *DeleteServiceNotFound) String() string
type DeleteServiceOK ¶
type DeleteServiceOK struct {
Payload models.ConfigunstableDeleteServiceResponse
}
DeleteServiceOK describes a response with status code 200, with default header values.
A successful response.
func NewDeleteServiceOK ¶
func NewDeleteServiceOK() *DeleteServiceOK
NewDeleteServiceOK creates a DeleteServiceOK with default headers values
func (*DeleteServiceOK) Code ¶
func (o *DeleteServiceOK) Code() int
Code gets the status code for the delete service o k response
func (*DeleteServiceOK) Error ¶
func (o *DeleteServiceOK) Error() string
func (*DeleteServiceOK) GetPayload ¶
func (o *DeleteServiceOK) GetPayload() models.ConfigunstableDeleteServiceResponse
func (*DeleteServiceOK) IsClientError ¶
func (o *DeleteServiceOK) IsClientError() bool
IsClientError returns true when this delete service o k response has a 4xx status code
func (*DeleteServiceOK) IsCode ¶
func (o *DeleteServiceOK) IsCode(code int) bool
IsCode returns true when this delete service o k response a status code equal to that given
func (*DeleteServiceOK) IsRedirect ¶
func (o *DeleteServiceOK) IsRedirect() bool
IsRedirect returns true when this delete service o k response has a 3xx status code
func (*DeleteServiceOK) IsServerError ¶
func (o *DeleteServiceOK) IsServerError() bool
IsServerError returns true when this delete service o k response has a 5xx status code
func (*DeleteServiceOK) IsSuccess ¶
func (o *DeleteServiceOK) IsSuccess() bool
IsSuccess returns true when this delete service o k response has a 2xx status code
func (*DeleteServiceOK) String ¶
func (o *DeleteServiceOK) String() string
type DeleteServiceParams ¶
type DeleteServiceParams struct { // Slug. Slug string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteServiceParams contains all the parameters to send to the API endpoint
for the delete service operation. Typically these are written to a http.Request.
func NewDeleteServiceParams ¶
func NewDeleteServiceParams() *DeleteServiceParams
NewDeleteServiceParams creates a new DeleteServiceParams 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 NewDeleteServiceParamsWithContext ¶
func NewDeleteServiceParamsWithContext(ctx context.Context) *DeleteServiceParams
NewDeleteServiceParamsWithContext creates a new DeleteServiceParams object with the ability to set a context for a request.
func NewDeleteServiceParamsWithHTTPClient ¶
func NewDeleteServiceParamsWithHTTPClient(client *http.Client) *DeleteServiceParams
NewDeleteServiceParamsWithHTTPClient creates a new DeleteServiceParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteServiceParamsWithTimeout ¶
func NewDeleteServiceParamsWithTimeout(timeout time.Duration) *DeleteServiceParams
NewDeleteServiceParamsWithTimeout creates a new DeleteServiceParams object with the ability to set a timeout on a request.
func (*DeleteServiceParams) SetContext ¶
func (o *DeleteServiceParams) SetContext(ctx context.Context)
SetContext adds the context to the delete service params
func (*DeleteServiceParams) SetDefaults ¶
func (o *DeleteServiceParams) SetDefaults()
SetDefaults hydrates default values in the delete service params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteServiceParams) SetHTTPClient ¶
func (o *DeleteServiceParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete service params
func (*DeleteServiceParams) SetSlug ¶
func (o *DeleteServiceParams) SetSlug(slug string)
SetSlug adds the slug to the delete service params
func (*DeleteServiceParams) SetTimeout ¶
func (o *DeleteServiceParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete service params
func (*DeleteServiceParams) WithContext ¶
func (o *DeleteServiceParams) WithContext(ctx context.Context) *DeleteServiceParams
WithContext adds the context to the delete service params
func (*DeleteServiceParams) WithDefaults ¶
func (o *DeleteServiceParams) WithDefaults() *DeleteServiceParams
WithDefaults hydrates default values in the delete service params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteServiceParams) WithHTTPClient ¶
func (o *DeleteServiceParams) WithHTTPClient(client *http.Client) *DeleteServiceParams
WithHTTPClient adds the HTTPClient to the delete service params
func (*DeleteServiceParams) WithSlug ¶
func (o *DeleteServiceParams) WithSlug(slug string) *DeleteServiceParams
WithSlug adds the slug to the delete service params
func (*DeleteServiceParams) WithTimeout ¶
func (o *DeleteServiceParams) WithTimeout(timeout time.Duration) *DeleteServiceParams
WithTimeout adds the timeout to the delete service params
func (*DeleteServiceParams) WriteToRequest ¶
func (o *DeleteServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteServiceReader ¶
type DeleteServiceReader struct {
// contains filtered or unexported fields
}
DeleteServiceReader is a Reader for the DeleteService structure.
func (*DeleteServiceReader) ReadResponse ¶
func (o *DeleteServiceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListServicesDefault ¶
type ListServicesDefault struct { Payload models.GenericError // contains filtered or unexported fields }
ListServicesDefault describes a response with status code -1, with default header values.
An undefined error response.
func NewListServicesDefault ¶
func NewListServicesDefault(code int) *ListServicesDefault
NewListServicesDefault creates a ListServicesDefault with default headers values
func (*ListServicesDefault) Code ¶
func (o *ListServicesDefault) Code() int
Code gets the status code for the list services default response
func (*ListServicesDefault) Error ¶
func (o *ListServicesDefault) Error() string
func (*ListServicesDefault) GetPayload ¶
func (o *ListServicesDefault) GetPayload() models.GenericError
func (*ListServicesDefault) IsClientError ¶
func (o *ListServicesDefault) IsClientError() bool
IsClientError returns true when this list services default response has a 4xx status code
func (*ListServicesDefault) IsCode ¶
func (o *ListServicesDefault) IsCode(code int) bool
IsCode returns true when this list services default response a status code equal to that given
func (*ListServicesDefault) IsRedirect ¶
func (o *ListServicesDefault) IsRedirect() bool
IsRedirect returns true when this list services default response has a 3xx status code
func (*ListServicesDefault) IsServerError ¶
func (o *ListServicesDefault) IsServerError() bool
IsServerError returns true when this list services default response has a 5xx status code
func (*ListServicesDefault) IsSuccess ¶
func (o *ListServicesDefault) IsSuccess() bool
IsSuccess returns true when this list services default response has a 2xx status code
func (*ListServicesDefault) String ¶
func (o *ListServicesDefault) String() string
type ListServicesInternalServerError ¶
ListServicesInternalServerError describes a response with status code 500, with default header values.
An unexpected error response.
func NewListServicesInternalServerError ¶
func NewListServicesInternalServerError() *ListServicesInternalServerError
NewListServicesInternalServerError creates a ListServicesInternalServerError with default headers values
func (*ListServicesInternalServerError) Code ¶
func (o *ListServicesInternalServerError) Code() int
Code gets the status code for the list services internal server error response
func (*ListServicesInternalServerError) Error ¶
func (o *ListServicesInternalServerError) Error() string
func (*ListServicesInternalServerError) GetPayload ¶
func (o *ListServicesInternalServerError) GetPayload() *models.APIError
func (*ListServicesInternalServerError) IsClientError ¶
func (o *ListServicesInternalServerError) IsClientError() bool
IsClientError returns true when this list services internal server error response has a 4xx status code
func (*ListServicesInternalServerError) IsCode ¶
func (o *ListServicesInternalServerError) IsCode(code int) bool
IsCode returns true when this list services internal server error response a status code equal to that given
func (*ListServicesInternalServerError) IsRedirect ¶
func (o *ListServicesInternalServerError) IsRedirect() bool
IsRedirect returns true when this list services internal server error response has a 3xx status code
func (*ListServicesInternalServerError) IsServerError ¶
func (o *ListServicesInternalServerError) IsServerError() bool
IsServerError returns true when this list services internal server error response has a 5xx status code
func (*ListServicesInternalServerError) IsSuccess ¶
func (o *ListServicesInternalServerError) IsSuccess() bool
IsSuccess returns true when this list services internal server error response has a 2xx status code
func (*ListServicesInternalServerError) String ¶
func (o *ListServicesInternalServerError) String() string
type ListServicesOK ¶
type ListServicesOK struct {
Payload *models.ConfigunstableListServicesResponse
}
ListServicesOK describes a response with status code 200, with default header values.
A successful response.
func NewListServicesOK ¶
func NewListServicesOK() *ListServicesOK
NewListServicesOK creates a ListServicesOK with default headers values
func (*ListServicesOK) Code ¶
func (o *ListServicesOK) Code() int
Code gets the status code for the list services o k response
func (*ListServicesOK) Error ¶
func (o *ListServicesOK) Error() string
func (*ListServicesOK) GetPayload ¶
func (o *ListServicesOK) GetPayload() *models.ConfigunstableListServicesResponse
func (*ListServicesOK) IsClientError ¶
func (o *ListServicesOK) IsClientError() bool
IsClientError returns true when this list services o k response has a 4xx status code
func (*ListServicesOK) IsCode ¶
func (o *ListServicesOK) IsCode(code int) bool
IsCode returns true when this list services o k response a status code equal to that given
func (*ListServicesOK) IsRedirect ¶
func (o *ListServicesOK) IsRedirect() bool
IsRedirect returns true when this list services o k response has a 3xx status code
func (*ListServicesOK) IsServerError ¶
func (o *ListServicesOK) IsServerError() bool
IsServerError returns true when this list services o k response has a 5xx status code
func (*ListServicesOK) IsSuccess ¶
func (o *ListServicesOK) IsSuccess() bool
IsSuccess returns true when this list services o k response has a 2xx status code
func (*ListServicesOK) String ¶
func (o *ListServicesOK) String() string
type ListServicesParams ¶
type ListServicesParams struct { /* Names. Filters results by name, where any Service with a matching name in the given list (and matches all other filters) is returned. */ Names []string /* NotificationPolicySlugs. Get services that directly reference notifications policies by the referenced policy slugs. */ NotificationPolicySlugs []string /* PageMaxSize. Page size preference (i.e. how many items are returned in the next page). If zero, the server will use a default. Regardless of what size is given, clients must never assume how many items will be returned. Format: int64 */ PageMaxSize *int64 /* PageToken. Opaque page token identifying which page to request. An empty token identifies the first page. */ PageToken *string /* Slugs. Filters results by slug, where any Service with a matching slug in the given list (and matches all other filters) is returned. */ Slugs []string /* TeamSlugs. Filters results by team_slug, where any Service with a matching team_slug in the given list (and matches all other filters) is returned. */ TeamSlugs []string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListServicesParams contains all the parameters to send to the API endpoint
for the list services operation. Typically these are written to a http.Request.
func NewListServicesParams ¶
func NewListServicesParams() *ListServicesParams
NewListServicesParams creates a new ListServicesParams 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 NewListServicesParamsWithContext ¶
func NewListServicesParamsWithContext(ctx context.Context) *ListServicesParams
NewListServicesParamsWithContext creates a new ListServicesParams object with the ability to set a context for a request.
func NewListServicesParamsWithHTTPClient ¶
func NewListServicesParamsWithHTTPClient(client *http.Client) *ListServicesParams
NewListServicesParamsWithHTTPClient creates a new ListServicesParams object with the ability to set a custom HTTPClient for a request.
func NewListServicesParamsWithTimeout ¶
func NewListServicesParamsWithTimeout(timeout time.Duration) *ListServicesParams
NewListServicesParamsWithTimeout creates a new ListServicesParams object with the ability to set a timeout on a request.
func (*ListServicesParams) SetContext ¶
func (o *ListServicesParams) SetContext(ctx context.Context)
SetContext adds the context to the list services params
func (*ListServicesParams) SetDefaults ¶
func (o *ListServicesParams) SetDefaults()
SetDefaults hydrates default values in the list services params (not the query body).
All values with no default are reset to their zero value.
func (*ListServicesParams) SetHTTPClient ¶
func (o *ListServicesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list services params
func (*ListServicesParams) SetNames ¶
func (o *ListServicesParams) SetNames(names []string)
SetNames adds the names to the list services params
func (*ListServicesParams) SetNotificationPolicySlugs ¶
func (o *ListServicesParams) SetNotificationPolicySlugs(notificationPolicySlugs []string)
SetNotificationPolicySlugs adds the notificationPolicySlugs to the list services params
func (*ListServicesParams) SetPageMaxSize ¶
func (o *ListServicesParams) SetPageMaxSize(pageMaxSize *int64)
SetPageMaxSize adds the pageMaxSize to the list services params
func (*ListServicesParams) SetPageToken ¶
func (o *ListServicesParams) SetPageToken(pageToken *string)
SetPageToken adds the pageToken to the list services params
func (*ListServicesParams) SetSlugs ¶
func (o *ListServicesParams) SetSlugs(slugs []string)
SetSlugs adds the slugs to the list services params
func (*ListServicesParams) SetTeamSlugs ¶
func (o *ListServicesParams) SetTeamSlugs(teamSlugs []string)
SetTeamSlugs adds the teamSlugs to the list services params
func (*ListServicesParams) SetTimeout ¶
func (o *ListServicesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list services params
func (*ListServicesParams) WithContext ¶
func (o *ListServicesParams) WithContext(ctx context.Context) *ListServicesParams
WithContext adds the context to the list services params
func (*ListServicesParams) WithDefaults ¶
func (o *ListServicesParams) WithDefaults() *ListServicesParams
WithDefaults hydrates default values in the list services params (not the query body).
All values with no default are reset to their zero value.
func (*ListServicesParams) WithHTTPClient ¶
func (o *ListServicesParams) WithHTTPClient(client *http.Client) *ListServicesParams
WithHTTPClient adds the HTTPClient to the list services params
func (*ListServicesParams) WithNames ¶
func (o *ListServicesParams) WithNames(names []string) *ListServicesParams
WithNames adds the names to the list services params
func (*ListServicesParams) WithNotificationPolicySlugs ¶
func (o *ListServicesParams) WithNotificationPolicySlugs(notificationPolicySlugs []string) *ListServicesParams
WithNotificationPolicySlugs adds the notificationPolicySlugs to the list services params
func (*ListServicesParams) WithPageMaxSize ¶
func (o *ListServicesParams) WithPageMaxSize(pageMaxSize *int64) *ListServicesParams
WithPageMaxSize adds the pageMaxSize to the list services params
func (*ListServicesParams) WithPageToken ¶
func (o *ListServicesParams) WithPageToken(pageToken *string) *ListServicesParams
WithPageToken adds the pageToken to the list services params
func (*ListServicesParams) WithSlugs ¶
func (o *ListServicesParams) WithSlugs(slugs []string) *ListServicesParams
WithSlugs adds the slugs to the list services params
func (*ListServicesParams) WithTeamSlugs ¶
func (o *ListServicesParams) WithTeamSlugs(teamSlugs []string) *ListServicesParams
WithTeamSlugs adds the teamSlugs to the list services params
func (*ListServicesParams) WithTimeout ¶
func (o *ListServicesParams) WithTimeout(timeout time.Duration) *ListServicesParams
WithTimeout adds the timeout to the list services params
func (*ListServicesParams) WriteToRequest ¶
func (o *ListServicesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListServicesReader ¶
type ListServicesReader struct {
// contains filtered or unexported fields
}
ListServicesReader is a Reader for the ListServices structure.
func (*ListServicesReader) ReadResponse ¶
func (o *ListServicesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ReadServiceDefault ¶
type ReadServiceDefault struct { Payload models.GenericError // contains filtered or unexported fields }
ReadServiceDefault describes a response with status code -1, with default header values.
An undefined error response.
func NewReadServiceDefault ¶
func NewReadServiceDefault(code int) *ReadServiceDefault
NewReadServiceDefault creates a ReadServiceDefault with default headers values
func (*ReadServiceDefault) Code ¶
func (o *ReadServiceDefault) Code() int
Code gets the status code for the read service default response
func (*ReadServiceDefault) Error ¶
func (o *ReadServiceDefault) Error() string
func (*ReadServiceDefault) GetPayload ¶
func (o *ReadServiceDefault) GetPayload() models.GenericError
func (*ReadServiceDefault) IsClientError ¶
func (o *ReadServiceDefault) IsClientError() bool
IsClientError returns true when this read service default response has a 4xx status code
func (*ReadServiceDefault) IsCode ¶
func (o *ReadServiceDefault) IsCode(code int) bool
IsCode returns true when this read service default response a status code equal to that given
func (*ReadServiceDefault) IsRedirect ¶
func (o *ReadServiceDefault) IsRedirect() bool
IsRedirect returns true when this read service default response has a 3xx status code
func (*ReadServiceDefault) IsServerError ¶
func (o *ReadServiceDefault) IsServerError() bool
IsServerError returns true when this read service default response has a 5xx status code
func (*ReadServiceDefault) IsSuccess ¶
func (o *ReadServiceDefault) IsSuccess() bool
IsSuccess returns true when this read service default response has a 2xx status code
func (*ReadServiceDefault) String ¶
func (o *ReadServiceDefault) String() string
type ReadServiceInternalServerError ¶
ReadServiceInternalServerError describes a response with status code 500, with default header values.
An unexpected error response.
func NewReadServiceInternalServerError ¶
func NewReadServiceInternalServerError() *ReadServiceInternalServerError
NewReadServiceInternalServerError creates a ReadServiceInternalServerError with default headers values
func (*ReadServiceInternalServerError) Code ¶
func (o *ReadServiceInternalServerError) Code() int
Code gets the status code for the read service internal server error response
func (*ReadServiceInternalServerError) Error ¶
func (o *ReadServiceInternalServerError) Error() string
func (*ReadServiceInternalServerError) GetPayload ¶
func (o *ReadServiceInternalServerError) GetPayload() *models.APIError
func (*ReadServiceInternalServerError) IsClientError ¶
func (o *ReadServiceInternalServerError) IsClientError() bool
IsClientError returns true when this read service internal server error response has a 4xx status code
func (*ReadServiceInternalServerError) IsCode ¶
func (o *ReadServiceInternalServerError) IsCode(code int) bool
IsCode returns true when this read service internal server error response a status code equal to that given
func (*ReadServiceInternalServerError) IsRedirect ¶
func (o *ReadServiceInternalServerError) IsRedirect() bool
IsRedirect returns true when this read service internal server error response has a 3xx status code
func (*ReadServiceInternalServerError) IsServerError ¶
func (o *ReadServiceInternalServerError) IsServerError() bool
IsServerError returns true when this read service internal server error response has a 5xx status code
func (*ReadServiceInternalServerError) IsSuccess ¶
func (o *ReadServiceInternalServerError) IsSuccess() bool
IsSuccess returns true when this read service internal server error response has a 2xx status code
func (*ReadServiceInternalServerError) String ¶
func (o *ReadServiceInternalServerError) String() string
type ReadServiceNotFound ¶
ReadServiceNotFound describes a response with status code 404, with default header values.
Cannot read the Service because the slug does not exist.
func NewReadServiceNotFound ¶
func NewReadServiceNotFound() *ReadServiceNotFound
NewReadServiceNotFound creates a ReadServiceNotFound with default headers values
func (*ReadServiceNotFound) Code ¶
func (o *ReadServiceNotFound) Code() int
Code gets the status code for the read service not found response
func (*ReadServiceNotFound) Error ¶
func (o *ReadServiceNotFound) Error() string
func (*ReadServiceNotFound) GetPayload ¶
func (o *ReadServiceNotFound) GetPayload() *models.APIError
func (*ReadServiceNotFound) IsClientError ¶
func (o *ReadServiceNotFound) IsClientError() bool
IsClientError returns true when this read service not found response has a 4xx status code
func (*ReadServiceNotFound) IsCode ¶
func (o *ReadServiceNotFound) IsCode(code int) bool
IsCode returns true when this read service not found response a status code equal to that given
func (*ReadServiceNotFound) IsRedirect ¶
func (o *ReadServiceNotFound) IsRedirect() bool
IsRedirect returns true when this read service not found response has a 3xx status code
func (*ReadServiceNotFound) IsServerError ¶
func (o *ReadServiceNotFound) IsServerError() bool
IsServerError returns true when this read service not found response has a 5xx status code
func (*ReadServiceNotFound) IsSuccess ¶
func (o *ReadServiceNotFound) IsSuccess() bool
IsSuccess returns true when this read service not found response has a 2xx status code
func (*ReadServiceNotFound) String ¶
func (o *ReadServiceNotFound) String() string
type ReadServiceOK ¶
type ReadServiceOK struct {
Payload *models.ConfigunstableReadServiceResponse
}
ReadServiceOK describes a response with status code 200, with default header values.
A successful response.
func NewReadServiceOK ¶
func NewReadServiceOK() *ReadServiceOK
NewReadServiceOK creates a ReadServiceOK with default headers values
func (*ReadServiceOK) Code ¶
func (o *ReadServiceOK) Code() int
Code gets the status code for the read service o k response
func (*ReadServiceOK) Error ¶
func (o *ReadServiceOK) Error() string
func (*ReadServiceOK) GetPayload ¶
func (o *ReadServiceOK) GetPayload() *models.ConfigunstableReadServiceResponse
func (*ReadServiceOK) IsClientError ¶
func (o *ReadServiceOK) IsClientError() bool
IsClientError returns true when this read service o k response has a 4xx status code
func (*ReadServiceOK) IsCode ¶
func (o *ReadServiceOK) IsCode(code int) bool
IsCode returns true when this read service o k response a status code equal to that given
func (*ReadServiceOK) IsRedirect ¶
func (o *ReadServiceOK) IsRedirect() bool
IsRedirect returns true when this read service o k response has a 3xx status code
func (*ReadServiceOK) IsServerError ¶
func (o *ReadServiceOK) IsServerError() bool
IsServerError returns true when this read service o k response has a 5xx status code
func (*ReadServiceOK) IsSuccess ¶
func (o *ReadServiceOK) IsSuccess() bool
IsSuccess returns true when this read service o k response has a 2xx status code
func (*ReadServiceOK) String ¶
func (o *ReadServiceOK) String() string
type ReadServiceParams ¶
type ReadServiceParams struct { // Slug. Slug string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ReadServiceParams contains all the parameters to send to the API endpoint
for the read service operation. Typically these are written to a http.Request.
func NewReadServiceParams ¶
func NewReadServiceParams() *ReadServiceParams
NewReadServiceParams creates a new ReadServiceParams 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 NewReadServiceParamsWithContext ¶
func NewReadServiceParamsWithContext(ctx context.Context) *ReadServiceParams
NewReadServiceParamsWithContext creates a new ReadServiceParams object with the ability to set a context for a request.
func NewReadServiceParamsWithHTTPClient ¶
func NewReadServiceParamsWithHTTPClient(client *http.Client) *ReadServiceParams
NewReadServiceParamsWithHTTPClient creates a new ReadServiceParams object with the ability to set a custom HTTPClient for a request.
func NewReadServiceParamsWithTimeout ¶
func NewReadServiceParamsWithTimeout(timeout time.Duration) *ReadServiceParams
NewReadServiceParamsWithTimeout creates a new ReadServiceParams object with the ability to set a timeout on a request.
func (*ReadServiceParams) SetContext ¶
func (o *ReadServiceParams) SetContext(ctx context.Context)
SetContext adds the context to the read service params
func (*ReadServiceParams) SetDefaults ¶
func (o *ReadServiceParams) SetDefaults()
SetDefaults hydrates default values in the read service params (not the query body).
All values with no default are reset to their zero value.
func (*ReadServiceParams) SetHTTPClient ¶
func (o *ReadServiceParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the read service params
func (*ReadServiceParams) SetSlug ¶
func (o *ReadServiceParams) SetSlug(slug string)
SetSlug adds the slug to the read service params
func (*ReadServiceParams) SetTimeout ¶
func (o *ReadServiceParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the read service params
func (*ReadServiceParams) WithContext ¶
func (o *ReadServiceParams) WithContext(ctx context.Context) *ReadServiceParams
WithContext adds the context to the read service params
func (*ReadServiceParams) WithDefaults ¶
func (o *ReadServiceParams) WithDefaults() *ReadServiceParams
WithDefaults hydrates default values in the read service params (not the query body).
All values with no default are reset to their zero value.
func (*ReadServiceParams) WithHTTPClient ¶
func (o *ReadServiceParams) WithHTTPClient(client *http.Client) *ReadServiceParams
WithHTTPClient adds the HTTPClient to the read service params
func (*ReadServiceParams) WithSlug ¶
func (o *ReadServiceParams) WithSlug(slug string) *ReadServiceParams
WithSlug adds the slug to the read service params
func (*ReadServiceParams) WithTimeout ¶
func (o *ReadServiceParams) WithTimeout(timeout time.Duration) *ReadServiceParams
WithTimeout adds the timeout to the read service params
func (*ReadServiceParams) WriteToRequest ¶
func (o *ReadServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ReadServiceReader ¶
type ReadServiceReader struct {
// contains filtered or unexported fields
}
ReadServiceReader is a Reader for the ReadService structure.
func (*ReadServiceReader) ReadResponse ¶
func (o *ReadServiceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateServiceBadRequest ¶
UpdateServiceBadRequest describes a response with status code 400, with default header values.
Cannot update the Service because the request is invalid.
func NewUpdateServiceBadRequest ¶
func NewUpdateServiceBadRequest() *UpdateServiceBadRequest
NewUpdateServiceBadRequest creates a UpdateServiceBadRequest with default headers values
func (*UpdateServiceBadRequest) Code ¶
func (o *UpdateServiceBadRequest) Code() int
Code gets the status code for the update service bad request response
func (*UpdateServiceBadRequest) Error ¶
func (o *UpdateServiceBadRequest) Error() string
func (*UpdateServiceBadRequest) GetPayload ¶
func (o *UpdateServiceBadRequest) GetPayload() *models.APIError
func (*UpdateServiceBadRequest) IsClientError ¶
func (o *UpdateServiceBadRequest) IsClientError() bool
IsClientError returns true when this update service bad request response has a 4xx status code
func (*UpdateServiceBadRequest) IsCode ¶
func (o *UpdateServiceBadRequest) IsCode(code int) bool
IsCode returns true when this update service bad request response a status code equal to that given
func (*UpdateServiceBadRequest) IsRedirect ¶
func (o *UpdateServiceBadRequest) IsRedirect() bool
IsRedirect returns true when this update service bad request response has a 3xx status code
func (*UpdateServiceBadRequest) IsServerError ¶
func (o *UpdateServiceBadRequest) IsServerError() bool
IsServerError returns true when this update service bad request response has a 5xx status code
func (*UpdateServiceBadRequest) IsSuccess ¶
func (o *UpdateServiceBadRequest) IsSuccess() bool
IsSuccess returns true when this update service bad request response has a 2xx status code
func (*UpdateServiceBadRequest) String ¶
func (o *UpdateServiceBadRequest) String() string
type UpdateServiceBody ¶
type UpdateServiceBody struct { // If true, the Service will be created if it does not already exist, identified by slug. If false, an error will be returned if the Service does not already exist. CreateIfMissing bool `json:"create_if_missing,omitempty"` // If true, the Service will not be created nor updated, and no response Service will be returned. The response will return an error if the given Service is invalid. DryRun bool `json:"dry_run,omitempty"` // service Service *models.ConfigunstableService `json:"service,omitempty"` }
UpdateServiceBody update service body swagger:model UpdateServiceBody
func (*UpdateServiceBody) ContextValidate ¶
ContextValidate validate this update service body based on the context it is used
func (*UpdateServiceBody) MarshalBinary ¶
func (o *UpdateServiceBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UpdateServiceBody) UnmarshalBinary ¶
func (o *UpdateServiceBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UpdateServiceConflict ¶
UpdateServiceConflict describes a response with status code 409, with default header values.
Cannot update the Service because there is a conflict with an existing Service.
func NewUpdateServiceConflict ¶
func NewUpdateServiceConflict() *UpdateServiceConflict
NewUpdateServiceConflict creates a UpdateServiceConflict with default headers values
func (*UpdateServiceConflict) Code ¶
func (o *UpdateServiceConflict) Code() int
Code gets the status code for the update service conflict response
func (*UpdateServiceConflict) Error ¶
func (o *UpdateServiceConflict) Error() string
func (*UpdateServiceConflict) GetPayload ¶
func (o *UpdateServiceConflict) GetPayload() *models.APIError
func (*UpdateServiceConflict) IsClientError ¶
func (o *UpdateServiceConflict) IsClientError() bool
IsClientError returns true when this update service conflict response has a 4xx status code
func (*UpdateServiceConflict) IsCode ¶
func (o *UpdateServiceConflict) IsCode(code int) bool
IsCode returns true when this update service conflict response a status code equal to that given
func (*UpdateServiceConflict) IsRedirect ¶
func (o *UpdateServiceConflict) IsRedirect() bool
IsRedirect returns true when this update service conflict response has a 3xx status code
func (*UpdateServiceConflict) IsServerError ¶
func (o *UpdateServiceConflict) IsServerError() bool
IsServerError returns true when this update service conflict response has a 5xx status code
func (*UpdateServiceConflict) IsSuccess ¶
func (o *UpdateServiceConflict) IsSuccess() bool
IsSuccess returns true when this update service conflict response has a 2xx status code
func (*UpdateServiceConflict) String ¶
func (o *UpdateServiceConflict) String() string
type UpdateServiceDefault ¶
type UpdateServiceDefault struct { Payload models.GenericError // contains filtered or unexported fields }
UpdateServiceDefault describes a response with status code -1, with default header values.
An undefined error response.
func NewUpdateServiceDefault ¶
func NewUpdateServiceDefault(code int) *UpdateServiceDefault
NewUpdateServiceDefault creates a UpdateServiceDefault with default headers values
func (*UpdateServiceDefault) Code ¶
func (o *UpdateServiceDefault) Code() int
Code gets the status code for the update service default response
func (*UpdateServiceDefault) Error ¶
func (o *UpdateServiceDefault) Error() string
func (*UpdateServiceDefault) GetPayload ¶
func (o *UpdateServiceDefault) GetPayload() models.GenericError
func (*UpdateServiceDefault) IsClientError ¶
func (o *UpdateServiceDefault) IsClientError() bool
IsClientError returns true when this update service default response has a 4xx status code
func (*UpdateServiceDefault) IsCode ¶
func (o *UpdateServiceDefault) IsCode(code int) bool
IsCode returns true when this update service default response a status code equal to that given
func (*UpdateServiceDefault) IsRedirect ¶
func (o *UpdateServiceDefault) IsRedirect() bool
IsRedirect returns true when this update service default response has a 3xx status code
func (*UpdateServiceDefault) IsServerError ¶
func (o *UpdateServiceDefault) IsServerError() bool
IsServerError returns true when this update service default response has a 5xx status code
func (*UpdateServiceDefault) IsSuccess ¶
func (o *UpdateServiceDefault) IsSuccess() bool
IsSuccess returns true when this update service default response has a 2xx status code
func (*UpdateServiceDefault) String ¶
func (o *UpdateServiceDefault) String() string
type UpdateServiceInternalServerError ¶
UpdateServiceInternalServerError describes a response with status code 500, with default header values.
An unexpected error response.
func NewUpdateServiceInternalServerError ¶
func NewUpdateServiceInternalServerError() *UpdateServiceInternalServerError
NewUpdateServiceInternalServerError creates a UpdateServiceInternalServerError with default headers values
func (*UpdateServiceInternalServerError) Code ¶
func (o *UpdateServiceInternalServerError) Code() int
Code gets the status code for the update service internal server error response
func (*UpdateServiceInternalServerError) Error ¶
func (o *UpdateServiceInternalServerError) Error() string
func (*UpdateServiceInternalServerError) GetPayload ¶
func (o *UpdateServiceInternalServerError) GetPayload() *models.APIError
func (*UpdateServiceInternalServerError) IsClientError ¶
func (o *UpdateServiceInternalServerError) IsClientError() bool
IsClientError returns true when this update service internal server error response has a 4xx status code
func (*UpdateServiceInternalServerError) IsCode ¶
func (o *UpdateServiceInternalServerError) IsCode(code int) bool
IsCode returns true when this update service internal server error response a status code equal to that given
func (*UpdateServiceInternalServerError) IsRedirect ¶
func (o *UpdateServiceInternalServerError) IsRedirect() bool
IsRedirect returns true when this update service internal server error response has a 3xx status code
func (*UpdateServiceInternalServerError) IsServerError ¶
func (o *UpdateServiceInternalServerError) IsServerError() bool
IsServerError returns true when this update service internal server error response has a 5xx status code
func (*UpdateServiceInternalServerError) IsSuccess ¶
func (o *UpdateServiceInternalServerError) IsSuccess() bool
IsSuccess returns true when this update service internal server error response has a 2xx status code
func (*UpdateServiceInternalServerError) String ¶
func (o *UpdateServiceInternalServerError) String() string
type UpdateServiceNotFound ¶
UpdateServiceNotFound describes a response with status code 404, with default header values.
Cannot update the Service because the slug does not exist.
func NewUpdateServiceNotFound ¶
func NewUpdateServiceNotFound() *UpdateServiceNotFound
NewUpdateServiceNotFound creates a UpdateServiceNotFound with default headers values
func (*UpdateServiceNotFound) Code ¶
func (o *UpdateServiceNotFound) Code() int
Code gets the status code for the update service not found response
func (*UpdateServiceNotFound) Error ¶
func (o *UpdateServiceNotFound) Error() string
func (*UpdateServiceNotFound) GetPayload ¶
func (o *UpdateServiceNotFound) GetPayload() *models.APIError
func (*UpdateServiceNotFound) IsClientError ¶
func (o *UpdateServiceNotFound) IsClientError() bool
IsClientError returns true when this update service not found response has a 4xx status code
func (*UpdateServiceNotFound) IsCode ¶
func (o *UpdateServiceNotFound) IsCode(code int) bool
IsCode returns true when this update service not found response a status code equal to that given
func (*UpdateServiceNotFound) IsRedirect ¶
func (o *UpdateServiceNotFound) IsRedirect() bool
IsRedirect returns true when this update service not found response has a 3xx status code
func (*UpdateServiceNotFound) IsServerError ¶
func (o *UpdateServiceNotFound) IsServerError() bool
IsServerError returns true when this update service not found response has a 5xx status code
func (*UpdateServiceNotFound) IsSuccess ¶
func (o *UpdateServiceNotFound) IsSuccess() bool
IsSuccess returns true when this update service not found response has a 2xx status code
func (*UpdateServiceNotFound) String ¶
func (o *UpdateServiceNotFound) String() string
type UpdateServiceOK ¶
type UpdateServiceOK struct {
Payload *models.ConfigunstableUpdateServiceResponse
}
UpdateServiceOK describes a response with status code 200, with default header values.
A successful response containing the updated Service.
func NewUpdateServiceOK ¶
func NewUpdateServiceOK() *UpdateServiceOK
NewUpdateServiceOK creates a UpdateServiceOK with default headers values
func (*UpdateServiceOK) Code ¶
func (o *UpdateServiceOK) Code() int
Code gets the status code for the update service o k response
func (*UpdateServiceOK) Error ¶
func (o *UpdateServiceOK) Error() string
func (*UpdateServiceOK) GetPayload ¶
func (o *UpdateServiceOK) GetPayload() *models.ConfigunstableUpdateServiceResponse
func (*UpdateServiceOK) IsClientError ¶
func (o *UpdateServiceOK) IsClientError() bool
IsClientError returns true when this update service o k response has a 4xx status code
func (*UpdateServiceOK) IsCode ¶
func (o *UpdateServiceOK) IsCode(code int) bool
IsCode returns true when this update service o k response a status code equal to that given
func (*UpdateServiceOK) IsRedirect ¶
func (o *UpdateServiceOK) IsRedirect() bool
IsRedirect returns true when this update service o k response has a 3xx status code
func (*UpdateServiceOK) IsServerError ¶
func (o *UpdateServiceOK) IsServerError() bool
IsServerError returns true when this update service o k response has a 5xx status code
func (*UpdateServiceOK) IsSuccess ¶
func (o *UpdateServiceOK) IsSuccess() bool
IsSuccess returns true when this update service o k response has a 2xx status code
func (*UpdateServiceOK) String ¶
func (o *UpdateServiceOK) String() string
type UpdateServiceParams ¶
type UpdateServiceParams struct { // Body. Body UpdateServiceBody // Slug. Slug string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateServiceParams contains all the parameters to send to the API endpoint
for the update service operation. Typically these are written to a http.Request.
func NewUpdateServiceParams ¶
func NewUpdateServiceParams() *UpdateServiceParams
NewUpdateServiceParams creates a new UpdateServiceParams 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 NewUpdateServiceParamsWithContext ¶
func NewUpdateServiceParamsWithContext(ctx context.Context) *UpdateServiceParams
NewUpdateServiceParamsWithContext creates a new UpdateServiceParams object with the ability to set a context for a request.
func NewUpdateServiceParamsWithHTTPClient ¶
func NewUpdateServiceParamsWithHTTPClient(client *http.Client) *UpdateServiceParams
NewUpdateServiceParamsWithHTTPClient creates a new UpdateServiceParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateServiceParamsWithTimeout ¶
func NewUpdateServiceParamsWithTimeout(timeout time.Duration) *UpdateServiceParams
NewUpdateServiceParamsWithTimeout creates a new UpdateServiceParams object with the ability to set a timeout on a request.
func (*UpdateServiceParams) SetBody ¶
func (o *UpdateServiceParams) SetBody(body UpdateServiceBody)
SetBody adds the body to the update service params
func (*UpdateServiceParams) SetContext ¶
func (o *UpdateServiceParams) SetContext(ctx context.Context)
SetContext adds the context to the update service params
func (*UpdateServiceParams) SetDefaults ¶
func (o *UpdateServiceParams) SetDefaults()
SetDefaults hydrates default values in the update service params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateServiceParams) SetHTTPClient ¶
func (o *UpdateServiceParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update service params
func (*UpdateServiceParams) SetSlug ¶
func (o *UpdateServiceParams) SetSlug(slug string)
SetSlug adds the slug to the update service params
func (*UpdateServiceParams) SetTimeout ¶
func (o *UpdateServiceParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update service params
func (*UpdateServiceParams) WithBody ¶
func (o *UpdateServiceParams) WithBody(body UpdateServiceBody) *UpdateServiceParams
WithBody adds the body to the update service params
func (*UpdateServiceParams) WithContext ¶
func (o *UpdateServiceParams) WithContext(ctx context.Context) *UpdateServiceParams
WithContext adds the context to the update service params
func (*UpdateServiceParams) WithDefaults ¶
func (o *UpdateServiceParams) WithDefaults() *UpdateServiceParams
WithDefaults hydrates default values in the update service params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateServiceParams) WithHTTPClient ¶
func (o *UpdateServiceParams) WithHTTPClient(client *http.Client) *UpdateServiceParams
WithHTTPClient adds the HTTPClient to the update service params
func (*UpdateServiceParams) WithSlug ¶
func (o *UpdateServiceParams) WithSlug(slug string) *UpdateServiceParams
WithSlug adds the slug to the update service params
func (*UpdateServiceParams) WithTimeout ¶
func (o *UpdateServiceParams) WithTimeout(timeout time.Duration) *UpdateServiceParams
WithTimeout adds the timeout to the update service params
func (*UpdateServiceParams) WriteToRequest ¶
func (o *UpdateServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateServiceReader ¶
type UpdateServiceReader struct {
// contains filtered or unexported fields
}
UpdateServiceReader is a Reader for the UpdateService structure.
func (*UpdateServiceReader) ReadResponse ¶
func (o *UpdateServiceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.