Documentation
¶
Index ¶
- type APIKeyDisableBadRequest
- type APIKeyDisableNotFound
- type APIKeyDisableOK
- type APIKeyDisableParams
- func (o *APIKeyDisableParams) SetAPIKeyID(aPIKeyID string)
- func (o *APIKeyDisableParams) SetContext(ctx context.Context)
- func (o *APIKeyDisableParams) SetHTTPClient(client *http.Client)
- func (o *APIKeyDisableParams) SetTimeout(timeout time.Duration)
- func (o *APIKeyDisableParams) WithAPIKeyID(aPIKeyID string) *APIKeyDisableParams
- func (o *APIKeyDisableParams) WithContext(ctx context.Context) *APIKeyDisableParams
- func (o *APIKeyDisableParams) WithHTTPClient(client *http.Client) *APIKeyDisableParams
- func (o *APIKeyDisableParams) WithTimeout(timeout time.Duration) *APIKeyDisableParams
- func (o *APIKeyDisableParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type APIKeyDisableReader
- type APIKeyDisableUnauthorized
- type APIKeyEnableBadRequest
- type APIKeyEnableNotFound
- type APIKeyEnableOK
- type APIKeyEnableParams
- func (o *APIKeyEnableParams) SetAPIKeyID(aPIKeyID string)
- func (o *APIKeyEnableParams) SetContext(ctx context.Context)
- func (o *APIKeyEnableParams) SetHTTPClient(client *http.Client)
- func (o *APIKeyEnableParams) SetTimeout(timeout time.Duration)
- func (o *APIKeyEnableParams) WithAPIKeyID(aPIKeyID string) *APIKeyEnableParams
- func (o *APIKeyEnableParams) WithContext(ctx context.Context) *APIKeyEnableParams
- func (o *APIKeyEnableParams) WithHTTPClient(client *http.Client) *APIKeyEnableParams
- func (o *APIKeyEnableParams) WithTimeout(timeout time.Duration) *APIKeyEnableParams
- func (o *APIKeyEnableParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type APIKeyEnableReader
- type APIKeyEnableUnauthorized
- type APIKeyGetBadRequest
- type APIKeyGetNotFound
- type APIKeyGetOK
- type APIKeyGetParams
- func (o *APIKeyGetParams) SetContext(ctx context.Context)
- func (o *APIKeyGetParams) SetHTTPClient(client *http.Client)
- func (o *APIKeyGetParams) SetReverse(reverse *bool)
- func (o *APIKeyGetParams) SetTimeout(timeout time.Duration)
- func (o *APIKeyGetParams) WithContext(ctx context.Context) *APIKeyGetParams
- func (o *APIKeyGetParams) WithHTTPClient(client *http.Client) *APIKeyGetParams
- func (o *APIKeyGetParams) WithReverse(reverse *bool) *APIKeyGetParams
- func (o *APIKeyGetParams) WithTimeout(timeout time.Duration) *APIKeyGetParams
- func (o *APIKeyGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type APIKeyGetReader
- type APIKeyGetUnauthorized
- type APIKeyNewBadRequest
- type APIKeyNewNotFound
- type APIKeyNewOK
- type APIKeyNewParams
- func (o *APIKeyNewParams) SetCidr(cidr *string)
- func (o *APIKeyNewParams) SetContext(ctx context.Context)
- func (o *APIKeyNewParams) SetEnabled(enabled *bool)
- func (o *APIKeyNewParams) SetHTTPClient(client *http.Client)
- func (o *APIKeyNewParams) SetName(name *string)
- func (o *APIKeyNewParams) SetPermissions(permissions *string)
- func (o *APIKeyNewParams) SetTimeout(timeout time.Duration)
- func (o *APIKeyNewParams) SetToken(token *string)
- func (o *APIKeyNewParams) WithCidr(cidr *string) *APIKeyNewParams
- func (o *APIKeyNewParams) WithContext(ctx context.Context) *APIKeyNewParams
- func (o *APIKeyNewParams) WithEnabled(enabled *bool) *APIKeyNewParams
- func (o *APIKeyNewParams) WithHTTPClient(client *http.Client) *APIKeyNewParams
- func (o *APIKeyNewParams) WithName(name *string) *APIKeyNewParams
- func (o *APIKeyNewParams) WithPermissions(permissions *string) *APIKeyNewParams
- func (o *APIKeyNewParams) WithTimeout(timeout time.Duration) *APIKeyNewParams
- func (o *APIKeyNewParams) WithToken(token *string) *APIKeyNewParams
- func (o *APIKeyNewParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type APIKeyNewReader
- type APIKeyNewUnauthorized
- type APIKeyRemoveBadRequest
- type APIKeyRemoveNotFound
- type APIKeyRemoveOK
- type APIKeyRemoveOKBody
- type APIKeyRemoveParams
- func (o *APIKeyRemoveParams) SetAPIKeyID(aPIKeyID string)
- func (o *APIKeyRemoveParams) SetContext(ctx context.Context)
- func (o *APIKeyRemoveParams) SetHTTPClient(client *http.Client)
- func (o *APIKeyRemoveParams) SetTimeout(timeout time.Duration)
- func (o *APIKeyRemoveParams) WithAPIKeyID(aPIKeyID string) *APIKeyRemoveParams
- func (o *APIKeyRemoveParams) WithContext(ctx context.Context) *APIKeyRemoveParams
- func (o *APIKeyRemoveParams) WithHTTPClient(client *http.Client) *APIKeyRemoveParams
- func (o *APIKeyRemoveParams) WithTimeout(timeout time.Duration) *APIKeyRemoveParams
- func (o *APIKeyRemoveParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type APIKeyRemoveReader
- type APIKeyRemoveUnauthorized
- type Client
- func (a *Client) APIKeyDisable(params *APIKeyDisableParams, authInfo runtime.ClientAuthInfoWriter) (*APIKeyDisableOK, error)
- func (a *Client) APIKeyEnable(params *APIKeyEnableParams, authInfo runtime.ClientAuthInfoWriter) (*APIKeyEnableOK, error)
- func (a *Client) APIKeyGet(params *APIKeyGetParams, authInfo runtime.ClientAuthInfoWriter) (*APIKeyGetOK, error)
- func (a *Client) APIKeyNew(params *APIKeyNewParams, authInfo runtime.ClientAuthInfoWriter) (*APIKeyNewOK, error)
- func (a *Client) APIKeyRemove(params *APIKeyRemoveParams, authInfo runtime.ClientAuthInfoWriter) (*APIKeyRemoveOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIKeyDisableBadRequest ¶
APIKeyDisableBadRequest handles this case with default header values.
Parameter Error
func NewAPIKeyDisableBadRequest ¶
func NewAPIKeyDisableBadRequest() *APIKeyDisableBadRequest
NewAPIKeyDisableBadRequest creates a APIKeyDisableBadRequest with default headers values
func (*APIKeyDisableBadRequest) Error ¶
func (o *APIKeyDisableBadRequest) Error() string
type APIKeyDisableNotFound ¶
APIKeyDisableNotFound handles this case with default header values.
Not Found
func NewAPIKeyDisableNotFound ¶
func NewAPIKeyDisableNotFound() *APIKeyDisableNotFound
NewAPIKeyDisableNotFound creates a APIKeyDisableNotFound with default headers values
func (*APIKeyDisableNotFound) Error ¶
func (o *APIKeyDisableNotFound) Error() string
type APIKeyDisableOK ¶
APIKeyDisableOK handles this case with default header values.
Request was successful
func NewAPIKeyDisableOK ¶
func NewAPIKeyDisableOK() *APIKeyDisableOK
NewAPIKeyDisableOK creates a APIKeyDisableOK with default headers values
func (*APIKeyDisableOK) Error ¶
func (o *APIKeyDisableOK) Error() string
type APIKeyDisableParams ¶
type APIKeyDisableParams struct { /*APIKeyID API Key ID (public component). */ APIKeyID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
APIKeyDisableParams contains all the parameters to send to the API endpoint for the API key disable operation typically these are written to a http.Request
func NewAPIKeyDisableParams ¶
func NewAPIKeyDisableParams() *APIKeyDisableParams
NewAPIKeyDisableParams creates a new APIKeyDisableParams object with the default values initialized.
func NewAPIKeyDisableParamsWithContext ¶
func NewAPIKeyDisableParamsWithContext(ctx context.Context) *APIKeyDisableParams
NewAPIKeyDisableParamsWithContext creates a new APIKeyDisableParams object with the default values initialized, and the ability to set a context for a request
func NewAPIKeyDisableParamsWithHTTPClient ¶
func NewAPIKeyDisableParamsWithHTTPClient(client *http.Client) *APIKeyDisableParams
NewAPIKeyDisableParamsWithHTTPClient creates a new APIKeyDisableParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewAPIKeyDisableParamsWithTimeout ¶
func NewAPIKeyDisableParamsWithTimeout(timeout time.Duration) *APIKeyDisableParams
NewAPIKeyDisableParamsWithTimeout creates a new APIKeyDisableParams object with the default values initialized, and the ability to set a timeout on a request
func (*APIKeyDisableParams) SetAPIKeyID ¶
func (o *APIKeyDisableParams) SetAPIKeyID(aPIKeyID string)
SetAPIKeyID adds the apiKeyId to the API key disable params
func (*APIKeyDisableParams) SetContext ¶
func (o *APIKeyDisableParams) SetContext(ctx context.Context)
SetContext adds the context to the API key disable params
func (*APIKeyDisableParams) SetHTTPClient ¶
func (o *APIKeyDisableParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the API key disable params
func (*APIKeyDisableParams) SetTimeout ¶
func (o *APIKeyDisableParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the API key disable params
func (*APIKeyDisableParams) WithAPIKeyID ¶
func (o *APIKeyDisableParams) WithAPIKeyID(aPIKeyID string) *APIKeyDisableParams
WithAPIKeyID adds the aPIKeyID to the API key disable params
func (*APIKeyDisableParams) WithContext ¶
func (o *APIKeyDisableParams) WithContext(ctx context.Context) *APIKeyDisableParams
WithContext adds the context to the API key disable params
func (*APIKeyDisableParams) WithHTTPClient ¶
func (o *APIKeyDisableParams) WithHTTPClient(client *http.Client) *APIKeyDisableParams
WithHTTPClient adds the HTTPClient to the API key disable params
func (*APIKeyDisableParams) WithTimeout ¶
func (o *APIKeyDisableParams) WithTimeout(timeout time.Duration) *APIKeyDisableParams
WithTimeout adds the timeout to the API key disable params
func (*APIKeyDisableParams) WriteToRequest ¶
func (o *APIKeyDisableParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type APIKeyDisableReader ¶
type APIKeyDisableReader struct {
// contains filtered or unexported fields
}
APIKeyDisableReader is a Reader for the APIKeyDisable structure.
func (*APIKeyDisableReader) ReadResponse ¶
func (o *APIKeyDisableReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type APIKeyDisableUnauthorized ¶
type APIKeyDisableUnauthorized struct {
}APIKeyDisableUnauthorized handles this case with default header values.
Unauthorized
func NewAPIKeyDisableUnauthorized ¶
func NewAPIKeyDisableUnauthorized() *APIKeyDisableUnauthorized
NewAPIKeyDisableUnauthorized creates a APIKeyDisableUnauthorized with default headers values
func (*APIKeyDisableUnauthorized) Error ¶
func (o *APIKeyDisableUnauthorized) Error() string
type APIKeyEnableBadRequest ¶
APIKeyEnableBadRequest handles this case with default header values.
Parameter Error
func NewAPIKeyEnableBadRequest ¶
func NewAPIKeyEnableBadRequest() *APIKeyEnableBadRequest
NewAPIKeyEnableBadRequest creates a APIKeyEnableBadRequest with default headers values
func (*APIKeyEnableBadRequest) Error ¶
func (o *APIKeyEnableBadRequest) Error() string
type APIKeyEnableNotFound ¶
APIKeyEnableNotFound handles this case with default header values.
Not Found
func NewAPIKeyEnableNotFound ¶
func NewAPIKeyEnableNotFound() *APIKeyEnableNotFound
NewAPIKeyEnableNotFound creates a APIKeyEnableNotFound with default headers values
func (*APIKeyEnableNotFound) Error ¶
func (o *APIKeyEnableNotFound) Error() string
type APIKeyEnableOK ¶
APIKeyEnableOK handles this case with default header values.
Request was successful
func NewAPIKeyEnableOK ¶
func NewAPIKeyEnableOK() *APIKeyEnableOK
NewAPIKeyEnableOK creates a APIKeyEnableOK with default headers values
func (*APIKeyEnableOK) Error ¶
func (o *APIKeyEnableOK) Error() string
type APIKeyEnableParams ¶
type APIKeyEnableParams struct { /*APIKeyID API Key ID (public component). */ APIKeyID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
APIKeyEnableParams contains all the parameters to send to the API endpoint for the API key enable operation typically these are written to a http.Request
func NewAPIKeyEnableParams ¶
func NewAPIKeyEnableParams() *APIKeyEnableParams
NewAPIKeyEnableParams creates a new APIKeyEnableParams object with the default values initialized.
func NewAPIKeyEnableParamsWithContext ¶
func NewAPIKeyEnableParamsWithContext(ctx context.Context) *APIKeyEnableParams
NewAPIKeyEnableParamsWithContext creates a new APIKeyEnableParams object with the default values initialized, and the ability to set a context for a request
func NewAPIKeyEnableParamsWithHTTPClient ¶
func NewAPIKeyEnableParamsWithHTTPClient(client *http.Client) *APIKeyEnableParams
NewAPIKeyEnableParamsWithHTTPClient creates a new APIKeyEnableParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewAPIKeyEnableParamsWithTimeout ¶
func NewAPIKeyEnableParamsWithTimeout(timeout time.Duration) *APIKeyEnableParams
NewAPIKeyEnableParamsWithTimeout creates a new APIKeyEnableParams object with the default values initialized, and the ability to set a timeout on a request
func (*APIKeyEnableParams) SetAPIKeyID ¶
func (o *APIKeyEnableParams) SetAPIKeyID(aPIKeyID string)
SetAPIKeyID adds the apiKeyId to the API key enable params
func (*APIKeyEnableParams) SetContext ¶
func (o *APIKeyEnableParams) SetContext(ctx context.Context)
SetContext adds the context to the API key enable params
func (*APIKeyEnableParams) SetHTTPClient ¶
func (o *APIKeyEnableParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the API key enable params
func (*APIKeyEnableParams) SetTimeout ¶
func (o *APIKeyEnableParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the API key enable params
func (*APIKeyEnableParams) WithAPIKeyID ¶
func (o *APIKeyEnableParams) WithAPIKeyID(aPIKeyID string) *APIKeyEnableParams
WithAPIKeyID adds the aPIKeyID to the API key enable params
func (*APIKeyEnableParams) WithContext ¶
func (o *APIKeyEnableParams) WithContext(ctx context.Context) *APIKeyEnableParams
WithContext adds the context to the API key enable params
func (*APIKeyEnableParams) WithHTTPClient ¶
func (o *APIKeyEnableParams) WithHTTPClient(client *http.Client) *APIKeyEnableParams
WithHTTPClient adds the HTTPClient to the API key enable params
func (*APIKeyEnableParams) WithTimeout ¶
func (o *APIKeyEnableParams) WithTimeout(timeout time.Duration) *APIKeyEnableParams
WithTimeout adds the timeout to the API key enable params
func (*APIKeyEnableParams) WriteToRequest ¶
func (o *APIKeyEnableParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type APIKeyEnableReader ¶
type APIKeyEnableReader struct {
// contains filtered or unexported fields
}
APIKeyEnableReader is a Reader for the APIKeyEnable structure.
func (*APIKeyEnableReader) ReadResponse ¶
func (o *APIKeyEnableReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type APIKeyEnableUnauthorized ¶
type APIKeyEnableUnauthorized struct {
}APIKeyEnableUnauthorized handles this case with default header values.
Unauthorized
func NewAPIKeyEnableUnauthorized ¶
func NewAPIKeyEnableUnauthorized() *APIKeyEnableUnauthorized
NewAPIKeyEnableUnauthorized creates a APIKeyEnableUnauthorized with default headers values
func (*APIKeyEnableUnauthorized) Error ¶
func (o *APIKeyEnableUnauthorized) Error() string
type APIKeyGetBadRequest ¶
APIKeyGetBadRequest handles this case with default header values.
Parameter Error
func NewAPIKeyGetBadRequest ¶
func NewAPIKeyGetBadRequest() *APIKeyGetBadRequest
NewAPIKeyGetBadRequest creates a APIKeyGetBadRequest with default headers values
func (*APIKeyGetBadRequest) Error ¶
func (o *APIKeyGetBadRequest) Error() string
type APIKeyGetNotFound ¶
APIKeyGetNotFound handles this case with default header values.
Not Found
func NewAPIKeyGetNotFound ¶
func NewAPIKeyGetNotFound() *APIKeyGetNotFound
NewAPIKeyGetNotFound creates a APIKeyGetNotFound with default headers values
func (*APIKeyGetNotFound) Error ¶
func (o *APIKeyGetNotFound) Error() string
type APIKeyGetOK ¶
APIKeyGetOK handles this case with default header values.
Request was successful
func NewAPIKeyGetOK ¶
func NewAPIKeyGetOK() *APIKeyGetOK
NewAPIKeyGetOK creates a APIKeyGetOK with default headers values
func (*APIKeyGetOK) Error ¶
func (o *APIKeyGetOK) Error() string
type APIKeyGetParams ¶
type APIKeyGetParams struct { /*Reverse If true, will sort results newest first. */ Reverse *bool Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
APIKeyGetParams contains all the parameters to send to the API endpoint for the API key get operation typically these are written to a http.Request
func NewAPIKeyGetParams ¶
func NewAPIKeyGetParams() *APIKeyGetParams
NewAPIKeyGetParams creates a new APIKeyGetParams object with the default values initialized.
func NewAPIKeyGetParamsWithContext ¶
func NewAPIKeyGetParamsWithContext(ctx context.Context) *APIKeyGetParams
NewAPIKeyGetParamsWithContext creates a new APIKeyGetParams object with the default values initialized, and the ability to set a context for a request
func NewAPIKeyGetParamsWithHTTPClient ¶
func NewAPIKeyGetParamsWithHTTPClient(client *http.Client) *APIKeyGetParams
NewAPIKeyGetParamsWithHTTPClient creates a new APIKeyGetParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewAPIKeyGetParamsWithTimeout ¶
func NewAPIKeyGetParamsWithTimeout(timeout time.Duration) *APIKeyGetParams
NewAPIKeyGetParamsWithTimeout creates a new APIKeyGetParams object with the default values initialized, and the ability to set a timeout on a request
func (*APIKeyGetParams) SetContext ¶
func (o *APIKeyGetParams) SetContext(ctx context.Context)
SetContext adds the context to the API key get params
func (*APIKeyGetParams) SetHTTPClient ¶
func (o *APIKeyGetParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the API key get params
func (*APIKeyGetParams) SetReverse ¶
func (o *APIKeyGetParams) SetReverse(reverse *bool)
SetReverse adds the reverse to the API key get params
func (*APIKeyGetParams) SetTimeout ¶
func (o *APIKeyGetParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the API key get params
func (*APIKeyGetParams) WithContext ¶
func (o *APIKeyGetParams) WithContext(ctx context.Context) *APIKeyGetParams
WithContext adds the context to the API key get params
func (*APIKeyGetParams) WithHTTPClient ¶
func (o *APIKeyGetParams) WithHTTPClient(client *http.Client) *APIKeyGetParams
WithHTTPClient adds the HTTPClient to the API key get params
func (*APIKeyGetParams) WithReverse ¶
func (o *APIKeyGetParams) WithReverse(reverse *bool) *APIKeyGetParams
WithReverse adds the reverse to the API key get params
func (*APIKeyGetParams) WithTimeout ¶
func (o *APIKeyGetParams) WithTimeout(timeout time.Duration) *APIKeyGetParams
WithTimeout adds the timeout to the API key get params
func (*APIKeyGetParams) WriteToRequest ¶
func (o *APIKeyGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type APIKeyGetReader ¶
type APIKeyGetReader struct {
// contains filtered or unexported fields
}
APIKeyGetReader is a Reader for the APIKeyGet structure.
func (*APIKeyGetReader) ReadResponse ¶
func (o *APIKeyGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type APIKeyGetUnauthorized ¶
type APIKeyGetUnauthorized struct {
}APIKeyGetUnauthorized handles this case with default header values.
Unauthorized
func NewAPIKeyGetUnauthorized ¶
func NewAPIKeyGetUnauthorized() *APIKeyGetUnauthorized
NewAPIKeyGetUnauthorized creates a APIKeyGetUnauthorized with default headers values
func (*APIKeyGetUnauthorized) Error ¶
func (o *APIKeyGetUnauthorized) Error() string
type APIKeyNewBadRequest ¶
APIKeyNewBadRequest handles this case with default header values.
Parameter Error
func NewAPIKeyNewBadRequest ¶
func NewAPIKeyNewBadRequest() *APIKeyNewBadRequest
NewAPIKeyNewBadRequest creates a APIKeyNewBadRequest with default headers values
func (*APIKeyNewBadRequest) Error ¶
func (o *APIKeyNewBadRequest) Error() string
type APIKeyNewNotFound ¶
APIKeyNewNotFound handles this case with default header values.
Not Found
func NewAPIKeyNewNotFound ¶
func NewAPIKeyNewNotFound() *APIKeyNewNotFound
NewAPIKeyNewNotFound creates a APIKeyNewNotFound with default headers values
func (*APIKeyNewNotFound) Error ¶
func (o *APIKeyNewNotFound) Error() string
type APIKeyNewOK ¶
APIKeyNewOK handles this case with default header values.
Request was successful
func NewAPIKeyNewOK ¶
func NewAPIKeyNewOK() *APIKeyNewOK
NewAPIKeyNewOK creates a APIKeyNewOK with default headers values
func (*APIKeyNewOK) Error ¶
func (o *APIKeyNewOK) Error() string
type APIKeyNewParams ¶
type APIKeyNewParams struct { /*Cidr CIDR block to restrict this key to. To restrict to a single address, append "/32", e.g. 207.39.29.22/32. Leave blank or set to 0.0.0.0/0 to allow all IPs. Only one block may be set. <a href="http://software77.net/cidr-101.html">More on CIDR blocks</a> */ Cidr *string /*Enabled Set to true to enable this key on creation. Otherwise, it must be explicitly enabled via /apiKey/enable. */ Enabled *bool /*Name Key name. This name is for reference only. */ Name *string /*Permissions Key Permissions. All keys can read margin and position data. Additional permissions must be added. Available: ["order", "orderCancel", "withdraw"]. */ Permissions *string /*Token OTP Token (YubiKey, Google Authenticator) */ Token *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
APIKeyNewParams contains all the parameters to send to the API endpoint for the API key new operation typically these are written to a http.Request
func NewAPIKeyNewParams ¶
func NewAPIKeyNewParams() *APIKeyNewParams
NewAPIKeyNewParams creates a new APIKeyNewParams object with the default values initialized.
func NewAPIKeyNewParamsWithContext ¶
func NewAPIKeyNewParamsWithContext(ctx context.Context) *APIKeyNewParams
NewAPIKeyNewParamsWithContext creates a new APIKeyNewParams object with the default values initialized, and the ability to set a context for a request
func NewAPIKeyNewParamsWithHTTPClient ¶
func NewAPIKeyNewParamsWithHTTPClient(client *http.Client) *APIKeyNewParams
NewAPIKeyNewParamsWithHTTPClient creates a new APIKeyNewParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewAPIKeyNewParamsWithTimeout ¶
func NewAPIKeyNewParamsWithTimeout(timeout time.Duration) *APIKeyNewParams
NewAPIKeyNewParamsWithTimeout creates a new APIKeyNewParams object with the default values initialized, and the ability to set a timeout on a request
func (*APIKeyNewParams) SetCidr ¶
func (o *APIKeyNewParams) SetCidr(cidr *string)
SetCidr adds the cidr to the API key new params
func (*APIKeyNewParams) SetContext ¶
func (o *APIKeyNewParams) SetContext(ctx context.Context)
SetContext adds the context to the API key new params
func (*APIKeyNewParams) SetEnabled ¶
func (o *APIKeyNewParams) SetEnabled(enabled *bool)
SetEnabled adds the enabled to the API key new params
func (*APIKeyNewParams) SetHTTPClient ¶
func (o *APIKeyNewParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the API key new params
func (*APIKeyNewParams) SetName ¶
func (o *APIKeyNewParams) SetName(name *string)
SetName adds the name to the API key new params
func (*APIKeyNewParams) SetPermissions ¶
func (o *APIKeyNewParams) SetPermissions(permissions *string)
SetPermissions adds the permissions to the API key new params
func (*APIKeyNewParams) SetTimeout ¶
func (o *APIKeyNewParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the API key new params
func (*APIKeyNewParams) SetToken ¶
func (o *APIKeyNewParams) SetToken(token *string)
SetToken adds the token to the API key new params
func (*APIKeyNewParams) WithCidr ¶
func (o *APIKeyNewParams) WithCidr(cidr *string) *APIKeyNewParams
WithCidr adds the cidr to the API key new params
func (*APIKeyNewParams) WithContext ¶
func (o *APIKeyNewParams) WithContext(ctx context.Context) *APIKeyNewParams
WithContext adds the context to the API key new params
func (*APIKeyNewParams) WithEnabled ¶
func (o *APIKeyNewParams) WithEnabled(enabled *bool) *APIKeyNewParams
WithEnabled adds the enabled to the API key new params
func (*APIKeyNewParams) WithHTTPClient ¶
func (o *APIKeyNewParams) WithHTTPClient(client *http.Client) *APIKeyNewParams
WithHTTPClient adds the HTTPClient to the API key new params
func (*APIKeyNewParams) WithName ¶
func (o *APIKeyNewParams) WithName(name *string) *APIKeyNewParams
WithName adds the name to the API key new params
func (*APIKeyNewParams) WithPermissions ¶
func (o *APIKeyNewParams) WithPermissions(permissions *string) *APIKeyNewParams
WithPermissions adds the permissions to the API key new params
func (*APIKeyNewParams) WithTimeout ¶
func (o *APIKeyNewParams) WithTimeout(timeout time.Duration) *APIKeyNewParams
WithTimeout adds the timeout to the API key new params
func (*APIKeyNewParams) WithToken ¶
func (o *APIKeyNewParams) WithToken(token *string) *APIKeyNewParams
WithToken adds the token to the API key new params
func (*APIKeyNewParams) WriteToRequest ¶
func (o *APIKeyNewParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type APIKeyNewReader ¶
type APIKeyNewReader struct {
// contains filtered or unexported fields
}
APIKeyNewReader is a Reader for the APIKeyNew structure.
func (*APIKeyNewReader) ReadResponse ¶
func (o *APIKeyNewReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type APIKeyNewUnauthorized ¶
type APIKeyNewUnauthorized struct {
}APIKeyNewUnauthorized handles this case with default header values.
Unauthorized
func NewAPIKeyNewUnauthorized ¶
func NewAPIKeyNewUnauthorized() *APIKeyNewUnauthorized
NewAPIKeyNewUnauthorized creates a APIKeyNewUnauthorized with default headers values
func (*APIKeyNewUnauthorized) Error ¶
func (o *APIKeyNewUnauthorized) Error() string
type APIKeyRemoveBadRequest ¶
APIKeyRemoveBadRequest handles this case with default header values.
Parameter Error
func NewAPIKeyRemoveBadRequest ¶
func NewAPIKeyRemoveBadRequest() *APIKeyRemoveBadRequest
NewAPIKeyRemoveBadRequest creates a APIKeyRemoveBadRequest with default headers values
func (*APIKeyRemoveBadRequest) Error ¶
func (o *APIKeyRemoveBadRequest) Error() string
type APIKeyRemoveNotFound ¶
APIKeyRemoveNotFound handles this case with default header values.
Not Found
func NewAPIKeyRemoveNotFound ¶
func NewAPIKeyRemoveNotFound() *APIKeyRemoveNotFound
NewAPIKeyRemoveNotFound creates a APIKeyRemoveNotFound with default headers values
func (*APIKeyRemoveNotFound) Error ¶
func (o *APIKeyRemoveNotFound) Error() string
type APIKeyRemoveOK ¶
type APIKeyRemoveOK struct {
Payload *APIKeyRemoveOKBody
}
APIKeyRemoveOK handles this case with default header values.
Request was successful
func NewAPIKeyRemoveOK ¶
func NewAPIKeyRemoveOK() *APIKeyRemoveOK
NewAPIKeyRemoveOK creates a APIKeyRemoveOK with default headers values
func (*APIKeyRemoveOK) Error ¶
func (o *APIKeyRemoveOK) Error() string
type APIKeyRemoveOKBody ¶
type APIKeyRemoveOKBody struct { // success Success bool `json:"success,omitempty"` }
APIKeyRemoveOKBody API key remove o k body swagger:model APIKeyRemoveOKBody
func (*APIKeyRemoveOKBody) MarshalBinary ¶
func (o *APIKeyRemoveOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*APIKeyRemoveOKBody) UnmarshalBinary ¶
func (o *APIKeyRemoveOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type APIKeyRemoveParams ¶
type APIKeyRemoveParams struct { /*APIKeyID API Key ID (public component). */ APIKeyID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
APIKeyRemoveParams contains all the parameters to send to the API endpoint for the API key remove operation typically these are written to a http.Request
func NewAPIKeyRemoveParams ¶
func NewAPIKeyRemoveParams() *APIKeyRemoveParams
NewAPIKeyRemoveParams creates a new APIKeyRemoveParams object with the default values initialized.
func NewAPIKeyRemoveParamsWithContext ¶
func NewAPIKeyRemoveParamsWithContext(ctx context.Context) *APIKeyRemoveParams
NewAPIKeyRemoveParamsWithContext creates a new APIKeyRemoveParams object with the default values initialized, and the ability to set a context for a request
func NewAPIKeyRemoveParamsWithHTTPClient ¶
func NewAPIKeyRemoveParamsWithHTTPClient(client *http.Client) *APIKeyRemoveParams
NewAPIKeyRemoveParamsWithHTTPClient creates a new APIKeyRemoveParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewAPIKeyRemoveParamsWithTimeout ¶
func NewAPIKeyRemoveParamsWithTimeout(timeout time.Duration) *APIKeyRemoveParams
NewAPIKeyRemoveParamsWithTimeout creates a new APIKeyRemoveParams object with the default values initialized, and the ability to set a timeout on a request
func (*APIKeyRemoveParams) SetAPIKeyID ¶
func (o *APIKeyRemoveParams) SetAPIKeyID(aPIKeyID string)
SetAPIKeyID adds the apiKeyId to the API key remove params
func (*APIKeyRemoveParams) SetContext ¶
func (o *APIKeyRemoveParams) SetContext(ctx context.Context)
SetContext adds the context to the API key remove params
func (*APIKeyRemoveParams) SetHTTPClient ¶
func (o *APIKeyRemoveParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the API key remove params
func (*APIKeyRemoveParams) SetTimeout ¶
func (o *APIKeyRemoveParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the API key remove params
func (*APIKeyRemoveParams) WithAPIKeyID ¶
func (o *APIKeyRemoveParams) WithAPIKeyID(aPIKeyID string) *APIKeyRemoveParams
WithAPIKeyID adds the aPIKeyID to the API key remove params
func (*APIKeyRemoveParams) WithContext ¶
func (o *APIKeyRemoveParams) WithContext(ctx context.Context) *APIKeyRemoveParams
WithContext adds the context to the API key remove params
func (*APIKeyRemoveParams) WithHTTPClient ¶
func (o *APIKeyRemoveParams) WithHTTPClient(client *http.Client) *APIKeyRemoveParams
WithHTTPClient adds the HTTPClient to the API key remove params
func (*APIKeyRemoveParams) WithTimeout ¶
func (o *APIKeyRemoveParams) WithTimeout(timeout time.Duration) *APIKeyRemoveParams
WithTimeout adds the timeout to the API key remove params
func (*APIKeyRemoveParams) WriteToRequest ¶
func (o *APIKeyRemoveParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type APIKeyRemoveReader ¶
type APIKeyRemoveReader struct {
// contains filtered or unexported fields
}
APIKeyRemoveReader is a Reader for the APIKeyRemove structure.
func (*APIKeyRemoveReader) ReadResponse ¶
func (o *APIKeyRemoveReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type APIKeyRemoveUnauthorized ¶
type APIKeyRemoveUnauthorized struct {
}APIKeyRemoveUnauthorized handles this case with default header values.
Unauthorized
func NewAPIKeyRemoveUnauthorized ¶
func NewAPIKeyRemoveUnauthorized() *APIKeyRemoveUnauthorized
NewAPIKeyRemoveUnauthorized creates a APIKeyRemoveUnauthorized with default headers values
func (*APIKeyRemoveUnauthorized) Error ¶
func (o *APIKeyRemoveUnauthorized) Error() string
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for api key API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new api key API client.
func (*Client) APIKeyDisable ¶
func (a *Client) APIKeyDisable(params *APIKeyDisableParams, authInfo runtime.ClientAuthInfoWriter) (*APIKeyDisableOK, error)
APIKeyDisable disables an API key
func (*Client) APIKeyEnable ¶
func (a *Client) APIKeyEnable(params *APIKeyEnableParams, authInfo runtime.ClientAuthInfoWriter) (*APIKeyEnableOK, error)
APIKeyEnable enables an API key
func (*Client) APIKeyGet ¶
func (a *Client) APIKeyGet(params *APIKeyGetParams, authInfo runtime.ClientAuthInfoWriter) (*APIKeyGetOK, error)
APIKeyGet gets your API keys
func (*Client) APIKeyNew ¶
func (a *Client) APIKeyNew(params *APIKeyNewParams, authInfo runtime.ClientAuthInfoWriter) (*APIKeyNewOK, error)
APIKeyNew creates a new API key
API Keys can only be created via the frontend.
func (*Client) APIKeyRemove ¶
func (a *Client) APIKeyRemove(params *APIKeyRemoveParams, authInfo runtime.ClientAuthInfoWriter) (*APIKeyRemoveOK, error)
APIKeyRemove removes an API key
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client