context

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2023 License: MIT Imports: 11 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 context API

func (*Client) GetContextsGetPhp

func (a *Client) GetContextsGetPhp(params *GetContextsGetPhpParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetContextsGetPhpOK, error)

GetContextsGetPhp get contexts get php API

func (*Client) PostContextsAddPhp

func (a *Client) PostContextsAddPhp(params *PostContextsAddPhpParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostContextsAddPhpOK, error)

PostContextsAddPhp post contexts add php API

func (*Client) PostContextsDeletePhp

func (a *Client) PostContextsDeletePhp(params *PostContextsDeletePhpParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostContextsDeletePhpOK, error)

PostContextsDeletePhp post contexts delete php API

func (*Client) PostContextsEditPhp

func (a *Client) PostContextsEditPhp(params *PostContextsEditPhpParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostContextsEditPhpOK, error)

PostContextsEditPhp post contexts edit php API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetContextsGetPhp(params *GetContextsGetPhpParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetContextsGetPhpOK, error)

	PostContextsAddPhp(params *PostContextsAddPhpParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostContextsAddPhpOK, error)

	PostContextsDeletePhp(params *PostContextsDeletePhpParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostContextsDeletePhpOK, error)

	PostContextsEditPhp(params *PostContextsEditPhpParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostContextsEditPhpOK, 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 context API client.

type GetContextsGetPhpOK

type GetContextsGetPhpOK struct {
	Payload []*models.Context
}

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

ok

func NewGetContextsGetPhpOK

func NewGetContextsGetPhpOK() *GetContextsGetPhpOK

NewGetContextsGetPhpOK creates a GetContextsGetPhpOK with default headers values

func (*GetContextsGetPhpOK) Error

func (o *GetContextsGetPhpOK) Error() string

func (*GetContextsGetPhpOK) GetPayload

func (o *GetContextsGetPhpOK) GetPayload() []*models.Context

type GetContextsGetPhpParams

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

GetContextsGetPhpParams contains all the parameters to send to the API endpoint

for the get contexts get php operation.

Typically these are written to a http.Request.

func NewGetContextsGetPhpParams

func NewGetContextsGetPhpParams() *GetContextsGetPhpParams

NewGetContextsGetPhpParams creates a new GetContextsGetPhpParams 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 NewGetContextsGetPhpParamsWithContext

func NewGetContextsGetPhpParamsWithContext(ctx ccontext.Context) *GetContextsGetPhpParams

NewGetContextsGetPhpParamsWithContext creates a new GetContextsGetPhpParams object with the ability to set a context for a request.

func NewGetContextsGetPhpParamsWithHTTPClient

func NewGetContextsGetPhpParamsWithHTTPClient(client *http.Client) *GetContextsGetPhpParams

NewGetContextsGetPhpParamsWithHTTPClient creates a new GetContextsGetPhpParams object with the ability to set a custom HTTPClient for a request.

func NewGetContextsGetPhpParamsWithTimeout

func NewGetContextsGetPhpParamsWithTimeout(timeout time.Duration) *GetContextsGetPhpParams

NewGetContextsGetPhpParamsWithTimeout creates a new GetContextsGetPhpParams object with the ability to set a timeout on a request.

func (*GetContextsGetPhpParams) SetContext

func (o *GetContextsGetPhpParams) SetContext(ctx ccontext.Context)

SetContext adds the context to the get contexts get php params

func (*GetContextsGetPhpParams) SetDefaults

func (o *GetContextsGetPhpParams) SetDefaults()

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

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

func (*GetContextsGetPhpParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get contexts get php params

func (*GetContextsGetPhpParams) SetTimeout

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

SetTimeout adds the timeout to the get contexts get php params

func (*GetContextsGetPhpParams) WithContext

WithContext adds the context to the get contexts get php params

func (*GetContextsGetPhpParams) WithDefaults

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

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

func (*GetContextsGetPhpParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get contexts get php params

func (*GetContextsGetPhpParams) WithTimeout

WithTimeout adds the timeout to the get contexts get php params

func (*GetContextsGetPhpParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetContextsGetPhpReader

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

GetContextsGetPhpReader is a Reader for the GetContextsGetPhp structure.

func (*GetContextsGetPhpReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetContextsGetPhpServiceUnavailable

type GetContextsGetPhpServiceUnavailable struct {
	Payload *models.Error
}

GetContextsGetPhpServiceUnavailable describes a response with status code 503, with default header values.

ServiceUnavailable

func NewGetContextsGetPhpServiceUnavailable

func NewGetContextsGetPhpServiceUnavailable() *GetContextsGetPhpServiceUnavailable

NewGetContextsGetPhpServiceUnavailable creates a GetContextsGetPhpServiceUnavailable with default headers values

func (*GetContextsGetPhpServiceUnavailable) Error

func (*GetContextsGetPhpServiceUnavailable) GetPayload

type GetContextsGetPhpTooManyRequests

type GetContextsGetPhpTooManyRequests struct {
	Payload *models.Error
}

GetContextsGetPhpTooManyRequests describes a response with status code 429, with default header values.

TooManyRequests

func NewGetContextsGetPhpTooManyRequests

func NewGetContextsGetPhpTooManyRequests() *GetContextsGetPhpTooManyRequests

NewGetContextsGetPhpTooManyRequests creates a GetContextsGetPhpTooManyRequests with default headers values

func (*GetContextsGetPhpTooManyRequests) Error

func (*GetContextsGetPhpTooManyRequests) GetPayload

type GetContextsGetPhpUnauthorized

type GetContextsGetPhpUnauthorized struct {
	Payload *models.Error
}

GetContextsGetPhpUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetContextsGetPhpUnauthorized

func NewGetContextsGetPhpUnauthorized() *GetContextsGetPhpUnauthorized

NewGetContextsGetPhpUnauthorized creates a GetContextsGetPhpUnauthorized with default headers values

func (*GetContextsGetPhpUnauthorized) Error

func (*GetContextsGetPhpUnauthorized) GetPayload

func (o *GetContextsGetPhpUnauthorized) GetPayload() *models.Error

type PostContextsAddPhpOK

type PostContextsAddPhpOK struct {
	Payload []*models.Context
}

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

ok

func NewPostContextsAddPhpOK

func NewPostContextsAddPhpOK() *PostContextsAddPhpOK

NewPostContextsAddPhpOK creates a PostContextsAddPhpOK with default headers values

func (*PostContextsAddPhpOK) Error

func (o *PostContextsAddPhpOK) Error() string

func (*PostContextsAddPhpOK) GetPayload

func (o *PostContextsAddPhpOK) GetPayload() []*models.Context

type PostContextsAddPhpParams

type PostContextsAddPhpParams struct {

	// Name.
	Name string

	// Private.
	Private *int64

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

PostContextsAddPhpParams contains all the parameters to send to the API endpoint

for the post contexts add php operation.

Typically these are written to a http.Request.

func NewPostContextsAddPhpParams

func NewPostContextsAddPhpParams() *PostContextsAddPhpParams

NewPostContextsAddPhpParams creates a new PostContextsAddPhpParams 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 NewPostContextsAddPhpParamsWithContext

func NewPostContextsAddPhpParamsWithContext(ctx ccontext.Context) *PostContextsAddPhpParams

NewPostContextsAddPhpParamsWithContext creates a new PostContextsAddPhpParams object with the ability to set a context for a request.

func NewPostContextsAddPhpParamsWithHTTPClient

func NewPostContextsAddPhpParamsWithHTTPClient(client *http.Client) *PostContextsAddPhpParams

NewPostContextsAddPhpParamsWithHTTPClient creates a new PostContextsAddPhpParams object with the ability to set a custom HTTPClient for a request.

func NewPostContextsAddPhpParamsWithTimeout

func NewPostContextsAddPhpParamsWithTimeout(timeout time.Duration) *PostContextsAddPhpParams

NewPostContextsAddPhpParamsWithTimeout creates a new PostContextsAddPhpParams object with the ability to set a timeout on a request.

func (*PostContextsAddPhpParams) SetContext

func (o *PostContextsAddPhpParams) SetContext(ctx ccontext.Context)

SetContext adds the context to the post contexts add php params

func (*PostContextsAddPhpParams) SetDefaults

func (o *PostContextsAddPhpParams) SetDefaults()

SetDefaults hydrates default values in the post contexts add php params (not the query body).

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

func (*PostContextsAddPhpParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post contexts add php params

func (*PostContextsAddPhpParams) SetName

func (o *PostContextsAddPhpParams) SetName(name string)

SetName adds the name to the post contexts add php params

func (*PostContextsAddPhpParams) SetPrivate

func (o *PostContextsAddPhpParams) SetPrivate(private *int64)

SetPrivate adds the private to the post contexts add php params

func (*PostContextsAddPhpParams) SetTimeout

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

SetTimeout adds the timeout to the post contexts add php params

func (*PostContextsAddPhpParams) WithContext

WithContext adds the context to the post contexts add php params

func (*PostContextsAddPhpParams) WithDefaults

WithDefaults hydrates default values in the post contexts add php params (not the query body).

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

func (*PostContextsAddPhpParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post contexts add php params

func (*PostContextsAddPhpParams) WithName

WithName adds the name to the post contexts add php params

func (*PostContextsAddPhpParams) WithPrivate

func (o *PostContextsAddPhpParams) WithPrivate(private *int64) *PostContextsAddPhpParams

WithPrivate adds the private to the post contexts add php params

func (*PostContextsAddPhpParams) WithTimeout

WithTimeout adds the timeout to the post contexts add php params

func (*PostContextsAddPhpParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostContextsAddPhpReader

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

PostContextsAddPhpReader is a Reader for the PostContextsAddPhp structure.

func (*PostContextsAddPhpReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostContextsAddPhpServiceUnavailable

type PostContextsAddPhpServiceUnavailable struct {
	Payload *models.Error
}

PostContextsAddPhpServiceUnavailable describes a response with status code 503, with default header values.

ServiceUnavailable

func NewPostContextsAddPhpServiceUnavailable

func NewPostContextsAddPhpServiceUnavailable() *PostContextsAddPhpServiceUnavailable

NewPostContextsAddPhpServiceUnavailable creates a PostContextsAddPhpServiceUnavailable with default headers values

func (*PostContextsAddPhpServiceUnavailable) Error

func (*PostContextsAddPhpServiceUnavailable) GetPayload

type PostContextsAddPhpTooManyRequests

type PostContextsAddPhpTooManyRequests struct {
	Payload *models.Error
}

PostContextsAddPhpTooManyRequests describes a response with status code 429, with default header values.

TooManyRequests

func NewPostContextsAddPhpTooManyRequests

func NewPostContextsAddPhpTooManyRequests() *PostContextsAddPhpTooManyRequests

NewPostContextsAddPhpTooManyRequests creates a PostContextsAddPhpTooManyRequests with default headers values

func (*PostContextsAddPhpTooManyRequests) Error

func (*PostContextsAddPhpTooManyRequests) GetPayload

type PostContextsAddPhpUnauthorized

type PostContextsAddPhpUnauthorized struct {
	Payload *models.Error
}

PostContextsAddPhpUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewPostContextsAddPhpUnauthorized

func NewPostContextsAddPhpUnauthorized() *PostContextsAddPhpUnauthorized

NewPostContextsAddPhpUnauthorized creates a PostContextsAddPhpUnauthorized with default headers values

func (*PostContextsAddPhpUnauthorized) Error

func (*PostContextsAddPhpUnauthorized) GetPayload

func (o *PostContextsAddPhpUnauthorized) GetPayload() *models.Error

type PostContextsDeletePhpOK

type PostContextsDeletePhpOK struct {
	Payload *PostContextsDeletePhpOKBody
}

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

ok

func NewPostContextsDeletePhpOK

func NewPostContextsDeletePhpOK() *PostContextsDeletePhpOK

NewPostContextsDeletePhpOK creates a PostContextsDeletePhpOK with default headers values

func (*PostContextsDeletePhpOK) Error

func (o *PostContextsDeletePhpOK) Error() string

func (*PostContextsDeletePhpOK) GetPayload

type PostContextsDeletePhpOKBody

type PostContextsDeletePhpOKBody struct {

	// deleted
	Deleted int64 `json:"deleted,omitempty"`
}

PostContextsDeletePhpOKBody post contexts delete php o k body swagger:model PostContextsDeletePhpOKBody

func (*PostContextsDeletePhpOKBody) ContextValidate

func (o *PostContextsDeletePhpOKBody) ContextValidate(ctx ccontext.Context, formats strfmt.Registry) error

ContextValidate validates this post contexts delete php o k body based on context it is used

func (*PostContextsDeletePhpOKBody) MarshalBinary

func (o *PostContextsDeletePhpOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostContextsDeletePhpOKBody) UnmarshalBinary

func (o *PostContextsDeletePhpOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostContextsDeletePhpOKBody) Validate

func (o *PostContextsDeletePhpOKBody) Validate(formats strfmt.Registry) error

Validate validates this post contexts delete php o k body

type PostContextsDeletePhpParams

type PostContextsDeletePhpParams struct {

	// ID.
	ID int64

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

PostContextsDeletePhpParams contains all the parameters to send to the API endpoint

for the post contexts delete php operation.

Typically these are written to a http.Request.

func NewPostContextsDeletePhpParams

func NewPostContextsDeletePhpParams() *PostContextsDeletePhpParams

NewPostContextsDeletePhpParams creates a new PostContextsDeletePhpParams 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 NewPostContextsDeletePhpParamsWithContext

func NewPostContextsDeletePhpParamsWithContext(ctx ccontext.Context) *PostContextsDeletePhpParams

NewPostContextsDeletePhpParamsWithContext creates a new PostContextsDeletePhpParams object with the ability to set a context for a request.

func NewPostContextsDeletePhpParamsWithHTTPClient

func NewPostContextsDeletePhpParamsWithHTTPClient(client *http.Client) *PostContextsDeletePhpParams

NewPostContextsDeletePhpParamsWithHTTPClient creates a new PostContextsDeletePhpParams object with the ability to set a custom HTTPClient for a request.

func NewPostContextsDeletePhpParamsWithTimeout

func NewPostContextsDeletePhpParamsWithTimeout(timeout time.Duration) *PostContextsDeletePhpParams

NewPostContextsDeletePhpParamsWithTimeout creates a new PostContextsDeletePhpParams object with the ability to set a timeout on a request.

func (*PostContextsDeletePhpParams) SetContext

func (o *PostContextsDeletePhpParams) SetContext(ctx ccontext.Context)

SetContext adds the context to the post contexts delete php params

func (*PostContextsDeletePhpParams) SetDefaults

func (o *PostContextsDeletePhpParams) SetDefaults()

SetDefaults hydrates default values in the post contexts delete php params (not the query body).

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

func (*PostContextsDeletePhpParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post contexts delete php params

func (*PostContextsDeletePhpParams) SetID

func (o *PostContextsDeletePhpParams) SetID(id int64)

SetID adds the id to the post contexts delete php params

func (*PostContextsDeletePhpParams) SetTimeout

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

SetTimeout adds the timeout to the post contexts delete php params

func (*PostContextsDeletePhpParams) WithContext

WithContext adds the context to the post contexts delete php params

func (*PostContextsDeletePhpParams) WithDefaults

WithDefaults hydrates default values in the post contexts delete php params (not the query body).

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

func (*PostContextsDeletePhpParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post contexts delete php params

func (*PostContextsDeletePhpParams) WithID

WithID adds the id to the post contexts delete php params

func (*PostContextsDeletePhpParams) WithTimeout

WithTimeout adds the timeout to the post contexts delete php params

func (*PostContextsDeletePhpParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostContextsDeletePhpReader

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

PostContextsDeletePhpReader is a Reader for the PostContextsDeletePhp structure.

func (*PostContextsDeletePhpReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostContextsDeletePhpServiceUnavailable

type PostContextsDeletePhpServiceUnavailable struct {
	Payload *models.Error
}

PostContextsDeletePhpServiceUnavailable describes a response with status code 503, with default header values.

ServiceUnavailable

func NewPostContextsDeletePhpServiceUnavailable

func NewPostContextsDeletePhpServiceUnavailable() *PostContextsDeletePhpServiceUnavailable

NewPostContextsDeletePhpServiceUnavailable creates a PostContextsDeletePhpServiceUnavailable with default headers values

func (*PostContextsDeletePhpServiceUnavailable) Error

func (*PostContextsDeletePhpServiceUnavailable) GetPayload

type PostContextsDeletePhpTooManyRequests

type PostContextsDeletePhpTooManyRequests struct {
	Payload *models.Error
}

PostContextsDeletePhpTooManyRequests describes a response with status code 429, with default header values.

TooManyRequests

func NewPostContextsDeletePhpTooManyRequests

func NewPostContextsDeletePhpTooManyRequests() *PostContextsDeletePhpTooManyRequests

NewPostContextsDeletePhpTooManyRequests creates a PostContextsDeletePhpTooManyRequests with default headers values

func (*PostContextsDeletePhpTooManyRequests) Error

func (*PostContextsDeletePhpTooManyRequests) GetPayload

type PostContextsDeletePhpUnauthorized

type PostContextsDeletePhpUnauthorized struct {
	Payload *models.Error
}

PostContextsDeletePhpUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewPostContextsDeletePhpUnauthorized

func NewPostContextsDeletePhpUnauthorized() *PostContextsDeletePhpUnauthorized

NewPostContextsDeletePhpUnauthorized creates a PostContextsDeletePhpUnauthorized with default headers values

func (*PostContextsDeletePhpUnauthorized) Error

func (*PostContextsDeletePhpUnauthorized) GetPayload

type PostContextsEditPhpOK

type PostContextsEditPhpOK struct {
	Payload []*models.Context
}

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

ok

func NewPostContextsEditPhpOK

func NewPostContextsEditPhpOK() *PostContextsEditPhpOK

NewPostContextsEditPhpOK creates a PostContextsEditPhpOK with default headers values

func (*PostContextsEditPhpOK) Error

func (o *PostContextsEditPhpOK) Error() string

func (*PostContextsEditPhpOK) GetPayload

func (o *PostContextsEditPhpOK) GetPayload() []*models.Context

type PostContextsEditPhpParams

type PostContextsEditPhpParams struct {

	// ID.
	ID string

	// Name.
	Name *string

	// Private.
	Private *int64

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

PostContextsEditPhpParams contains all the parameters to send to the API endpoint

for the post contexts edit php operation.

Typically these are written to a http.Request.

func NewPostContextsEditPhpParams

func NewPostContextsEditPhpParams() *PostContextsEditPhpParams

NewPostContextsEditPhpParams creates a new PostContextsEditPhpParams 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 NewPostContextsEditPhpParamsWithContext

func NewPostContextsEditPhpParamsWithContext(ctx ccontext.Context) *PostContextsEditPhpParams

NewPostContextsEditPhpParamsWithContext creates a new PostContextsEditPhpParams object with the ability to set a context for a request.

func NewPostContextsEditPhpParamsWithHTTPClient

func NewPostContextsEditPhpParamsWithHTTPClient(client *http.Client) *PostContextsEditPhpParams

NewPostContextsEditPhpParamsWithHTTPClient creates a new PostContextsEditPhpParams object with the ability to set a custom HTTPClient for a request.

func NewPostContextsEditPhpParamsWithTimeout

func NewPostContextsEditPhpParamsWithTimeout(timeout time.Duration) *PostContextsEditPhpParams

NewPostContextsEditPhpParamsWithTimeout creates a new PostContextsEditPhpParams object with the ability to set a timeout on a request.

func (*PostContextsEditPhpParams) SetContext

func (o *PostContextsEditPhpParams) SetContext(ctx ccontext.Context)

SetContext adds the context to the post contexts edit php params

func (*PostContextsEditPhpParams) SetDefaults

func (o *PostContextsEditPhpParams) SetDefaults()

SetDefaults hydrates default values in the post contexts edit php params (not the query body).

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

func (*PostContextsEditPhpParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post contexts edit php params

func (*PostContextsEditPhpParams) SetID

func (o *PostContextsEditPhpParams) SetID(id string)

SetID adds the id to the post contexts edit php params

func (*PostContextsEditPhpParams) SetName

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

SetName adds the name to the post contexts edit php params

func (*PostContextsEditPhpParams) SetPrivate

func (o *PostContextsEditPhpParams) SetPrivate(private *int64)

SetPrivate adds the private to the post contexts edit php params

func (*PostContextsEditPhpParams) SetTimeout

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

SetTimeout adds the timeout to the post contexts edit php params

func (*PostContextsEditPhpParams) WithContext

WithContext adds the context to the post contexts edit php params

func (*PostContextsEditPhpParams) WithDefaults

WithDefaults hydrates default values in the post contexts edit php params (not the query body).

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

func (*PostContextsEditPhpParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post contexts edit php params

func (*PostContextsEditPhpParams) WithID

WithID adds the id to the post contexts edit php params

func (*PostContextsEditPhpParams) WithName

WithName adds the name to the post contexts edit php params

func (*PostContextsEditPhpParams) WithPrivate

func (o *PostContextsEditPhpParams) WithPrivate(private *int64) *PostContextsEditPhpParams

WithPrivate adds the private to the post contexts edit php params

func (*PostContextsEditPhpParams) WithTimeout

WithTimeout adds the timeout to the post contexts edit php params

func (*PostContextsEditPhpParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostContextsEditPhpReader

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

PostContextsEditPhpReader is a Reader for the PostContextsEditPhp structure.

func (*PostContextsEditPhpReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostContextsEditPhpServiceUnavailable

type PostContextsEditPhpServiceUnavailable struct {
	Payload *models.Error
}

PostContextsEditPhpServiceUnavailable describes a response with status code 503, with default header values.

ServiceUnavailable

func NewPostContextsEditPhpServiceUnavailable

func NewPostContextsEditPhpServiceUnavailable() *PostContextsEditPhpServiceUnavailable

NewPostContextsEditPhpServiceUnavailable creates a PostContextsEditPhpServiceUnavailable with default headers values

func (*PostContextsEditPhpServiceUnavailable) Error

func (*PostContextsEditPhpServiceUnavailable) GetPayload

type PostContextsEditPhpTooManyRequests

type PostContextsEditPhpTooManyRequests struct {
	Payload *models.Error
}

PostContextsEditPhpTooManyRequests describes a response with status code 429, with default header values.

TooManyRequests

func NewPostContextsEditPhpTooManyRequests

func NewPostContextsEditPhpTooManyRequests() *PostContextsEditPhpTooManyRequests

NewPostContextsEditPhpTooManyRequests creates a PostContextsEditPhpTooManyRequests with default headers values

func (*PostContextsEditPhpTooManyRequests) Error

func (*PostContextsEditPhpTooManyRequests) GetPayload

type PostContextsEditPhpUnauthorized

type PostContextsEditPhpUnauthorized struct {
	Payload *models.Error
}

PostContextsEditPhpUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewPostContextsEditPhpUnauthorized

func NewPostContextsEditPhpUnauthorized() *PostContextsEditPhpUnauthorized

NewPostContextsEditPhpUnauthorized creates a PostContextsEditPhpUnauthorized with default headers values

func (*PostContextsEditPhpUnauthorized) Error

func (*PostContextsEditPhpUnauthorized) GetPayload

func (o *PostContextsEditPhpUnauthorized) GetPayload() *models.Error

Jump to

Keyboard shortcuts

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