content_source

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2020 License: Apache-2.0 Imports: 11 Imported by: 1

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 source API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new content source API client.

func (*Client) CreateContentSourceUsingPOST

func (a *Client) CreateContentSourceUsingPOST(params *CreateContentSourceUsingPOSTParams) (*CreateContentSourceUsingPOSTCreated, error)

CreateContentSourceUsingPOST creates a content source

Returns the new content source

func (*Client) DeleteContentSourceUsingDELETE

func (a *Client) DeleteContentSourceUsingDELETE(params *DeleteContentSourceUsingDELETEParams) (*DeleteContentSourceUsingDELETENoContent, error)

DeleteContentSourceUsingDELETE deletes a content source

func (*Client) GetContentSourceUsingGET

func (a *Client) GetContentSourceUsingGET(params *GetContentSourceUsingGETParams) (*GetContentSourceUsingGETOK, error)

GetContentSourceUsingGET gets a content source

func (*Client) GetContentSourcesUsingGET

func (a *Client) GetContentSourcesUsingGET(params *GetContentSourcesUsingGETParams) (*GetContentSourcesUsingGETOK, error)

GetContentSourcesUsingGET gets content sources

Use filter parameters to narrow down the results

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type CreateContentSourceUsingPOSTBadRequest

type CreateContentSourceUsingPOSTBadRequest struct {
}

CreateContentSourceUsingPOSTBadRequest handles this case with default header values.

Invalid request data

func NewCreateContentSourceUsingPOSTBadRequest

func NewCreateContentSourceUsingPOSTBadRequest() *CreateContentSourceUsingPOSTBadRequest

NewCreateContentSourceUsingPOSTBadRequest creates a CreateContentSourceUsingPOSTBadRequest with default headers values

func (*CreateContentSourceUsingPOSTBadRequest) Error

type CreateContentSourceUsingPOSTCreated

type CreateContentSourceUsingPOSTCreated struct {
	Payload *models.ContentSource
}

CreateContentSourceUsingPOSTCreated handles this case with default header values.

Created content source

func NewCreateContentSourceUsingPOSTCreated

func NewCreateContentSourceUsingPOSTCreated() *CreateContentSourceUsingPOSTCreated

NewCreateContentSourceUsingPOSTCreated creates a CreateContentSourceUsingPOSTCreated with default headers values

func (*CreateContentSourceUsingPOSTCreated) Error

func (*CreateContentSourceUsingPOSTCreated) GetPayload

type CreateContentSourceUsingPOSTForbidden

type CreateContentSourceUsingPOSTForbidden struct {
}

CreateContentSourceUsingPOSTForbidden handles this case with default header values.

Invalid project id or integration id

func NewCreateContentSourceUsingPOSTForbidden

func NewCreateContentSourceUsingPOSTForbidden() *CreateContentSourceUsingPOSTForbidden

NewCreateContentSourceUsingPOSTForbidden creates a CreateContentSourceUsingPOSTForbidden with default headers values

func (*CreateContentSourceUsingPOSTForbidden) Error

type CreateContentSourceUsingPOSTParams

type CreateContentSourceUsingPOSTParams struct {

	/*APIVersion
	  The version of the API in yyyy-MM-dd format (UTC). For versioning information, please refer to /content/api/about

	*/
	APIVersion *string
	/*Source
	  source

	*/
	Source *models.ContentSource

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

CreateContentSourceUsingPOSTParams contains all the parameters to send to the API endpoint for the create content source using p o s t operation typically these are written to a http.Request

func NewCreateContentSourceUsingPOSTParams

func NewCreateContentSourceUsingPOSTParams() *CreateContentSourceUsingPOSTParams

NewCreateContentSourceUsingPOSTParams creates a new CreateContentSourceUsingPOSTParams object with the default values initialized.

func NewCreateContentSourceUsingPOSTParamsWithContext

func NewCreateContentSourceUsingPOSTParamsWithContext(ctx context.Context) *CreateContentSourceUsingPOSTParams

NewCreateContentSourceUsingPOSTParamsWithContext creates a new CreateContentSourceUsingPOSTParams object with the default values initialized, and the ability to set a context for a request

func NewCreateContentSourceUsingPOSTParamsWithHTTPClient

func NewCreateContentSourceUsingPOSTParamsWithHTTPClient(client *http.Client) *CreateContentSourceUsingPOSTParams

NewCreateContentSourceUsingPOSTParamsWithHTTPClient creates a new CreateContentSourceUsingPOSTParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCreateContentSourceUsingPOSTParamsWithTimeout

func NewCreateContentSourceUsingPOSTParamsWithTimeout(timeout time.Duration) *CreateContentSourceUsingPOSTParams

NewCreateContentSourceUsingPOSTParamsWithTimeout creates a new CreateContentSourceUsingPOSTParams object with the default values initialized, and the ability to set a timeout on a request

func (*CreateContentSourceUsingPOSTParams) SetAPIVersion

func (o *CreateContentSourceUsingPOSTParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the create content source using p o s t params

func (*CreateContentSourceUsingPOSTParams) SetContext

SetContext adds the context to the create content source using p o s t params

func (*CreateContentSourceUsingPOSTParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create content source using p o s t params

func (*CreateContentSourceUsingPOSTParams) SetSource

SetSource adds the source to the create content source using p o s t params

func (*CreateContentSourceUsingPOSTParams) SetTimeout

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

SetTimeout adds the timeout to the create content source using p o s t params

func (*CreateContentSourceUsingPOSTParams) WithAPIVersion

WithAPIVersion adds the aPIVersion to the create content source using p o s t params

func (*CreateContentSourceUsingPOSTParams) WithContext

WithContext adds the context to the create content source using p o s t params

func (*CreateContentSourceUsingPOSTParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create content source using p o s t params

func (*CreateContentSourceUsingPOSTParams) WithSource

WithSource adds the source to the create content source using p o s t params

func (*CreateContentSourceUsingPOSTParams) WithTimeout

WithTimeout adds the timeout to the create content source using p o s t params

func (*CreateContentSourceUsingPOSTParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateContentSourceUsingPOSTReader

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

CreateContentSourceUsingPOSTReader is a Reader for the CreateContentSourceUsingPOST structure.

func (*CreateContentSourceUsingPOSTReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteContentSourceUsingDELETENoContent

type DeleteContentSourceUsingDELETENoContent struct {
}

DeleteContentSourceUsingDELETENoContent handles this case with default header values.

No Content

func NewDeleteContentSourceUsingDELETENoContent

func NewDeleteContentSourceUsingDELETENoContent() *DeleteContentSourceUsingDELETENoContent

NewDeleteContentSourceUsingDELETENoContent creates a DeleteContentSourceUsingDELETENoContent with default headers values

func (*DeleteContentSourceUsingDELETENoContent) Error

type DeleteContentSourceUsingDELETEParams

type DeleteContentSourceUsingDELETEParams struct {

	/*APIVersion
	  The version of the API in yyyy-MM-dd format (UTC). For versioning information, please refer to /content/api/about

	*/
	APIVersion *string
	/*ID
	  ID of the content source

	*/
	ID strfmt.UUID

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

DeleteContentSourceUsingDELETEParams contains all the parameters to send to the API endpoint for the delete content source using d e l e t e operation typically these are written to a http.Request

func NewDeleteContentSourceUsingDELETEParams

func NewDeleteContentSourceUsingDELETEParams() *DeleteContentSourceUsingDELETEParams

NewDeleteContentSourceUsingDELETEParams creates a new DeleteContentSourceUsingDELETEParams object with the default values initialized.

func NewDeleteContentSourceUsingDELETEParamsWithContext

func NewDeleteContentSourceUsingDELETEParamsWithContext(ctx context.Context) *DeleteContentSourceUsingDELETEParams

NewDeleteContentSourceUsingDELETEParamsWithContext creates a new DeleteContentSourceUsingDELETEParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteContentSourceUsingDELETEParamsWithHTTPClient

func NewDeleteContentSourceUsingDELETEParamsWithHTTPClient(client *http.Client) *DeleteContentSourceUsingDELETEParams

NewDeleteContentSourceUsingDELETEParamsWithHTTPClient creates a new DeleteContentSourceUsingDELETEParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteContentSourceUsingDELETEParamsWithTimeout

func NewDeleteContentSourceUsingDELETEParamsWithTimeout(timeout time.Duration) *DeleteContentSourceUsingDELETEParams

NewDeleteContentSourceUsingDELETEParamsWithTimeout creates a new DeleteContentSourceUsingDELETEParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteContentSourceUsingDELETEParams) SetAPIVersion

func (o *DeleteContentSourceUsingDELETEParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the delete content source using d e l e t e params

func (*DeleteContentSourceUsingDELETEParams) SetContext

SetContext adds the context to the delete content source using d e l e t e params

func (*DeleteContentSourceUsingDELETEParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete content source using d e l e t e params

func (*DeleteContentSourceUsingDELETEParams) SetID

SetID adds the id to the delete content source using d e l e t e params

func (*DeleteContentSourceUsingDELETEParams) SetTimeout

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

SetTimeout adds the timeout to the delete content source using d e l e t e params

func (*DeleteContentSourceUsingDELETEParams) WithAPIVersion

WithAPIVersion adds the aPIVersion to the delete content source using d e l e t e params

func (*DeleteContentSourceUsingDELETEParams) WithContext

WithContext adds the context to the delete content source using d e l e t e params

func (*DeleteContentSourceUsingDELETEParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete content source using d e l e t e params

func (*DeleteContentSourceUsingDELETEParams) WithID

WithID adds the id to the delete content source using d e l e t e params

func (*DeleteContentSourceUsingDELETEParams) WithTimeout

WithTimeout adds the timeout to the delete content source using d e l e t e params

func (*DeleteContentSourceUsingDELETEParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteContentSourceUsingDELETEReader

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

DeleteContentSourceUsingDELETEReader is a Reader for the DeleteContentSourceUsingDELETE structure.

func (*DeleteContentSourceUsingDELETEReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetContentSourceUsingGETNotFound

type GetContentSourceUsingGETNotFound struct {
}

GetContentSourceUsingGETNotFound handles this case with default header values.

Content source not found

func NewGetContentSourceUsingGETNotFound

func NewGetContentSourceUsingGETNotFound() *GetContentSourceUsingGETNotFound

NewGetContentSourceUsingGETNotFound creates a GetContentSourceUsingGETNotFound with default headers values

func (*GetContentSourceUsingGETNotFound) Error

type GetContentSourceUsingGETOK

type GetContentSourceUsingGETOK struct {
	Payload *models.ContentSource
}

GetContentSourceUsingGETOK handles this case with default header values.

Content source

func NewGetContentSourceUsingGETOK

func NewGetContentSourceUsingGETOK() *GetContentSourceUsingGETOK

NewGetContentSourceUsingGETOK creates a GetContentSourceUsingGETOK with default headers values

func (*GetContentSourceUsingGETOK) Error

func (*GetContentSourceUsingGETOK) GetPayload

type GetContentSourceUsingGETParams

type GetContentSourceUsingGETParams struct {

	/*APIVersion
	  The version of the API in yyyy-MM-dd format (UTC). For versioning information, please refer to /content/api/about

	*/
	APIVersion *string
	/*ID
	  ID of the content source

	*/
	ID strfmt.UUID

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

GetContentSourceUsingGETParams contains all the parameters to send to the API endpoint for the get content source using g e t operation typically these are written to a http.Request

func NewGetContentSourceUsingGETParams

func NewGetContentSourceUsingGETParams() *GetContentSourceUsingGETParams

NewGetContentSourceUsingGETParams creates a new GetContentSourceUsingGETParams object with the default values initialized.

func NewGetContentSourceUsingGETParamsWithContext

func NewGetContentSourceUsingGETParamsWithContext(ctx context.Context) *GetContentSourceUsingGETParams

NewGetContentSourceUsingGETParamsWithContext creates a new GetContentSourceUsingGETParams object with the default values initialized, and the ability to set a context for a request

func NewGetContentSourceUsingGETParamsWithHTTPClient

func NewGetContentSourceUsingGETParamsWithHTTPClient(client *http.Client) *GetContentSourceUsingGETParams

NewGetContentSourceUsingGETParamsWithHTTPClient creates a new GetContentSourceUsingGETParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetContentSourceUsingGETParamsWithTimeout

func NewGetContentSourceUsingGETParamsWithTimeout(timeout time.Duration) *GetContentSourceUsingGETParams

NewGetContentSourceUsingGETParamsWithTimeout creates a new GetContentSourceUsingGETParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetContentSourceUsingGETParams) SetAPIVersion

func (o *GetContentSourceUsingGETParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the get content source using get params

func (*GetContentSourceUsingGETParams) SetContext

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

SetContext adds the context to the get content source using get params

func (*GetContentSourceUsingGETParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get content source using get params

func (*GetContentSourceUsingGETParams) SetID

SetID adds the id to the get content source using get params

func (*GetContentSourceUsingGETParams) SetTimeout

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

SetTimeout adds the timeout to the get content source using get params

func (*GetContentSourceUsingGETParams) WithAPIVersion

WithAPIVersion adds the aPIVersion to the get content source using get params

func (*GetContentSourceUsingGETParams) WithContext

WithContext adds the context to the get content source using get params

func (*GetContentSourceUsingGETParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get content source using get params

func (*GetContentSourceUsingGETParams) WithID

WithID adds the id to the get content source using get params

func (*GetContentSourceUsingGETParams) WithTimeout

WithTimeout adds the timeout to the get content source using get params

func (*GetContentSourceUsingGETParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetContentSourceUsingGETReader

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

GetContentSourceUsingGETReader is a Reader for the GetContentSourceUsingGET structure.

func (*GetContentSourceUsingGETReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetContentSourcesUsingGETOK

type GetContentSourcesUsingGETOK struct {
	Payload *models.ContentSources
}

GetContentSourcesUsingGETOK handles this case with default header values.

Content sources

func NewGetContentSourcesUsingGETOK

func NewGetContentSourcesUsingGETOK() *GetContentSourcesUsingGETOK

NewGetContentSourcesUsingGETOK creates a GetContentSourcesUsingGETOK with default headers values

func (*GetContentSourcesUsingGETOK) Error

func (*GetContentSourcesUsingGETOK) GetPayload

type GetContentSourcesUsingGETParams

type GetContentSourcesUsingGETParams struct {

	/*APIVersion
	  The version of the API in yyyy-MM-dd format (UTC). For versioning information, please refer to /content/api/about

	*/
	APIVersion *string
	/*ContentType
	  Search based on Content Type

	*/
	ContentType *string
	/*IntegrationID
	  Search based on integrationId

	*/
	IntegrationID *string
	/*Name
	  Search based on Content Source name

	*/
	Name *string
	/*ProjectIds
	  Search based on associated projects

	*/
	ProjectIds []string
	/*SyncEnabled
	  Search based on whether sync is enabled or not

	*/
	SyncEnabled *bool
	/*TypeIds
	  Search based on Content Source Type Ids

	*/
	TypeIds []string

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

GetContentSourcesUsingGETParams contains all the parameters to send to the API endpoint for the get content sources using g e t operation typically these are written to a http.Request

func NewGetContentSourcesUsingGETParams

func NewGetContentSourcesUsingGETParams() *GetContentSourcesUsingGETParams

NewGetContentSourcesUsingGETParams creates a new GetContentSourcesUsingGETParams object with the default values initialized.

func NewGetContentSourcesUsingGETParamsWithContext

func NewGetContentSourcesUsingGETParamsWithContext(ctx context.Context) *GetContentSourcesUsingGETParams

NewGetContentSourcesUsingGETParamsWithContext creates a new GetContentSourcesUsingGETParams object with the default values initialized, and the ability to set a context for a request

func NewGetContentSourcesUsingGETParamsWithHTTPClient

func NewGetContentSourcesUsingGETParamsWithHTTPClient(client *http.Client) *GetContentSourcesUsingGETParams

NewGetContentSourcesUsingGETParamsWithHTTPClient creates a new GetContentSourcesUsingGETParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetContentSourcesUsingGETParamsWithTimeout

func NewGetContentSourcesUsingGETParamsWithTimeout(timeout time.Duration) *GetContentSourcesUsingGETParams

NewGetContentSourcesUsingGETParamsWithTimeout creates a new GetContentSourcesUsingGETParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetContentSourcesUsingGETParams) SetAPIVersion

func (o *GetContentSourcesUsingGETParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the get content sources using get params

func (*GetContentSourcesUsingGETParams) SetContentType

func (o *GetContentSourcesUsingGETParams) SetContentType(contentType *string)

SetContentType adds the contentType to the get content sources using get params

func (*GetContentSourcesUsingGETParams) SetContext

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

SetContext adds the context to the get content sources using get params

func (*GetContentSourcesUsingGETParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get content sources using get params

func (*GetContentSourcesUsingGETParams) SetIntegrationID

func (o *GetContentSourcesUsingGETParams) SetIntegrationID(integrationID *string)

SetIntegrationID adds the integrationId to the get content sources using get params

func (*GetContentSourcesUsingGETParams) SetName

func (o *GetContentSourcesUsingGETParams) SetName(name *string)

SetName adds the name to the get content sources using get params

func (*GetContentSourcesUsingGETParams) SetProjectIds

func (o *GetContentSourcesUsingGETParams) SetProjectIds(projectIds []string)

SetProjectIds adds the projectIds to the get content sources using get params

func (*GetContentSourcesUsingGETParams) SetSyncEnabled

func (o *GetContentSourcesUsingGETParams) SetSyncEnabled(syncEnabled *bool)

SetSyncEnabled adds the syncEnabled to the get content sources using get params

func (*GetContentSourcesUsingGETParams) SetTimeout

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

SetTimeout adds the timeout to the get content sources using get params

func (*GetContentSourcesUsingGETParams) SetTypeIds

func (o *GetContentSourcesUsingGETParams) SetTypeIds(typeIds []string)

SetTypeIds adds the typeIds to the get content sources using get params

func (*GetContentSourcesUsingGETParams) WithAPIVersion

WithAPIVersion adds the aPIVersion to the get content sources using get params

func (*GetContentSourcesUsingGETParams) WithContentType

WithContentType adds the contentType to the get content sources using get params

func (*GetContentSourcesUsingGETParams) WithContext

WithContext adds the context to the get content sources using get params

func (*GetContentSourcesUsingGETParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get content sources using get params

func (*GetContentSourcesUsingGETParams) WithIntegrationID

func (o *GetContentSourcesUsingGETParams) WithIntegrationID(integrationID *string) *GetContentSourcesUsingGETParams

WithIntegrationID adds the integrationID to the get content sources using get params

func (*GetContentSourcesUsingGETParams) WithName

WithName adds the name to the get content sources using get params

func (*GetContentSourcesUsingGETParams) WithProjectIds

WithProjectIds adds the projectIds to the get content sources using get params

func (*GetContentSourcesUsingGETParams) WithSyncEnabled

func (o *GetContentSourcesUsingGETParams) WithSyncEnabled(syncEnabled *bool) *GetContentSourcesUsingGETParams

WithSyncEnabled adds the syncEnabled to the get content sources using get params

func (*GetContentSourcesUsingGETParams) WithTimeout

WithTimeout adds the timeout to the get content sources using get params

func (*GetContentSourcesUsingGETParams) WithTypeIds

WithTypeIds adds the typeIds to the get content sources using get params

func (*GetContentSourcesUsingGETParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetContentSourcesUsingGETReader

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

GetContentSourcesUsingGETReader is a Reader for the GetContentSourcesUsingGET structure.

func (*GetContentSourcesUsingGETReader) ReadResponse

func (o *GetContentSourcesUsingGETReader) 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