goal

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

func (*Client) GetGoalsGetPhp

func (a *Client) GetGoalsGetPhp(params *GetGoalsGetPhpParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetGoalsGetPhpOK, error)

GetGoalsGetPhp get goals get php API

func (*Client) PostGoalsAddPhp

func (a *Client) PostGoalsAddPhp(params *PostGoalsAddPhpParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostGoalsAddPhpOK, error)

PostGoalsAddPhp post goals add php API

func (*Client) PostGoalsDeletePhp

func (a *Client) PostGoalsDeletePhp(params *PostGoalsDeletePhpParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostGoalsDeletePhpOK, error)

PostGoalsDeletePhp post goals delete php API

func (*Client) PostGoalsEditPhp

func (a *Client) PostGoalsEditPhp(params *PostGoalsEditPhpParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostGoalsEditPhpOK, error)

PostGoalsEditPhp post goals 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 {
	GetGoalsGetPhp(params *GetGoalsGetPhpParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetGoalsGetPhpOK, error)

	PostGoalsAddPhp(params *PostGoalsAddPhpParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostGoalsAddPhpOK, error)

	PostGoalsDeletePhp(params *PostGoalsDeletePhpParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostGoalsDeletePhpOK, error)

	PostGoalsEditPhp(params *PostGoalsEditPhpParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostGoalsEditPhpOK, 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 goal API client.

type GetGoalsGetPhpOK

type GetGoalsGetPhpOK struct {
	Payload []*models.Goal
}

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

ok

func NewGetGoalsGetPhpOK

func NewGetGoalsGetPhpOK() *GetGoalsGetPhpOK

NewGetGoalsGetPhpOK creates a GetGoalsGetPhpOK with default headers values

func (*GetGoalsGetPhpOK) Error

func (o *GetGoalsGetPhpOK) Error() string

func (*GetGoalsGetPhpOK) GetPayload

func (o *GetGoalsGetPhpOK) GetPayload() []*models.Goal

type GetGoalsGetPhpParams

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

GetGoalsGetPhpParams contains all the parameters to send to the API endpoint

for the get goals get php operation.

Typically these are written to a http.Request.

func NewGetGoalsGetPhpParams

func NewGetGoalsGetPhpParams() *GetGoalsGetPhpParams

NewGetGoalsGetPhpParams creates a new GetGoalsGetPhpParams 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 NewGetGoalsGetPhpParamsWithContext

func NewGetGoalsGetPhpParamsWithContext(ctx ccontext.Context) *GetGoalsGetPhpParams

NewGetGoalsGetPhpParamsWithContext creates a new GetGoalsGetPhpParams object with the ability to set a context for a request.

func NewGetGoalsGetPhpParamsWithHTTPClient

func NewGetGoalsGetPhpParamsWithHTTPClient(client *http.Client) *GetGoalsGetPhpParams

NewGetGoalsGetPhpParamsWithHTTPClient creates a new GetGoalsGetPhpParams object with the ability to set a custom HTTPClient for a request.

func NewGetGoalsGetPhpParamsWithTimeout

func NewGetGoalsGetPhpParamsWithTimeout(timeout time.Duration) *GetGoalsGetPhpParams

NewGetGoalsGetPhpParamsWithTimeout creates a new GetGoalsGetPhpParams object with the ability to set a timeout on a request.

func (*GetGoalsGetPhpParams) SetContext

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

SetContext adds the context to the get goals get php params

func (*GetGoalsGetPhpParams) SetDefaults

func (o *GetGoalsGetPhpParams) SetDefaults()

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

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

func (*GetGoalsGetPhpParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get goals get php params

func (*GetGoalsGetPhpParams) SetTimeout

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

SetTimeout adds the timeout to the get goals get php params

func (*GetGoalsGetPhpParams) WithContext

WithContext adds the context to the get goals get php params

func (*GetGoalsGetPhpParams) WithDefaults

func (o *GetGoalsGetPhpParams) WithDefaults() *GetGoalsGetPhpParams

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

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

func (*GetGoalsGetPhpParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get goals get php params

func (*GetGoalsGetPhpParams) WithTimeout

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

WithTimeout adds the timeout to the get goals get php params

func (*GetGoalsGetPhpParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetGoalsGetPhpReader

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

GetGoalsGetPhpReader is a Reader for the GetGoalsGetPhp structure.

func (*GetGoalsGetPhpReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetGoalsGetPhpServiceUnavailable

type GetGoalsGetPhpServiceUnavailable struct {
	Payload *models.Error
}

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

ServiceUnavailable

func NewGetGoalsGetPhpServiceUnavailable

func NewGetGoalsGetPhpServiceUnavailable() *GetGoalsGetPhpServiceUnavailable

NewGetGoalsGetPhpServiceUnavailable creates a GetGoalsGetPhpServiceUnavailable with default headers values

func (*GetGoalsGetPhpServiceUnavailable) Error

func (*GetGoalsGetPhpServiceUnavailable) GetPayload

type GetGoalsGetPhpTooManyRequests

type GetGoalsGetPhpTooManyRequests struct {
	Payload *models.Error
}

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

TooManyRequests

func NewGetGoalsGetPhpTooManyRequests

func NewGetGoalsGetPhpTooManyRequests() *GetGoalsGetPhpTooManyRequests

NewGetGoalsGetPhpTooManyRequests creates a GetGoalsGetPhpTooManyRequests with default headers values

func (*GetGoalsGetPhpTooManyRequests) Error

func (*GetGoalsGetPhpTooManyRequests) GetPayload

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

type GetGoalsGetPhpUnauthorized

type GetGoalsGetPhpUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewGetGoalsGetPhpUnauthorized

func NewGetGoalsGetPhpUnauthorized() *GetGoalsGetPhpUnauthorized

NewGetGoalsGetPhpUnauthorized creates a GetGoalsGetPhpUnauthorized with default headers values

func (*GetGoalsGetPhpUnauthorized) Error

func (*GetGoalsGetPhpUnauthorized) GetPayload

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

type PostGoalsAddPhpOK

type PostGoalsAddPhpOK struct {
	Payload []*models.Goal
}

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

ok

func NewPostGoalsAddPhpOK

func NewPostGoalsAddPhpOK() *PostGoalsAddPhpOK

NewPostGoalsAddPhpOK creates a PostGoalsAddPhpOK with default headers values

func (*PostGoalsAddPhpOK) Error

func (o *PostGoalsAddPhpOK) Error() string

func (*PostGoalsAddPhpOK) GetPayload

func (o *PostGoalsAddPhpOK) GetPayload() []*models.Goal

type PostGoalsAddPhpParams

type PostGoalsAddPhpParams struct {

	// Contributes.
	Contributes *int64

	// Level.
	Level *int64

	// Name.
	Name string

	// Note.
	Note *string

	// Private.
	Private *int64

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

PostGoalsAddPhpParams contains all the parameters to send to the API endpoint

for the post goals add php operation.

Typically these are written to a http.Request.

func NewPostGoalsAddPhpParams

func NewPostGoalsAddPhpParams() *PostGoalsAddPhpParams

NewPostGoalsAddPhpParams creates a new PostGoalsAddPhpParams 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 NewPostGoalsAddPhpParamsWithContext

func NewPostGoalsAddPhpParamsWithContext(ctx ccontext.Context) *PostGoalsAddPhpParams

NewPostGoalsAddPhpParamsWithContext creates a new PostGoalsAddPhpParams object with the ability to set a context for a request.

func NewPostGoalsAddPhpParamsWithHTTPClient

func NewPostGoalsAddPhpParamsWithHTTPClient(client *http.Client) *PostGoalsAddPhpParams

NewPostGoalsAddPhpParamsWithHTTPClient creates a new PostGoalsAddPhpParams object with the ability to set a custom HTTPClient for a request.

func NewPostGoalsAddPhpParamsWithTimeout

func NewPostGoalsAddPhpParamsWithTimeout(timeout time.Duration) *PostGoalsAddPhpParams

NewPostGoalsAddPhpParamsWithTimeout creates a new PostGoalsAddPhpParams object with the ability to set a timeout on a request.

func (*PostGoalsAddPhpParams) SetContext

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

SetContext adds the context to the post goals add php params

func (*PostGoalsAddPhpParams) SetContributes

func (o *PostGoalsAddPhpParams) SetContributes(contributes *int64)

SetContributes adds the contributes to the post goals add php params

func (*PostGoalsAddPhpParams) SetDefaults

func (o *PostGoalsAddPhpParams) SetDefaults()

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

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

func (*PostGoalsAddPhpParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post goals add php params

func (*PostGoalsAddPhpParams) SetLevel

func (o *PostGoalsAddPhpParams) SetLevel(level *int64)

SetLevel adds the level to the post goals add php params

func (*PostGoalsAddPhpParams) SetName

func (o *PostGoalsAddPhpParams) SetName(name string)

SetName adds the name to the post goals add php params

func (*PostGoalsAddPhpParams) SetNote

func (o *PostGoalsAddPhpParams) SetNote(note *string)

SetNote adds the note to the post goals add php params

func (*PostGoalsAddPhpParams) SetPrivate

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

SetPrivate adds the private to the post goals add php params

func (*PostGoalsAddPhpParams) SetTimeout

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

SetTimeout adds the timeout to the post goals add php params

func (*PostGoalsAddPhpParams) WithContext

WithContext adds the context to the post goals add php params

func (*PostGoalsAddPhpParams) WithContributes

func (o *PostGoalsAddPhpParams) WithContributes(contributes *int64) *PostGoalsAddPhpParams

WithContributes adds the contributes to the post goals add php params

func (*PostGoalsAddPhpParams) WithDefaults

func (o *PostGoalsAddPhpParams) WithDefaults() *PostGoalsAddPhpParams

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

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

func (*PostGoalsAddPhpParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post goals add php params

func (*PostGoalsAddPhpParams) WithLevel

func (o *PostGoalsAddPhpParams) WithLevel(level *int64) *PostGoalsAddPhpParams

WithLevel adds the level to the post goals add php params

func (*PostGoalsAddPhpParams) WithName

WithName adds the name to the post goals add php params

func (*PostGoalsAddPhpParams) WithNote

WithNote adds the note to the post goals add php params

func (*PostGoalsAddPhpParams) WithPrivate

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

WithPrivate adds the private to the post goals add php params

func (*PostGoalsAddPhpParams) WithTimeout

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

WithTimeout adds the timeout to the post goals add php params

func (*PostGoalsAddPhpParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostGoalsAddPhpReader

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

PostGoalsAddPhpReader is a Reader for the PostGoalsAddPhp structure.

func (*PostGoalsAddPhpReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostGoalsAddPhpServiceUnavailable

type PostGoalsAddPhpServiceUnavailable struct {
	Payload *models.Error
}

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

ServiceUnavailable

func NewPostGoalsAddPhpServiceUnavailable

func NewPostGoalsAddPhpServiceUnavailable() *PostGoalsAddPhpServiceUnavailable

NewPostGoalsAddPhpServiceUnavailable creates a PostGoalsAddPhpServiceUnavailable with default headers values

func (*PostGoalsAddPhpServiceUnavailable) Error

func (*PostGoalsAddPhpServiceUnavailable) GetPayload

type PostGoalsAddPhpTooManyRequests

type PostGoalsAddPhpTooManyRequests struct {
	Payload *models.Error
}

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

TooManyRequests

func NewPostGoalsAddPhpTooManyRequests

func NewPostGoalsAddPhpTooManyRequests() *PostGoalsAddPhpTooManyRequests

NewPostGoalsAddPhpTooManyRequests creates a PostGoalsAddPhpTooManyRequests with default headers values

func (*PostGoalsAddPhpTooManyRequests) Error

func (*PostGoalsAddPhpTooManyRequests) GetPayload

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

type PostGoalsAddPhpUnauthorized

type PostGoalsAddPhpUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewPostGoalsAddPhpUnauthorized

func NewPostGoalsAddPhpUnauthorized() *PostGoalsAddPhpUnauthorized

NewPostGoalsAddPhpUnauthorized creates a PostGoalsAddPhpUnauthorized with default headers values

func (*PostGoalsAddPhpUnauthorized) Error

func (*PostGoalsAddPhpUnauthorized) GetPayload

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

type PostGoalsDeletePhpOK

type PostGoalsDeletePhpOK struct {
	Payload *PostGoalsDeletePhpOKBody
}

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

ok

func NewPostGoalsDeletePhpOK

func NewPostGoalsDeletePhpOK() *PostGoalsDeletePhpOK

NewPostGoalsDeletePhpOK creates a PostGoalsDeletePhpOK with default headers values

func (*PostGoalsDeletePhpOK) Error

func (o *PostGoalsDeletePhpOK) Error() string

func (*PostGoalsDeletePhpOK) GetPayload

type PostGoalsDeletePhpOKBody

type PostGoalsDeletePhpOKBody struct {

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

PostGoalsDeletePhpOKBody post goals delete php o k body swagger:model PostGoalsDeletePhpOKBody

func (*PostGoalsDeletePhpOKBody) ContextValidate

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

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

func (*PostGoalsDeletePhpOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*PostGoalsDeletePhpOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PostGoalsDeletePhpOKBody) Validate

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

Validate validates this post goals delete php o k body

type PostGoalsDeletePhpParams

type PostGoalsDeletePhpParams struct {

	// ID.
	ID int64

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

PostGoalsDeletePhpParams contains all the parameters to send to the API endpoint

for the post goals delete php operation.

Typically these are written to a http.Request.

func NewPostGoalsDeletePhpParams

func NewPostGoalsDeletePhpParams() *PostGoalsDeletePhpParams

NewPostGoalsDeletePhpParams creates a new PostGoalsDeletePhpParams 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 NewPostGoalsDeletePhpParamsWithContext

func NewPostGoalsDeletePhpParamsWithContext(ctx ccontext.Context) *PostGoalsDeletePhpParams

NewPostGoalsDeletePhpParamsWithContext creates a new PostGoalsDeletePhpParams object with the ability to set a context for a request.

func NewPostGoalsDeletePhpParamsWithHTTPClient

func NewPostGoalsDeletePhpParamsWithHTTPClient(client *http.Client) *PostGoalsDeletePhpParams

NewPostGoalsDeletePhpParamsWithHTTPClient creates a new PostGoalsDeletePhpParams object with the ability to set a custom HTTPClient for a request.

func NewPostGoalsDeletePhpParamsWithTimeout

func NewPostGoalsDeletePhpParamsWithTimeout(timeout time.Duration) *PostGoalsDeletePhpParams

NewPostGoalsDeletePhpParamsWithTimeout creates a new PostGoalsDeletePhpParams object with the ability to set a timeout on a request.

func (*PostGoalsDeletePhpParams) SetContext

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

SetContext adds the context to the post goals delete php params

func (*PostGoalsDeletePhpParams) SetDefaults

func (o *PostGoalsDeletePhpParams) SetDefaults()

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

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

func (*PostGoalsDeletePhpParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post goals delete php params

func (*PostGoalsDeletePhpParams) SetID

func (o *PostGoalsDeletePhpParams) SetID(id int64)

SetID adds the id to the post goals delete php params

func (*PostGoalsDeletePhpParams) SetTimeout

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

SetTimeout adds the timeout to the post goals delete php params

func (*PostGoalsDeletePhpParams) WithContext

WithContext adds the context to the post goals delete php params

func (*PostGoalsDeletePhpParams) WithDefaults

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

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

func (*PostGoalsDeletePhpParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post goals delete php params

func (*PostGoalsDeletePhpParams) WithID

WithID adds the id to the post goals delete php params

func (*PostGoalsDeletePhpParams) WithTimeout

WithTimeout adds the timeout to the post goals delete php params

func (*PostGoalsDeletePhpParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostGoalsDeletePhpReader

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

PostGoalsDeletePhpReader is a Reader for the PostGoalsDeletePhp structure.

func (*PostGoalsDeletePhpReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostGoalsDeletePhpServiceUnavailable

type PostGoalsDeletePhpServiceUnavailable struct {
	Payload *models.Error
}

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

ServiceUnavailable

func NewPostGoalsDeletePhpServiceUnavailable

func NewPostGoalsDeletePhpServiceUnavailable() *PostGoalsDeletePhpServiceUnavailable

NewPostGoalsDeletePhpServiceUnavailable creates a PostGoalsDeletePhpServiceUnavailable with default headers values

func (*PostGoalsDeletePhpServiceUnavailable) Error

func (*PostGoalsDeletePhpServiceUnavailable) GetPayload

type PostGoalsDeletePhpTooManyRequests

type PostGoalsDeletePhpTooManyRequests struct {
	Payload *models.Error
}

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

TooManyRequests

func NewPostGoalsDeletePhpTooManyRequests

func NewPostGoalsDeletePhpTooManyRequests() *PostGoalsDeletePhpTooManyRequests

NewPostGoalsDeletePhpTooManyRequests creates a PostGoalsDeletePhpTooManyRequests with default headers values

func (*PostGoalsDeletePhpTooManyRequests) Error

func (*PostGoalsDeletePhpTooManyRequests) GetPayload

type PostGoalsDeletePhpUnauthorized

type PostGoalsDeletePhpUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewPostGoalsDeletePhpUnauthorized

func NewPostGoalsDeletePhpUnauthorized() *PostGoalsDeletePhpUnauthorized

NewPostGoalsDeletePhpUnauthorized creates a PostGoalsDeletePhpUnauthorized with default headers values

func (*PostGoalsDeletePhpUnauthorized) Error

func (*PostGoalsDeletePhpUnauthorized) GetPayload

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

type PostGoalsEditPhpOK

type PostGoalsEditPhpOK struct {
	Payload []*models.Goal
}

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

ok

func NewPostGoalsEditPhpOK

func NewPostGoalsEditPhpOK() *PostGoalsEditPhpOK

NewPostGoalsEditPhpOK creates a PostGoalsEditPhpOK with default headers values

func (*PostGoalsEditPhpOK) Error

func (o *PostGoalsEditPhpOK) Error() string

func (*PostGoalsEditPhpOK) GetPayload

func (o *PostGoalsEditPhpOK) GetPayload() []*models.Goal

type PostGoalsEditPhpParams

type PostGoalsEditPhpParams struct {

	// Archived.
	Archived *int64

	// Contributes.
	Contributes *int64

	// ID.
	ID string

	// Level.
	Level *int64

	// Name.
	Name *string

	// Note.
	Note *string

	// Private.
	Private *int64

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

PostGoalsEditPhpParams contains all the parameters to send to the API endpoint

for the post goals edit php operation.

Typically these are written to a http.Request.

func NewPostGoalsEditPhpParams

func NewPostGoalsEditPhpParams() *PostGoalsEditPhpParams

NewPostGoalsEditPhpParams creates a new PostGoalsEditPhpParams 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 NewPostGoalsEditPhpParamsWithContext

func NewPostGoalsEditPhpParamsWithContext(ctx ccontext.Context) *PostGoalsEditPhpParams

NewPostGoalsEditPhpParamsWithContext creates a new PostGoalsEditPhpParams object with the ability to set a context for a request.

func NewPostGoalsEditPhpParamsWithHTTPClient

func NewPostGoalsEditPhpParamsWithHTTPClient(client *http.Client) *PostGoalsEditPhpParams

NewPostGoalsEditPhpParamsWithHTTPClient creates a new PostGoalsEditPhpParams object with the ability to set a custom HTTPClient for a request.

func NewPostGoalsEditPhpParamsWithTimeout

func NewPostGoalsEditPhpParamsWithTimeout(timeout time.Duration) *PostGoalsEditPhpParams

NewPostGoalsEditPhpParamsWithTimeout creates a new PostGoalsEditPhpParams object with the ability to set a timeout on a request.

func (*PostGoalsEditPhpParams) SetArchived

func (o *PostGoalsEditPhpParams) SetArchived(archived *int64)

SetArchived adds the archived to the post goals edit php params

func (*PostGoalsEditPhpParams) SetContext

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

SetContext adds the context to the post goals edit php params

func (*PostGoalsEditPhpParams) SetContributes

func (o *PostGoalsEditPhpParams) SetContributes(contributes *int64)

SetContributes adds the contributes to the post goals edit php params

func (*PostGoalsEditPhpParams) SetDefaults

func (o *PostGoalsEditPhpParams) SetDefaults()

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

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

func (*PostGoalsEditPhpParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post goals edit php params

func (*PostGoalsEditPhpParams) SetID

func (o *PostGoalsEditPhpParams) SetID(id string)

SetID adds the id to the post goals edit php params

func (*PostGoalsEditPhpParams) SetLevel

func (o *PostGoalsEditPhpParams) SetLevel(level *int64)

SetLevel adds the level to the post goals edit php params

func (*PostGoalsEditPhpParams) SetName

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

SetName adds the name to the post goals edit php params

func (*PostGoalsEditPhpParams) SetNote

func (o *PostGoalsEditPhpParams) SetNote(note *string)

SetNote adds the note to the post goals edit php params

func (*PostGoalsEditPhpParams) SetPrivate

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

SetPrivate adds the private to the post goals edit php params

func (*PostGoalsEditPhpParams) SetTimeout

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

SetTimeout adds the timeout to the post goals edit php params

func (*PostGoalsEditPhpParams) WithArchived

func (o *PostGoalsEditPhpParams) WithArchived(archived *int64) *PostGoalsEditPhpParams

WithArchived adds the archived to the post goals edit php params

func (*PostGoalsEditPhpParams) WithContext

WithContext adds the context to the post goals edit php params

func (*PostGoalsEditPhpParams) WithContributes

func (o *PostGoalsEditPhpParams) WithContributes(contributes *int64) *PostGoalsEditPhpParams

WithContributes adds the contributes to the post goals edit php params

func (*PostGoalsEditPhpParams) WithDefaults

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

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

func (*PostGoalsEditPhpParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post goals edit php params

func (*PostGoalsEditPhpParams) WithID

WithID adds the id to the post goals edit php params

func (*PostGoalsEditPhpParams) WithLevel

func (o *PostGoalsEditPhpParams) WithLevel(level *int64) *PostGoalsEditPhpParams

WithLevel adds the level to the post goals edit php params

func (*PostGoalsEditPhpParams) WithName

WithName adds the name to the post goals edit php params

func (*PostGoalsEditPhpParams) WithNote

WithNote adds the note to the post goals edit php params

func (*PostGoalsEditPhpParams) WithPrivate

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

WithPrivate adds the private to the post goals edit php params

func (*PostGoalsEditPhpParams) WithTimeout

WithTimeout adds the timeout to the post goals edit php params

func (*PostGoalsEditPhpParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostGoalsEditPhpReader

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

PostGoalsEditPhpReader is a Reader for the PostGoalsEditPhp structure.

func (*PostGoalsEditPhpReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostGoalsEditPhpServiceUnavailable

type PostGoalsEditPhpServiceUnavailable struct {
	Payload *models.Error
}

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

ServiceUnavailable

func NewPostGoalsEditPhpServiceUnavailable

func NewPostGoalsEditPhpServiceUnavailable() *PostGoalsEditPhpServiceUnavailable

NewPostGoalsEditPhpServiceUnavailable creates a PostGoalsEditPhpServiceUnavailable with default headers values

func (*PostGoalsEditPhpServiceUnavailable) Error

func (*PostGoalsEditPhpServiceUnavailable) GetPayload

type PostGoalsEditPhpTooManyRequests

type PostGoalsEditPhpTooManyRequests struct {
	Payload *models.Error
}

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

TooManyRequests

func NewPostGoalsEditPhpTooManyRequests

func NewPostGoalsEditPhpTooManyRequests() *PostGoalsEditPhpTooManyRequests

NewPostGoalsEditPhpTooManyRequests creates a PostGoalsEditPhpTooManyRequests with default headers values

func (*PostGoalsEditPhpTooManyRequests) Error

func (*PostGoalsEditPhpTooManyRequests) GetPayload

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

type PostGoalsEditPhpUnauthorized

type PostGoalsEditPhpUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewPostGoalsEditPhpUnauthorized

func NewPostGoalsEditPhpUnauthorized() *PostGoalsEditPhpUnauthorized

NewPostGoalsEditPhpUnauthorized creates a PostGoalsEditPhpUnauthorized with default headers values

func (*PostGoalsEditPhpUnauthorized) Error

func (*PostGoalsEditPhpUnauthorized) GetPayload

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

Jump to

Keyboard shortcuts

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