Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateSegment(params *CreateSegmentParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateSegmentCreated, error)
- func (a *Client) DeleteSegment(params *DeleteSegmentParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteSegmentNoContent, error)
- func (a *Client) GetSegment(params *GetSegmentParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetSegmentOK, error)
- func (a *Client) GetSegments(params *GetSegmentsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetSegmentsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateSegment(params *UpdateSegmentParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateSegmentOK, error)
- type ClientOption
- type ClientService
- type CreateSegmentBadRequest
- func (o *CreateSegmentBadRequest) Code() int
- func (o *CreateSegmentBadRequest) Error() string
- func (o *CreateSegmentBadRequest) GetPayload() *models.Errors
- func (o *CreateSegmentBadRequest) IsClientError() bool
- func (o *CreateSegmentBadRequest) IsCode(code int) bool
- func (o *CreateSegmentBadRequest) IsRedirect() bool
- func (o *CreateSegmentBadRequest) IsServerError() bool
- func (o *CreateSegmentBadRequest) IsSuccess() bool
- func (o *CreateSegmentBadRequest) String() string
- type CreateSegmentCreated
- func (o *CreateSegmentCreated) Code() int
- func (o *CreateSegmentCreated) Error() string
- func (o *CreateSegmentCreated) GetPayload() *models.Segment
- func (o *CreateSegmentCreated) IsClientError() bool
- func (o *CreateSegmentCreated) IsCode(code int) bool
- func (o *CreateSegmentCreated) IsRedirect() bool
- func (o *CreateSegmentCreated) IsServerError() bool
- func (o *CreateSegmentCreated) IsSuccess() bool
- func (o *CreateSegmentCreated) String() string
- type CreateSegmentParams
- func (o *CreateSegmentParams) SetContext(ctx context.Context)
- func (o *CreateSegmentParams) SetDefaults()
- func (o *CreateSegmentParams) SetHTTPClient(client *http.Client)
- func (o *CreateSegmentParams) SetSegments(segments *models.PostSegments)
- func (o *CreateSegmentParams) SetTimeout(timeout time.Duration)
- func (o *CreateSegmentParams) WithContext(ctx context.Context) *CreateSegmentParams
- func (o *CreateSegmentParams) WithDefaults() *CreateSegmentParams
- func (o *CreateSegmentParams) WithHTTPClient(client *http.Client) *CreateSegmentParams
- func (o *CreateSegmentParams) WithSegments(segments *models.PostSegments) *CreateSegmentParams
- func (o *CreateSegmentParams) WithTimeout(timeout time.Duration) *CreateSegmentParams
- func (o *CreateSegmentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateSegmentReader
- type CreateSegmentUnprocessableEntity
- func (o *CreateSegmentUnprocessableEntity) Code() int
- func (o *CreateSegmentUnprocessableEntity) Error() string
- func (o *CreateSegmentUnprocessableEntity) GetPayload() *models.Errors
- func (o *CreateSegmentUnprocessableEntity) IsClientError() bool
- func (o *CreateSegmentUnprocessableEntity) IsCode(code int) bool
- func (o *CreateSegmentUnprocessableEntity) IsRedirect() bool
- func (o *CreateSegmentUnprocessableEntity) IsServerError() bool
- func (o *CreateSegmentUnprocessableEntity) IsSuccess() bool
- func (o *CreateSegmentUnprocessableEntity) String() string
- type DeleteSegmentNoContent
- func (o *DeleteSegmentNoContent) Code() int
- func (o *DeleteSegmentNoContent) Error() string
- func (o *DeleteSegmentNoContent) GetPayload() *models.Segment
- func (o *DeleteSegmentNoContent) IsClientError() bool
- func (o *DeleteSegmentNoContent) IsCode(code int) bool
- func (o *DeleteSegmentNoContent) IsRedirect() bool
- func (o *DeleteSegmentNoContent) IsServerError() bool
- func (o *DeleteSegmentNoContent) IsSuccess() bool
- func (o *DeleteSegmentNoContent) String() string
- type DeleteSegmentNotFound
- func (o *DeleteSegmentNotFound) Code() int
- func (o *DeleteSegmentNotFound) Error() string
- func (o *DeleteSegmentNotFound) GetPayload() *models.Errors
- func (o *DeleteSegmentNotFound) IsClientError() bool
- func (o *DeleteSegmentNotFound) IsCode(code int) bool
- func (o *DeleteSegmentNotFound) IsRedirect() bool
- func (o *DeleteSegmentNotFound) IsServerError() bool
- func (o *DeleteSegmentNotFound) IsSuccess() bool
- func (o *DeleteSegmentNotFound) String() string
- type DeleteSegmentParams
- func (o *DeleteSegmentParams) SetContext(ctx context.Context)
- func (o *DeleteSegmentParams) SetDefaults()
- func (o *DeleteSegmentParams) SetHTTPClient(client *http.Client)
- func (o *DeleteSegmentParams) SetSegmentToken(segmentToken string)
- func (o *DeleteSegmentParams) SetTimeout(timeout time.Duration)
- func (o *DeleteSegmentParams) WithContext(ctx context.Context) *DeleteSegmentParams
- func (o *DeleteSegmentParams) WithDefaults() *DeleteSegmentParams
- func (o *DeleteSegmentParams) WithHTTPClient(client *http.Client) *DeleteSegmentParams
- func (o *DeleteSegmentParams) WithSegmentToken(segmentToken string) *DeleteSegmentParams
- func (o *DeleteSegmentParams) WithTimeout(timeout time.Duration) *DeleteSegmentParams
- func (o *DeleteSegmentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteSegmentReader
- type GetSegmentNotFound
- func (o *GetSegmentNotFound) Code() int
- func (o *GetSegmentNotFound) Error() string
- func (o *GetSegmentNotFound) GetPayload() *models.Errors
- func (o *GetSegmentNotFound) IsClientError() bool
- func (o *GetSegmentNotFound) IsCode(code int) bool
- func (o *GetSegmentNotFound) IsRedirect() bool
- func (o *GetSegmentNotFound) IsServerError() bool
- func (o *GetSegmentNotFound) IsSuccess() bool
- func (o *GetSegmentNotFound) String() string
- type GetSegmentOK
- func (o *GetSegmentOK) Code() int
- func (o *GetSegmentOK) Error() string
- func (o *GetSegmentOK) GetPayload() *models.Segment
- func (o *GetSegmentOK) IsClientError() bool
- func (o *GetSegmentOK) IsCode(code int) bool
- func (o *GetSegmentOK) IsRedirect() bool
- func (o *GetSegmentOK) IsServerError() bool
- func (o *GetSegmentOK) IsSuccess() bool
- func (o *GetSegmentOK) String() string
- type GetSegmentParams
- func (o *GetSegmentParams) SetContext(ctx context.Context)
- func (o *GetSegmentParams) SetDefaults()
- func (o *GetSegmentParams) SetHTTPClient(client *http.Client)
- func (o *GetSegmentParams) SetSegmentToken(segmentToken string)
- func (o *GetSegmentParams) SetTimeout(timeout time.Duration)
- func (o *GetSegmentParams) WithContext(ctx context.Context) *GetSegmentParams
- func (o *GetSegmentParams) WithDefaults() *GetSegmentParams
- func (o *GetSegmentParams) WithHTTPClient(client *http.Client) *GetSegmentParams
- func (o *GetSegmentParams) WithSegmentToken(segmentToken string) *GetSegmentParams
- func (o *GetSegmentParams) WithTimeout(timeout time.Duration) *GetSegmentParams
- func (o *GetSegmentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSegmentReader
- type GetSegmentsOK
- func (o *GetSegmentsOK) Code() int
- func (o *GetSegmentsOK) Error() string
- func (o *GetSegmentsOK) GetPayload() *models.Segments
- func (o *GetSegmentsOK) IsClientError() bool
- func (o *GetSegmentsOK) IsCode(code int) bool
- func (o *GetSegmentsOK) IsRedirect() bool
- func (o *GetSegmentsOK) IsServerError() bool
- func (o *GetSegmentsOK) IsSuccess() bool
- func (o *GetSegmentsOK) String() string
- type GetSegmentsParams
- func (o *GetSegmentsParams) SetContext(ctx context.Context)
- func (o *GetSegmentsParams) SetDefaults()
- func (o *GetSegmentsParams) SetHTTPClient(client *http.Client)
- func (o *GetSegmentsParams) SetLimit(limit *int32)
- func (o *GetSegmentsParams) SetPage(page *int32)
- func (o *GetSegmentsParams) SetTimeout(timeout time.Duration)
- func (o *GetSegmentsParams) WithContext(ctx context.Context) *GetSegmentsParams
- func (o *GetSegmentsParams) WithDefaults() *GetSegmentsParams
- func (o *GetSegmentsParams) WithHTTPClient(client *http.Client) *GetSegmentsParams
- func (o *GetSegmentsParams) WithLimit(limit *int32) *GetSegmentsParams
- func (o *GetSegmentsParams) WithPage(page *int32) *GetSegmentsParams
- func (o *GetSegmentsParams) WithTimeout(timeout time.Duration) *GetSegmentsParams
- func (o *GetSegmentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSegmentsReader
- type UpdateSegmentBadRequest
- func (o *UpdateSegmentBadRequest) Code() int
- func (o *UpdateSegmentBadRequest) Error() string
- func (o *UpdateSegmentBadRequest) GetPayload() *models.Errors
- func (o *UpdateSegmentBadRequest) IsClientError() bool
- func (o *UpdateSegmentBadRequest) IsCode(code int) bool
- func (o *UpdateSegmentBadRequest) IsRedirect() bool
- func (o *UpdateSegmentBadRequest) IsServerError() bool
- func (o *UpdateSegmentBadRequest) IsSuccess() bool
- func (o *UpdateSegmentBadRequest) String() string
- type UpdateSegmentNotFound
- func (o *UpdateSegmentNotFound) Code() int
- func (o *UpdateSegmentNotFound) Error() string
- func (o *UpdateSegmentNotFound) GetPayload() *models.Errors
- func (o *UpdateSegmentNotFound) IsClientError() bool
- func (o *UpdateSegmentNotFound) IsCode(code int) bool
- func (o *UpdateSegmentNotFound) IsRedirect() bool
- func (o *UpdateSegmentNotFound) IsServerError() bool
- func (o *UpdateSegmentNotFound) IsSuccess() bool
- func (o *UpdateSegmentNotFound) String() string
- type UpdateSegmentOK
- func (o *UpdateSegmentOK) Code() int
- func (o *UpdateSegmentOK) Error() string
- func (o *UpdateSegmentOK) GetPayload() *models.Segment
- func (o *UpdateSegmentOK) IsClientError() bool
- func (o *UpdateSegmentOK) IsCode(code int) bool
- func (o *UpdateSegmentOK) IsRedirect() bool
- func (o *UpdateSegmentOK) IsServerError() bool
- func (o *UpdateSegmentOK) IsSuccess() bool
- func (o *UpdateSegmentOK) String() string
- type UpdateSegmentParams
- func (o *UpdateSegmentParams) SetContext(ctx context.Context)
- func (o *UpdateSegmentParams) SetDefaults()
- func (o *UpdateSegmentParams) SetHTTPClient(client *http.Client)
- func (o *UpdateSegmentParams) SetSegmentToken(segmentToken string)
- func (o *UpdateSegmentParams) SetSegments(segments *models.PutSegments)
- func (o *UpdateSegmentParams) SetTimeout(timeout time.Duration)
- func (o *UpdateSegmentParams) WithContext(ctx context.Context) *UpdateSegmentParams
- func (o *UpdateSegmentParams) WithDefaults() *UpdateSegmentParams
- func (o *UpdateSegmentParams) WithHTTPClient(client *http.Client) *UpdateSegmentParams
- func (o *UpdateSegmentParams) WithSegmentToken(segmentToken string) *UpdateSegmentParams
- func (o *UpdateSegmentParams) WithSegments(segments *models.PutSegments) *UpdateSegmentParams
- func (o *UpdateSegmentParams) WithTimeout(timeout time.Duration) *UpdateSegmentParams
- func (o *UpdateSegmentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateSegmentReader
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 segments API
func (*Client) CreateSegment ¶
func (a *Client) CreateSegment(params *CreateSegmentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateSegmentCreated, error)
CreateSegment Create a Segment.
func (*Client) DeleteSegment ¶
func (a *Client) DeleteSegment(params *DeleteSegmentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSegmentNoContent, error)
DeleteSegment Delete a Segment.
func (*Client) GetSegment ¶
func (a *Client) GetSegment(params *GetSegmentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSegmentOK, error)
GetSegment Return a Segment.
func (*Client) GetSegments ¶
func (a *Client) GetSegments(params *GetSegmentsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSegmentsOK, error)
GetSegments Return all Segments.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateSegment ¶
func (a *Client) UpdateSegment(params *UpdateSegmentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateSegmentOK, error)
UpdateSegment Update a Segment.
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { CreateSegment(params *CreateSegmentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateSegmentCreated, error) DeleteSegment(params *DeleteSegmentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSegmentNoContent, error) GetSegment(params *GetSegmentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSegmentOK, error) GetSegments(params *GetSegmentsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSegmentsOK, error) UpdateSegment(params *UpdateSegmentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateSegmentOK, 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 segments API client.
type CreateSegmentBadRequest ¶
CreateSegmentBadRequest describes a response with status code 400, with default header values.
BadRequest
func NewCreateSegmentBadRequest ¶
func NewCreateSegmentBadRequest() *CreateSegmentBadRequest
NewCreateSegmentBadRequest creates a CreateSegmentBadRequest with default headers values
func (*CreateSegmentBadRequest) Code ¶
func (o *CreateSegmentBadRequest) Code() int
Code gets the status code for the create segment bad request response
func (*CreateSegmentBadRequest) Error ¶
func (o *CreateSegmentBadRequest) Error() string
func (*CreateSegmentBadRequest) GetPayload ¶
func (o *CreateSegmentBadRequest) GetPayload() *models.Errors
func (*CreateSegmentBadRequest) IsClientError ¶
func (o *CreateSegmentBadRequest) IsClientError() bool
IsClientError returns true when this create segment bad request response has a 4xx status code
func (*CreateSegmentBadRequest) IsCode ¶
func (o *CreateSegmentBadRequest) IsCode(code int) bool
IsCode returns true when this create segment bad request response a status code equal to that given
func (*CreateSegmentBadRequest) IsRedirect ¶
func (o *CreateSegmentBadRequest) IsRedirect() bool
IsRedirect returns true when this create segment bad request response has a 3xx status code
func (*CreateSegmentBadRequest) IsServerError ¶
func (o *CreateSegmentBadRequest) IsServerError() bool
IsServerError returns true when this create segment bad request response has a 5xx status code
func (*CreateSegmentBadRequest) IsSuccess ¶
func (o *CreateSegmentBadRequest) IsSuccess() bool
IsSuccess returns true when this create segment bad request response has a 2xx status code
func (*CreateSegmentBadRequest) String ¶
func (o *CreateSegmentBadRequest) String() string
type CreateSegmentCreated ¶
CreateSegmentCreated describes a response with status code 201, with default header values.
CreateSegmentCreated create segment created
func NewCreateSegmentCreated ¶
func NewCreateSegmentCreated() *CreateSegmentCreated
NewCreateSegmentCreated creates a CreateSegmentCreated with default headers values
func (*CreateSegmentCreated) Code ¶
func (o *CreateSegmentCreated) Code() int
Code gets the status code for the create segment created response
func (*CreateSegmentCreated) Error ¶
func (o *CreateSegmentCreated) Error() string
func (*CreateSegmentCreated) GetPayload ¶
func (o *CreateSegmentCreated) GetPayload() *models.Segment
func (*CreateSegmentCreated) IsClientError ¶
func (o *CreateSegmentCreated) IsClientError() bool
IsClientError returns true when this create segment created response has a 4xx status code
func (*CreateSegmentCreated) IsCode ¶
func (o *CreateSegmentCreated) IsCode(code int) bool
IsCode returns true when this create segment created response a status code equal to that given
func (*CreateSegmentCreated) IsRedirect ¶
func (o *CreateSegmentCreated) IsRedirect() bool
IsRedirect returns true when this create segment created response has a 3xx status code
func (*CreateSegmentCreated) IsServerError ¶
func (o *CreateSegmentCreated) IsServerError() bool
IsServerError returns true when this create segment created response has a 5xx status code
func (*CreateSegmentCreated) IsSuccess ¶
func (o *CreateSegmentCreated) IsSuccess() bool
IsSuccess returns true when this create segment created response has a 2xx status code
func (*CreateSegmentCreated) String ¶
func (o *CreateSegmentCreated) String() string
type CreateSegmentParams ¶
type CreateSegmentParams struct { // Segments. Segments *models.PostSegments Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateSegmentParams contains all the parameters to send to the API endpoint
for the create segment operation. Typically these are written to a http.Request.
func NewCreateSegmentParams ¶
func NewCreateSegmentParams() *CreateSegmentParams
NewCreateSegmentParams creates a new CreateSegmentParams 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 NewCreateSegmentParamsWithContext ¶
func NewCreateSegmentParamsWithContext(ctx context.Context) *CreateSegmentParams
NewCreateSegmentParamsWithContext creates a new CreateSegmentParams object with the ability to set a context for a request.
func NewCreateSegmentParamsWithHTTPClient ¶
func NewCreateSegmentParamsWithHTTPClient(client *http.Client) *CreateSegmentParams
NewCreateSegmentParamsWithHTTPClient creates a new CreateSegmentParams object with the ability to set a custom HTTPClient for a request.
func NewCreateSegmentParamsWithTimeout ¶
func NewCreateSegmentParamsWithTimeout(timeout time.Duration) *CreateSegmentParams
NewCreateSegmentParamsWithTimeout creates a new CreateSegmentParams object with the ability to set a timeout on a request.
func (*CreateSegmentParams) SetContext ¶
func (o *CreateSegmentParams) SetContext(ctx context.Context)
SetContext adds the context to the create segment params
func (*CreateSegmentParams) SetDefaults ¶
func (o *CreateSegmentParams) SetDefaults()
SetDefaults hydrates default values in the create segment params (not the query body).
All values with no default are reset to their zero value.
func (*CreateSegmentParams) SetHTTPClient ¶
func (o *CreateSegmentParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create segment params
func (*CreateSegmentParams) SetSegments ¶
func (o *CreateSegmentParams) SetSegments(segments *models.PostSegments)
SetSegments adds the segments to the create segment params
func (*CreateSegmentParams) SetTimeout ¶
func (o *CreateSegmentParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create segment params
func (*CreateSegmentParams) WithContext ¶
func (o *CreateSegmentParams) WithContext(ctx context.Context) *CreateSegmentParams
WithContext adds the context to the create segment params
func (*CreateSegmentParams) WithDefaults ¶
func (o *CreateSegmentParams) WithDefaults() *CreateSegmentParams
WithDefaults hydrates default values in the create segment params (not the query body).
All values with no default are reset to their zero value.
func (*CreateSegmentParams) WithHTTPClient ¶
func (o *CreateSegmentParams) WithHTTPClient(client *http.Client) *CreateSegmentParams
WithHTTPClient adds the HTTPClient to the create segment params
func (*CreateSegmentParams) WithSegments ¶
func (o *CreateSegmentParams) WithSegments(segments *models.PostSegments) *CreateSegmentParams
WithSegments adds the segments to the create segment params
func (*CreateSegmentParams) WithTimeout ¶
func (o *CreateSegmentParams) WithTimeout(timeout time.Duration) *CreateSegmentParams
WithTimeout adds the timeout to the create segment params
func (*CreateSegmentParams) WriteToRequest ¶
func (o *CreateSegmentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateSegmentReader ¶
type CreateSegmentReader struct {
// contains filtered or unexported fields
}
CreateSegmentReader is a Reader for the CreateSegment structure.
func (*CreateSegmentReader) ReadResponse ¶
func (o *CreateSegmentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateSegmentUnprocessableEntity ¶
CreateSegmentUnprocessableEntity describes a response with status code 422, with default header values.
UnprocessableEntity
func NewCreateSegmentUnprocessableEntity ¶
func NewCreateSegmentUnprocessableEntity() *CreateSegmentUnprocessableEntity
NewCreateSegmentUnprocessableEntity creates a CreateSegmentUnprocessableEntity with default headers values
func (*CreateSegmentUnprocessableEntity) Code ¶
func (o *CreateSegmentUnprocessableEntity) Code() int
Code gets the status code for the create segment unprocessable entity response
func (*CreateSegmentUnprocessableEntity) Error ¶
func (o *CreateSegmentUnprocessableEntity) Error() string
func (*CreateSegmentUnprocessableEntity) GetPayload ¶
func (o *CreateSegmentUnprocessableEntity) GetPayload() *models.Errors
func (*CreateSegmentUnprocessableEntity) IsClientError ¶
func (o *CreateSegmentUnprocessableEntity) IsClientError() bool
IsClientError returns true when this create segment unprocessable entity response has a 4xx status code
func (*CreateSegmentUnprocessableEntity) IsCode ¶
func (o *CreateSegmentUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this create segment unprocessable entity response a status code equal to that given
func (*CreateSegmentUnprocessableEntity) IsRedirect ¶
func (o *CreateSegmentUnprocessableEntity) IsRedirect() bool
IsRedirect returns true when this create segment unprocessable entity response has a 3xx status code
func (*CreateSegmentUnprocessableEntity) IsServerError ¶
func (o *CreateSegmentUnprocessableEntity) IsServerError() bool
IsServerError returns true when this create segment unprocessable entity response has a 5xx status code
func (*CreateSegmentUnprocessableEntity) IsSuccess ¶
func (o *CreateSegmentUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this create segment unprocessable entity response has a 2xx status code
func (*CreateSegmentUnprocessableEntity) String ¶
func (o *CreateSegmentUnprocessableEntity) String() string
type DeleteSegmentNoContent ¶
DeleteSegmentNoContent describes a response with status code 204, with default header values.
DeleteSegmentNoContent delete segment no content
func NewDeleteSegmentNoContent ¶
func NewDeleteSegmentNoContent() *DeleteSegmentNoContent
NewDeleteSegmentNoContent creates a DeleteSegmentNoContent with default headers values
func (*DeleteSegmentNoContent) Code ¶
func (o *DeleteSegmentNoContent) Code() int
Code gets the status code for the delete segment no content response
func (*DeleteSegmentNoContent) Error ¶
func (o *DeleteSegmentNoContent) Error() string
func (*DeleteSegmentNoContent) GetPayload ¶
func (o *DeleteSegmentNoContent) GetPayload() *models.Segment
func (*DeleteSegmentNoContent) IsClientError ¶
func (o *DeleteSegmentNoContent) IsClientError() bool
IsClientError returns true when this delete segment no content response has a 4xx status code
func (*DeleteSegmentNoContent) IsCode ¶
func (o *DeleteSegmentNoContent) IsCode(code int) bool
IsCode returns true when this delete segment no content response a status code equal to that given
func (*DeleteSegmentNoContent) IsRedirect ¶
func (o *DeleteSegmentNoContent) IsRedirect() bool
IsRedirect returns true when this delete segment no content response has a 3xx status code
func (*DeleteSegmentNoContent) IsServerError ¶
func (o *DeleteSegmentNoContent) IsServerError() bool
IsServerError returns true when this delete segment no content response has a 5xx status code
func (*DeleteSegmentNoContent) IsSuccess ¶
func (o *DeleteSegmentNoContent) IsSuccess() bool
IsSuccess returns true when this delete segment no content response has a 2xx status code
func (*DeleteSegmentNoContent) String ¶
func (o *DeleteSegmentNoContent) String() string
type DeleteSegmentNotFound ¶
DeleteSegmentNotFound describes a response with status code 404, with default header values.
NotFound
func NewDeleteSegmentNotFound ¶
func NewDeleteSegmentNotFound() *DeleteSegmentNotFound
NewDeleteSegmentNotFound creates a DeleteSegmentNotFound with default headers values
func (*DeleteSegmentNotFound) Code ¶
func (o *DeleteSegmentNotFound) Code() int
Code gets the status code for the delete segment not found response
func (*DeleteSegmentNotFound) Error ¶
func (o *DeleteSegmentNotFound) Error() string
func (*DeleteSegmentNotFound) GetPayload ¶
func (o *DeleteSegmentNotFound) GetPayload() *models.Errors
func (*DeleteSegmentNotFound) IsClientError ¶
func (o *DeleteSegmentNotFound) IsClientError() bool
IsClientError returns true when this delete segment not found response has a 4xx status code
func (*DeleteSegmentNotFound) IsCode ¶
func (o *DeleteSegmentNotFound) IsCode(code int) bool
IsCode returns true when this delete segment not found response a status code equal to that given
func (*DeleteSegmentNotFound) IsRedirect ¶
func (o *DeleteSegmentNotFound) IsRedirect() bool
IsRedirect returns true when this delete segment not found response has a 3xx status code
func (*DeleteSegmentNotFound) IsServerError ¶
func (o *DeleteSegmentNotFound) IsServerError() bool
IsServerError returns true when this delete segment not found response has a 5xx status code
func (*DeleteSegmentNotFound) IsSuccess ¶
func (o *DeleteSegmentNotFound) IsSuccess() bool
IsSuccess returns true when this delete segment not found response has a 2xx status code
func (*DeleteSegmentNotFound) String ¶
func (o *DeleteSegmentNotFound) String() string
type DeleteSegmentParams ¶
type DeleteSegmentParams struct { // SegmentToken. SegmentToken string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteSegmentParams contains all the parameters to send to the API endpoint
for the delete segment operation. Typically these are written to a http.Request.
func NewDeleteSegmentParams ¶
func NewDeleteSegmentParams() *DeleteSegmentParams
NewDeleteSegmentParams creates a new DeleteSegmentParams 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 NewDeleteSegmentParamsWithContext ¶
func NewDeleteSegmentParamsWithContext(ctx context.Context) *DeleteSegmentParams
NewDeleteSegmentParamsWithContext creates a new DeleteSegmentParams object with the ability to set a context for a request.
func NewDeleteSegmentParamsWithHTTPClient ¶
func NewDeleteSegmentParamsWithHTTPClient(client *http.Client) *DeleteSegmentParams
NewDeleteSegmentParamsWithHTTPClient creates a new DeleteSegmentParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteSegmentParamsWithTimeout ¶
func NewDeleteSegmentParamsWithTimeout(timeout time.Duration) *DeleteSegmentParams
NewDeleteSegmentParamsWithTimeout creates a new DeleteSegmentParams object with the ability to set a timeout on a request.
func (*DeleteSegmentParams) SetContext ¶
func (o *DeleteSegmentParams) SetContext(ctx context.Context)
SetContext adds the context to the delete segment params
func (*DeleteSegmentParams) SetDefaults ¶
func (o *DeleteSegmentParams) SetDefaults()
SetDefaults hydrates default values in the delete segment params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteSegmentParams) SetHTTPClient ¶
func (o *DeleteSegmentParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete segment params
func (*DeleteSegmentParams) SetSegmentToken ¶
func (o *DeleteSegmentParams) SetSegmentToken(segmentToken string)
SetSegmentToken adds the segmentToken to the delete segment params
func (*DeleteSegmentParams) SetTimeout ¶
func (o *DeleteSegmentParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete segment params
func (*DeleteSegmentParams) WithContext ¶
func (o *DeleteSegmentParams) WithContext(ctx context.Context) *DeleteSegmentParams
WithContext adds the context to the delete segment params
func (*DeleteSegmentParams) WithDefaults ¶
func (o *DeleteSegmentParams) WithDefaults() *DeleteSegmentParams
WithDefaults hydrates default values in the delete segment params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteSegmentParams) WithHTTPClient ¶
func (o *DeleteSegmentParams) WithHTTPClient(client *http.Client) *DeleteSegmentParams
WithHTTPClient adds the HTTPClient to the delete segment params
func (*DeleteSegmentParams) WithSegmentToken ¶
func (o *DeleteSegmentParams) WithSegmentToken(segmentToken string) *DeleteSegmentParams
WithSegmentToken adds the segmentToken to the delete segment params
func (*DeleteSegmentParams) WithTimeout ¶
func (o *DeleteSegmentParams) WithTimeout(timeout time.Duration) *DeleteSegmentParams
WithTimeout adds the timeout to the delete segment params
func (*DeleteSegmentParams) WriteToRequest ¶
func (o *DeleteSegmentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteSegmentReader ¶
type DeleteSegmentReader struct {
// contains filtered or unexported fields
}
DeleteSegmentReader is a Reader for the DeleteSegment structure.
func (*DeleteSegmentReader) ReadResponse ¶
func (o *DeleteSegmentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetSegmentNotFound ¶
GetSegmentNotFound describes a response with status code 404, with default header values.
NotFound
func NewGetSegmentNotFound ¶
func NewGetSegmentNotFound() *GetSegmentNotFound
NewGetSegmentNotFound creates a GetSegmentNotFound with default headers values
func (*GetSegmentNotFound) Code ¶
func (o *GetSegmentNotFound) Code() int
Code gets the status code for the get segment not found response
func (*GetSegmentNotFound) Error ¶
func (o *GetSegmentNotFound) Error() string
func (*GetSegmentNotFound) GetPayload ¶
func (o *GetSegmentNotFound) GetPayload() *models.Errors
func (*GetSegmentNotFound) IsClientError ¶
func (o *GetSegmentNotFound) IsClientError() bool
IsClientError returns true when this get segment not found response has a 4xx status code
func (*GetSegmentNotFound) IsCode ¶
func (o *GetSegmentNotFound) IsCode(code int) bool
IsCode returns true when this get segment not found response a status code equal to that given
func (*GetSegmentNotFound) IsRedirect ¶
func (o *GetSegmentNotFound) IsRedirect() bool
IsRedirect returns true when this get segment not found response has a 3xx status code
func (*GetSegmentNotFound) IsServerError ¶
func (o *GetSegmentNotFound) IsServerError() bool
IsServerError returns true when this get segment not found response has a 5xx status code
func (*GetSegmentNotFound) IsSuccess ¶
func (o *GetSegmentNotFound) IsSuccess() bool
IsSuccess returns true when this get segment not found response has a 2xx status code
func (*GetSegmentNotFound) String ¶
func (o *GetSegmentNotFound) String() string
type GetSegmentOK ¶
GetSegmentOK describes a response with status code 200, with default header values.
GetSegmentOK get segment o k
func NewGetSegmentOK ¶
func NewGetSegmentOK() *GetSegmentOK
NewGetSegmentOK creates a GetSegmentOK with default headers values
func (*GetSegmentOK) Code ¶
func (o *GetSegmentOK) Code() int
Code gets the status code for the get segment o k response
func (*GetSegmentOK) Error ¶
func (o *GetSegmentOK) Error() string
func (*GetSegmentOK) GetPayload ¶
func (o *GetSegmentOK) GetPayload() *models.Segment
func (*GetSegmentOK) IsClientError ¶
func (o *GetSegmentOK) IsClientError() bool
IsClientError returns true when this get segment o k response has a 4xx status code
func (*GetSegmentOK) IsCode ¶
func (o *GetSegmentOK) IsCode(code int) bool
IsCode returns true when this get segment o k response a status code equal to that given
func (*GetSegmentOK) IsRedirect ¶
func (o *GetSegmentOK) IsRedirect() bool
IsRedirect returns true when this get segment o k response has a 3xx status code
func (*GetSegmentOK) IsServerError ¶
func (o *GetSegmentOK) IsServerError() bool
IsServerError returns true when this get segment o k response has a 5xx status code
func (*GetSegmentOK) IsSuccess ¶
func (o *GetSegmentOK) IsSuccess() bool
IsSuccess returns true when this get segment o k response has a 2xx status code
func (*GetSegmentOK) String ¶
func (o *GetSegmentOK) String() string
type GetSegmentParams ¶
type GetSegmentParams struct { // SegmentToken. SegmentToken string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetSegmentParams contains all the parameters to send to the API endpoint
for the get segment operation. Typically these are written to a http.Request.
func NewGetSegmentParams ¶
func NewGetSegmentParams() *GetSegmentParams
NewGetSegmentParams creates a new GetSegmentParams 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 NewGetSegmentParamsWithContext ¶
func NewGetSegmentParamsWithContext(ctx context.Context) *GetSegmentParams
NewGetSegmentParamsWithContext creates a new GetSegmentParams object with the ability to set a context for a request.
func NewGetSegmentParamsWithHTTPClient ¶
func NewGetSegmentParamsWithHTTPClient(client *http.Client) *GetSegmentParams
NewGetSegmentParamsWithHTTPClient creates a new GetSegmentParams object with the ability to set a custom HTTPClient for a request.
func NewGetSegmentParamsWithTimeout ¶
func NewGetSegmentParamsWithTimeout(timeout time.Duration) *GetSegmentParams
NewGetSegmentParamsWithTimeout creates a new GetSegmentParams object with the ability to set a timeout on a request.
func (*GetSegmentParams) SetContext ¶
func (o *GetSegmentParams) SetContext(ctx context.Context)
SetContext adds the context to the get segment params
func (*GetSegmentParams) SetDefaults ¶
func (o *GetSegmentParams) SetDefaults()
SetDefaults hydrates default values in the get segment params (not the query body).
All values with no default are reset to their zero value.
func (*GetSegmentParams) SetHTTPClient ¶
func (o *GetSegmentParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get segment params
func (*GetSegmentParams) SetSegmentToken ¶
func (o *GetSegmentParams) SetSegmentToken(segmentToken string)
SetSegmentToken adds the segmentToken to the get segment params
func (*GetSegmentParams) SetTimeout ¶
func (o *GetSegmentParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get segment params
func (*GetSegmentParams) WithContext ¶
func (o *GetSegmentParams) WithContext(ctx context.Context) *GetSegmentParams
WithContext adds the context to the get segment params
func (*GetSegmentParams) WithDefaults ¶
func (o *GetSegmentParams) WithDefaults() *GetSegmentParams
WithDefaults hydrates default values in the get segment params (not the query body).
All values with no default are reset to their zero value.
func (*GetSegmentParams) WithHTTPClient ¶
func (o *GetSegmentParams) WithHTTPClient(client *http.Client) *GetSegmentParams
WithHTTPClient adds the HTTPClient to the get segment params
func (*GetSegmentParams) WithSegmentToken ¶
func (o *GetSegmentParams) WithSegmentToken(segmentToken string) *GetSegmentParams
WithSegmentToken adds the segmentToken to the get segment params
func (*GetSegmentParams) WithTimeout ¶
func (o *GetSegmentParams) WithTimeout(timeout time.Duration) *GetSegmentParams
WithTimeout adds the timeout to the get segment params
func (*GetSegmentParams) WriteToRequest ¶
func (o *GetSegmentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetSegmentReader ¶
type GetSegmentReader struct {
// contains filtered or unexported fields
}
GetSegmentReader is a Reader for the GetSegment structure.
func (*GetSegmentReader) ReadResponse ¶
func (o *GetSegmentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetSegmentsOK ¶
GetSegmentsOK describes a response with status code 200, with default header values.
GetSegmentsOK get segments o k
func NewGetSegmentsOK ¶
func NewGetSegmentsOK() *GetSegmentsOK
NewGetSegmentsOK creates a GetSegmentsOK with default headers values
func (*GetSegmentsOK) Code ¶
func (o *GetSegmentsOK) Code() int
Code gets the status code for the get segments o k response
func (*GetSegmentsOK) Error ¶
func (o *GetSegmentsOK) Error() string
func (*GetSegmentsOK) GetPayload ¶
func (o *GetSegmentsOK) GetPayload() *models.Segments
func (*GetSegmentsOK) IsClientError ¶
func (o *GetSegmentsOK) IsClientError() bool
IsClientError returns true when this get segments o k response has a 4xx status code
func (*GetSegmentsOK) IsCode ¶
func (o *GetSegmentsOK) IsCode(code int) bool
IsCode returns true when this get segments o k response a status code equal to that given
func (*GetSegmentsOK) IsRedirect ¶
func (o *GetSegmentsOK) IsRedirect() bool
IsRedirect returns true when this get segments o k response has a 3xx status code
func (*GetSegmentsOK) IsServerError ¶
func (o *GetSegmentsOK) IsServerError() bool
IsServerError returns true when this get segments o k response has a 5xx status code
func (*GetSegmentsOK) IsSuccess ¶
func (o *GetSegmentsOK) IsSuccess() bool
IsSuccess returns true when this get segments o k response has a 2xx status code
func (*GetSegmentsOK) String ¶
func (o *GetSegmentsOK) String() string
type GetSegmentsParams ¶
type GetSegmentsParams struct { /* Limit. The amount of results to return. The maximum is 1000. Format: int32 */ Limit *int32 /* Page. The page of results to return. Format: int32 */ Page *int32 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetSegmentsParams contains all the parameters to send to the API endpoint
for the get segments operation. Typically these are written to a http.Request.
func NewGetSegmentsParams ¶
func NewGetSegmentsParams() *GetSegmentsParams
NewGetSegmentsParams creates a new GetSegmentsParams 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 NewGetSegmentsParamsWithContext ¶
func NewGetSegmentsParamsWithContext(ctx context.Context) *GetSegmentsParams
NewGetSegmentsParamsWithContext creates a new GetSegmentsParams object with the ability to set a context for a request.
func NewGetSegmentsParamsWithHTTPClient ¶
func NewGetSegmentsParamsWithHTTPClient(client *http.Client) *GetSegmentsParams
NewGetSegmentsParamsWithHTTPClient creates a new GetSegmentsParams object with the ability to set a custom HTTPClient for a request.
func NewGetSegmentsParamsWithTimeout ¶
func NewGetSegmentsParamsWithTimeout(timeout time.Duration) *GetSegmentsParams
NewGetSegmentsParamsWithTimeout creates a new GetSegmentsParams object with the ability to set a timeout on a request.
func (*GetSegmentsParams) SetContext ¶
func (o *GetSegmentsParams) SetContext(ctx context.Context)
SetContext adds the context to the get segments params
func (*GetSegmentsParams) SetDefaults ¶
func (o *GetSegmentsParams) SetDefaults()
SetDefaults hydrates default values in the get segments params (not the query body).
All values with no default are reset to their zero value.
func (*GetSegmentsParams) SetHTTPClient ¶
func (o *GetSegmentsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get segments params
func (*GetSegmentsParams) SetLimit ¶
func (o *GetSegmentsParams) SetLimit(limit *int32)
SetLimit adds the limit to the get segments params
func (*GetSegmentsParams) SetPage ¶
func (o *GetSegmentsParams) SetPage(page *int32)
SetPage adds the page to the get segments params
func (*GetSegmentsParams) SetTimeout ¶
func (o *GetSegmentsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get segments params
func (*GetSegmentsParams) WithContext ¶
func (o *GetSegmentsParams) WithContext(ctx context.Context) *GetSegmentsParams
WithContext adds the context to the get segments params
func (*GetSegmentsParams) WithDefaults ¶
func (o *GetSegmentsParams) WithDefaults() *GetSegmentsParams
WithDefaults hydrates default values in the get segments params (not the query body).
All values with no default are reset to their zero value.
func (*GetSegmentsParams) WithHTTPClient ¶
func (o *GetSegmentsParams) WithHTTPClient(client *http.Client) *GetSegmentsParams
WithHTTPClient adds the HTTPClient to the get segments params
func (*GetSegmentsParams) WithLimit ¶
func (o *GetSegmentsParams) WithLimit(limit *int32) *GetSegmentsParams
WithLimit adds the limit to the get segments params
func (*GetSegmentsParams) WithPage ¶
func (o *GetSegmentsParams) WithPage(page *int32) *GetSegmentsParams
WithPage adds the page to the get segments params
func (*GetSegmentsParams) WithTimeout ¶
func (o *GetSegmentsParams) WithTimeout(timeout time.Duration) *GetSegmentsParams
WithTimeout adds the timeout to the get segments params
func (*GetSegmentsParams) WriteToRequest ¶
func (o *GetSegmentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetSegmentsReader ¶
type GetSegmentsReader struct {
// contains filtered or unexported fields
}
GetSegmentsReader is a Reader for the GetSegments structure.
func (*GetSegmentsReader) ReadResponse ¶
func (o *GetSegmentsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateSegmentBadRequest ¶
UpdateSegmentBadRequest describes a response with status code 400, with default header values.
BadRequest
func NewUpdateSegmentBadRequest ¶
func NewUpdateSegmentBadRequest() *UpdateSegmentBadRequest
NewUpdateSegmentBadRequest creates a UpdateSegmentBadRequest with default headers values
func (*UpdateSegmentBadRequest) Code ¶
func (o *UpdateSegmentBadRequest) Code() int
Code gets the status code for the update segment bad request response
func (*UpdateSegmentBadRequest) Error ¶
func (o *UpdateSegmentBadRequest) Error() string
func (*UpdateSegmentBadRequest) GetPayload ¶
func (o *UpdateSegmentBadRequest) GetPayload() *models.Errors
func (*UpdateSegmentBadRequest) IsClientError ¶
func (o *UpdateSegmentBadRequest) IsClientError() bool
IsClientError returns true when this update segment bad request response has a 4xx status code
func (*UpdateSegmentBadRequest) IsCode ¶
func (o *UpdateSegmentBadRequest) IsCode(code int) bool
IsCode returns true when this update segment bad request response a status code equal to that given
func (*UpdateSegmentBadRequest) IsRedirect ¶
func (o *UpdateSegmentBadRequest) IsRedirect() bool
IsRedirect returns true when this update segment bad request response has a 3xx status code
func (*UpdateSegmentBadRequest) IsServerError ¶
func (o *UpdateSegmentBadRequest) IsServerError() bool
IsServerError returns true when this update segment bad request response has a 5xx status code
func (*UpdateSegmentBadRequest) IsSuccess ¶
func (o *UpdateSegmentBadRequest) IsSuccess() bool
IsSuccess returns true when this update segment bad request response has a 2xx status code
func (*UpdateSegmentBadRequest) String ¶
func (o *UpdateSegmentBadRequest) String() string
type UpdateSegmentNotFound ¶
UpdateSegmentNotFound describes a response with status code 404, with default header values.
NotFound
func NewUpdateSegmentNotFound ¶
func NewUpdateSegmentNotFound() *UpdateSegmentNotFound
NewUpdateSegmentNotFound creates a UpdateSegmentNotFound with default headers values
func (*UpdateSegmentNotFound) Code ¶
func (o *UpdateSegmentNotFound) Code() int
Code gets the status code for the update segment not found response
func (*UpdateSegmentNotFound) Error ¶
func (o *UpdateSegmentNotFound) Error() string
func (*UpdateSegmentNotFound) GetPayload ¶
func (o *UpdateSegmentNotFound) GetPayload() *models.Errors
func (*UpdateSegmentNotFound) IsClientError ¶
func (o *UpdateSegmentNotFound) IsClientError() bool
IsClientError returns true when this update segment not found response has a 4xx status code
func (*UpdateSegmentNotFound) IsCode ¶
func (o *UpdateSegmentNotFound) IsCode(code int) bool
IsCode returns true when this update segment not found response a status code equal to that given
func (*UpdateSegmentNotFound) IsRedirect ¶
func (o *UpdateSegmentNotFound) IsRedirect() bool
IsRedirect returns true when this update segment not found response has a 3xx status code
func (*UpdateSegmentNotFound) IsServerError ¶
func (o *UpdateSegmentNotFound) IsServerError() bool
IsServerError returns true when this update segment not found response has a 5xx status code
func (*UpdateSegmentNotFound) IsSuccess ¶
func (o *UpdateSegmentNotFound) IsSuccess() bool
IsSuccess returns true when this update segment not found response has a 2xx status code
func (*UpdateSegmentNotFound) String ¶
func (o *UpdateSegmentNotFound) String() string
type UpdateSegmentOK ¶
UpdateSegmentOK describes a response with status code 200, with default header values.
UpdateSegmentOK update segment o k
func NewUpdateSegmentOK ¶
func NewUpdateSegmentOK() *UpdateSegmentOK
NewUpdateSegmentOK creates a UpdateSegmentOK with default headers values
func (*UpdateSegmentOK) Code ¶
func (o *UpdateSegmentOK) Code() int
Code gets the status code for the update segment o k response
func (*UpdateSegmentOK) Error ¶
func (o *UpdateSegmentOK) Error() string
func (*UpdateSegmentOK) GetPayload ¶
func (o *UpdateSegmentOK) GetPayload() *models.Segment
func (*UpdateSegmentOK) IsClientError ¶
func (o *UpdateSegmentOK) IsClientError() bool
IsClientError returns true when this update segment o k response has a 4xx status code
func (*UpdateSegmentOK) IsCode ¶
func (o *UpdateSegmentOK) IsCode(code int) bool
IsCode returns true when this update segment o k response a status code equal to that given
func (*UpdateSegmentOK) IsRedirect ¶
func (o *UpdateSegmentOK) IsRedirect() bool
IsRedirect returns true when this update segment o k response has a 3xx status code
func (*UpdateSegmentOK) IsServerError ¶
func (o *UpdateSegmentOK) IsServerError() bool
IsServerError returns true when this update segment o k response has a 5xx status code
func (*UpdateSegmentOK) IsSuccess ¶
func (o *UpdateSegmentOK) IsSuccess() bool
IsSuccess returns true when this update segment o k response has a 2xx status code
func (*UpdateSegmentOK) String ¶
func (o *UpdateSegmentOK) String() string
type UpdateSegmentParams ¶
type UpdateSegmentParams struct { // Segments. Segments *models.PutSegments // SegmentToken. SegmentToken string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateSegmentParams contains all the parameters to send to the API endpoint
for the update segment operation. Typically these are written to a http.Request.
func NewUpdateSegmentParams ¶
func NewUpdateSegmentParams() *UpdateSegmentParams
NewUpdateSegmentParams creates a new UpdateSegmentParams 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 NewUpdateSegmentParamsWithContext ¶
func NewUpdateSegmentParamsWithContext(ctx context.Context) *UpdateSegmentParams
NewUpdateSegmentParamsWithContext creates a new UpdateSegmentParams object with the ability to set a context for a request.
func NewUpdateSegmentParamsWithHTTPClient ¶
func NewUpdateSegmentParamsWithHTTPClient(client *http.Client) *UpdateSegmentParams
NewUpdateSegmentParamsWithHTTPClient creates a new UpdateSegmentParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateSegmentParamsWithTimeout ¶
func NewUpdateSegmentParamsWithTimeout(timeout time.Duration) *UpdateSegmentParams
NewUpdateSegmentParamsWithTimeout creates a new UpdateSegmentParams object with the ability to set a timeout on a request.
func (*UpdateSegmentParams) SetContext ¶
func (o *UpdateSegmentParams) SetContext(ctx context.Context)
SetContext adds the context to the update segment params
func (*UpdateSegmentParams) SetDefaults ¶
func (o *UpdateSegmentParams) SetDefaults()
SetDefaults hydrates default values in the update segment params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateSegmentParams) SetHTTPClient ¶
func (o *UpdateSegmentParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update segment params
func (*UpdateSegmentParams) SetSegmentToken ¶
func (o *UpdateSegmentParams) SetSegmentToken(segmentToken string)
SetSegmentToken adds the segmentToken to the update segment params
func (*UpdateSegmentParams) SetSegments ¶
func (o *UpdateSegmentParams) SetSegments(segments *models.PutSegments)
SetSegments adds the segments to the update segment params
func (*UpdateSegmentParams) SetTimeout ¶
func (o *UpdateSegmentParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update segment params
func (*UpdateSegmentParams) WithContext ¶
func (o *UpdateSegmentParams) WithContext(ctx context.Context) *UpdateSegmentParams
WithContext adds the context to the update segment params
func (*UpdateSegmentParams) WithDefaults ¶
func (o *UpdateSegmentParams) WithDefaults() *UpdateSegmentParams
WithDefaults hydrates default values in the update segment params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateSegmentParams) WithHTTPClient ¶
func (o *UpdateSegmentParams) WithHTTPClient(client *http.Client) *UpdateSegmentParams
WithHTTPClient adds the HTTPClient to the update segment params
func (*UpdateSegmentParams) WithSegmentToken ¶
func (o *UpdateSegmentParams) WithSegmentToken(segmentToken string) *UpdateSegmentParams
WithSegmentToken adds the segmentToken to the update segment params
func (*UpdateSegmentParams) WithSegments ¶
func (o *UpdateSegmentParams) WithSegments(segments *models.PutSegments) *UpdateSegmentParams
WithSegments adds the segments to the update segment params
func (*UpdateSegmentParams) WithTimeout ¶
func (o *UpdateSegmentParams) WithTimeout(timeout time.Duration) *UpdateSegmentParams
WithTimeout adds the timeout to the update segment params
func (*UpdateSegmentParams) WriteToRequest ¶
func (o *UpdateSegmentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateSegmentReader ¶
type UpdateSegmentReader struct {
// contains filtered or unexported fields
}
UpdateSegmentReader is a Reader for the UpdateSegment structure.
func (*UpdateSegmentReader) ReadResponse ¶
func (o *UpdateSegmentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.