Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetAPIMetafieldsOK
- func (o *GetAPIMetafieldsOK) Error() string
- func (o *GetAPIMetafieldsOK) GetPayload() []*models.MetaFieldRule
- func (o *GetAPIMetafieldsOK) IsClientError() bool
- func (o *GetAPIMetafieldsOK) IsCode(code int) bool
- func (o *GetAPIMetafieldsOK) IsRedirect() bool
- func (o *GetAPIMetafieldsOK) IsServerError() bool
- func (o *GetAPIMetafieldsOK) IsSuccess() bool
- func (o *GetAPIMetafieldsOK) String() string
- type GetAPIMetafieldsParams
- func NewGetAPIMetafieldsParams() *GetAPIMetafieldsParams
- func NewGetAPIMetafieldsParamsWithContext(ctx context.Context) *GetAPIMetafieldsParams
- func NewGetAPIMetafieldsParamsWithHTTPClient(client *http.Client) *GetAPIMetafieldsParams
- func NewGetAPIMetafieldsParamsWithTimeout(timeout time.Duration) *GetAPIMetafieldsParams
- func (o *GetAPIMetafieldsParams) SetContext(ctx context.Context)
- func (o *GetAPIMetafieldsParams) SetDefaults()
- func (o *GetAPIMetafieldsParams) SetEntity(entity string)
- func (o *GetAPIMetafieldsParams) SetHTTPClient(client *http.Client)
- func (o *GetAPIMetafieldsParams) SetTimeout(timeout time.Duration)
- func (o *GetAPIMetafieldsParams) WithContext(ctx context.Context) *GetAPIMetafieldsParams
- func (o *GetAPIMetafieldsParams) WithDefaults() *GetAPIMetafieldsParams
- func (o *GetAPIMetafieldsParams) WithEntity(entity string) *GetAPIMetafieldsParams
- func (o *GetAPIMetafieldsParams) WithHTTPClient(client *http.Client) *GetAPIMetafieldsParams
- func (o *GetAPIMetafieldsParams) WithTimeout(timeout time.Duration) *GetAPIMetafieldsParams
- func (o *GetAPIMetafieldsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAPIMetafieldsReader
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 meta field API
func (*Client) GetAPIMetafields ¶
func (a *Client) GetAPIMetafields(params *GetAPIMetafieldsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIMetafieldsOK, error)
GetAPIMetafields returns a collection of meta fields
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 { GetAPIMetafields(params *GetAPIMetafieldsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIMetafieldsOK, 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 meta field API client.
type GetAPIMetafieldsOK ¶
type GetAPIMetafieldsOK struct {
Payload []*models.MetaFieldRule
}
GetAPIMetafieldsOK describes a response with status code 200, with default header values.
Returns a collection of meta-fields
func NewGetAPIMetafieldsOK ¶
func NewGetAPIMetafieldsOK() *GetAPIMetafieldsOK
NewGetAPIMetafieldsOK creates a GetAPIMetafieldsOK with default headers values
func (*GetAPIMetafieldsOK) Error ¶
func (o *GetAPIMetafieldsOK) Error() string
func (*GetAPIMetafieldsOK) GetPayload ¶
func (o *GetAPIMetafieldsOK) GetPayload() []*models.MetaFieldRule
func (*GetAPIMetafieldsOK) IsClientError ¶
func (o *GetAPIMetafieldsOK) IsClientError() bool
IsClientError returns true when this get Api metafields o k response has a 4xx status code
func (*GetAPIMetafieldsOK) IsCode ¶
func (o *GetAPIMetafieldsOK) IsCode(code int) bool
IsCode returns true when this get Api metafields o k response a status code equal to that given
func (*GetAPIMetafieldsOK) IsRedirect ¶
func (o *GetAPIMetafieldsOK) IsRedirect() bool
IsRedirect returns true when this get Api metafields o k response has a 3xx status code
func (*GetAPIMetafieldsOK) IsServerError ¶
func (o *GetAPIMetafieldsOK) IsServerError() bool
IsServerError returns true when this get Api metafields o k response has a 5xx status code
func (*GetAPIMetafieldsOK) IsSuccess ¶
func (o *GetAPIMetafieldsOK) IsSuccess() bool
IsSuccess returns true when this get Api metafields o k response has a 2xx status code
func (*GetAPIMetafieldsOK) String ¶
func (o *GetAPIMetafieldsOK) String() string
type GetAPIMetafieldsParams ¶
type GetAPIMetafieldsParams struct { /* Entity. The type of object to fetch meta-fields for. Allowed values: timesheet, customer, project, activity, user, expense - returns all if not given (default: all) Format: MetaFieldExternalType */ Entity string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetAPIMetafieldsParams contains all the parameters to send to the API endpoint
for the get API metafields operation. Typically these are written to a http.Request.
func NewGetAPIMetafieldsParams ¶
func NewGetAPIMetafieldsParams() *GetAPIMetafieldsParams
NewGetAPIMetafieldsParams creates a new GetAPIMetafieldsParams 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 NewGetAPIMetafieldsParamsWithContext ¶
func NewGetAPIMetafieldsParamsWithContext(ctx context.Context) *GetAPIMetafieldsParams
NewGetAPIMetafieldsParamsWithContext creates a new GetAPIMetafieldsParams object with the ability to set a context for a request.
func NewGetAPIMetafieldsParamsWithHTTPClient ¶
func NewGetAPIMetafieldsParamsWithHTTPClient(client *http.Client) *GetAPIMetafieldsParams
NewGetAPIMetafieldsParamsWithHTTPClient creates a new GetAPIMetafieldsParams object with the ability to set a custom HTTPClient for a request.
func NewGetAPIMetafieldsParamsWithTimeout ¶
func NewGetAPIMetafieldsParamsWithTimeout(timeout time.Duration) *GetAPIMetafieldsParams
NewGetAPIMetafieldsParamsWithTimeout creates a new GetAPIMetafieldsParams object with the ability to set a timeout on a request.
func (*GetAPIMetafieldsParams) SetContext ¶
func (o *GetAPIMetafieldsParams) SetContext(ctx context.Context)
SetContext adds the context to the get API metafields params
func (*GetAPIMetafieldsParams) SetDefaults ¶
func (o *GetAPIMetafieldsParams) SetDefaults()
SetDefaults hydrates default values in the get API metafields params (not the query body).
All values with no default are reset to their zero value.
func (*GetAPIMetafieldsParams) SetEntity ¶
func (o *GetAPIMetafieldsParams) SetEntity(entity string)
SetEntity adds the entity to the get API metafields params
func (*GetAPIMetafieldsParams) SetHTTPClient ¶
func (o *GetAPIMetafieldsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get API metafields params
func (*GetAPIMetafieldsParams) SetTimeout ¶
func (o *GetAPIMetafieldsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get API metafields params
func (*GetAPIMetafieldsParams) WithContext ¶
func (o *GetAPIMetafieldsParams) WithContext(ctx context.Context) *GetAPIMetafieldsParams
WithContext adds the context to the get API metafields params
func (*GetAPIMetafieldsParams) WithDefaults ¶
func (o *GetAPIMetafieldsParams) WithDefaults() *GetAPIMetafieldsParams
WithDefaults hydrates default values in the get API metafields params (not the query body).
All values with no default are reset to their zero value.
func (*GetAPIMetafieldsParams) WithEntity ¶
func (o *GetAPIMetafieldsParams) WithEntity(entity string) *GetAPIMetafieldsParams
WithEntity adds the entity to the get API metafields params
func (*GetAPIMetafieldsParams) WithHTTPClient ¶
func (o *GetAPIMetafieldsParams) WithHTTPClient(client *http.Client) *GetAPIMetafieldsParams
WithHTTPClient adds the HTTPClient to the get API metafields params
func (*GetAPIMetafieldsParams) WithTimeout ¶
func (o *GetAPIMetafieldsParams) WithTimeout(timeout time.Duration) *GetAPIMetafieldsParams
WithTimeout adds the timeout to the get API metafields params
func (*GetAPIMetafieldsParams) WriteToRequest ¶
func (o *GetAPIMetafieldsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetAPIMetafieldsReader ¶
type GetAPIMetafieldsReader struct {
// contains filtered or unexported fields
}
GetAPIMetafieldsReader is a Reader for the GetAPIMetafields structure.
func (*GetAPIMetafieldsReader) ReadResponse ¶
func (o *GetAPIMetafieldsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.