Documentation
¶
Index ¶
- type Client
- func (a *Client) DeleteAPIKey(params *DeleteAPIKeyParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteAPIKeyOK, error)
- func (a *Client) GetAPIKeys(params *GetAPIKeysParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetAPIKeysOK, error)
- func (a *Client) PostAPIKey(params *PostAPIKeyParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PostAPIKeyCreated, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateAPIKey(params *UpdateAPIKeyParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateAPIKeyOK, error)
- type ClientOption
- type ClientService
- type DeleteAPIKeyOK
- func (o *DeleteAPIKeyOK) Code() int
- func (o *DeleteAPIKeyOK) Error() string
- func (o *DeleteAPIKeyOK) IsClientError() bool
- func (o *DeleteAPIKeyOK) IsCode(code int) bool
- func (o *DeleteAPIKeyOK) IsRedirect() bool
- func (o *DeleteAPIKeyOK) IsServerError() bool
- func (o *DeleteAPIKeyOK) IsSuccess() bool
- func (o *DeleteAPIKeyOK) Render()
- func (o *DeleteAPIKeyOK) String() string
- type DeleteAPIKeyParams
- func (o *DeleteAPIKeyParams) SetContext(ctx context.Context)
- func (o *DeleteAPIKeyParams) SetDefaults()
- func (o *DeleteAPIKeyParams) SetHTTPClient(client *http.Client)
- func (o *DeleteAPIKeyParams) SetID(id string)
- func (o *DeleteAPIKeyParams) SetTimeout(timeout time.Duration)
- func (o *DeleteAPIKeyParams) WithContext(ctx context.Context) *DeleteAPIKeyParams
- func (o *DeleteAPIKeyParams) WithDefaults() *DeleteAPIKeyParams
- func (o *DeleteAPIKeyParams) WithHTTPClient(client *http.Client) *DeleteAPIKeyParams
- func (o *DeleteAPIKeyParams) WithID(id string) *DeleteAPIKeyParams
- func (o *DeleteAPIKeyParams) WithTimeout(timeout time.Duration) *DeleteAPIKeyParams
- func (o *DeleteAPIKeyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteAPIKeyReader
- type GetAPIKeysOK
- func (o *GetAPIKeysOK) Code() int
- func (o *GetAPIKeysOK) Error() string
- func (o *GetAPIKeysOK) GetData() []renderer.ResponseData
- func (o *GetAPIKeysOK) GetPayload() *models.APIKeys
- func (o *GetAPIKeysOK) IsClientError() bool
- func (o *GetAPIKeysOK) IsCode(code int) bool
- func (o *GetAPIKeysOK) IsRedirect() bool
- func (o *GetAPIKeysOK) IsServerError() bool
- func (o *GetAPIKeysOK) IsSuccess() bool
- func (o *GetAPIKeysOK) String() string
- type GetAPIKeysParams
- func (o *GetAPIKeysParams) SetContext(ctx context.Context)
- func (o *GetAPIKeysParams) SetDefaults()
- func (o *GetAPIKeysParams) SetHTTPClient(client *http.Client)
- func (o *GetAPIKeysParams) SetTimeout(timeout time.Duration)
- func (o *GetAPIKeysParams) WithContext(ctx context.Context) *GetAPIKeysParams
- func (o *GetAPIKeysParams) WithDefaults() *GetAPIKeysParams
- func (o *GetAPIKeysParams) WithHTTPClient(client *http.Client) *GetAPIKeysParams
- func (o *GetAPIKeysParams) WithTimeout(timeout time.Duration) *GetAPIKeysParams
- func (o *GetAPIKeysParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAPIKeysReader
- type PostAPIKeyCreated
- func (o *PostAPIKeyCreated) Code() int
- func (o *PostAPIKeyCreated) Error() string
- func (o *PostAPIKeyCreated) GetData() []renderer.ResponseData
- func (o *PostAPIKeyCreated) GetPayload() *PostAPIKeyCreatedBody
- func (o *PostAPIKeyCreated) IsClientError() bool
- func (o *PostAPIKeyCreated) IsCode(code int) bool
- func (o *PostAPIKeyCreated) IsRedirect() bool
- func (o *PostAPIKeyCreated) IsServerError() bool
- func (o *PostAPIKeyCreated) IsSuccess() bool
- func (o *PostAPIKeyCreated) String() string
- type PostAPIKeyCreatedBody
- type PostAPIKeyParams
- func (o *PostAPIKeyParams) SetBody(body *models.CreateAPIKey)
- func (o *PostAPIKeyParams) SetContext(ctx context.Context)
- func (o *PostAPIKeyParams) SetDefaults()
- func (o *PostAPIKeyParams) SetHTTPClient(client *http.Client)
- func (o *PostAPIKeyParams) SetTimeout(timeout time.Duration)
- func (o *PostAPIKeyParams) WithBody(body *models.CreateAPIKey) *PostAPIKeyParams
- func (o *PostAPIKeyParams) WithContext(ctx context.Context) *PostAPIKeyParams
- func (o *PostAPIKeyParams) WithDefaults() *PostAPIKeyParams
- func (o *PostAPIKeyParams) WithHTTPClient(client *http.Client) *PostAPIKeyParams
- func (o *PostAPIKeyParams) WithTimeout(timeout time.Duration) *PostAPIKeyParams
- func (o *PostAPIKeyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostAPIKeyReader
- type UpdateAPIKeyOK
- func (o *UpdateAPIKeyOK) Code() int
- func (o *UpdateAPIKeyOK) Error() string
- func (o *UpdateAPIKeyOK) GetData() []renderer.ResponseData
- func (o *UpdateAPIKeyOK) GetPayload() *UpdateAPIKeyOKBody
- func (o *UpdateAPIKeyOK) IsClientError() bool
- func (o *UpdateAPIKeyOK) IsCode(code int) bool
- func (o *UpdateAPIKeyOK) IsRedirect() bool
- func (o *UpdateAPIKeyOK) IsServerError() bool
- func (o *UpdateAPIKeyOK) IsSuccess() bool
- func (o *UpdateAPIKeyOK) String() string
- type UpdateAPIKeyOKBody
- type UpdateAPIKeyParams
- func (o *UpdateAPIKeyParams) SetBody(body *models.UpdateAPIKey)
- func (o *UpdateAPIKeyParams) SetContext(ctx context.Context)
- func (o *UpdateAPIKeyParams) SetDefaults()
- func (o *UpdateAPIKeyParams) SetHTTPClient(client *http.Client)
- func (o *UpdateAPIKeyParams) SetID(id string)
- func (o *UpdateAPIKeyParams) SetTimeout(timeout time.Duration)
- func (o *UpdateAPIKeyParams) WithBody(body *models.UpdateAPIKey) *UpdateAPIKeyParams
- func (o *UpdateAPIKeyParams) WithContext(ctx context.Context) *UpdateAPIKeyParams
- func (o *UpdateAPIKeyParams) WithDefaults() *UpdateAPIKeyParams
- func (o *UpdateAPIKeyParams) WithHTTPClient(client *http.Client) *UpdateAPIKeyParams
- func (o *UpdateAPIKeyParams) WithID(id string) *UpdateAPIKeyParams
- func (o *UpdateAPIKeyParams) WithTimeout(timeout time.Duration) *UpdateAPIKeyParams
- func (o *UpdateAPIKeyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateAPIKeyReader
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 api keys API
func (*Client) DeleteAPIKey ¶
func (a *Client) DeleteAPIKey(params *DeleteAPIKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAPIKeyOK, error)
DeleteAPIKey deletes an API key
Delete an existing API Key. Once deleted, the API Key can no longer be used to access the API.
func (*Client) GetAPIKeys ¶
func (a *Client) GetAPIKeys(params *GetAPIKeysParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIKeysOK, error)
GetAPIKeys lists all API keys
Returns a list of all API keys from the team members
func (*Client) PostAPIKey ¶
func (a *Client) PostAPIKey(params *PostAPIKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAPIKeyCreated, error)
PostAPIKey creates an API key
Create a new API Key that is tied to the current user account. The created API key is only listed ONCE upon creation. It can however be regenerated or deleted.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateAPIKey ¶
func (a *Client) UpdateAPIKey(params *UpdateAPIKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateAPIKeyOK, error)
UpdateAPIKey regenerates an API key
Regenerate an existing API Key that is tied to the current user. This overrides the previous key.
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface {
DeleteAPIKey(params *DeleteAPIKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAPIKeyOK, error)
GetAPIKeys(params *GetAPIKeysParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIKeysOK, error)
PostAPIKey(params *PostAPIKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAPIKeyCreated, error)
UpdateAPIKey(params *UpdateAPIKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateAPIKeyOK, 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 api keys API client.
type DeleteAPIKeyOK ¶
type DeleteAPIKeyOK struct {
}
DeleteAPIKeyOK describes a response with status code 200, with default header values.
API Key Deleted
func NewDeleteAPIKeyOK ¶
func NewDeleteAPIKeyOK() *DeleteAPIKeyOK
NewDeleteAPIKeyOK creates a DeleteAPIKeyOK with default headers values
func (*DeleteAPIKeyOK) Code ¶
func (o *DeleteAPIKeyOK) Code() int
Code gets the status code for the delete Api key o k response
func (*DeleteAPIKeyOK) Error ¶
func (o *DeleteAPIKeyOK) Error() string
func (*DeleteAPIKeyOK) IsClientError ¶
func (o *DeleteAPIKeyOK) IsClientError() bool
IsClientError returns true when this delete Api key o k response has a 4xx status code
func (*DeleteAPIKeyOK) IsCode ¶
func (o *DeleteAPIKeyOK) IsCode(code int) bool
IsCode returns true when this delete Api key o k response a status code equal to that given
func (*DeleteAPIKeyOK) IsRedirect ¶
func (o *DeleteAPIKeyOK) IsRedirect() bool
IsRedirect returns true when this delete Api key o k response has a 3xx status code
func (*DeleteAPIKeyOK) IsServerError ¶
func (o *DeleteAPIKeyOK) IsServerError() bool
IsServerError returns true when this delete Api key o k response has a 5xx status code
func (*DeleteAPIKeyOK) IsSuccess ¶
func (o *DeleteAPIKeyOK) IsSuccess() bool
IsSuccess returns true when this delete Api key o k response has a 2xx status code
func (*DeleteAPIKeyOK) Render ¶
func (o *DeleteAPIKeyOK) Render()
func (*DeleteAPIKeyOK) String ¶
func (o *DeleteAPIKeyOK) String() string
type DeleteAPIKeyParams ¶
type DeleteAPIKeyParams struct {
// ID.
ID string `json:"id"`
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
DeleteAPIKeyParams contains all the parameters to send to the API endpoint
for the delete api key operation. Typically these are written to a http.Request.
func NewDeleteAPIKeyParams ¶
func NewDeleteAPIKeyParams() *DeleteAPIKeyParams
NewDeleteAPIKeyParams creates a new DeleteAPIKeyParams 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 NewDeleteAPIKeyParamsWithContext ¶
func NewDeleteAPIKeyParamsWithContext(ctx context.Context) *DeleteAPIKeyParams
NewDeleteAPIKeyParamsWithContext creates a new DeleteAPIKeyParams object with the ability to set a context for a request.
func NewDeleteAPIKeyParamsWithHTTPClient ¶
func NewDeleteAPIKeyParamsWithHTTPClient(client *http.Client) *DeleteAPIKeyParams
NewDeleteAPIKeyParamsWithHTTPClient creates a new DeleteAPIKeyParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteAPIKeyParamsWithTimeout ¶
func NewDeleteAPIKeyParamsWithTimeout(timeout time.Duration) *DeleteAPIKeyParams
NewDeleteAPIKeyParamsWithTimeout creates a new DeleteAPIKeyParams object with the ability to set a timeout on a request.
func (*DeleteAPIKeyParams) SetContext ¶
func (o *DeleteAPIKeyParams) SetContext(ctx context.Context)
SetContext adds the context to the delete api key params
func (*DeleteAPIKeyParams) SetDefaults ¶
func (o *DeleteAPIKeyParams) SetDefaults()
SetDefaults hydrates default values in the delete api key params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteAPIKeyParams) SetHTTPClient ¶
func (o *DeleteAPIKeyParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete api key params
func (*DeleteAPIKeyParams) SetID ¶
func (o *DeleteAPIKeyParams) SetID(id string)
SetID adds the id to the delete api key params
func (*DeleteAPIKeyParams) SetTimeout ¶
func (o *DeleteAPIKeyParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete api key params
func (*DeleteAPIKeyParams) WithContext ¶
func (o *DeleteAPIKeyParams) WithContext(ctx context.Context) *DeleteAPIKeyParams
WithContext adds the context to the delete api key params
func (*DeleteAPIKeyParams) WithDefaults ¶
func (o *DeleteAPIKeyParams) WithDefaults() *DeleteAPIKeyParams
WithDefaults hydrates default values in the delete api key params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteAPIKeyParams) WithHTTPClient ¶
func (o *DeleteAPIKeyParams) WithHTTPClient(client *http.Client) *DeleteAPIKeyParams
WithHTTPClient adds the HTTPClient to the delete api key params
func (*DeleteAPIKeyParams) WithID ¶
func (o *DeleteAPIKeyParams) WithID(id string) *DeleteAPIKeyParams
WithID adds the id to the delete api key params
func (*DeleteAPIKeyParams) WithTimeout ¶
func (o *DeleteAPIKeyParams) WithTimeout(timeout time.Duration) *DeleteAPIKeyParams
WithTimeout adds the timeout to the delete api key params
func (*DeleteAPIKeyParams) WriteToRequest ¶
func (o *DeleteAPIKeyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteAPIKeyReader ¶
type DeleteAPIKeyReader struct {
// contains filtered or unexported fields
}
DeleteAPIKeyReader is a Reader for the DeleteAPIKey structure.
func (*DeleteAPIKeyReader) ReadResponse ¶
func (o *DeleteAPIKeyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetAPIKeysOK ¶
GetAPIKeysOK describes a response with status code 200, with default header values.
Success
func NewGetAPIKeysOK ¶
func NewGetAPIKeysOK() *GetAPIKeysOK
NewGetAPIKeysOK creates a GetAPIKeysOK with default headers values
func (*GetAPIKeysOK) Code ¶
func (o *GetAPIKeysOK) Code() int
Code gets the status code for the get Api keys o k response
func (*GetAPIKeysOK) Error ¶
func (o *GetAPIKeysOK) Error() string
func (*GetAPIKeysOK) GetData ¶
func (o *GetAPIKeysOK) GetData() []renderer.ResponseData
func (*GetAPIKeysOK) GetPayload ¶
func (o *GetAPIKeysOK) GetPayload() *models.APIKeys
func (*GetAPIKeysOK) IsClientError ¶
func (o *GetAPIKeysOK) IsClientError() bool
IsClientError returns true when this get Api keys o k response has a 4xx status code
func (*GetAPIKeysOK) IsCode ¶
func (o *GetAPIKeysOK) IsCode(code int) bool
IsCode returns true when this get Api keys o k response a status code equal to that given
func (*GetAPIKeysOK) IsRedirect ¶
func (o *GetAPIKeysOK) IsRedirect() bool
IsRedirect returns true when this get Api keys o k response has a 3xx status code
func (*GetAPIKeysOK) IsServerError ¶
func (o *GetAPIKeysOK) IsServerError() bool
IsServerError returns true when this get Api keys o k response has a 5xx status code
func (*GetAPIKeysOK) IsSuccess ¶
func (o *GetAPIKeysOK) IsSuccess() bool
IsSuccess returns true when this get Api keys o k response has a 2xx status code
func (*GetAPIKeysOK) String ¶
func (o *GetAPIKeysOK) String() string
type GetAPIKeysParams ¶
type GetAPIKeysParams struct {
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetAPIKeysParams contains all the parameters to send to the API endpoint
for the get api keys operation. Typically these are written to a http.Request.
func NewGetAPIKeysParams ¶
func NewGetAPIKeysParams() *GetAPIKeysParams
NewGetAPIKeysParams creates a new GetAPIKeysParams 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 NewGetAPIKeysParamsWithContext ¶
func NewGetAPIKeysParamsWithContext(ctx context.Context) *GetAPIKeysParams
NewGetAPIKeysParamsWithContext creates a new GetAPIKeysParams object with the ability to set a context for a request.
func NewGetAPIKeysParamsWithHTTPClient ¶
func NewGetAPIKeysParamsWithHTTPClient(client *http.Client) *GetAPIKeysParams
NewGetAPIKeysParamsWithHTTPClient creates a new GetAPIKeysParams object with the ability to set a custom HTTPClient for a request.
func NewGetAPIKeysParamsWithTimeout ¶
func NewGetAPIKeysParamsWithTimeout(timeout time.Duration) *GetAPIKeysParams
NewGetAPIKeysParamsWithTimeout creates a new GetAPIKeysParams object with the ability to set a timeout on a request.
func (*GetAPIKeysParams) SetContext ¶
func (o *GetAPIKeysParams) SetContext(ctx context.Context)
SetContext adds the context to the get api keys params
func (*GetAPIKeysParams) SetDefaults ¶
func (o *GetAPIKeysParams) SetDefaults()
SetDefaults hydrates default values in the get api keys params (not the query body).
All values with no default are reset to their zero value.
func (*GetAPIKeysParams) SetHTTPClient ¶
func (o *GetAPIKeysParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get api keys params
func (*GetAPIKeysParams) SetTimeout ¶
func (o *GetAPIKeysParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get api keys params
func (*GetAPIKeysParams) WithContext ¶
func (o *GetAPIKeysParams) WithContext(ctx context.Context) *GetAPIKeysParams
WithContext adds the context to the get api keys params
func (*GetAPIKeysParams) WithDefaults ¶
func (o *GetAPIKeysParams) WithDefaults() *GetAPIKeysParams
WithDefaults hydrates default values in the get api keys params (not the query body).
All values with no default are reset to their zero value.
func (*GetAPIKeysParams) WithHTTPClient ¶
func (o *GetAPIKeysParams) WithHTTPClient(client *http.Client) *GetAPIKeysParams
WithHTTPClient adds the HTTPClient to the get api keys params
func (*GetAPIKeysParams) WithTimeout ¶
func (o *GetAPIKeysParams) WithTimeout(timeout time.Duration) *GetAPIKeysParams
WithTimeout adds the timeout to the get api keys params
func (*GetAPIKeysParams) WriteToRequest ¶
func (o *GetAPIKeysParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetAPIKeysReader ¶
type GetAPIKeysReader struct {
// contains filtered or unexported fields
}
GetAPIKeysReader is a Reader for the GetAPIKeys structure.
func (*GetAPIKeysReader) ReadResponse ¶
func (o *GetAPIKeysReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostAPIKeyCreated ¶
type PostAPIKeyCreated struct {
Payload *PostAPIKeyCreatedBody
}
PostAPIKeyCreated describes a response with status code 201, with default header values.
API Key Created
func NewPostAPIKeyCreated ¶
func NewPostAPIKeyCreated() *PostAPIKeyCreated
NewPostAPIKeyCreated creates a PostAPIKeyCreated with default headers values
func (*PostAPIKeyCreated) Code ¶
func (o *PostAPIKeyCreated) Code() int
Code gets the status code for the post Api key created response
func (*PostAPIKeyCreated) Error ¶
func (o *PostAPIKeyCreated) Error() string
func (*PostAPIKeyCreated) GetData ¶
func (o *PostAPIKeyCreated) GetData() []renderer.ResponseData
func (*PostAPIKeyCreated) GetPayload ¶
func (o *PostAPIKeyCreated) GetPayload() *PostAPIKeyCreatedBody
func (*PostAPIKeyCreated) IsClientError ¶
func (o *PostAPIKeyCreated) IsClientError() bool
IsClientError returns true when this post Api key created response has a 4xx status code
func (*PostAPIKeyCreated) IsCode ¶
func (o *PostAPIKeyCreated) IsCode(code int) bool
IsCode returns true when this post Api key created response a status code equal to that given
func (*PostAPIKeyCreated) IsRedirect ¶
func (o *PostAPIKeyCreated) IsRedirect() bool
IsRedirect returns true when this post Api key created response has a 3xx status code
func (*PostAPIKeyCreated) IsServerError ¶
func (o *PostAPIKeyCreated) IsServerError() bool
IsServerError returns true when this post Api key created response has a 5xx status code
func (*PostAPIKeyCreated) IsSuccess ¶
func (o *PostAPIKeyCreated) IsSuccess() bool
IsSuccess returns true when this post Api key created response has a 2xx status code
func (*PostAPIKeyCreated) String ¶
func (o *PostAPIKeyCreated) String() string
type PostAPIKeyCreatedBody ¶
PostAPIKeyCreatedBody post API key created body swagger:model PostAPIKeyCreatedBody
func (*PostAPIKeyCreatedBody) ContextValidate ¶
ContextValidate validate this post API key created body based on the context it is used
func (*PostAPIKeyCreatedBody) MarshalBinary ¶
func (o *PostAPIKeyCreatedBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PostAPIKeyCreatedBody) UnmarshalBinary ¶
func (o *PostAPIKeyCreatedBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PostAPIKeyParams ¶
type PostAPIKeyParams struct {
// Body.
Body *models.CreateAPIKey
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
PostAPIKeyParams contains all the parameters to send to the API endpoint
for the post api key operation. Typically these are written to a http.Request.
func NewPostAPIKeyParams ¶
func NewPostAPIKeyParams() *PostAPIKeyParams
NewPostAPIKeyParams creates a new PostAPIKeyParams 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 NewPostAPIKeyParamsWithContext ¶
func NewPostAPIKeyParamsWithContext(ctx context.Context) *PostAPIKeyParams
NewPostAPIKeyParamsWithContext creates a new PostAPIKeyParams object with the ability to set a context for a request.
func NewPostAPIKeyParamsWithHTTPClient ¶
func NewPostAPIKeyParamsWithHTTPClient(client *http.Client) *PostAPIKeyParams
NewPostAPIKeyParamsWithHTTPClient creates a new PostAPIKeyParams object with the ability to set a custom HTTPClient for a request.
func NewPostAPIKeyParamsWithTimeout ¶
func NewPostAPIKeyParamsWithTimeout(timeout time.Duration) *PostAPIKeyParams
NewPostAPIKeyParamsWithTimeout creates a new PostAPIKeyParams object with the ability to set a timeout on a request.
func (*PostAPIKeyParams) SetBody ¶
func (o *PostAPIKeyParams) SetBody(body *models.CreateAPIKey)
SetBody adds the body to the post api key params
func (*PostAPIKeyParams) SetContext ¶
func (o *PostAPIKeyParams) SetContext(ctx context.Context)
SetContext adds the context to the post api key params
func (*PostAPIKeyParams) SetDefaults ¶
func (o *PostAPIKeyParams) SetDefaults()
SetDefaults hydrates default values in the post api key params (not the query body).
All values with no default are reset to their zero value.
func (*PostAPIKeyParams) SetHTTPClient ¶
func (o *PostAPIKeyParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post api key params
func (*PostAPIKeyParams) SetTimeout ¶
func (o *PostAPIKeyParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post api key params
func (*PostAPIKeyParams) WithBody ¶
func (o *PostAPIKeyParams) WithBody(body *models.CreateAPIKey) *PostAPIKeyParams
WithBody adds the body to the post api key params
func (*PostAPIKeyParams) WithContext ¶
func (o *PostAPIKeyParams) WithContext(ctx context.Context) *PostAPIKeyParams
WithContext adds the context to the post api key params
func (*PostAPIKeyParams) WithDefaults ¶
func (o *PostAPIKeyParams) WithDefaults() *PostAPIKeyParams
WithDefaults hydrates default values in the post api key params (not the query body).
All values with no default are reset to their zero value.
func (*PostAPIKeyParams) WithHTTPClient ¶
func (o *PostAPIKeyParams) WithHTTPClient(client *http.Client) *PostAPIKeyParams
WithHTTPClient adds the HTTPClient to the post api key params
func (*PostAPIKeyParams) WithTimeout ¶
func (o *PostAPIKeyParams) WithTimeout(timeout time.Duration) *PostAPIKeyParams
WithTimeout adds the timeout to the post api key params
func (*PostAPIKeyParams) WriteToRequest ¶
func (o *PostAPIKeyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostAPIKeyReader ¶
type PostAPIKeyReader struct {
// contains filtered or unexported fields
}
PostAPIKeyReader is a Reader for the PostAPIKey structure.
func (*PostAPIKeyReader) ReadResponse ¶
func (o *PostAPIKeyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateAPIKeyOK ¶
type UpdateAPIKeyOK struct {
Payload *UpdateAPIKeyOKBody
}
UpdateAPIKeyOK describes a response with status code 200, with default header values.
API Key Updated
func NewUpdateAPIKeyOK ¶
func NewUpdateAPIKeyOK() *UpdateAPIKeyOK
NewUpdateAPIKeyOK creates a UpdateAPIKeyOK with default headers values
func (*UpdateAPIKeyOK) Code ¶
func (o *UpdateAPIKeyOK) Code() int
Code gets the status code for the update Api key o k response
func (*UpdateAPIKeyOK) Error ¶
func (o *UpdateAPIKeyOK) Error() string
func (*UpdateAPIKeyOK) GetData ¶
func (o *UpdateAPIKeyOK) GetData() []renderer.ResponseData
func (*UpdateAPIKeyOK) GetPayload ¶
func (o *UpdateAPIKeyOK) GetPayload() *UpdateAPIKeyOKBody
func (*UpdateAPIKeyOK) IsClientError ¶
func (o *UpdateAPIKeyOK) IsClientError() bool
IsClientError returns true when this update Api key o k response has a 4xx status code
func (*UpdateAPIKeyOK) IsCode ¶
func (o *UpdateAPIKeyOK) IsCode(code int) bool
IsCode returns true when this update Api key o k response a status code equal to that given
func (*UpdateAPIKeyOK) IsRedirect ¶
func (o *UpdateAPIKeyOK) IsRedirect() bool
IsRedirect returns true when this update Api key o k response has a 3xx status code
func (*UpdateAPIKeyOK) IsServerError ¶
func (o *UpdateAPIKeyOK) IsServerError() bool
IsServerError returns true when this update Api key o k response has a 5xx status code
func (*UpdateAPIKeyOK) IsSuccess ¶
func (o *UpdateAPIKeyOK) IsSuccess() bool
IsSuccess returns true when this update Api key o k response has a 2xx status code
func (*UpdateAPIKeyOK) String ¶
func (o *UpdateAPIKeyOK) String() string
type UpdateAPIKeyOKBody ¶
UpdateAPIKeyOKBody update API key o k body swagger:model UpdateAPIKeyOKBody
func (*UpdateAPIKeyOKBody) ContextValidate ¶
ContextValidate validate this update API key o k body based on the context it is used
func (*UpdateAPIKeyOKBody) MarshalBinary ¶
func (o *UpdateAPIKeyOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UpdateAPIKeyOKBody) UnmarshalBinary ¶
func (o *UpdateAPIKeyOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UpdateAPIKeyParams ¶
type UpdateAPIKeyParams struct {
// Body.
Body *models.UpdateAPIKey
// ID.
ID string `json:"id,omitempty"`
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
UpdateAPIKeyParams contains all the parameters to send to the API endpoint
for the update api key operation. Typically these are written to a http.Request.
func NewUpdateAPIKeyParams ¶
func NewUpdateAPIKeyParams() *UpdateAPIKeyParams
NewUpdateAPIKeyParams creates a new UpdateAPIKeyParams 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 NewUpdateAPIKeyParamsWithContext ¶
func NewUpdateAPIKeyParamsWithContext(ctx context.Context) *UpdateAPIKeyParams
NewUpdateAPIKeyParamsWithContext creates a new UpdateAPIKeyParams object with the ability to set a context for a request.
func NewUpdateAPIKeyParamsWithHTTPClient ¶
func NewUpdateAPIKeyParamsWithHTTPClient(client *http.Client) *UpdateAPIKeyParams
NewUpdateAPIKeyParamsWithHTTPClient creates a new UpdateAPIKeyParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateAPIKeyParamsWithTimeout ¶
func NewUpdateAPIKeyParamsWithTimeout(timeout time.Duration) *UpdateAPIKeyParams
NewUpdateAPIKeyParamsWithTimeout creates a new UpdateAPIKeyParams object with the ability to set a timeout on a request.
func (*UpdateAPIKeyParams) SetBody ¶
func (o *UpdateAPIKeyParams) SetBody(body *models.UpdateAPIKey)
SetBody adds the body to the update api key params
func (*UpdateAPIKeyParams) SetContext ¶
func (o *UpdateAPIKeyParams) SetContext(ctx context.Context)
SetContext adds the context to the update api key params
func (*UpdateAPIKeyParams) SetDefaults ¶
func (o *UpdateAPIKeyParams) SetDefaults()
SetDefaults hydrates default values in the update api key params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateAPIKeyParams) SetHTTPClient ¶
func (o *UpdateAPIKeyParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update api key params
func (*UpdateAPIKeyParams) SetID ¶
func (o *UpdateAPIKeyParams) SetID(id string)
SetID adds the id to the update api key params
func (*UpdateAPIKeyParams) SetTimeout ¶
func (o *UpdateAPIKeyParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update api key params
func (*UpdateAPIKeyParams) WithBody ¶
func (o *UpdateAPIKeyParams) WithBody(body *models.UpdateAPIKey) *UpdateAPIKeyParams
WithBody adds the body to the update api key params
func (*UpdateAPIKeyParams) WithContext ¶
func (o *UpdateAPIKeyParams) WithContext(ctx context.Context) *UpdateAPIKeyParams
WithContext adds the context to the update api key params
func (*UpdateAPIKeyParams) WithDefaults ¶
func (o *UpdateAPIKeyParams) WithDefaults() *UpdateAPIKeyParams
WithDefaults hydrates default values in the update api key params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateAPIKeyParams) WithHTTPClient ¶
func (o *UpdateAPIKeyParams) WithHTTPClient(client *http.Client) *UpdateAPIKeyParams
WithHTTPClient adds the HTTPClient to the update api key params
func (*UpdateAPIKeyParams) WithID ¶
func (o *UpdateAPIKeyParams) WithID(id string) *UpdateAPIKeyParams
WithID adds the id to the update api key params
func (*UpdateAPIKeyParams) WithTimeout ¶
func (o *UpdateAPIKeyParams) WithTimeout(timeout time.Duration) *UpdateAPIKeyParams
WithTimeout adds the timeout to the update api key params
func (*UpdateAPIKeyParams) WriteToRequest ¶
func (o *UpdateAPIKeyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateAPIKeyReader ¶
type UpdateAPIKeyReader struct {
// contains filtered or unexported fields
}
UpdateAPIKeyReader is a Reader for the UpdateAPIKey structure.
func (*UpdateAPIKeyReader) ReadResponse ¶
func (o *UpdateAPIKeyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.