content_selectors

package
v0.0.0-...-f4869d1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for content selectors API

func (*Client) CreateContentSelector

func (a *Client) CreateContentSelector(params *CreateContentSelectorParams, opts ...ClientOption) (*CreateContentSelectorNoContent, error)

CreateContentSelector creates a new content selector

func (*Client) DeleteContentSelector

func (a *Client) DeleteContentSelector(params *DeleteContentSelectorParams, opts ...ClientOption) (*DeleteContentSelectorNoContent, error)

DeleteContentSelector deletes a content selector

func (*Client) GetContentSelector

func (a *Client) GetContentSelector(params *GetContentSelectorParams, opts ...ClientOption) (*GetContentSelectorOK, error)

GetContentSelector gets a content selector by name

func (*Client) GetContentSelectors

func (a *Client) GetContentSelectors(params *GetContentSelectorsParams, opts ...ClientOption) (*GetContentSelectorsOK, error)

GetContentSelectors lists content selectors

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) UpdateContentSelector

func (a *Client) UpdateContentSelector(params *UpdateContentSelectorParams, opts ...ClientOption) (*UpdateContentSelectorNoContent, error)

UpdateContentSelector updates a content selector

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateContentSelector(params *CreateContentSelectorParams, opts ...ClientOption) (*CreateContentSelectorNoContent, error)

	DeleteContentSelector(params *DeleteContentSelectorParams, opts ...ClientOption) (*DeleteContentSelectorNoContent, error)

	GetContentSelector(params *GetContentSelectorParams, opts ...ClientOption) (*GetContentSelectorOK, error)

	GetContentSelectors(params *GetContentSelectorsParams, opts ...ClientOption) (*GetContentSelectorsOK, error)

	UpdateContentSelector(params *UpdateContentSelectorParams, opts ...ClientOption) (*UpdateContentSelectorNoContent, 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 content selectors API client.

type CreateContentSelectorBadRequest

type CreateContentSelectorBadRequest struct {
}

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

Invalid request

func NewCreateContentSelectorBadRequest

func NewCreateContentSelectorBadRequest() *CreateContentSelectorBadRequest

NewCreateContentSelectorBadRequest creates a CreateContentSelectorBadRequest with default headers values

func (*CreateContentSelectorBadRequest) Code

Code gets the status code for the create content selector bad request response

func (*CreateContentSelectorBadRequest) Error

func (*CreateContentSelectorBadRequest) IsClientError

func (o *CreateContentSelectorBadRequest) IsClientError() bool

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

func (*CreateContentSelectorBadRequest) IsCode

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

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

func (*CreateContentSelectorBadRequest) IsRedirect

func (o *CreateContentSelectorBadRequest) IsRedirect() bool

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

func (*CreateContentSelectorBadRequest) IsServerError

func (o *CreateContentSelectorBadRequest) IsServerError() bool

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

func (*CreateContentSelectorBadRequest) IsSuccess

func (o *CreateContentSelectorBadRequest) IsSuccess() bool

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

func (*CreateContentSelectorBadRequest) String

type CreateContentSelectorForbidden

type CreateContentSelectorForbidden struct {
}

CreateContentSelectorForbidden describes a response with status code 403, with default header values.

Insufficient permissions to create content selectors

func NewCreateContentSelectorForbidden

func NewCreateContentSelectorForbidden() *CreateContentSelectorForbidden

NewCreateContentSelectorForbidden creates a CreateContentSelectorForbidden with default headers values

func (*CreateContentSelectorForbidden) Code

Code gets the status code for the create content selector forbidden response

func (*CreateContentSelectorForbidden) Error

func (*CreateContentSelectorForbidden) IsClientError

func (o *CreateContentSelectorForbidden) IsClientError() bool

IsClientError returns true when this create content selector forbidden response has a 4xx status code

func (*CreateContentSelectorForbidden) IsCode

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

IsCode returns true when this create content selector forbidden response a status code equal to that given

func (*CreateContentSelectorForbidden) IsRedirect

func (o *CreateContentSelectorForbidden) IsRedirect() bool

IsRedirect returns true when this create content selector forbidden response has a 3xx status code

func (*CreateContentSelectorForbidden) IsServerError

func (o *CreateContentSelectorForbidden) IsServerError() bool

IsServerError returns true when this create content selector forbidden response has a 5xx status code

func (*CreateContentSelectorForbidden) IsSuccess

func (o *CreateContentSelectorForbidden) IsSuccess() bool

IsSuccess returns true when this create content selector forbidden response has a 2xx status code

func (*CreateContentSelectorForbidden) String

type CreateContentSelectorNoContent

type CreateContentSelectorNoContent struct {
}

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

Content selector successfully created

func NewCreateContentSelectorNoContent

func NewCreateContentSelectorNoContent() *CreateContentSelectorNoContent

NewCreateContentSelectorNoContent creates a CreateContentSelectorNoContent with default headers values

func (*CreateContentSelectorNoContent) Code

Code gets the status code for the create content selector no content response

func (*CreateContentSelectorNoContent) Error

func (*CreateContentSelectorNoContent) IsClientError

func (o *CreateContentSelectorNoContent) IsClientError() bool

IsClientError returns true when this create content selector no content response has a 4xx status code

func (*CreateContentSelectorNoContent) IsCode

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

IsCode returns true when this create content selector no content response a status code equal to that given

func (*CreateContentSelectorNoContent) IsRedirect

func (o *CreateContentSelectorNoContent) IsRedirect() bool

IsRedirect returns true when this create content selector no content response has a 3xx status code

func (*CreateContentSelectorNoContent) IsServerError

func (o *CreateContentSelectorNoContent) IsServerError() bool

IsServerError returns true when this create content selector no content response has a 5xx status code

func (*CreateContentSelectorNoContent) IsSuccess

func (o *CreateContentSelectorNoContent) IsSuccess() bool

IsSuccess returns true when this create content selector no content response has a 2xx status code

func (*CreateContentSelectorNoContent) String

type CreateContentSelectorParams

type CreateContentSelectorParams struct {

	// Body.
	Body *models.ContentSelectorAPICreateRequest

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

CreateContentSelectorParams contains all the parameters to send to the API endpoint

for the create content selector operation.

Typically these are written to a http.Request.

func NewCreateContentSelectorParams

func NewCreateContentSelectorParams() *CreateContentSelectorParams

NewCreateContentSelectorParams creates a new CreateContentSelectorParams 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 NewCreateContentSelectorParamsWithContext

func NewCreateContentSelectorParamsWithContext(ctx context.Context) *CreateContentSelectorParams

NewCreateContentSelectorParamsWithContext creates a new CreateContentSelectorParams object with the ability to set a context for a request.

func NewCreateContentSelectorParamsWithHTTPClient

func NewCreateContentSelectorParamsWithHTTPClient(client *http.Client) *CreateContentSelectorParams

NewCreateContentSelectorParamsWithHTTPClient creates a new CreateContentSelectorParams object with the ability to set a custom HTTPClient for a request.

func NewCreateContentSelectorParamsWithTimeout

func NewCreateContentSelectorParamsWithTimeout(timeout time.Duration) *CreateContentSelectorParams

NewCreateContentSelectorParamsWithTimeout creates a new CreateContentSelectorParams object with the ability to set a timeout on a request.

func (*CreateContentSelectorParams) SetBody

SetBody adds the body to the create content selector params

func (*CreateContentSelectorParams) SetContext

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

SetContext adds the context to the create content selector params

func (*CreateContentSelectorParams) SetDefaults

func (o *CreateContentSelectorParams) SetDefaults()

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

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

func (*CreateContentSelectorParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create content selector params

func (*CreateContentSelectorParams) SetTimeout

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

SetTimeout adds the timeout to the create content selector params

func (*CreateContentSelectorParams) WithBody

WithBody adds the body to the create content selector params

func (*CreateContentSelectorParams) WithContext

WithContext adds the context to the create content selector params

func (*CreateContentSelectorParams) WithDefaults

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

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

func (*CreateContentSelectorParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create content selector params

func (*CreateContentSelectorParams) WithTimeout

WithTimeout adds the timeout to the create content selector params

func (*CreateContentSelectorParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateContentSelectorReader

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

CreateContentSelectorReader is a Reader for the CreateContentSelector structure.

func (*CreateContentSelectorReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteContentSelectorBadRequest

type DeleteContentSelectorBadRequest struct {
}

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

Invalid request

func NewDeleteContentSelectorBadRequest

func NewDeleteContentSelectorBadRequest() *DeleteContentSelectorBadRequest

NewDeleteContentSelectorBadRequest creates a DeleteContentSelectorBadRequest with default headers values

func (*DeleteContentSelectorBadRequest) Code

Code gets the status code for the delete content selector bad request response

func (*DeleteContentSelectorBadRequest) Error

func (*DeleteContentSelectorBadRequest) IsClientError

func (o *DeleteContentSelectorBadRequest) IsClientError() bool

IsClientError returns true when this delete content selector bad request response has a 4xx status code

func (*DeleteContentSelectorBadRequest) IsCode

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

IsCode returns true when this delete content selector bad request response a status code equal to that given

func (*DeleteContentSelectorBadRequest) IsRedirect

func (o *DeleteContentSelectorBadRequest) IsRedirect() bool

IsRedirect returns true when this delete content selector bad request response has a 3xx status code

func (*DeleteContentSelectorBadRequest) IsServerError

func (o *DeleteContentSelectorBadRequest) IsServerError() bool

IsServerError returns true when this delete content selector bad request response has a 5xx status code

func (*DeleteContentSelectorBadRequest) IsSuccess

func (o *DeleteContentSelectorBadRequest) IsSuccess() bool

IsSuccess returns true when this delete content selector bad request response has a 2xx status code

func (*DeleteContentSelectorBadRequest) String

type DeleteContentSelectorForbidden

type DeleteContentSelectorForbidden struct {
}

DeleteContentSelectorForbidden describes a response with status code 403, with default header values.

Insufficient permissions to delete the content selector

func NewDeleteContentSelectorForbidden

func NewDeleteContentSelectorForbidden() *DeleteContentSelectorForbidden

NewDeleteContentSelectorForbidden creates a DeleteContentSelectorForbidden with default headers values

func (*DeleteContentSelectorForbidden) Code

Code gets the status code for the delete content selector forbidden response

func (*DeleteContentSelectorForbidden) Error

func (*DeleteContentSelectorForbidden) IsClientError

func (o *DeleteContentSelectorForbidden) IsClientError() bool

IsClientError returns true when this delete content selector forbidden response has a 4xx status code

func (*DeleteContentSelectorForbidden) IsCode

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

IsCode returns true when this delete content selector forbidden response a status code equal to that given

func (*DeleteContentSelectorForbidden) IsRedirect

func (o *DeleteContentSelectorForbidden) IsRedirect() bool

IsRedirect returns true when this delete content selector forbidden response has a 3xx status code

func (*DeleteContentSelectorForbidden) IsServerError

func (o *DeleteContentSelectorForbidden) IsServerError() bool

IsServerError returns true when this delete content selector forbidden response has a 5xx status code

func (*DeleteContentSelectorForbidden) IsSuccess

func (o *DeleteContentSelectorForbidden) IsSuccess() bool

IsSuccess returns true when this delete content selector forbidden response has a 2xx status code

func (*DeleteContentSelectorForbidden) String

type DeleteContentSelectorNoContent

type DeleteContentSelectorNoContent struct {
}

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

Content selector deleted successfully

func NewDeleteContentSelectorNoContent

func NewDeleteContentSelectorNoContent() *DeleteContentSelectorNoContent

NewDeleteContentSelectorNoContent creates a DeleteContentSelectorNoContent with default headers values

func (*DeleteContentSelectorNoContent) Code

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

func (*DeleteContentSelectorNoContent) Error

func (*DeleteContentSelectorNoContent) IsClientError

func (o *DeleteContentSelectorNoContent) IsClientError() bool

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

func (*DeleteContentSelectorNoContent) IsCode

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

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

func (*DeleteContentSelectorNoContent) IsRedirect

func (o *DeleteContentSelectorNoContent) IsRedirect() bool

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

func (*DeleteContentSelectorNoContent) IsServerError

func (o *DeleteContentSelectorNoContent) IsServerError() bool

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

func (*DeleteContentSelectorNoContent) IsSuccess

func (o *DeleteContentSelectorNoContent) IsSuccess() bool

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

func (*DeleteContentSelectorNoContent) String

type DeleteContentSelectorParams

type DeleteContentSelectorParams struct {

	// Name.
	Name string

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

DeleteContentSelectorParams contains all the parameters to send to the API endpoint

for the delete content selector operation.

Typically these are written to a http.Request.

func NewDeleteContentSelectorParams

func NewDeleteContentSelectorParams() *DeleteContentSelectorParams

NewDeleteContentSelectorParams creates a new DeleteContentSelectorParams 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 NewDeleteContentSelectorParamsWithContext

func NewDeleteContentSelectorParamsWithContext(ctx context.Context) *DeleteContentSelectorParams

NewDeleteContentSelectorParamsWithContext creates a new DeleteContentSelectorParams object with the ability to set a context for a request.

func NewDeleteContentSelectorParamsWithHTTPClient

func NewDeleteContentSelectorParamsWithHTTPClient(client *http.Client) *DeleteContentSelectorParams

NewDeleteContentSelectorParamsWithHTTPClient creates a new DeleteContentSelectorParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteContentSelectorParamsWithTimeout

func NewDeleteContentSelectorParamsWithTimeout(timeout time.Duration) *DeleteContentSelectorParams

NewDeleteContentSelectorParamsWithTimeout creates a new DeleteContentSelectorParams object with the ability to set a timeout on a request.

func (*DeleteContentSelectorParams) SetContext

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

SetContext adds the context to the delete content selector params

func (*DeleteContentSelectorParams) SetDefaults

func (o *DeleteContentSelectorParams) SetDefaults()

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

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

func (*DeleteContentSelectorParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete content selector params

func (*DeleteContentSelectorParams) SetName

func (o *DeleteContentSelectorParams) SetName(name string)

SetName adds the name to the delete content selector params

func (*DeleteContentSelectorParams) SetTimeout

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

SetTimeout adds the timeout to the delete content selector params

func (*DeleteContentSelectorParams) WithContext

WithContext adds the context to the delete content selector params

func (*DeleteContentSelectorParams) WithDefaults

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

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

func (*DeleteContentSelectorParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete content selector params

func (*DeleteContentSelectorParams) WithName

WithName adds the name to the delete content selector params

func (*DeleteContentSelectorParams) WithTimeout

WithTimeout adds the timeout to the delete content selector params

func (*DeleteContentSelectorParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteContentSelectorReader

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

DeleteContentSelectorReader is a Reader for the DeleteContentSelector structure.

func (*DeleteContentSelectorReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetContentSelectorForbidden

type GetContentSelectorForbidden struct {
}

GetContentSelectorForbidden describes a response with status code 403, with default header values.

Insufficient permissions to read the content selector

func NewGetContentSelectorForbidden

func NewGetContentSelectorForbidden() *GetContentSelectorForbidden

NewGetContentSelectorForbidden creates a GetContentSelectorForbidden with default headers values

func (*GetContentSelectorForbidden) Code

func (o *GetContentSelectorForbidden) Code() int

Code gets the status code for the get content selector forbidden response

func (*GetContentSelectorForbidden) Error

func (*GetContentSelectorForbidden) IsClientError

func (o *GetContentSelectorForbidden) IsClientError() bool

IsClientError returns true when this get content selector forbidden response has a 4xx status code

func (*GetContentSelectorForbidden) IsCode

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

IsCode returns true when this get content selector forbidden response a status code equal to that given

func (*GetContentSelectorForbidden) IsRedirect

func (o *GetContentSelectorForbidden) IsRedirect() bool

IsRedirect returns true when this get content selector forbidden response has a 3xx status code

func (*GetContentSelectorForbidden) IsServerError

func (o *GetContentSelectorForbidden) IsServerError() bool

IsServerError returns true when this get content selector forbidden response has a 5xx status code

func (*GetContentSelectorForbidden) IsSuccess

func (o *GetContentSelectorForbidden) IsSuccess() bool

IsSuccess returns true when this get content selector forbidden response has a 2xx status code

func (*GetContentSelectorForbidden) String

func (o *GetContentSelectorForbidden) String() string

type GetContentSelectorOK

type GetContentSelectorOK struct {
	Payload *models.ContentSelectorAPIResponse
}

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

successful operation

func NewGetContentSelectorOK

func NewGetContentSelectorOK() *GetContentSelectorOK

NewGetContentSelectorOK creates a GetContentSelectorOK with default headers values

func (*GetContentSelectorOK) Code

func (o *GetContentSelectorOK) Code() int

Code gets the status code for the get content selector o k response

func (*GetContentSelectorOK) Error

func (o *GetContentSelectorOK) Error() string

func (*GetContentSelectorOK) GetPayload

func (*GetContentSelectorOK) IsClientError

func (o *GetContentSelectorOK) IsClientError() bool

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

func (*GetContentSelectorOK) IsCode

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

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

func (*GetContentSelectorOK) IsRedirect

func (o *GetContentSelectorOK) IsRedirect() bool

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

func (*GetContentSelectorOK) IsServerError

func (o *GetContentSelectorOK) IsServerError() bool

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

func (*GetContentSelectorOK) IsSuccess

func (o *GetContentSelectorOK) IsSuccess() bool

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

func (*GetContentSelectorOK) String

func (o *GetContentSelectorOK) String() string

type GetContentSelectorParams

type GetContentSelectorParams struct {

	/* Name.

	   The content selector name
	*/
	Name string

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

GetContentSelectorParams contains all the parameters to send to the API endpoint

for the get content selector operation.

Typically these are written to a http.Request.

func NewGetContentSelectorParams

func NewGetContentSelectorParams() *GetContentSelectorParams

NewGetContentSelectorParams creates a new GetContentSelectorParams 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 NewGetContentSelectorParamsWithContext

func NewGetContentSelectorParamsWithContext(ctx context.Context) *GetContentSelectorParams

NewGetContentSelectorParamsWithContext creates a new GetContentSelectorParams object with the ability to set a context for a request.

func NewGetContentSelectorParamsWithHTTPClient

func NewGetContentSelectorParamsWithHTTPClient(client *http.Client) *GetContentSelectorParams

NewGetContentSelectorParamsWithHTTPClient creates a new GetContentSelectorParams object with the ability to set a custom HTTPClient for a request.

func NewGetContentSelectorParamsWithTimeout

func NewGetContentSelectorParamsWithTimeout(timeout time.Duration) *GetContentSelectorParams

NewGetContentSelectorParamsWithTimeout creates a new GetContentSelectorParams object with the ability to set a timeout on a request.

func (*GetContentSelectorParams) SetContext

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

SetContext adds the context to the get content selector params

func (*GetContentSelectorParams) SetDefaults

func (o *GetContentSelectorParams) SetDefaults()

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

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

func (*GetContentSelectorParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get content selector params

func (*GetContentSelectorParams) SetName

func (o *GetContentSelectorParams) SetName(name string)

SetName adds the name to the get content selector params

func (*GetContentSelectorParams) SetTimeout

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

SetTimeout adds the timeout to the get content selector params

func (*GetContentSelectorParams) WithContext

WithContext adds the context to the get content selector params

func (*GetContentSelectorParams) WithDefaults

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

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

func (*GetContentSelectorParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get content selector params

func (*GetContentSelectorParams) WithName

WithName adds the name to the get content selector params

func (*GetContentSelectorParams) WithTimeout

WithTimeout adds the timeout to the get content selector params

func (*GetContentSelectorParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetContentSelectorReader

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

GetContentSelectorReader is a Reader for the GetContentSelector structure.

func (*GetContentSelectorReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetContentSelectorsForbidden

type GetContentSelectorsForbidden struct {
}

GetContentSelectorsForbidden describes a response with status code 403, with default header values.

Insufficient permissions to read content selectors

func NewGetContentSelectorsForbidden

func NewGetContentSelectorsForbidden() *GetContentSelectorsForbidden

NewGetContentSelectorsForbidden creates a GetContentSelectorsForbidden with default headers values

func (*GetContentSelectorsForbidden) Code

Code gets the status code for the get content selectors forbidden response

func (*GetContentSelectorsForbidden) Error

func (*GetContentSelectorsForbidden) IsClientError

func (o *GetContentSelectorsForbidden) IsClientError() bool

IsClientError returns true when this get content selectors forbidden response has a 4xx status code

func (*GetContentSelectorsForbidden) IsCode

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

IsCode returns true when this get content selectors forbidden response a status code equal to that given

func (*GetContentSelectorsForbidden) IsRedirect

func (o *GetContentSelectorsForbidden) IsRedirect() bool

IsRedirect returns true when this get content selectors forbidden response has a 3xx status code

func (*GetContentSelectorsForbidden) IsServerError

func (o *GetContentSelectorsForbidden) IsServerError() bool

IsServerError returns true when this get content selectors forbidden response has a 5xx status code

func (*GetContentSelectorsForbidden) IsSuccess

func (o *GetContentSelectorsForbidden) IsSuccess() bool

IsSuccess returns true when this get content selectors forbidden response has a 2xx status code

func (*GetContentSelectorsForbidden) String

type GetContentSelectorsOK

type GetContentSelectorsOK struct {
	Payload []*models.ContentSelectorAPIResponse
}

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

successful operation

func NewGetContentSelectorsOK

func NewGetContentSelectorsOK() *GetContentSelectorsOK

NewGetContentSelectorsOK creates a GetContentSelectorsOK with default headers values

func (*GetContentSelectorsOK) Code

func (o *GetContentSelectorsOK) Code() int

Code gets the status code for the get content selectors o k response

func (*GetContentSelectorsOK) Error

func (o *GetContentSelectorsOK) Error() string

func (*GetContentSelectorsOK) GetPayload

func (*GetContentSelectorsOK) IsClientError

func (o *GetContentSelectorsOK) IsClientError() bool

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

func (*GetContentSelectorsOK) IsCode

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

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

func (*GetContentSelectorsOK) IsRedirect

func (o *GetContentSelectorsOK) IsRedirect() bool

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

func (*GetContentSelectorsOK) IsServerError

func (o *GetContentSelectorsOK) IsServerError() bool

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

func (*GetContentSelectorsOK) IsSuccess

func (o *GetContentSelectorsOK) IsSuccess() bool

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

func (*GetContentSelectorsOK) String

func (o *GetContentSelectorsOK) String() string

type GetContentSelectorsParams

type GetContentSelectorsParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetContentSelectorsParams contains all the parameters to send to the API endpoint

for the get content selectors operation.

Typically these are written to a http.Request.

func NewGetContentSelectorsParams

func NewGetContentSelectorsParams() *GetContentSelectorsParams

NewGetContentSelectorsParams creates a new GetContentSelectorsParams 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 NewGetContentSelectorsParamsWithContext

func NewGetContentSelectorsParamsWithContext(ctx context.Context) *GetContentSelectorsParams

NewGetContentSelectorsParamsWithContext creates a new GetContentSelectorsParams object with the ability to set a context for a request.

func NewGetContentSelectorsParamsWithHTTPClient

func NewGetContentSelectorsParamsWithHTTPClient(client *http.Client) *GetContentSelectorsParams

NewGetContentSelectorsParamsWithHTTPClient creates a new GetContentSelectorsParams object with the ability to set a custom HTTPClient for a request.

func NewGetContentSelectorsParamsWithTimeout

func NewGetContentSelectorsParamsWithTimeout(timeout time.Duration) *GetContentSelectorsParams

NewGetContentSelectorsParamsWithTimeout creates a new GetContentSelectorsParams object with the ability to set a timeout on a request.

func (*GetContentSelectorsParams) SetContext

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

SetContext adds the context to the get content selectors params

func (*GetContentSelectorsParams) SetDefaults

func (o *GetContentSelectorsParams) SetDefaults()

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

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

func (*GetContentSelectorsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get content selectors params

func (*GetContentSelectorsParams) SetTimeout

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

SetTimeout adds the timeout to the get content selectors params

func (*GetContentSelectorsParams) WithContext

WithContext adds the context to the get content selectors params

func (*GetContentSelectorsParams) WithDefaults

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

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

func (*GetContentSelectorsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get content selectors params

func (*GetContentSelectorsParams) WithTimeout

WithTimeout adds the timeout to the get content selectors params

func (*GetContentSelectorsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetContentSelectorsReader

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

GetContentSelectorsReader is a Reader for the GetContentSelectors structure.

func (*GetContentSelectorsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateContentSelectorBadRequest

type UpdateContentSelectorBadRequest struct {
}

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

Invalid request

func NewUpdateContentSelectorBadRequest

func NewUpdateContentSelectorBadRequest() *UpdateContentSelectorBadRequest

NewUpdateContentSelectorBadRequest creates a UpdateContentSelectorBadRequest with default headers values

func (*UpdateContentSelectorBadRequest) Code

Code gets the status code for the update content selector bad request response

func (*UpdateContentSelectorBadRequest) Error

func (*UpdateContentSelectorBadRequest) IsClientError

func (o *UpdateContentSelectorBadRequest) IsClientError() bool

IsClientError returns true when this update content selector bad request response has a 4xx status code

func (*UpdateContentSelectorBadRequest) IsCode

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

IsCode returns true when this update content selector bad request response a status code equal to that given

func (*UpdateContentSelectorBadRequest) IsRedirect

func (o *UpdateContentSelectorBadRequest) IsRedirect() bool

IsRedirect returns true when this update content selector bad request response has a 3xx status code

func (*UpdateContentSelectorBadRequest) IsServerError

func (o *UpdateContentSelectorBadRequest) IsServerError() bool

IsServerError returns true when this update content selector bad request response has a 5xx status code

func (*UpdateContentSelectorBadRequest) IsSuccess

func (o *UpdateContentSelectorBadRequest) IsSuccess() bool

IsSuccess returns true when this update content selector bad request response has a 2xx status code

func (*UpdateContentSelectorBadRequest) String

type UpdateContentSelectorForbidden

type UpdateContentSelectorForbidden struct {
}

UpdateContentSelectorForbidden describes a response with status code 403, with default header values.

Insufficient permissions to update the content selector

func NewUpdateContentSelectorForbidden

func NewUpdateContentSelectorForbidden() *UpdateContentSelectorForbidden

NewUpdateContentSelectorForbidden creates a UpdateContentSelectorForbidden with default headers values

func (*UpdateContentSelectorForbidden) Code

Code gets the status code for the update content selector forbidden response

func (*UpdateContentSelectorForbidden) Error

func (*UpdateContentSelectorForbidden) IsClientError

func (o *UpdateContentSelectorForbidden) IsClientError() bool

IsClientError returns true when this update content selector forbidden response has a 4xx status code

func (*UpdateContentSelectorForbidden) IsCode

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

IsCode returns true when this update content selector forbidden response a status code equal to that given

func (*UpdateContentSelectorForbidden) IsRedirect

func (o *UpdateContentSelectorForbidden) IsRedirect() bool

IsRedirect returns true when this update content selector forbidden response has a 3xx status code

func (*UpdateContentSelectorForbidden) IsServerError

func (o *UpdateContentSelectorForbidden) IsServerError() bool

IsServerError returns true when this update content selector forbidden response has a 5xx status code

func (*UpdateContentSelectorForbidden) IsSuccess

func (o *UpdateContentSelectorForbidden) IsSuccess() bool

IsSuccess returns true when this update content selector forbidden response has a 2xx status code

func (*UpdateContentSelectorForbidden) String

type UpdateContentSelectorNoContent

type UpdateContentSelectorNoContent struct {
}

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

Content selector updated successfully

func NewUpdateContentSelectorNoContent

func NewUpdateContentSelectorNoContent() *UpdateContentSelectorNoContent

NewUpdateContentSelectorNoContent creates a UpdateContentSelectorNoContent with default headers values

func (*UpdateContentSelectorNoContent) Code

Code gets the status code for the update content selector no content response

func (*UpdateContentSelectorNoContent) Error

func (*UpdateContentSelectorNoContent) IsClientError

func (o *UpdateContentSelectorNoContent) IsClientError() bool

IsClientError returns true when this update content selector no content response has a 4xx status code

func (*UpdateContentSelectorNoContent) IsCode

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

IsCode returns true when this update content selector no content response a status code equal to that given

func (*UpdateContentSelectorNoContent) IsRedirect

func (o *UpdateContentSelectorNoContent) IsRedirect() bool

IsRedirect returns true when this update content selector no content response has a 3xx status code

func (*UpdateContentSelectorNoContent) IsServerError

func (o *UpdateContentSelectorNoContent) IsServerError() bool

IsServerError returns true when this update content selector no content response has a 5xx status code

func (*UpdateContentSelectorNoContent) IsSuccess

func (o *UpdateContentSelectorNoContent) IsSuccess() bool

IsSuccess returns true when this update content selector no content response has a 2xx status code

func (*UpdateContentSelectorNoContent) String

type UpdateContentSelectorParams

type UpdateContentSelectorParams struct {

	// Body.
	Body *models.ContentSelectorAPIUpdateRequest

	/* Name.

	   The content selector name
	*/
	Name string

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

UpdateContentSelectorParams contains all the parameters to send to the API endpoint

for the update content selector operation.

Typically these are written to a http.Request.

func NewUpdateContentSelectorParams

func NewUpdateContentSelectorParams() *UpdateContentSelectorParams

NewUpdateContentSelectorParams creates a new UpdateContentSelectorParams 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 NewUpdateContentSelectorParamsWithContext

func NewUpdateContentSelectorParamsWithContext(ctx context.Context) *UpdateContentSelectorParams

NewUpdateContentSelectorParamsWithContext creates a new UpdateContentSelectorParams object with the ability to set a context for a request.

func NewUpdateContentSelectorParamsWithHTTPClient

func NewUpdateContentSelectorParamsWithHTTPClient(client *http.Client) *UpdateContentSelectorParams

NewUpdateContentSelectorParamsWithHTTPClient creates a new UpdateContentSelectorParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateContentSelectorParamsWithTimeout

func NewUpdateContentSelectorParamsWithTimeout(timeout time.Duration) *UpdateContentSelectorParams

NewUpdateContentSelectorParamsWithTimeout creates a new UpdateContentSelectorParams object with the ability to set a timeout on a request.

func (*UpdateContentSelectorParams) SetBody

SetBody adds the body to the update content selector params

func (*UpdateContentSelectorParams) SetContext

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

SetContext adds the context to the update content selector params

func (*UpdateContentSelectorParams) SetDefaults

func (o *UpdateContentSelectorParams) SetDefaults()

SetDefaults hydrates default values in the update content selector params (not the query body).

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

func (*UpdateContentSelectorParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update content selector params

func (*UpdateContentSelectorParams) SetName

func (o *UpdateContentSelectorParams) SetName(name string)

SetName adds the name to the update content selector params

func (*UpdateContentSelectorParams) SetTimeout

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

SetTimeout adds the timeout to the update content selector params

func (*UpdateContentSelectorParams) WithBody

WithBody adds the body to the update content selector params

func (*UpdateContentSelectorParams) WithContext

WithContext adds the context to the update content selector params

func (*UpdateContentSelectorParams) WithDefaults

WithDefaults hydrates default values in the update content selector params (not the query body).

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

func (*UpdateContentSelectorParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update content selector params

func (*UpdateContentSelectorParams) WithName

WithName adds the name to the update content selector params

func (*UpdateContentSelectorParams) WithTimeout

WithTimeout adds the timeout to the update content selector params

func (*UpdateContentSelectorParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateContentSelectorReader

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

UpdateContentSelectorReader is a Reader for the UpdateContentSelector structure.

func (*UpdateContentSelectorReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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