view

package
v0.0.0-...-67cd95e Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 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 view API

func (*Client) CreateView

func (a *Client) CreateView(params *CreateViewParams, opts ...ClientOption) (*CreateViewOK, error)

CreateView create view API

func (*Client) DeleteView

func (a *Client) DeleteView(params *DeleteViewParams, opts ...ClientOption) (*DeleteViewOK, error)

DeleteView delete view API

func (*Client) GetViews

func (a *Client) GetViews(params *GetViewsParams, opts ...ClientOption) (*GetViewsOK, error)

GetViews get views API

func (*Client) GetViewsConnection

func (a *Client) GetViewsConnection(params *GetViewsConnectionParams, opts ...ClientOption) (*GetViewsConnectionOK, error)

GetViewsConnection get views connection API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateView

func (a *Client) UpdateView(params *UpdateViewParams, opts ...ClientOption) (*UpdateViewOK, error)

UpdateView update view API

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateView(params *CreateViewParams, opts ...ClientOption) (*CreateViewOK, error)

	DeleteView(params *DeleteViewParams, opts ...ClientOption) (*DeleteViewOK, error)

	GetViews(params *GetViewsParams, opts ...ClientOption) (*GetViewsOK, error)

	GetViewsConnection(params *GetViewsConnectionParams, opts ...ClientOption) (*GetViewsConnectionOK, error)

	UpdateView(params *UpdateViewParams, opts ...ClientOption) (*UpdateViewOK, 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 view API client.

type CreateViewBadRequest

type CreateViewBadRequest struct {
	Payload string
}
CreateViewBadRequest describes a response with status code 400, with default header values.

CreateViewBadRequest create view bad request

func NewCreateViewBadRequest

func NewCreateViewBadRequest() *CreateViewBadRequest

NewCreateViewBadRequest creates a CreateViewBadRequest with default headers values

func (*CreateViewBadRequest) Error

func (o *CreateViewBadRequest) Error() string

func (*CreateViewBadRequest) GetPayload

func (o *CreateViewBadRequest) GetPayload() string

type CreateViewOK

type CreateViewOK struct {
	Payload []*models.WithTaskView
}
CreateViewOK describes a response with status code 200, with default header values.

Ok

func NewCreateViewOK

func NewCreateViewOK() *CreateViewOK

NewCreateViewOK creates a CreateViewOK with default headers values

func (*CreateViewOK) Error

func (o *CreateViewOK) Error() string

func (*CreateViewOK) GetPayload

func (o *CreateViewOK) GetPayload() []*models.WithTaskView

type CreateViewParams

type CreateViewParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody []*models.ViewCreationParams

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

CreateViewParams contains all the parameters to send to the API endpoint

for the create view operation.

Typically these are written to a http.Request.

func NewCreateViewParams

func NewCreateViewParams() *CreateViewParams

NewCreateViewParams creates a new CreateViewParams 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 NewCreateViewParamsWithContext

func NewCreateViewParamsWithContext(ctx context.Context) *CreateViewParams

NewCreateViewParamsWithContext creates a new CreateViewParams object with the ability to set a context for a request.

func NewCreateViewParamsWithHTTPClient

func NewCreateViewParamsWithHTTPClient(client *http.Client) *CreateViewParams

NewCreateViewParamsWithHTTPClient creates a new CreateViewParams object with the ability to set a custom HTTPClient for a request.

func NewCreateViewParamsWithTimeout

func NewCreateViewParamsWithTimeout(timeout time.Duration) *CreateViewParams

NewCreateViewParamsWithTimeout creates a new CreateViewParams object with the ability to set a timeout on a request.

func (*CreateViewParams) SetContentLanguage

func (o *CreateViewParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the create view params

func (*CreateViewParams) SetContext

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

SetContext adds the context to the create view params

func (*CreateViewParams) SetDefaults

func (o *CreateViewParams) SetDefaults()

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

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

func (*CreateViewParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create view params

func (*CreateViewParams) SetRequestBody

func (o *CreateViewParams) SetRequestBody(requestBody []*models.ViewCreationParams)

SetRequestBody adds the requestBody to the create view params

func (*CreateViewParams) SetTimeout

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

SetTimeout adds the timeout to the create view params

func (*CreateViewParams) WithContentLanguage

func (o *CreateViewParams) WithContentLanguage(contentLanguage *string) *CreateViewParams

WithContentLanguage adds the contentLanguage to the create view params

func (*CreateViewParams) WithContext

func (o *CreateViewParams) WithContext(ctx context.Context) *CreateViewParams

WithContext adds the context to the create view params

func (*CreateViewParams) WithDefaults

func (o *CreateViewParams) WithDefaults() *CreateViewParams

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

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

func (*CreateViewParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create view params

func (*CreateViewParams) WithRequestBody

func (o *CreateViewParams) WithRequestBody(requestBody []*models.ViewCreationParams) *CreateViewParams

WithRequestBody adds the requestBody to the create view params

func (*CreateViewParams) WithTimeout

func (o *CreateViewParams) WithTimeout(timeout time.Duration) *CreateViewParams

WithTimeout adds the timeout to the create view params

func (*CreateViewParams) WriteToRequest

func (o *CreateViewParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CreateViewReader

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

CreateViewReader is a Reader for the CreateView structure.

func (*CreateViewReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteViewBadRequest

type DeleteViewBadRequest struct {
	Payload string
}
DeleteViewBadRequest describes a response with status code 400, with default header values.

DeleteViewBadRequest delete view bad request

func NewDeleteViewBadRequest

func NewDeleteViewBadRequest() *DeleteViewBadRequest

NewDeleteViewBadRequest creates a DeleteViewBadRequest with default headers values

func (*DeleteViewBadRequest) Error

func (o *DeleteViewBadRequest) Error() string

func (*DeleteViewBadRequest) GetPayload

func (o *DeleteViewBadRequest) GetPayload() string

type DeleteViewOK

type DeleteViewOK struct {
	Payload []*models.WithTaskDeleteView
}
DeleteViewOK describes a response with status code 200, with default header values.

Ok

func NewDeleteViewOK

func NewDeleteViewOK() *DeleteViewOK

NewDeleteViewOK creates a DeleteViewOK with default headers values

func (*DeleteViewOK) Error

func (o *DeleteViewOK) Error() string

func (*DeleteViewOK) GetPayload

func (o *DeleteViewOK) GetPayload() []*models.WithTaskDeleteView

type DeleteViewParams

type DeleteViewParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.ViewDeletionParams

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

DeleteViewParams contains all the parameters to send to the API endpoint

for the delete view operation.

Typically these are written to a http.Request.

func NewDeleteViewParams

func NewDeleteViewParams() *DeleteViewParams

NewDeleteViewParams creates a new DeleteViewParams 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 NewDeleteViewParamsWithContext

func NewDeleteViewParamsWithContext(ctx context.Context) *DeleteViewParams

NewDeleteViewParamsWithContext creates a new DeleteViewParams object with the ability to set a context for a request.

func NewDeleteViewParamsWithHTTPClient

func NewDeleteViewParamsWithHTTPClient(client *http.Client) *DeleteViewParams

NewDeleteViewParamsWithHTTPClient creates a new DeleteViewParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteViewParamsWithTimeout

func NewDeleteViewParamsWithTimeout(timeout time.Duration) *DeleteViewParams

NewDeleteViewParamsWithTimeout creates a new DeleteViewParams object with the ability to set a timeout on a request.

func (*DeleteViewParams) SetContentLanguage

func (o *DeleteViewParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the delete view params

func (*DeleteViewParams) SetContext

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

SetContext adds the context to the delete view params

func (*DeleteViewParams) SetDefaults

func (o *DeleteViewParams) SetDefaults()

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

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

func (*DeleteViewParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete view params

func (*DeleteViewParams) SetRequestBody

func (o *DeleteViewParams) SetRequestBody(requestBody *models.ViewDeletionParams)

SetRequestBody adds the requestBody to the delete view params

func (*DeleteViewParams) SetTimeout

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

SetTimeout adds the timeout to the delete view params

func (*DeleteViewParams) WithContentLanguage

func (o *DeleteViewParams) WithContentLanguage(contentLanguage *string) *DeleteViewParams

WithContentLanguage adds the contentLanguage to the delete view params

func (*DeleteViewParams) WithContext

func (o *DeleteViewParams) WithContext(ctx context.Context) *DeleteViewParams

WithContext adds the context to the delete view params

func (*DeleteViewParams) WithDefaults

func (o *DeleteViewParams) WithDefaults() *DeleteViewParams

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

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

func (*DeleteViewParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete view params

func (*DeleteViewParams) WithRequestBody

func (o *DeleteViewParams) WithRequestBody(requestBody *models.ViewDeletionParams) *DeleteViewParams

WithRequestBody adds the requestBody to the delete view params

func (*DeleteViewParams) WithTimeout

func (o *DeleteViewParams) WithTimeout(timeout time.Duration) *DeleteViewParams

WithTimeout adds the timeout to the delete view params

func (*DeleteViewParams) WriteToRequest

func (o *DeleteViewParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeleteViewReader

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

DeleteViewReader is a Reader for the DeleteView structure.

func (*DeleteViewReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetViewsBadRequest

type GetViewsBadRequest struct {
	Payload string
}
GetViewsBadRequest describes a response with status code 400, with default header values.

GetViewsBadRequest get views bad request

func NewGetViewsBadRequest

func NewGetViewsBadRequest() *GetViewsBadRequest

NewGetViewsBadRequest creates a GetViewsBadRequest with default headers values

func (*GetViewsBadRequest) Error

func (o *GetViewsBadRequest) Error() string

func (*GetViewsBadRequest) GetPayload

func (o *GetViewsBadRequest) GetPayload() string

type GetViewsConnectionBadRequest

type GetViewsConnectionBadRequest struct {
	Payload string
}
GetViewsConnectionBadRequest describes a response with status code 400, with default header values.

GetViewsConnectionBadRequest get views connection bad request

func NewGetViewsConnectionBadRequest

func NewGetViewsConnectionBadRequest() *GetViewsConnectionBadRequest

NewGetViewsConnectionBadRequest creates a GetViewsConnectionBadRequest with default headers values

func (*GetViewsConnectionBadRequest) Error

func (*GetViewsConnectionBadRequest) GetPayload

func (o *GetViewsConnectionBadRequest) GetPayload() string

type GetViewsConnectionOK

type GetViewsConnectionOK struct {
	Payload *models.ViewConnection
}
GetViewsConnectionOK describes a response with status code 200, with default header values.

Ok

func NewGetViewsConnectionOK

func NewGetViewsConnectionOK() *GetViewsConnectionOK

NewGetViewsConnectionOK creates a GetViewsConnectionOK with default headers values

func (*GetViewsConnectionOK) Error

func (o *GetViewsConnectionOK) Error() string

func (*GetViewsConnectionOK) GetPayload

func (o *GetViewsConnectionOK) GetPayload() *models.ViewConnection

type GetViewsConnectionParams

type GetViewsConnectionParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.GetViewsConnectionRequestBody

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

GetViewsConnectionParams contains all the parameters to send to the API endpoint

for the get views connection operation.

Typically these are written to a http.Request.

func NewGetViewsConnectionParams

func NewGetViewsConnectionParams() *GetViewsConnectionParams

NewGetViewsConnectionParams creates a new GetViewsConnectionParams 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 NewGetViewsConnectionParamsWithContext

func NewGetViewsConnectionParamsWithContext(ctx context.Context) *GetViewsConnectionParams

NewGetViewsConnectionParamsWithContext creates a new GetViewsConnectionParams object with the ability to set a context for a request.

func NewGetViewsConnectionParamsWithHTTPClient

func NewGetViewsConnectionParamsWithHTTPClient(client *http.Client) *GetViewsConnectionParams

NewGetViewsConnectionParamsWithHTTPClient creates a new GetViewsConnectionParams object with the ability to set a custom HTTPClient for a request.

func NewGetViewsConnectionParamsWithTimeout

func NewGetViewsConnectionParamsWithTimeout(timeout time.Duration) *GetViewsConnectionParams

NewGetViewsConnectionParamsWithTimeout creates a new GetViewsConnectionParams object with the ability to set a timeout on a request.

func (*GetViewsConnectionParams) SetContentLanguage

func (o *GetViewsConnectionParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the get views connection params

func (*GetViewsConnectionParams) SetContext

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

SetContext adds the context to the get views connection params

func (*GetViewsConnectionParams) SetDefaults

func (o *GetViewsConnectionParams) SetDefaults()

SetDefaults hydrates default values in the get views connection params (not the query body).

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

func (*GetViewsConnectionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get views connection params

func (*GetViewsConnectionParams) SetRequestBody

func (o *GetViewsConnectionParams) SetRequestBody(requestBody *models.GetViewsConnectionRequestBody)

SetRequestBody adds the requestBody to the get views connection params

func (*GetViewsConnectionParams) SetTimeout

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

SetTimeout adds the timeout to the get views connection params

func (*GetViewsConnectionParams) WithContentLanguage

func (o *GetViewsConnectionParams) WithContentLanguage(contentLanguage *string) *GetViewsConnectionParams

WithContentLanguage adds the contentLanguage to the get views connection params

func (*GetViewsConnectionParams) WithContext

WithContext adds the context to the get views connection params

func (*GetViewsConnectionParams) WithDefaults

WithDefaults hydrates default values in the get views connection params (not the query body).

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

func (*GetViewsConnectionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get views connection params

func (*GetViewsConnectionParams) WithRequestBody

WithRequestBody adds the requestBody to the get views connection params

func (*GetViewsConnectionParams) WithTimeout

WithTimeout adds the timeout to the get views connection params

func (*GetViewsConnectionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetViewsConnectionReader

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

GetViewsConnectionReader is a Reader for the GetViewsConnection structure.

func (*GetViewsConnectionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetViewsOK

type GetViewsOK struct {
	Payload []*models.View
}
GetViewsOK describes a response with status code 200, with default header values.

Ok

func NewGetViewsOK

func NewGetViewsOK() *GetViewsOK

NewGetViewsOK creates a GetViewsOK with default headers values

func (*GetViewsOK) Error

func (o *GetViewsOK) Error() string

func (*GetViewsOK) GetPayload

func (o *GetViewsOK) GetPayload() []*models.View

type GetViewsParams

type GetViewsParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.GetViewsRequestBody

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

GetViewsParams contains all the parameters to send to the API endpoint

for the get views operation.

Typically these are written to a http.Request.

func NewGetViewsParams

func NewGetViewsParams() *GetViewsParams

NewGetViewsParams creates a new GetViewsParams 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 NewGetViewsParamsWithContext

func NewGetViewsParamsWithContext(ctx context.Context) *GetViewsParams

NewGetViewsParamsWithContext creates a new GetViewsParams object with the ability to set a context for a request.

func NewGetViewsParamsWithHTTPClient

func NewGetViewsParamsWithHTTPClient(client *http.Client) *GetViewsParams

NewGetViewsParamsWithHTTPClient creates a new GetViewsParams object with the ability to set a custom HTTPClient for a request.

func NewGetViewsParamsWithTimeout

func NewGetViewsParamsWithTimeout(timeout time.Duration) *GetViewsParams

NewGetViewsParamsWithTimeout creates a new GetViewsParams object with the ability to set a timeout on a request.

func (*GetViewsParams) SetContentLanguage

func (o *GetViewsParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the get views params

func (*GetViewsParams) SetContext

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

SetContext adds the context to the get views params

func (*GetViewsParams) SetDefaults

func (o *GetViewsParams) SetDefaults()

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

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

func (*GetViewsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get views params

func (*GetViewsParams) SetRequestBody

func (o *GetViewsParams) SetRequestBody(requestBody *models.GetViewsRequestBody)

SetRequestBody adds the requestBody to the get views params

func (*GetViewsParams) SetTimeout

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

SetTimeout adds the timeout to the get views params

func (*GetViewsParams) WithContentLanguage

func (o *GetViewsParams) WithContentLanguage(contentLanguage *string) *GetViewsParams

WithContentLanguage adds the contentLanguage to the get views params

func (*GetViewsParams) WithContext

func (o *GetViewsParams) WithContext(ctx context.Context) *GetViewsParams

WithContext adds the context to the get views params

func (*GetViewsParams) WithDefaults

func (o *GetViewsParams) WithDefaults() *GetViewsParams

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

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

func (*GetViewsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get views params

func (*GetViewsParams) WithRequestBody

func (o *GetViewsParams) WithRequestBody(requestBody *models.GetViewsRequestBody) *GetViewsParams

WithRequestBody adds the requestBody to the get views params

func (*GetViewsParams) WithTimeout

func (o *GetViewsParams) WithTimeout(timeout time.Duration) *GetViewsParams

WithTimeout adds the timeout to the get views params

func (*GetViewsParams) WriteToRequest

func (o *GetViewsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetViewsReader

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

GetViewsReader is a Reader for the GetViews structure.

func (*GetViewsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateViewBadRequest

type UpdateViewBadRequest struct {
	Payload string
}
UpdateViewBadRequest describes a response with status code 400, with default header values.

UpdateViewBadRequest update view bad request

func NewUpdateViewBadRequest

func NewUpdateViewBadRequest() *UpdateViewBadRequest

NewUpdateViewBadRequest creates a UpdateViewBadRequest with default headers values

func (*UpdateViewBadRequest) Error

func (o *UpdateViewBadRequest) Error() string

func (*UpdateViewBadRequest) GetPayload

func (o *UpdateViewBadRequest) GetPayload() string

type UpdateViewOK

type UpdateViewOK struct {
	Payload []*models.WithTaskView
}
UpdateViewOK describes a response with status code 200, with default header values.

Ok

func NewUpdateViewOK

func NewUpdateViewOK() *UpdateViewOK

NewUpdateViewOK creates a UpdateViewOK with default headers values

func (*UpdateViewOK) Error

func (o *UpdateViewOK) Error() string

func (*UpdateViewOK) GetPayload

func (o *UpdateViewOK) GetPayload() []*models.WithTaskView

type UpdateViewParams

type UpdateViewParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.ViewUpdationParams

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

UpdateViewParams contains all the parameters to send to the API endpoint

for the update view operation.

Typically these are written to a http.Request.

func NewUpdateViewParams

func NewUpdateViewParams() *UpdateViewParams

NewUpdateViewParams creates a new UpdateViewParams 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 NewUpdateViewParamsWithContext

func NewUpdateViewParamsWithContext(ctx context.Context) *UpdateViewParams

NewUpdateViewParamsWithContext creates a new UpdateViewParams object with the ability to set a context for a request.

func NewUpdateViewParamsWithHTTPClient

func NewUpdateViewParamsWithHTTPClient(client *http.Client) *UpdateViewParams

NewUpdateViewParamsWithHTTPClient creates a new UpdateViewParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateViewParamsWithTimeout

func NewUpdateViewParamsWithTimeout(timeout time.Duration) *UpdateViewParams

NewUpdateViewParamsWithTimeout creates a new UpdateViewParams object with the ability to set a timeout on a request.

func (*UpdateViewParams) SetContentLanguage

func (o *UpdateViewParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the update view params

func (*UpdateViewParams) SetContext

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

SetContext adds the context to the update view params

func (*UpdateViewParams) SetDefaults

func (o *UpdateViewParams) SetDefaults()

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

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

func (*UpdateViewParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update view params

func (*UpdateViewParams) SetRequestBody

func (o *UpdateViewParams) SetRequestBody(requestBody *models.ViewUpdationParams)

SetRequestBody adds the requestBody to the update view params

func (*UpdateViewParams) SetTimeout

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

SetTimeout adds the timeout to the update view params

func (*UpdateViewParams) WithContentLanguage

func (o *UpdateViewParams) WithContentLanguage(contentLanguage *string) *UpdateViewParams

WithContentLanguage adds the contentLanguage to the update view params

func (*UpdateViewParams) WithContext

func (o *UpdateViewParams) WithContext(ctx context.Context) *UpdateViewParams

WithContext adds the context to the update view params

func (*UpdateViewParams) WithDefaults

func (o *UpdateViewParams) WithDefaults() *UpdateViewParams

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

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

func (*UpdateViewParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update view params

func (*UpdateViewParams) WithRequestBody

func (o *UpdateViewParams) WithRequestBody(requestBody *models.ViewUpdationParams) *UpdateViewParams

WithRequestBody adds the requestBody to the update view params

func (*UpdateViewParams) WithTimeout

func (o *UpdateViewParams) WithTimeout(timeout time.Duration) *UpdateViewParams

WithTimeout adds the timeout to the update view params

func (*UpdateViewParams) WriteToRequest

func (o *UpdateViewParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UpdateViewReader

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

UpdateViewReader is a Reader for the UpdateView structure.

func (*UpdateViewReader) ReadResponse

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