custom_field

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: Apache-2.0 Imports: 12 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 custom field API

func New

func New(transport runtime.ClientTransport,
	formats strfmt.Registry,
	authInfo runtime.ClientAuthInfoWriter,
	defaults KillbillDefaults) *Client

New creates a new custom field API client.

func (*Client) GetCustomFieldAuditLogsWithHistory

func (a *Client) GetCustomFieldAuditLogsWithHistory(ctx context.Context, params *GetCustomFieldAuditLogsWithHistoryParams) (*GetCustomFieldAuditLogsWithHistoryOK, error)

GetCustomFieldAuditLogsWithHistory retrieves custom field audit logs with history by id

func (*Client) GetCustomFields

func (a *Client) GetCustomFields(ctx context.Context, params *GetCustomFieldsParams) (*GetCustomFieldsOK, error)

GetCustomFields lists custom fields

func (*Client) SearchCustomFields

func (a *Client) SearchCustomFields(ctx context.Context, params *SearchCustomFieldsParams) (*SearchCustomFieldsOK, error)

SearchCustomFields searches custom fields

func (*Client) SearchCustomFieldsByTypeName

func (a *Client) SearchCustomFieldsByTypeName(ctx context.Context, params *SearchCustomFieldsByTypeNameParams) (*SearchCustomFieldsByTypeNameOK, error)

SearchCustomFieldsByTypeName searches custom fields by type name and optional value

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 {
	GetCustomFieldAuditLogsWithHistory(ctx context.Context, params *GetCustomFieldAuditLogsWithHistoryParams) (*GetCustomFieldAuditLogsWithHistoryOK, error)

	GetCustomFields(ctx context.Context, params *GetCustomFieldsParams) (*GetCustomFieldsOK, error)

	SearchCustomFields(ctx context.Context, params *SearchCustomFieldsParams) (*SearchCustomFieldsOK, error)

	SearchCustomFieldsByTypeName(ctx context.Context, params *SearchCustomFieldsByTypeNameParams) (*SearchCustomFieldsByTypeNameOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

type GetCustomFieldAuditLogsWithHistoryNotFound

type GetCustomFieldAuditLogsWithHistoryNotFound struct {
	HttpResponse runtime.ClientResponse
}

GetCustomFieldAuditLogsWithHistoryNotFound describes a response with status code 404, with default header values.

Account not found

func NewGetCustomFieldAuditLogsWithHistoryNotFound

func NewGetCustomFieldAuditLogsWithHistoryNotFound() *GetCustomFieldAuditLogsWithHistoryNotFound

NewGetCustomFieldAuditLogsWithHistoryNotFound creates a GetCustomFieldAuditLogsWithHistoryNotFound with default headers values

func (*GetCustomFieldAuditLogsWithHistoryNotFound) Code

Code gets the status code for the get custom field audit logs with history not found response

func (*GetCustomFieldAuditLogsWithHistoryNotFound) Error

func (*GetCustomFieldAuditLogsWithHistoryNotFound) IsClientError

IsClientError returns true when this get custom field audit logs with history not found response has a 4xx status code

func (*GetCustomFieldAuditLogsWithHistoryNotFound) IsCode

IsCode returns true when this get custom field audit logs with history not found response a status code equal to that given

func (*GetCustomFieldAuditLogsWithHistoryNotFound) IsRedirect

IsRedirect returns true when this get custom field audit logs with history not found response has a 3xx status code

func (*GetCustomFieldAuditLogsWithHistoryNotFound) IsServerError

IsServerError returns true when this get custom field audit logs with history not found response has a 5xx status code

func (*GetCustomFieldAuditLogsWithHistoryNotFound) IsSuccess

IsSuccess returns true when this get custom field audit logs with history not found response has a 2xx status code

func (*GetCustomFieldAuditLogsWithHistoryNotFound) String

type GetCustomFieldAuditLogsWithHistoryOK

type GetCustomFieldAuditLogsWithHistoryOK struct {
	Payload      []*kbmodel.AuditLog
	HttpResponse runtime.ClientResponse
}

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

successful operation

func NewGetCustomFieldAuditLogsWithHistoryOK

func NewGetCustomFieldAuditLogsWithHistoryOK() *GetCustomFieldAuditLogsWithHistoryOK

NewGetCustomFieldAuditLogsWithHistoryOK creates a GetCustomFieldAuditLogsWithHistoryOK with default headers values

func (*GetCustomFieldAuditLogsWithHistoryOK) Code

Code gets the status code for the get custom field audit logs with history o k response

func (*GetCustomFieldAuditLogsWithHistoryOK) Error

func (*GetCustomFieldAuditLogsWithHistoryOK) GetPayload

func (*GetCustomFieldAuditLogsWithHistoryOK) IsClientError

func (o *GetCustomFieldAuditLogsWithHistoryOK) IsClientError() bool

IsClientError returns true when this get custom field audit logs with history o k response has a 4xx status code

func (*GetCustomFieldAuditLogsWithHistoryOK) IsCode

IsCode returns true when this get custom field audit logs with history o k response a status code equal to that given

func (*GetCustomFieldAuditLogsWithHistoryOK) IsRedirect

IsRedirect returns true when this get custom field audit logs with history o k response has a 3xx status code

func (*GetCustomFieldAuditLogsWithHistoryOK) IsServerError

func (o *GetCustomFieldAuditLogsWithHistoryOK) IsServerError() bool

IsServerError returns true when this get custom field audit logs with history o k response has a 5xx status code

func (*GetCustomFieldAuditLogsWithHistoryOK) IsSuccess

IsSuccess returns true when this get custom field audit logs with history o k response has a 2xx status code

func (*GetCustomFieldAuditLogsWithHistoryOK) String

type GetCustomFieldAuditLogsWithHistoryParams

type GetCustomFieldAuditLogsWithHistoryParams struct {

	// CustomFieldID.
	//
	// Format: uuid
	CustomFieldID strfmt.UUID

	WithProfilingInfo *string // If set, return KB hprof headers
	WithStackTrace    *bool   // If set, returns full stack trace with error message

	Context               context.Context
	HTTPClient            *http.Client
	ProcessLocationHeader bool // For create APIs that return 201, send another request and retrieve the resource.
	// contains filtered or unexported fields
}

GetCustomFieldAuditLogsWithHistoryParams contains all the parameters to send to the API endpoint

for the get custom field audit logs with history operation.

Typically these are written to a http.Request.

func NewGetCustomFieldAuditLogsWithHistoryParams

func NewGetCustomFieldAuditLogsWithHistoryParams() *GetCustomFieldAuditLogsWithHistoryParams

NewGetCustomFieldAuditLogsWithHistoryParams creates a new GetCustomFieldAuditLogsWithHistoryParams 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 NewGetCustomFieldAuditLogsWithHistoryParamsWithContext

func NewGetCustomFieldAuditLogsWithHistoryParamsWithContext(ctx context.Context) *GetCustomFieldAuditLogsWithHistoryParams

NewGetCustomFieldAuditLogsWithHistoryParamsWithContext creates a new GetCustomFieldAuditLogsWithHistoryParams object with the ability to set a context for a request.

func NewGetCustomFieldAuditLogsWithHistoryParamsWithHTTPClient

func NewGetCustomFieldAuditLogsWithHistoryParamsWithHTTPClient(client *http.Client) *GetCustomFieldAuditLogsWithHistoryParams

NewGetCustomFieldAuditLogsWithHistoryParamsWithHTTPClient creates a new GetCustomFieldAuditLogsWithHistoryParams object with the ability to set a custom HTTPClient for a request.

func NewGetCustomFieldAuditLogsWithHistoryParamsWithTimeout

func NewGetCustomFieldAuditLogsWithHistoryParamsWithTimeout(timeout time.Duration) *GetCustomFieldAuditLogsWithHistoryParams

NewGetCustomFieldAuditLogsWithHistoryParamsWithTimeout creates a new GetCustomFieldAuditLogsWithHistoryParams object with the ability to set a timeout on a request.

func (*GetCustomFieldAuditLogsWithHistoryParams) SetContext

SetContext adds the context to the get custom field audit logs with history params

func (*GetCustomFieldAuditLogsWithHistoryParams) SetCustomFieldID

func (o *GetCustomFieldAuditLogsWithHistoryParams) SetCustomFieldID(customFieldID strfmt.UUID)

SetCustomFieldID adds the customFieldId to the get custom field audit logs with history params

func (*GetCustomFieldAuditLogsWithHistoryParams) SetDefaults

SetDefaults hydrates default values in the get custom field audit logs with history params (not the query body).

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

func (*GetCustomFieldAuditLogsWithHistoryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get custom field audit logs with history params

func (*GetCustomFieldAuditLogsWithHistoryParams) SetTimeout

SetTimeout adds the timeout to the get custom field audit logs with history params

func (*GetCustomFieldAuditLogsWithHistoryParams) WithContext

WithContext adds the context to the get custom field audit logs with history params

func (*GetCustomFieldAuditLogsWithHistoryParams) WithCustomFieldID

WithCustomFieldID adds the customFieldID to the get custom field audit logs with history params

func (*GetCustomFieldAuditLogsWithHistoryParams) WithDefaults

WithDefaults hydrates default values in the get custom field audit logs with history params (not the query body).

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

func (*GetCustomFieldAuditLogsWithHistoryParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get custom field audit logs with history params

func (*GetCustomFieldAuditLogsWithHistoryParams) WithTimeout

WithTimeout adds the timeout to the get custom field audit logs with history params

func (*GetCustomFieldAuditLogsWithHistoryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetCustomFieldAuditLogsWithHistoryReader

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

GetCustomFieldAuditLogsWithHistoryReader is a Reader for the GetCustomFieldAuditLogsWithHistory structure.

func (*GetCustomFieldAuditLogsWithHistoryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetCustomFieldsOK

type GetCustomFieldsOK struct {
	Payload      []*kbmodel.CustomField
	HttpResponse runtime.ClientResponse
}

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

successful operation

func NewGetCustomFieldsOK

func NewGetCustomFieldsOK() *GetCustomFieldsOK

NewGetCustomFieldsOK creates a GetCustomFieldsOK with default headers values

func (*GetCustomFieldsOK) Code

func (o *GetCustomFieldsOK) Code() int

Code gets the status code for the get custom fields o k response

func (*GetCustomFieldsOK) Error

func (o *GetCustomFieldsOK) Error() string

func (*GetCustomFieldsOK) GetPayload

func (o *GetCustomFieldsOK) GetPayload() []*kbmodel.CustomField

func (*GetCustomFieldsOK) IsClientError

func (o *GetCustomFieldsOK) IsClientError() bool

IsClientError returns true when this get custom fields o k response has a 4xx status code

func (*GetCustomFieldsOK) IsCode

func (o *GetCustomFieldsOK) IsCode(code int) bool

IsCode returns true when this get custom fields o k response a status code equal to that given

func (*GetCustomFieldsOK) IsRedirect

func (o *GetCustomFieldsOK) IsRedirect() bool

IsRedirect returns true when this get custom fields o k response has a 3xx status code

func (*GetCustomFieldsOK) IsServerError

func (o *GetCustomFieldsOK) IsServerError() bool

IsServerError returns true when this get custom fields o k response has a 5xx status code

func (*GetCustomFieldsOK) IsSuccess

func (o *GetCustomFieldsOK) IsSuccess() bool

IsSuccess returns true when this get custom fields o k response has a 2xx status code

func (*GetCustomFieldsOK) String

func (o *GetCustomFieldsOK) String() string

type GetCustomFieldsParams

type GetCustomFieldsParams struct {

	// Audit.
	//
	// Default: "NONE"
	Audit *string

	// Limit.
	//
	// Format: int64
	// Default: 100
	Limit *int64

	// Offset.
	//
	// Format: int64
	Offset *int64

	WithProfilingInfo *string // If set, return KB hprof headers
	WithStackTrace    *bool   // If set, returns full stack trace with error message

	Context               context.Context
	HTTPClient            *http.Client
	ProcessLocationHeader bool // For create APIs that return 201, send another request and retrieve the resource.
	// contains filtered or unexported fields
}

GetCustomFieldsParams contains all the parameters to send to the API endpoint

for the get custom fields operation.

Typically these are written to a http.Request.

func NewGetCustomFieldsParams

func NewGetCustomFieldsParams() *GetCustomFieldsParams

NewGetCustomFieldsParams creates a new GetCustomFieldsParams 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 NewGetCustomFieldsParamsWithContext

func NewGetCustomFieldsParamsWithContext(ctx context.Context) *GetCustomFieldsParams

NewGetCustomFieldsParamsWithContext creates a new GetCustomFieldsParams object with the ability to set a context for a request.

func NewGetCustomFieldsParamsWithHTTPClient

func NewGetCustomFieldsParamsWithHTTPClient(client *http.Client) *GetCustomFieldsParams

NewGetCustomFieldsParamsWithHTTPClient creates a new GetCustomFieldsParams object with the ability to set a custom HTTPClient for a request.

func NewGetCustomFieldsParamsWithTimeout

func NewGetCustomFieldsParamsWithTimeout(timeout time.Duration) *GetCustomFieldsParams

NewGetCustomFieldsParamsWithTimeout creates a new GetCustomFieldsParams object with the ability to set a timeout on a request.

func (*GetCustomFieldsParams) SetAudit

func (o *GetCustomFieldsParams) SetAudit(audit *string)

SetAudit adds the audit to the get custom fields params

func (*GetCustomFieldsParams) SetContext

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

SetContext adds the context to the get custom fields params

func (*GetCustomFieldsParams) SetDefaults

func (o *GetCustomFieldsParams) SetDefaults()

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

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

func (*GetCustomFieldsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get custom fields params

func (*GetCustomFieldsParams) SetLimit

func (o *GetCustomFieldsParams) SetLimit(limit *int64)

SetLimit adds the limit to the get custom fields params

func (*GetCustomFieldsParams) SetOffset

func (o *GetCustomFieldsParams) SetOffset(offset *int64)

SetOffset adds the offset to the get custom fields params

func (*GetCustomFieldsParams) SetTimeout

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

SetTimeout adds the timeout to the get custom fields params

func (*GetCustomFieldsParams) WithAudit

func (o *GetCustomFieldsParams) WithAudit(audit *string) *GetCustomFieldsParams

WithAudit adds the audit to the get custom fields params

func (*GetCustomFieldsParams) WithContext

WithContext adds the context to the get custom fields params

func (*GetCustomFieldsParams) WithDefaults

func (o *GetCustomFieldsParams) WithDefaults() *GetCustomFieldsParams

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

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

func (*GetCustomFieldsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get custom fields params

func (*GetCustomFieldsParams) WithLimit

func (o *GetCustomFieldsParams) WithLimit(limit *int64) *GetCustomFieldsParams

WithLimit adds the limit to the get custom fields params

func (*GetCustomFieldsParams) WithOffset

func (o *GetCustomFieldsParams) WithOffset(offset *int64) *GetCustomFieldsParams

WithOffset adds the offset to the get custom fields params

func (*GetCustomFieldsParams) WithTimeout

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

WithTimeout adds the timeout to the get custom fields params

func (*GetCustomFieldsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetCustomFieldsReader

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

GetCustomFieldsReader is a Reader for the GetCustomFields structure.

func (*GetCustomFieldsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type KillbillDefaults

type KillbillDefaults interface {
	// Default CreatedBy. If not set explicitly in params, this will be used.
	XKillbillCreatedBy() *string
	// Default Comment. If not set explicitly in params, this will be used.
	XKillbillComment() *string
	// Default Reason. If not set explicitly in params, this will be used.
	XKillbillReason() *string
	// Default WithWithProfilingInfo. If not set explicitly in params, this will be used.
	KillbillWithProfilingInfo() *string
	// Default WithStackTrace. If not set explicitly in params, this will be used.
	KillbillWithStackTrace() *bool
}

killbill default values. When a call is made to an operation, these values are used if params doesn't specify them.

type SearchCustomFieldsByTypeNameOK

type SearchCustomFieldsByTypeNameOK struct {
	Payload      []*kbmodel.CustomField
	HttpResponse runtime.ClientResponse
}

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

successful operation

func NewSearchCustomFieldsByTypeNameOK

func NewSearchCustomFieldsByTypeNameOK() *SearchCustomFieldsByTypeNameOK

NewSearchCustomFieldsByTypeNameOK creates a SearchCustomFieldsByTypeNameOK with default headers values

func (*SearchCustomFieldsByTypeNameOK) Code

Code gets the status code for the search custom fields by type name o k response

func (*SearchCustomFieldsByTypeNameOK) Error

func (*SearchCustomFieldsByTypeNameOK) GetPayload

func (*SearchCustomFieldsByTypeNameOK) IsClientError

func (o *SearchCustomFieldsByTypeNameOK) IsClientError() bool

IsClientError returns true when this search custom fields by type name o k response has a 4xx status code

func (*SearchCustomFieldsByTypeNameOK) IsCode

func (o *SearchCustomFieldsByTypeNameOK) IsCode(code int) bool

IsCode returns true when this search custom fields by type name o k response a status code equal to that given

func (*SearchCustomFieldsByTypeNameOK) IsRedirect

func (o *SearchCustomFieldsByTypeNameOK) IsRedirect() bool

IsRedirect returns true when this search custom fields by type name o k response has a 3xx status code

func (*SearchCustomFieldsByTypeNameOK) IsServerError

func (o *SearchCustomFieldsByTypeNameOK) IsServerError() bool

IsServerError returns true when this search custom fields by type name o k response has a 5xx status code

func (*SearchCustomFieldsByTypeNameOK) IsSuccess

func (o *SearchCustomFieldsByTypeNameOK) IsSuccess() bool

IsSuccess returns true when this search custom fields by type name o k response has a 2xx status code

func (*SearchCustomFieldsByTypeNameOK) String

type SearchCustomFieldsByTypeNameParams

type SearchCustomFieldsByTypeNameParams struct {

	// Audit.
	//
	// Default: "NONE"
	Audit *string

	// FieldName.
	FieldName *string

	// FieldValue.
	FieldValue *string

	// Limit.
	//
	// Format: int64
	// Default: 100
	Limit *int64

	// ObjectType.
	ObjectType *string

	// Offset.
	//
	// Format: int64
	Offset *int64

	WithProfilingInfo *string // If set, return KB hprof headers
	WithStackTrace    *bool   // If set, returns full stack trace with error message

	Context               context.Context
	HTTPClient            *http.Client
	ProcessLocationHeader bool // For create APIs that return 201, send another request and retrieve the resource.
	// contains filtered or unexported fields
}

SearchCustomFieldsByTypeNameParams contains all the parameters to send to the API endpoint

for the search custom fields by type name operation.

Typically these are written to a http.Request.

func NewSearchCustomFieldsByTypeNameParams

func NewSearchCustomFieldsByTypeNameParams() *SearchCustomFieldsByTypeNameParams

NewSearchCustomFieldsByTypeNameParams creates a new SearchCustomFieldsByTypeNameParams 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 NewSearchCustomFieldsByTypeNameParamsWithContext

func NewSearchCustomFieldsByTypeNameParamsWithContext(ctx context.Context) *SearchCustomFieldsByTypeNameParams

NewSearchCustomFieldsByTypeNameParamsWithContext creates a new SearchCustomFieldsByTypeNameParams object with the ability to set a context for a request.

func NewSearchCustomFieldsByTypeNameParamsWithHTTPClient

func NewSearchCustomFieldsByTypeNameParamsWithHTTPClient(client *http.Client) *SearchCustomFieldsByTypeNameParams

NewSearchCustomFieldsByTypeNameParamsWithHTTPClient creates a new SearchCustomFieldsByTypeNameParams object with the ability to set a custom HTTPClient for a request.

func NewSearchCustomFieldsByTypeNameParamsWithTimeout

func NewSearchCustomFieldsByTypeNameParamsWithTimeout(timeout time.Duration) *SearchCustomFieldsByTypeNameParams

NewSearchCustomFieldsByTypeNameParamsWithTimeout creates a new SearchCustomFieldsByTypeNameParams object with the ability to set a timeout on a request.

func (*SearchCustomFieldsByTypeNameParams) SetAudit

func (o *SearchCustomFieldsByTypeNameParams) SetAudit(audit *string)

SetAudit adds the audit to the search custom fields by type name params

func (*SearchCustomFieldsByTypeNameParams) SetContext

SetContext adds the context to the search custom fields by type name params

func (*SearchCustomFieldsByTypeNameParams) SetDefaults

func (o *SearchCustomFieldsByTypeNameParams) SetDefaults()

SetDefaults hydrates default values in the search custom fields by type name params (not the query body).

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

func (*SearchCustomFieldsByTypeNameParams) SetFieldName

func (o *SearchCustomFieldsByTypeNameParams) SetFieldName(fieldName *string)

SetFieldName adds the fieldName to the search custom fields by type name params

func (*SearchCustomFieldsByTypeNameParams) SetFieldValue

func (o *SearchCustomFieldsByTypeNameParams) SetFieldValue(fieldValue *string)

SetFieldValue adds the fieldValue to the search custom fields by type name params

func (*SearchCustomFieldsByTypeNameParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the search custom fields by type name params

func (*SearchCustomFieldsByTypeNameParams) SetLimit

func (o *SearchCustomFieldsByTypeNameParams) SetLimit(limit *int64)

SetLimit adds the limit to the search custom fields by type name params

func (*SearchCustomFieldsByTypeNameParams) SetObjectType

func (o *SearchCustomFieldsByTypeNameParams) SetObjectType(objectType *string)

SetObjectType adds the objectType to the search custom fields by type name params

func (*SearchCustomFieldsByTypeNameParams) SetOffset

func (o *SearchCustomFieldsByTypeNameParams) SetOffset(offset *int64)

SetOffset adds the offset to the search custom fields by type name params

func (*SearchCustomFieldsByTypeNameParams) SetTimeout

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

SetTimeout adds the timeout to the search custom fields by type name params

func (*SearchCustomFieldsByTypeNameParams) WithAudit

WithAudit adds the audit to the search custom fields by type name params

func (*SearchCustomFieldsByTypeNameParams) WithContext

WithContext adds the context to the search custom fields by type name params

func (*SearchCustomFieldsByTypeNameParams) WithDefaults

WithDefaults hydrates default values in the search custom fields by type name params (not the query body).

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

func (*SearchCustomFieldsByTypeNameParams) WithFieldName

WithFieldName adds the fieldName to the search custom fields by type name params

func (*SearchCustomFieldsByTypeNameParams) WithFieldValue

WithFieldValue adds the fieldValue to the search custom fields by type name params

func (*SearchCustomFieldsByTypeNameParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the search custom fields by type name params

func (*SearchCustomFieldsByTypeNameParams) WithLimit

WithLimit adds the limit to the search custom fields by type name params

func (*SearchCustomFieldsByTypeNameParams) WithObjectType

WithObjectType adds the objectType to the search custom fields by type name params

func (*SearchCustomFieldsByTypeNameParams) WithOffset

WithOffset adds the offset to the search custom fields by type name params

func (*SearchCustomFieldsByTypeNameParams) WithTimeout

WithTimeout adds the timeout to the search custom fields by type name params

func (*SearchCustomFieldsByTypeNameParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SearchCustomFieldsByTypeNameReader

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

SearchCustomFieldsByTypeNameReader is a Reader for the SearchCustomFieldsByTypeName structure.

func (*SearchCustomFieldsByTypeNameReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SearchCustomFieldsOK

type SearchCustomFieldsOK struct {
	Payload      []*kbmodel.CustomField
	HttpResponse runtime.ClientResponse
}

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

successful operation

func NewSearchCustomFieldsOK

func NewSearchCustomFieldsOK() *SearchCustomFieldsOK

NewSearchCustomFieldsOK creates a SearchCustomFieldsOK with default headers values

func (*SearchCustomFieldsOK) Code

func (o *SearchCustomFieldsOK) Code() int

Code gets the status code for the search custom fields o k response

func (*SearchCustomFieldsOK) Error

func (o *SearchCustomFieldsOK) Error() string

func (*SearchCustomFieldsOK) GetPayload

func (o *SearchCustomFieldsOK) GetPayload() []*kbmodel.CustomField

func (*SearchCustomFieldsOK) IsClientError

func (o *SearchCustomFieldsOK) IsClientError() bool

IsClientError returns true when this search custom fields o k response has a 4xx status code

func (*SearchCustomFieldsOK) IsCode

func (o *SearchCustomFieldsOK) IsCode(code int) bool

IsCode returns true when this search custom fields o k response a status code equal to that given

func (*SearchCustomFieldsOK) IsRedirect

func (o *SearchCustomFieldsOK) IsRedirect() bool

IsRedirect returns true when this search custom fields o k response has a 3xx status code

func (*SearchCustomFieldsOK) IsServerError

func (o *SearchCustomFieldsOK) IsServerError() bool

IsServerError returns true when this search custom fields o k response has a 5xx status code

func (*SearchCustomFieldsOK) IsSuccess

func (o *SearchCustomFieldsOK) IsSuccess() bool

IsSuccess returns true when this search custom fields o k response has a 2xx status code

func (*SearchCustomFieldsOK) String

func (o *SearchCustomFieldsOK) String() string

type SearchCustomFieldsParams

type SearchCustomFieldsParams struct {

	// Audit.
	//
	// Default: "NONE"
	Audit *string

	// Limit.
	//
	// Format: int64
	// Default: 100
	Limit *int64

	// Offset.
	//
	// Format: int64
	Offset *int64

	// SearchKey.
	SearchKey string

	WithProfilingInfo *string // If set, return KB hprof headers
	WithStackTrace    *bool   // If set, returns full stack trace with error message

	Context               context.Context
	HTTPClient            *http.Client
	ProcessLocationHeader bool // For create APIs that return 201, send another request and retrieve the resource.
	// contains filtered or unexported fields
}

SearchCustomFieldsParams contains all the parameters to send to the API endpoint

for the search custom fields operation.

Typically these are written to a http.Request.

func NewSearchCustomFieldsParams

func NewSearchCustomFieldsParams() *SearchCustomFieldsParams

NewSearchCustomFieldsParams creates a new SearchCustomFieldsParams 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 NewSearchCustomFieldsParamsWithContext

func NewSearchCustomFieldsParamsWithContext(ctx context.Context) *SearchCustomFieldsParams

NewSearchCustomFieldsParamsWithContext creates a new SearchCustomFieldsParams object with the ability to set a context for a request.

func NewSearchCustomFieldsParamsWithHTTPClient

func NewSearchCustomFieldsParamsWithHTTPClient(client *http.Client) *SearchCustomFieldsParams

NewSearchCustomFieldsParamsWithHTTPClient creates a new SearchCustomFieldsParams object with the ability to set a custom HTTPClient for a request.

func NewSearchCustomFieldsParamsWithTimeout

func NewSearchCustomFieldsParamsWithTimeout(timeout time.Duration) *SearchCustomFieldsParams

NewSearchCustomFieldsParamsWithTimeout creates a new SearchCustomFieldsParams object with the ability to set a timeout on a request.

func (*SearchCustomFieldsParams) SetAudit

func (o *SearchCustomFieldsParams) SetAudit(audit *string)

SetAudit adds the audit to the search custom fields params

func (*SearchCustomFieldsParams) SetContext

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

SetContext adds the context to the search custom fields params

func (*SearchCustomFieldsParams) SetDefaults

func (o *SearchCustomFieldsParams) SetDefaults()

SetDefaults hydrates default values in the search custom fields params (not the query body).

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

func (*SearchCustomFieldsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the search custom fields params

func (*SearchCustomFieldsParams) SetLimit

func (o *SearchCustomFieldsParams) SetLimit(limit *int64)

SetLimit adds the limit to the search custom fields params

func (*SearchCustomFieldsParams) SetOffset

func (o *SearchCustomFieldsParams) SetOffset(offset *int64)

SetOffset adds the offset to the search custom fields params

func (*SearchCustomFieldsParams) SetSearchKey

func (o *SearchCustomFieldsParams) SetSearchKey(searchKey string)

SetSearchKey adds the searchKey to the search custom fields params

func (*SearchCustomFieldsParams) SetTimeout

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

SetTimeout adds the timeout to the search custom fields params

func (*SearchCustomFieldsParams) WithAudit

WithAudit adds the audit to the search custom fields params

func (*SearchCustomFieldsParams) WithContext

WithContext adds the context to the search custom fields params

func (*SearchCustomFieldsParams) WithDefaults

WithDefaults hydrates default values in the search custom fields params (not the query body).

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

func (*SearchCustomFieldsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the search custom fields params

func (*SearchCustomFieldsParams) WithLimit

WithLimit adds the limit to the search custom fields params

func (*SearchCustomFieldsParams) WithOffset

WithOffset adds the offset to the search custom fields params

func (*SearchCustomFieldsParams) WithSearchKey

func (o *SearchCustomFieldsParams) WithSearchKey(searchKey string) *SearchCustomFieldsParams

WithSearchKey adds the searchKey to the search custom fields params

func (*SearchCustomFieldsParams) WithTimeout

WithTimeout adds the timeout to the search custom fields params

func (*SearchCustomFieldsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SearchCustomFieldsReader

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

SearchCustomFieldsReader is a Reader for the SearchCustomFields structure.

func (*SearchCustomFieldsReader) ReadResponse

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