Documentation ¶
Index ¶
- func WithContentTypeApplicationJSON(r *runtime.ClientOperation)
- func WithContentTypeMultipartFormData(r *runtime.ClientOperation)
- type Client
- func (a *Client) InstanceGetV1(params *InstanceGetV1Params, opts ...ClientOption) (*InstanceGetV1OK, error)
- func (a *Client) InstanceGetV2(params *InstanceGetV2Params, opts ...ClientOption) (*InstanceGetV2OK, error)
- func (a *Client) InstancePeersGet(params *InstancePeersGetParams, opts ...ClientOption) (*InstancePeersGetOK, error)
- func (a *Client) InstanceUpdate(params *InstanceUpdateParams, authInfo runtime.ClientAuthInfoWriter, ...) (*InstanceUpdateOK, error)
- func (a *Client) Rules(params *RulesParams, opts ...ClientOption) (*RulesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type InstanceGetV1InternalServerError
- func (o *InstanceGetV1InternalServerError) Code() int
- func (o *InstanceGetV1InternalServerError) Error() string
- func (o *InstanceGetV1InternalServerError) IsClientError() bool
- func (o *InstanceGetV1InternalServerError) IsCode(code int) bool
- func (o *InstanceGetV1InternalServerError) IsRedirect() bool
- func (o *InstanceGetV1InternalServerError) IsServerError() bool
- func (o *InstanceGetV1InternalServerError) IsSuccess() bool
- func (o *InstanceGetV1InternalServerError) String() string
- type InstanceGetV1NotAcceptable
- func (o *InstanceGetV1NotAcceptable) Code() int
- func (o *InstanceGetV1NotAcceptable) Error() string
- func (o *InstanceGetV1NotAcceptable) IsClientError() bool
- func (o *InstanceGetV1NotAcceptable) IsCode(code int) bool
- func (o *InstanceGetV1NotAcceptable) IsRedirect() bool
- func (o *InstanceGetV1NotAcceptable) IsServerError() bool
- func (o *InstanceGetV1NotAcceptable) IsSuccess() bool
- func (o *InstanceGetV1NotAcceptable) String() string
- type InstanceGetV1OK
- func (o *InstanceGetV1OK) Code() int
- func (o *InstanceGetV1OK) Error() string
- func (o *InstanceGetV1OK) GetPayload() *models.InstanceV1
- func (o *InstanceGetV1OK) IsClientError() bool
- func (o *InstanceGetV1OK) IsCode(code int) bool
- func (o *InstanceGetV1OK) IsRedirect() bool
- func (o *InstanceGetV1OK) IsServerError() bool
- func (o *InstanceGetV1OK) IsSuccess() bool
- func (o *InstanceGetV1OK) String() string
- type InstanceGetV1Params
- func (o *InstanceGetV1Params) SetContext(ctx context.Context)
- func (o *InstanceGetV1Params) SetDefaults()
- func (o *InstanceGetV1Params) SetHTTPClient(client *http.Client)
- func (o *InstanceGetV1Params) SetTimeout(timeout time.Duration)
- func (o *InstanceGetV1Params) WithContext(ctx context.Context) *InstanceGetV1Params
- func (o *InstanceGetV1Params) WithDefaults() *InstanceGetV1Params
- func (o *InstanceGetV1Params) WithHTTPClient(client *http.Client) *InstanceGetV1Params
- func (o *InstanceGetV1Params) WithTimeout(timeout time.Duration) *InstanceGetV1Params
- func (o *InstanceGetV1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type InstanceGetV1Reader
- type InstanceGetV2InternalServerError
- func (o *InstanceGetV2InternalServerError) Code() int
- func (o *InstanceGetV2InternalServerError) Error() string
- func (o *InstanceGetV2InternalServerError) IsClientError() bool
- func (o *InstanceGetV2InternalServerError) IsCode(code int) bool
- func (o *InstanceGetV2InternalServerError) IsRedirect() bool
- func (o *InstanceGetV2InternalServerError) IsServerError() bool
- func (o *InstanceGetV2InternalServerError) IsSuccess() bool
- func (o *InstanceGetV2InternalServerError) String() string
- type InstanceGetV2NotAcceptable
- func (o *InstanceGetV2NotAcceptable) Code() int
- func (o *InstanceGetV2NotAcceptable) Error() string
- func (o *InstanceGetV2NotAcceptable) IsClientError() bool
- func (o *InstanceGetV2NotAcceptable) IsCode(code int) bool
- func (o *InstanceGetV2NotAcceptable) IsRedirect() bool
- func (o *InstanceGetV2NotAcceptable) IsServerError() bool
- func (o *InstanceGetV2NotAcceptable) IsSuccess() bool
- func (o *InstanceGetV2NotAcceptable) String() string
- type InstanceGetV2OK
- func (o *InstanceGetV2OK) Code() int
- func (o *InstanceGetV2OK) Error() string
- func (o *InstanceGetV2OK) GetPayload() *models.InstanceV2
- func (o *InstanceGetV2OK) IsClientError() bool
- func (o *InstanceGetV2OK) IsCode(code int) bool
- func (o *InstanceGetV2OK) IsRedirect() bool
- func (o *InstanceGetV2OK) IsServerError() bool
- func (o *InstanceGetV2OK) IsSuccess() bool
- func (o *InstanceGetV2OK) String() string
- type InstanceGetV2Params
- func (o *InstanceGetV2Params) SetContext(ctx context.Context)
- func (o *InstanceGetV2Params) SetDefaults()
- func (o *InstanceGetV2Params) SetHTTPClient(client *http.Client)
- func (o *InstanceGetV2Params) SetTimeout(timeout time.Duration)
- func (o *InstanceGetV2Params) WithContext(ctx context.Context) *InstanceGetV2Params
- func (o *InstanceGetV2Params) WithDefaults() *InstanceGetV2Params
- func (o *InstanceGetV2Params) WithHTTPClient(client *http.Client) *InstanceGetV2Params
- func (o *InstanceGetV2Params) WithTimeout(timeout time.Duration) *InstanceGetV2Params
- func (o *InstanceGetV2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type InstanceGetV2Reader
- type InstancePeersGetBadRequest
- func (o *InstancePeersGetBadRequest) Code() int
- func (o *InstancePeersGetBadRequest) Error() string
- func (o *InstancePeersGetBadRequest) IsClientError() bool
- func (o *InstancePeersGetBadRequest) IsCode(code int) bool
- func (o *InstancePeersGetBadRequest) IsRedirect() bool
- func (o *InstancePeersGetBadRequest) IsServerError() bool
- func (o *InstancePeersGetBadRequest) IsSuccess() bool
- func (o *InstancePeersGetBadRequest) String() string
- type InstancePeersGetForbidden
- func (o *InstancePeersGetForbidden) Code() int
- func (o *InstancePeersGetForbidden) Error() string
- func (o *InstancePeersGetForbidden) IsClientError() bool
- func (o *InstancePeersGetForbidden) IsCode(code int) bool
- func (o *InstancePeersGetForbidden) IsRedirect() bool
- func (o *InstancePeersGetForbidden) IsServerError() bool
- func (o *InstancePeersGetForbidden) IsSuccess() bool
- func (o *InstancePeersGetForbidden) String() string
- type InstancePeersGetInternalServerError
- func (o *InstancePeersGetInternalServerError) Code() int
- func (o *InstancePeersGetInternalServerError) Error() string
- func (o *InstancePeersGetInternalServerError) IsClientError() bool
- func (o *InstancePeersGetInternalServerError) IsCode(code int) bool
- func (o *InstancePeersGetInternalServerError) IsRedirect() bool
- func (o *InstancePeersGetInternalServerError) IsServerError() bool
- func (o *InstancePeersGetInternalServerError) IsSuccess() bool
- func (o *InstancePeersGetInternalServerError) String() string
- type InstancePeersGetNotAcceptable
- func (o *InstancePeersGetNotAcceptable) Code() int
- func (o *InstancePeersGetNotAcceptable) Error() string
- func (o *InstancePeersGetNotAcceptable) IsClientError() bool
- func (o *InstancePeersGetNotAcceptable) IsCode(code int) bool
- func (o *InstancePeersGetNotAcceptable) IsRedirect() bool
- func (o *InstancePeersGetNotAcceptable) IsServerError() bool
- func (o *InstancePeersGetNotAcceptable) IsSuccess() bool
- func (o *InstancePeersGetNotAcceptable) String() string
- type InstancePeersGetNotFound
- func (o *InstancePeersGetNotFound) Code() int
- func (o *InstancePeersGetNotFound) Error() string
- func (o *InstancePeersGetNotFound) IsClientError() bool
- func (o *InstancePeersGetNotFound) IsCode(code int) bool
- func (o *InstancePeersGetNotFound) IsRedirect() bool
- func (o *InstancePeersGetNotFound) IsServerError() bool
- func (o *InstancePeersGetNotFound) IsSuccess() bool
- func (o *InstancePeersGetNotFound) String() string
- type InstancePeersGetOK
- func (o *InstancePeersGetOK) Code() int
- func (o *InstancePeersGetOK) Error() string
- func (o *InstancePeersGetOK) GetPayload() []*models.Domain
- func (o *InstancePeersGetOK) IsClientError() bool
- func (o *InstancePeersGetOK) IsCode(code int) bool
- func (o *InstancePeersGetOK) IsRedirect() bool
- func (o *InstancePeersGetOK) IsServerError() bool
- func (o *InstancePeersGetOK) IsSuccess() bool
- func (o *InstancePeersGetOK) String() string
- type InstancePeersGetParams
- func NewInstancePeersGetParams() *InstancePeersGetParams
- func NewInstancePeersGetParamsWithContext(ctx context.Context) *InstancePeersGetParams
- func NewInstancePeersGetParamsWithHTTPClient(client *http.Client) *InstancePeersGetParams
- func NewInstancePeersGetParamsWithTimeout(timeout time.Duration) *InstancePeersGetParams
- func (o *InstancePeersGetParams) SetContext(ctx context.Context)
- func (o *InstancePeersGetParams) SetDefaults()
- func (o *InstancePeersGetParams) SetFilter(filter *string)
- func (o *InstancePeersGetParams) SetHTTPClient(client *http.Client)
- func (o *InstancePeersGetParams) SetTimeout(timeout time.Duration)
- func (o *InstancePeersGetParams) WithContext(ctx context.Context) *InstancePeersGetParams
- func (o *InstancePeersGetParams) WithDefaults() *InstancePeersGetParams
- func (o *InstancePeersGetParams) WithFilter(filter *string) *InstancePeersGetParams
- func (o *InstancePeersGetParams) WithHTTPClient(client *http.Client) *InstancePeersGetParams
- func (o *InstancePeersGetParams) WithTimeout(timeout time.Duration) *InstancePeersGetParams
- func (o *InstancePeersGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type InstancePeersGetReader
- type InstancePeersGetUnauthorized
- func (o *InstancePeersGetUnauthorized) Code() int
- func (o *InstancePeersGetUnauthorized) Error() string
- func (o *InstancePeersGetUnauthorized) IsClientError() bool
- func (o *InstancePeersGetUnauthorized) IsCode(code int) bool
- func (o *InstancePeersGetUnauthorized) IsRedirect() bool
- func (o *InstancePeersGetUnauthorized) IsServerError() bool
- func (o *InstancePeersGetUnauthorized) IsSuccess() bool
- func (o *InstancePeersGetUnauthorized) String() string
- type InstanceUpdateBadRequest
- func (o *InstanceUpdateBadRequest) Code() int
- func (o *InstanceUpdateBadRequest) Error() string
- func (o *InstanceUpdateBadRequest) IsClientError() bool
- func (o *InstanceUpdateBadRequest) IsCode(code int) bool
- func (o *InstanceUpdateBadRequest) IsRedirect() bool
- func (o *InstanceUpdateBadRequest) IsServerError() bool
- func (o *InstanceUpdateBadRequest) IsSuccess() bool
- func (o *InstanceUpdateBadRequest) String() string
- type InstanceUpdateForbidden
- func (o *InstanceUpdateForbidden) Code() int
- func (o *InstanceUpdateForbidden) Error() string
- func (o *InstanceUpdateForbidden) IsClientError() bool
- func (o *InstanceUpdateForbidden) IsCode(code int) bool
- func (o *InstanceUpdateForbidden) IsRedirect() bool
- func (o *InstanceUpdateForbidden) IsServerError() bool
- func (o *InstanceUpdateForbidden) IsSuccess() bool
- func (o *InstanceUpdateForbidden) String() string
- type InstanceUpdateInternalServerError
- func (o *InstanceUpdateInternalServerError) Code() int
- func (o *InstanceUpdateInternalServerError) Error() string
- func (o *InstanceUpdateInternalServerError) IsClientError() bool
- func (o *InstanceUpdateInternalServerError) IsCode(code int) bool
- func (o *InstanceUpdateInternalServerError) IsRedirect() bool
- func (o *InstanceUpdateInternalServerError) IsServerError() bool
- func (o *InstanceUpdateInternalServerError) IsSuccess() bool
- func (o *InstanceUpdateInternalServerError) String() string
- type InstanceUpdateNotAcceptable
- func (o *InstanceUpdateNotAcceptable) Code() int
- func (o *InstanceUpdateNotAcceptable) Error() string
- func (o *InstanceUpdateNotAcceptable) IsClientError() bool
- func (o *InstanceUpdateNotAcceptable) IsCode(code int) bool
- func (o *InstanceUpdateNotAcceptable) IsRedirect() bool
- func (o *InstanceUpdateNotAcceptable) IsServerError() bool
- func (o *InstanceUpdateNotAcceptable) IsSuccess() bool
- func (o *InstanceUpdateNotAcceptable) String() string
- type InstanceUpdateNotFound
- func (o *InstanceUpdateNotFound) Code() int
- func (o *InstanceUpdateNotFound) Error() string
- func (o *InstanceUpdateNotFound) IsClientError() bool
- func (o *InstanceUpdateNotFound) IsCode(code int) bool
- func (o *InstanceUpdateNotFound) IsRedirect() bool
- func (o *InstanceUpdateNotFound) IsServerError() bool
- func (o *InstanceUpdateNotFound) IsSuccess() bool
- func (o *InstanceUpdateNotFound) String() string
- type InstanceUpdateOK
- func (o *InstanceUpdateOK) Code() int
- func (o *InstanceUpdateOK) Error() string
- func (o *InstanceUpdateOK) GetPayload() *models.InstanceV1
- func (o *InstanceUpdateOK) IsClientError() bool
- func (o *InstanceUpdateOK) IsCode(code int) bool
- func (o *InstanceUpdateOK) IsRedirect() bool
- func (o *InstanceUpdateOK) IsServerError() bool
- func (o *InstanceUpdateOK) IsSuccess() bool
- func (o *InstanceUpdateOK) String() string
- type InstanceUpdateParams
- func NewInstanceUpdateParams() *InstanceUpdateParams
- func NewInstanceUpdateParamsWithContext(ctx context.Context) *InstanceUpdateParams
- func NewInstanceUpdateParamsWithHTTPClient(client *http.Client) *InstanceUpdateParams
- func NewInstanceUpdateParamsWithTimeout(timeout time.Duration) *InstanceUpdateParams
- func (o *InstanceUpdateParams) SetContactEmail(contactEmail string)
- func (o *InstanceUpdateParams) SetContactUsername(contactUsername string)
- func (o *InstanceUpdateParams) SetContext(ctx context.Context)
- func (o *InstanceUpdateParams) SetDefaults()
- func (o *InstanceUpdateParams) SetDescription(description string)
- func (o *InstanceUpdateParams) SetHTTPClient(client *http.Client)
- func (o *InstanceUpdateParams) SetHeader(header runtime.NamedReadCloser)
- func (o *InstanceUpdateParams) SetShortDescription(shortDescription string)
- func (o *InstanceUpdateParams) SetTerms(terms string)
- func (o *InstanceUpdateParams) SetThumbnail(thumbnail runtime.NamedReadCloser)
- func (o *InstanceUpdateParams) SetThumbnailDescription(thumbnailDescription *string)
- func (o *InstanceUpdateParams) SetTimeout(timeout time.Duration)
- func (o *InstanceUpdateParams) SetTitle(title string)
- func (o *InstanceUpdateParams) WithContactEmail(contactEmail string) *InstanceUpdateParams
- func (o *InstanceUpdateParams) WithContactUsername(contactUsername string) *InstanceUpdateParams
- func (o *InstanceUpdateParams) WithContext(ctx context.Context) *InstanceUpdateParams
- func (o *InstanceUpdateParams) WithDefaults() *InstanceUpdateParams
- func (o *InstanceUpdateParams) WithDescription(description string) *InstanceUpdateParams
- func (o *InstanceUpdateParams) WithHTTPClient(client *http.Client) *InstanceUpdateParams
- func (o *InstanceUpdateParams) WithHeader(header runtime.NamedReadCloser) *InstanceUpdateParams
- func (o *InstanceUpdateParams) WithShortDescription(shortDescription string) *InstanceUpdateParams
- func (o *InstanceUpdateParams) WithTerms(terms string) *InstanceUpdateParams
- func (o *InstanceUpdateParams) WithThumbnail(thumbnail runtime.NamedReadCloser) *InstanceUpdateParams
- func (o *InstanceUpdateParams) WithThumbnailDescription(thumbnailDescription *string) *InstanceUpdateParams
- func (o *InstanceUpdateParams) WithTimeout(timeout time.Duration) *InstanceUpdateParams
- func (o *InstanceUpdateParams) WithTitle(title string) *InstanceUpdateParams
- func (o *InstanceUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type InstanceUpdateReader
- type InstanceUpdateUnauthorized
- func (o *InstanceUpdateUnauthorized) Code() int
- func (o *InstanceUpdateUnauthorized) Error() string
- func (o *InstanceUpdateUnauthorized) IsClientError() bool
- func (o *InstanceUpdateUnauthorized) IsCode(code int) bool
- func (o *InstanceUpdateUnauthorized) IsRedirect() bool
- func (o *InstanceUpdateUnauthorized) IsServerError() bool
- func (o *InstanceUpdateUnauthorized) IsSuccess() bool
- func (o *InstanceUpdateUnauthorized) String() string
- type RulesBadRequest
- func (o *RulesBadRequest) Code() int
- func (o *RulesBadRequest) Error() string
- func (o *RulesBadRequest) IsClientError() bool
- func (o *RulesBadRequest) IsCode(code int) bool
- func (o *RulesBadRequest) IsRedirect() bool
- func (o *RulesBadRequest) IsServerError() bool
- func (o *RulesBadRequest) IsSuccess() bool
- func (o *RulesBadRequest) String() string
- type RulesInternalServerError
- func (o *RulesInternalServerError) Code() int
- func (o *RulesInternalServerError) Error() string
- func (o *RulesInternalServerError) IsClientError() bool
- func (o *RulesInternalServerError) IsCode(code int) bool
- func (o *RulesInternalServerError) IsRedirect() bool
- func (o *RulesInternalServerError) IsServerError() bool
- func (o *RulesInternalServerError) IsSuccess() bool
- func (o *RulesInternalServerError) String() string
- type RulesNotAcceptable
- func (o *RulesNotAcceptable) Code() int
- func (o *RulesNotAcceptable) Error() string
- func (o *RulesNotAcceptable) IsClientError() bool
- func (o *RulesNotAcceptable) IsCode(code int) bool
- func (o *RulesNotAcceptable) IsRedirect() bool
- func (o *RulesNotAcceptable) IsServerError() bool
- func (o *RulesNotAcceptable) IsSuccess() bool
- func (o *RulesNotAcceptable) String() string
- type RulesNotFound
- func (o *RulesNotFound) Code() int
- func (o *RulesNotFound) Error() string
- func (o *RulesNotFound) IsClientError() bool
- func (o *RulesNotFound) IsCode(code int) bool
- func (o *RulesNotFound) IsRedirect() bool
- func (o *RulesNotFound) IsServerError() bool
- func (o *RulesNotFound) IsSuccess() bool
- func (o *RulesNotFound) String() string
- type RulesOK
- func (o *RulesOK) Code() int
- func (o *RulesOK) Error() string
- func (o *RulesOK) GetPayload() []*models.InstanceRule
- func (o *RulesOK) IsClientError() bool
- func (o *RulesOK) IsCode(code int) bool
- func (o *RulesOK) IsRedirect() bool
- func (o *RulesOK) IsServerError() bool
- func (o *RulesOK) IsSuccess() bool
- func (o *RulesOK) String() string
- type RulesParams
- func (o *RulesParams) SetContext(ctx context.Context)
- func (o *RulesParams) SetDefaults()
- func (o *RulesParams) SetHTTPClient(client *http.Client)
- func (o *RulesParams) SetTimeout(timeout time.Duration)
- func (o *RulesParams) WithContext(ctx context.Context) *RulesParams
- func (o *RulesParams) WithDefaults() *RulesParams
- func (o *RulesParams) WithHTTPClient(client *http.Client) *RulesParams
- func (o *RulesParams) WithTimeout(timeout time.Duration) *RulesParams
- func (o *RulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RulesReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithContentTypeApplicationJSON ¶
func WithContentTypeApplicationJSON(r *runtime.ClientOperation)
WithContentTypeApplicationJSON sets the Content-Type header to "application/json".
func WithContentTypeMultipartFormData ¶
func WithContentTypeMultipartFormData(r *runtime.ClientOperation)
WithContentTypeMultipartFormData sets the Content-Type header to "multipart/form-data".
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for instance API
func (*Client) InstanceGetV1 ¶
func (a *Client) InstanceGetV1(params *InstanceGetV1Params, opts ...ClientOption) (*InstanceGetV1OK, error)
InstanceGetV1 views instance information
func (*Client) InstanceGetV2 ¶
func (a *Client) InstanceGetV2(params *InstanceGetV2Params, opts ...ClientOption) (*InstanceGetV2OK, error)
InstanceGetV2 views instance information
func (*Client) InstancePeersGet ¶
func (a *Client) InstancePeersGet(params *InstancePeersGetParams, opts ...ClientOption) (*InstancePeersGetOK, error)
InstancePeersGet instance peers get API
func (*Client) InstanceUpdate ¶
func (a *Client) InstanceUpdate(params *InstanceUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*InstanceUpdateOK, error)
InstanceUpdate updates your instance information and or upload a new avatar header for the instance
This requires admin permissions on the instance.
func (*Client) Rules ¶
func (a *Client) Rules(params *RulesParams, opts ...ClientOption) (*RulesOK, error)
Rules views instance rules public
The rules will be returned in order (sorted by Order ascending).
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 may be used to customize the behavior of Client methods.
func WithContentType ¶
func WithContentType(mime string) ClientOption
WithContentType allows the client to force the Content-Type header to negotiate a specific Consumer from the server.
You may use this option to set arbitrary extensions to your MIME media type.
type ClientService ¶
type ClientService interface { InstanceGetV1(params *InstanceGetV1Params, opts ...ClientOption) (*InstanceGetV1OK, error) InstanceGetV2(params *InstanceGetV2Params, opts ...ClientOption) (*InstanceGetV2OK, error) InstancePeersGet(params *InstancePeersGetParams, opts ...ClientOption) (*InstancePeersGetOK, error) InstanceUpdate(params *InstanceUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*InstanceUpdateOK, error) Rules(params *RulesParams, opts ...ClientOption) (*RulesOK, 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 instance API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new instance API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new instance API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.
type InstanceGetV1InternalServerError ¶
type InstanceGetV1InternalServerError struct { }
InstanceGetV1InternalServerError describes a response with status code 500, with default header values.
internal error
func NewInstanceGetV1InternalServerError ¶
func NewInstanceGetV1InternalServerError() *InstanceGetV1InternalServerError
NewInstanceGetV1InternalServerError creates a InstanceGetV1InternalServerError with default headers values
func (*InstanceGetV1InternalServerError) Code ¶
func (o *InstanceGetV1InternalServerError) Code() int
Code gets the status code for the instance get v1 internal server error response
func (*InstanceGetV1InternalServerError) Error ¶
func (o *InstanceGetV1InternalServerError) Error() string
func (*InstanceGetV1InternalServerError) IsClientError ¶
func (o *InstanceGetV1InternalServerError) IsClientError() bool
IsClientError returns true when this instance get v1 internal server error response has a 4xx status code
func (*InstanceGetV1InternalServerError) IsCode ¶
func (o *InstanceGetV1InternalServerError) IsCode(code int) bool
IsCode returns true when this instance get v1 internal server error response a status code equal to that given
func (*InstanceGetV1InternalServerError) IsRedirect ¶
func (o *InstanceGetV1InternalServerError) IsRedirect() bool
IsRedirect returns true when this instance get v1 internal server error response has a 3xx status code
func (*InstanceGetV1InternalServerError) IsServerError ¶
func (o *InstanceGetV1InternalServerError) IsServerError() bool
IsServerError returns true when this instance get v1 internal server error response has a 5xx status code
func (*InstanceGetV1InternalServerError) IsSuccess ¶
func (o *InstanceGetV1InternalServerError) IsSuccess() bool
IsSuccess returns true when this instance get v1 internal server error response has a 2xx status code
func (*InstanceGetV1InternalServerError) String ¶
func (o *InstanceGetV1InternalServerError) String() string
type InstanceGetV1NotAcceptable ¶
type InstanceGetV1NotAcceptable struct { }
InstanceGetV1NotAcceptable describes a response with status code 406, with default header values.
not acceptable
func NewInstanceGetV1NotAcceptable ¶
func NewInstanceGetV1NotAcceptable() *InstanceGetV1NotAcceptable
NewInstanceGetV1NotAcceptable creates a InstanceGetV1NotAcceptable with default headers values
func (*InstanceGetV1NotAcceptable) Code ¶
func (o *InstanceGetV1NotAcceptable) Code() int
Code gets the status code for the instance get v1 not acceptable response
func (*InstanceGetV1NotAcceptable) Error ¶
func (o *InstanceGetV1NotAcceptable) Error() string
func (*InstanceGetV1NotAcceptable) IsClientError ¶
func (o *InstanceGetV1NotAcceptable) IsClientError() bool
IsClientError returns true when this instance get v1 not acceptable response has a 4xx status code
func (*InstanceGetV1NotAcceptable) IsCode ¶
func (o *InstanceGetV1NotAcceptable) IsCode(code int) bool
IsCode returns true when this instance get v1 not acceptable response a status code equal to that given
func (*InstanceGetV1NotAcceptable) IsRedirect ¶
func (o *InstanceGetV1NotAcceptable) IsRedirect() bool
IsRedirect returns true when this instance get v1 not acceptable response has a 3xx status code
func (*InstanceGetV1NotAcceptable) IsServerError ¶
func (o *InstanceGetV1NotAcceptable) IsServerError() bool
IsServerError returns true when this instance get v1 not acceptable response has a 5xx status code
func (*InstanceGetV1NotAcceptable) IsSuccess ¶
func (o *InstanceGetV1NotAcceptable) IsSuccess() bool
IsSuccess returns true when this instance get v1 not acceptable response has a 2xx status code
func (*InstanceGetV1NotAcceptable) String ¶
func (o *InstanceGetV1NotAcceptable) String() string
type InstanceGetV1OK ¶
type InstanceGetV1OK struct {
Payload *models.InstanceV1
}
InstanceGetV1OK describes a response with status code 200, with default header values.
Instance information.
func NewInstanceGetV1OK ¶
func NewInstanceGetV1OK() *InstanceGetV1OK
NewInstanceGetV1OK creates a InstanceGetV1OK with default headers values
func (*InstanceGetV1OK) Code ¶
func (o *InstanceGetV1OK) Code() int
Code gets the status code for the instance get v1 o k response
func (*InstanceGetV1OK) Error ¶
func (o *InstanceGetV1OK) Error() string
func (*InstanceGetV1OK) GetPayload ¶
func (o *InstanceGetV1OK) GetPayload() *models.InstanceV1
func (*InstanceGetV1OK) IsClientError ¶
func (o *InstanceGetV1OK) IsClientError() bool
IsClientError returns true when this instance get v1 o k response has a 4xx status code
func (*InstanceGetV1OK) IsCode ¶
func (o *InstanceGetV1OK) IsCode(code int) bool
IsCode returns true when this instance get v1 o k response a status code equal to that given
func (*InstanceGetV1OK) IsRedirect ¶
func (o *InstanceGetV1OK) IsRedirect() bool
IsRedirect returns true when this instance get v1 o k response has a 3xx status code
func (*InstanceGetV1OK) IsServerError ¶
func (o *InstanceGetV1OK) IsServerError() bool
IsServerError returns true when this instance get v1 o k response has a 5xx status code
func (*InstanceGetV1OK) IsSuccess ¶
func (o *InstanceGetV1OK) IsSuccess() bool
IsSuccess returns true when this instance get v1 o k response has a 2xx status code
func (*InstanceGetV1OK) String ¶
func (o *InstanceGetV1OK) String() string
type InstanceGetV1Params ¶
type InstanceGetV1Params struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
InstanceGetV1Params contains all the parameters to send to the API endpoint
for the instance get v1 operation. Typically these are written to a http.Request.
func NewInstanceGetV1Params ¶
func NewInstanceGetV1Params() *InstanceGetV1Params
NewInstanceGetV1Params creates a new InstanceGetV1Params 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 NewInstanceGetV1ParamsWithContext ¶
func NewInstanceGetV1ParamsWithContext(ctx context.Context) *InstanceGetV1Params
NewInstanceGetV1ParamsWithContext creates a new InstanceGetV1Params object with the ability to set a context for a request.
func NewInstanceGetV1ParamsWithHTTPClient ¶
func NewInstanceGetV1ParamsWithHTTPClient(client *http.Client) *InstanceGetV1Params
NewInstanceGetV1ParamsWithHTTPClient creates a new InstanceGetV1Params object with the ability to set a custom HTTPClient for a request.
func NewInstanceGetV1ParamsWithTimeout ¶
func NewInstanceGetV1ParamsWithTimeout(timeout time.Duration) *InstanceGetV1Params
NewInstanceGetV1ParamsWithTimeout creates a new InstanceGetV1Params object with the ability to set a timeout on a request.
func (*InstanceGetV1Params) SetContext ¶
func (o *InstanceGetV1Params) SetContext(ctx context.Context)
SetContext adds the context to the instance get v1 params
func (*InstanceGetV1Params) SetDefaults ¶
func (o *InstanceGetV1Params) SetDefaults()
SetDefaults hydrates default values in the instance get v1 params (not the query body).
All values with no default are reset to their zero value.
func (*InstanceGetV1Params) SetHTTPClient ¶
func (o *InstanceGetV1Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the instance get v1 params
func (*InstanceGetV1Params) SetTimeout ¶
func (o *InstanceGetV1Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the instance get v1 params
func (*InstanceGetV1Params) WithContext ¶
func (o *InstanceGetV1Params) WithContext(ctx context.Context) *InstanceGetV1Params
WithContext adds the context to the instance get v1 params
func (*InstanceGetV1Params) WithDefaults ¶
func (o *InstanceGetV1Params) WithDefaults() *InstanceGetV1Params
WithDefaults hydrates default values in the instance get v1 params (not the query body).
All values with no default are reset to their zero value.
func (*InstanceGetV1Params) WithHTTPClient ¶
func (o *InstanceGetV1Params) WithHTTPClient(client *http.Client) *InstanceGetV1Params
WithHTTPClient adds the HTTPClient to the instance get v1 params
func (*InstanceGetV1Params) WithTimeout ¶
func (o *InstanceGetV1Params) WithTimeout(timeout time.Duration) *InstanceGetV1Params
WithTimeout adds the timeout to the instance get v1 params
func (*InstanceGetV1Params) WriteToRequest ¶
func (o *InstanceGetV1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type InstanceGetV1Reader ¶
type InstanceGetV1Reader struct {
// contains filtered or unexported fields
}
InstanceGetV1Reader is a Reader for the InstanceGetV1 structure.
func (*InstanceGetV1Reader) ReadResponse ¶
func (o *InstanceGetV1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type InstanceGetV2InternalServerError ¶
type InstanceGetV2InternalServerError struct { }
InstanceGetV2InternalServerError describes a response with status code 500, with default header values.
internal error
func NewInstanceGetV2InternalServerError ¶
func NewInstanceGetV2InternalServerError() *InstanceGetV2InternalServerError
NewInstanceGetV2InternalServerError creates a InstanceGetV2InternalServerError with default headers values
func (*InstanceGetV2InternalServerError) Code ¶
func (o *InstanceGetV2InternalServerError) Code() int
Code gets the status code for the instance get v2 internal server error response
func (*InstanceGetV2InternalServerError) Error ¶
func (o *InstanceGetV2InternalServerError) Error() string
func (*InstanceGetV2InternalServerError) IsClientError ¶
func (o *InstanceGetV2InternalServerError) IsClientError() bool
IsClientError returns true when this instance get v2 internal server error response has a 4xx status code
func (*InstanceGetV2InternalServerError) IsCode ¶
func (o *InstanceGetV2InternalServerError) IsCode(code int) bool
IsCode returns true when this instance get v2 internal server error response a status code equal to that given
func (*InstanceGetV2InternalServerError) IsRedirect ¶
func (o *InstanceGetV2InternalServerError) IsRedirect() bool
IsRedirect returns true when this instance get v2 internal server error response has a 3xx status code
func (*InstanceGetV2InternalServerError) IsServerError ¶
func (o *InstanceGetV2InternalServerError) IsServerError() bool
IsServerError returns true when this instance get v2 internal server error response has a 5xx status code
func (*InstanceGetV2InternalServerError) IsSuccess ¶
func (o *InstanceGetV2InternalServerError) IsSuccess() bool
IsSuccess returns true when this instance get v2 internal server error response has a 2xx status code
func (*InstanceGetV2InternalServerError) String ¶
func (o *InstanceGetV2InternalServerError) String() string
type InstanceGetV2NotAcceptable ¶
type InstanceGetV2NotAcceptable struct { }
InstanceGetV2NotAcceptable describes a response with status code 406, with default header values.
not acceptable
func NewInstanceGetV2NotAcceptable ¶
func NewInstanceGetV2NotAcceptable() *InstanceGetV2NotAcceptable
NewInstanceGetV2NotAcceptable creates a InstanceGetV2NotAcceptable with default headers values
func (*InstanceGetV2NotAcceptable) Code ¶
func (o *InstanceGetV2NotAcceptable) Code() int
Code gets the status code for the instance get v2 not acceptable response
func (*InstanceGetV2NotAcceptable) Error ¶
func (o *InstanceGetV2NotAcceptable) Error() string
func (*InstanceGetV2NotAcceptable) IsClientError ¶
func (o *InstanceGetV2NotAcceptable) IsClientError() bool
IsClientError returns true when this instance get v2 not acceptable response has a 4xx status code
func (*InstanceGetV2NotAcceptable) IsCode ¶
func (o *InstanceGetV2NotAcceptable) IsCode(code int) bool
IsCode returns true when this instance get v2 not acceptable response a status code equal to that given
func (*InstanceGetV2NotAcceptable) IsRedirect ¶
func (o *InstanceGetV2NotAcceptable) IsRedirect() bool
IsRedirect returns true when this instance get v2 not acceptable response has a 3xx status code
func (*InstanceGetV2NotAcceptable) IsServerError ¶
func (o *InstanceGetV2NotAcceptable) IsServerError() bool
IsServerError returns true when this instance get v2 not acceptable response has a 5xx status code
func (*InstanceGetV2NotAcceptable) IsSuccess ¶
func (o *InstanceGetV2NotAcceptable) IsSuccess() bool
IsSuccess returns true when this instance get v2 not acceptable response has a 2xx status code
func (*InstanceGetV2NotAcceptable) String ¶
func (o *InstanceGetV2NotAcceptable) String() string
type InstanceGetV2OK ¶
type InstanceGetV2OK struct {
Payload *models.InstanceV2
}
InstanceGetV2OK describes a response with status code 200, with default header values.
Instance information.
func NewInstanceGetV2OK ¶
func NewInstanceGetV2OK() *InstanceGetV2OK
NewInstanceGetV2OK creates a InstanceGetV2OK with default headers values
func (*InstanceGetV2OK) Code ¶
func (o *InstanceGetV2OK) Code() int
Code gets the status code for the instance get v2 o k response
func (*InstanceGetV2OK) Error ¶
func (o *InstanceGetV2OK) Error() string
func (*InstanceGetV2OK) GetPayload ¶
func (o *InstanceGetV2OK) GetPayload() *models.InstanceV2
func (*InstanceGetV2OK) IsClientError ¶
func (o *InstanceGetV2OK) IsClientError() bool
IsClientError returns true when this instance get v2 o k response has a 4xx status code
func (*InstanceGetV2OK) IsCode ¶
func (o *InstanceGetV2OK) IsCode(code int) bool
IsCode returns true when this instance get v2 o k response a status code equal to that given
func (*InstanceGetV2OK) IsRedirect ¶
func (o *InstanceGetV2OK) IsRedirect() bool
IsRedirect returns true when this instance get v2 o k response has a 3xx status code
func (*InstanceGetV2OK) IsServerError ¶
func (o *InstanceGetV2OK) IsServerError() bool
IsServerError returns true when this instance get v2 o k response has a 5xx status code
func (*InstanceGetV2OK) IsSuccess ¶
func (o *InstanceGetV2OK) IsSuccess() bool
IsSuccess returns true when this instance get v2 o k response has a 2xx status code
func (*InstanceGetV2OK) String ¶
func (o *InstanceGetV2OK) String() string
type InstanceGetV2Params ¶
type InstanceGetV2Params struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
InstanceGetV2Params contains all the parameters to send to the API endpoint
for the instance get v2 operation. Typically these are written to a http.Request.
func NewInstanceGetV2Params ¶
func NewInstanceGetV2Params() *InstanceGetV2Params
NewInstanceGetV2Params creates a new InstanceGetV2Params 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 NewInstanceGetV2ParamsWithContext ¶
func NewInstanceGetV2ParamsWithContext(ctx context.Context) *InstanceGetV2Params
NewInstanceGetV2ParamsWithContext creates a new InstanceGetV2Params object with the ability to set a context for a request.
func NewInstanceGetV2ParamsWithHTTPClient ¶
func NewInstanceGetV2ParamsWithHTTPClient(client *http.Client) *InstanceGetV2Params
NewInstanceGetV2ParamsWithHTTPClient creates a new InstanceGetV2Params object with the ability to set a custom HTTPClient for a request.
func NewInstanceGetV2ParamsWithTimeout ¶
func NewInstanceGetV2ParamsWithTimeout(timeout time.Duration) *InstanceGetV2Params
NewInstanceGetV2ParamsWithTimeout creates a new InstanceGetV2Params object with the ability to set a timeout on a request.
func (*InstanceGetV2Params) SetContext ¶
func (o *InstanceGetV2Params) SetContext(ctx context.Context)
SetContext adds the context to the instance get v2 params
func (*InstanceGetV2Params) SetDefaults ¶
func (o *InstanceGetV2Params) SetDefaults()
SetDefaults hydrates default values in the instance get v2 params (not the query body).
All values with no default are reset to their zero value.
func (*InstanceGetV2Params) SetHTTPClient ¶
func (o *InstanceGetV2Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the instance get v2 params
func (*InstanceGetV2Params) SetTimeout ¶
func (o *InstanceGetV2Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the instance get v2 params
func (*InstanceGetV2Params) WithContext ¶
func (o *InstanceGetV2Params) WithContext(ctx context.Context) *InstanceGetV2Params
WithContext adds the context to the instance get v2 params
func (*InstanceGetV2Params) WithDefaults ¶
func (o *InstanceGetV2Params) WithDefaults() *InstanceGetV2Params
WithDefaults hydrates default values in the instance get v2 params (not the query body).
All values with no default are reset to their zero value.
func (*InstanceGetV2Params) WithHTTPClient ¶
func (o *InstanceGetV2Params) WithHTTPClient(client *http.Client) *InstanceGetV2Params
WithHTTPClient adds the HTTPClient to the instance get v2 params
func (*InstanceGetV2Params) WithTimeout ¶
func (o *InstanceGetV2Params) WithTimeout(timeout time.Duration) *InstanceGetV2Params
WithTimeout adds the timeout to the instance get v2 params
func (*InstanceGetV2Params) WriteToRequest ¶
func (o *InstanceGetV2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type InstanceGetV2Reader ¶
type InstanceGetV2Reader struct {
// contains filtered or unexported fields
}
InstanceGetV2Reader is a Reader for the InstanceGetV2 structure.
func (*InstanceGetV2Reader) ReadResponse ¶
func (o *InstanceGetV2Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type InstancePeersGetBadRequest ¶
type InstancePeersGetBadRequest struct { }
InstancePeersGetBadRequest describes a response with status code 400, with default header values.
bad request
func NewInstancePeersGetBadRequest ¶
func NewInstancePeersGetBadRequest() *InstancePeersGetBadRequest
NewInstancePeersGetBadRequest creates a InstancePeersGetBadRequest with default headers values
func (*InstancePeersGetBadRequest) Code ¶
func (o *InstancePeersGetBadRequest) Code() int
Code gets the status code for the instance peers get bad request response
func (*InstancePeersGetBadRequest) Error ¶
func (o *InstancePeersGetBadRequest) Error() string
func (*InstancePeersGetBadRequest) IsClientError ¶
func (o *InstancePeersGetBadRequest) IsClientError() bool
IsClientError returns true when this instance peers get bad request response has a 4xx status code
func (*InstancePeersGetBadRequest) IsCode ¶
func (o *InstancePeersGetBadRequest) IsCode(code int) bool
IsCode returns true when this instance peers get bad request response a status code equal to that given
func (*InstancePeersGetBadRequest) IsRedirect ¶
func (o *InstancePeersGetBadRequest) IsRedirect() bool
IsRedirect returns true when this instance peers get bad request response has a 3xx status code
func (*InstancePeersGetBadRequest) IsServerError ¶
func (o *InstancePeersGetBadRequest) IsServerError() bool
IsServerError returns true when this instance peers get bad request response has a 5xx status code
func (*InstancePeersGetBadRequest) IsSuccess ¶
func (o *InstancePeersGetBadRequest) IsSuccess() bool
IsSuccess returns true when this instance peers get bad request response has a 2xx status code
func (*InstancePeersGetBadRequest) String ¶
func (o *InstancePeersGetBadRequest) String() string
type InstancePeersGetForbidden ¶
type InstancePeersGetForbidden struct { }
InstancePeersGetForbidden describes a response with status code 403, with default header values.
forbidden
func NewInstancePeersGetForbidden ¶
func NewInstancePeersGetForbidden() *InstancePeersGetForbidden
NewInstancePeersGetForbidden creates a InstancePeersGetForbidden with default headers values
func (*InstancePeersGetForbidden) Code ¶
func (o *InstancePeersGetForbidden) Code() int
Code gets the status code for the instance peers get forbidden response
func (*InstancePeersGetForbidden) Error ¶
func (o *InstancePeersGetForbidden) Error() string
func (*InstancePeersGetForbidden) IsClientError ¶
func (o *InstancePeersGetForbidden) IsClientError() bool
IsClientError returns true when this instance peers get forbidden response has a 4xx status code
func (*InstancePeersGetForbidden) IsCode ¶
func (o *InstancePeersGetForbidden) IsCode(code int) bool
IsCode returns true when this instance peers get forbidden response a status code equal to that given
func (*InstancePeersGetForbidden) IsRedirect ¶
func (o *InstancePeersGetForbidden) IsRedirect() bool
IsRedirect returns true when this instance peers get forbidden response has a 3xx status code
func (*InstancePeersGetForbidden) IsServerError ¶
func (o *InstancePeersGetForbidden) IsServerError() bool
IsServerError returns true when this instance peers get forbidden response has a 5xx status code
func (*InstancePeersGetForbidden) IsSuccess ¶
func (o *InstancePeersGetForbidden) IsSuccess() bool
IsSuccess returns true when this instance peers get forbidden response has a 2xx status code
func (*InstancePeersGetForbidden) String ¶
func (o *InstancePeersGetForbidden) String() string
type InstancePeersGetInternalServerError ¶
type InstancePeersGetInternalServerError struct { }
InstancePeersGetInternalServerError describes a response with status code 500, with default header values.
internal server error
func NewInstancePeersGetInternalServerError ¶
func NewInstancePeersGetInternalServerError() *InstancePeersGetInternalServerError
NewInstancePeersGetInternalServerError creates a InstancePeersGetInternalServerError with default headers values
func (*InstancePeersGetInternalServerError) Code ¶
func (o *InstancePeersGetInternalServerError) Code() int
Code gets the status code for the instance peers get internal server error response
func (*InstancePeersGetInternalServerError) Error ¶
func (o *InstancePeersGetInternalServerError) Error() string
func (*InstancePeersGetInternalServerError) IsClientError ¶
func (o *InstancePeersGetInternalServerError) IsClientError() bool
IsClientError returns true when this instance peers get internal server error response has a 4xx status code
func (*InstancePeersGetInternalServerError) IsCode ¶
func (o *InstancePeersGetInternalServerError) IsCode(code int) bool
IsCode returns true when this instance peers get internal server error response a status code equal to that given
func (*InstancePeersGetInternalServerError) IsRedirect ¶
func (o *InstancePeersGetInternalServerError) IsRedirect() bool
IsRedirect returns true when this instance peers get internal server error response has a 3xx status code
func (*InstancePeersGetInternalServerError) IsServerError ¶
func (o *InstancePeersGetInternalServerError) IsServerError() bool
IsServerError returns true when this instance peers get internal server error response has a 5xx status code
func (*InstancePeersGetInternalServerError) IsSuccess ¶
func (o *InstancePeersGetInternalServerError) IsSuccess() bool
IsSuccess returns true when this instance peers get internal server error response has a 2xx status code
func (*InstancePeersGetInternalServerError) String ¶
func (o *InstancePeersGetInternalServerError) String() string
type InstancePeersGetNotAcceptable ¶
type InstancePeersGetNotAcceptable struct { }
InstancePeersGetNotAcceptable describes a response with status code 406, with default header values.
not acceptable
func NewInstancePeersGetNotAcceptable ¶
func NewInstancePeersGetNotAcceptable() *InstancePeersGetNotAcceptable
NewInstancePeersGetNotAcceptable creates a InstancePeersGetNotAcceptable with default headers values
func (*InstancePeersGetNotAcceptable) Code ¶
func (o *InstancePeersGetNotAcceptable) Code() int
Code gets the status code for the instance peers get not acceptable response
func (*InstancePeersGetNotAcceptable) Error ¶
func (o *InstancePeersGetNotAcceptable) Error() string
func (*InstancePeersGetNotAcceptable) IsClientError ¶
func (o *InstancePeersGetNotAcceptable) IsClientError() bool
IsClientError returns true when this instance peers get not acceptable response has a 4xx status code
func (*InstancePeersGetNotAcceptable) IsCode ¶
func (o *InstancePeersGetNotAcceptable) IsCode(code int) bool
IsCode returns true when this instance peers get not acceptable response a status code equal to that given
func (*InstancePeersGetNotAcceptable) IsRedirect ¶
func (o *InstancePeersGetNotAcceptable) IsRedirect() bool
IsRedirect returns true when this instance peers get not acceptable response has a 3xx status code
func (*InstancePeersGetNotAcceptable) IsServerError ¶
func (o *InstancePeersGetNotAcceptable) IsServerError() bool
IsServerError returns true when this instance peers get not acceptable response has a 5xx status code
func (*InstancePeersGetNotAcceptable) IsSuccess ¶
func (o *InstancePeersGetNotAcceptable) IsSuccess() bool
IsSuccess returns true when this instance peers get not acceptable response has a 2xx status code
func (*InstancePeersGetNotAcceptable) String ¶
func (o *InstancePeersGetNotAcceptable) String() string
type InstancePeersGetNotFound ¶
type InstancePeersGetNotFound struct { }
InstancePeersGetNotFound describes a response with status code 404, with default header values.
not found
func NewInstancePeersGetNotFound ¶
func NewInstancePeersGetNotFound() *InstancePeersGetNotFound
NewInstancePeersGetNotFound creates a InstancePeersGetNotFound with default headers values
func (*InstancePeersGetNotFound) Code ¶
func (o *InstancePeersGetNotFound) Code() int
Code gets the status code for the instance peers get not found response
func (*InstancePeersGetNotFound) Error ¶
func (o *InstancePeersGetNotFound) Error() string
func (*InstancePeersGetNotFound) IsClientError ¶
func (o *InstancePeersGetNotFound) IsClientError() bool
IsClientError returns true when this instance peers get not found response has a 4xx status code
func (*InstancePeersGetNotFound) IsCode ¶
func (o *InstancePeersGetNotFound) IsCode(code int) bool
IsCode returns true when this instance peers get not found response a status code equal to that given
func (*InstancePeersGetNotFound) IsRedirect ¶
func (o *InstancePeersGetNotFound) IsRedirect() bool
IsRedirect returns true when this instance peers get not found response has a 3xx status code
func (*InstancePeersGetNotFound) IsServerError ¶
func (o *InstancePeersGetNotFound) IsServerError() bool
IsServerError returns true when this instance peers get not found response has a 5xx status code
func (*InstancePeersGetNotFound) IsSuccess ¶
func (o *InstancePeersGetNotFound) IsSuccess() bool
IsSuccess returns true when this instance peers get not found response has a 2xx status code
func (*InstancePeersGetNotFound) String ¶
func (o *InstancePeersGetNotFound) String() string
type InstancePeersGetOK ¶
InstancePeersGetOK describes a response with status code 200, with default header values. If no filter parameter is provided, or filter is empty, then a legacy, Mastodon-API compatible response will be returned. This will consist of just a 'flat' array of strings like `["example.com", "example.org"]`, which corresponds to domains this instance peers with.
If a filter parameter is provided, then an array of objects with at least a `domain` key set on each object will be returned.
Domains that are silenced or suspended will also have a key `suspended_at` or `silenced_at` that contains an iso8601 date string. If one of these keys is not present on the domain object, it is open. Suspended instances may in some cases be obfuscated, which means they will have some letters replaced by `*` to make it more difficult for bad actors to target instances with harassment.
Whether a flat response or a more detailed response is returned, domains will be sorted alphabetically by hostname.
func NewInstancePeersGetOK ¶
func NewInstancePeersGetOK() *InstancePeersGetOK
NewInstancePeersGetOK creates a InstancePeersGetOK with default headers values
func (*InstancePeersGetOK) Code ¶
func (o *InstancePeersGetOK) Code() int
Code gets the status code for the instance peers get o k response
func (*InstancePeersGetOK) Error ¶
func (o *InstancePeersGetOK) Error() string
func (*InstancePeersGetOK) GetPayload ¶
func (o *InstancePeersGetOK) GetPayload() []*models.Domain
func (*InstancePeersGetOK) IsClientError ¶
func (o *InstancePeersGetOK) IsClientError() bool
IsClientError returns true when this instance peers get o k response has a 4xx status code
func (*InstancePeersGetOK) IsCode ¶
func (o *InstancePeersGetOK) IsCode(code int) bool
IsCode returns true when this instance peers get o k response a status code equal to that given
func (*InstancePeersGetOK) IsRedirect ¶
func (o *InstancePeersGetOK) IsRedirect() bool
IsRedirect returns true when this instance peers get o k response has a 3xx status code
func (*InstancePeersGetOK) IsServerError ¶
func (o *InstancePeersGetOK) IsServerError() bool
IsServerError returns true when this instance peers get o k response has a 5xx status code
func (*InstancePeersGetOK) IsSuccess ¶
func (o *InstancePeersGetOK) IsSuccess() bool
IsSuccess returns true when this instance peers get o k response has a 2xx status code
func (*InstancePeersGetOK) String ¶
func (o *InstancePeersGetOK) String() string
type InstancePeersGetParams ¶
type InstancePeersGetParams struct { /* Filter. Comma-separated list of filters to apply to results. Recognized filters are: - `open` -- include peers that are not suspended or silenced - `suspended` -- include peers that have been suspended. If filter is `open`, only instances that haven't been suspended or silenced will be returned. If filter is `suspended`, only suspended instances will be shown. If filter is `open,suspended`, then all known instances will be returned. If filter is an empty string or not set, then `open` will be assumed as the default. Default: "open" */ Filter *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
InstancePeersGetParams contains all the parameters to send to the API endpoint
for the instance peers get operation. Typically these are written to a http.Request.
func NewInstancePeersGetParams ¶
func NewInstancePeersGetParams() *InstancePeersGetParams
NewInstancePeersGetParams creates a new InstancePeersGetParams 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 NewInstancePeersGetParamsWithContext ¶
func NewInstancePeersGetParamsWithContext(ctx context.Context) *InstancePeersGetParams
NewInstancePeersGetParamsWithContext creates a new InstancePeersGetParams object with the ability to set a context for a request.
func NewInstancePeersGetParamsWithHTTPClient ¶
func NewInstancePeersGetParamsWithHTTPClient(client *http.Client) *InstancePeersGetParams
NewInstancePeersGetParamsWithHTTPClient creates a new InstancePeersGetParams object with the ability to set a custom HTTPClient for a request.
func NewInstancePeersGetParamsWithTimeout ¶
func NewInstancePeersGetParamsWithTimeout(timeout time.Duration) *InstancePeersGetParams
NewInstancePeersGetParamsWithTimeout creates a new InstancePeersGetParams object with the ability to set a timeout on a request.
func (*InstancePeersGetParams) SetContext ¶
func (o *InstancePeersGetParams) SetContext(ctx context.Context)
SetContext adds the context to the instance peers get params
func (*InstancePeersGetParams) SetDefaults ¶
func (o *InstancePeersGetParams) SetDefaults()
SetDefaults hydrates default values in the instance peers get params (not the query body).
All values with no default are reset to their zero value.
func (*InstancePeersGetParams) SetFilter ¶
func (o *InstancePeersGetParams) SetFilter(filter *string)
SetFilter adds the filter to the instance peers get params
func (*InstancePeersGetParams) SetHTTPClient ¶
func (o *InstancePeersGetParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the instance peers get params
func (*InstancePeersGetParams) SetTimeout ¶
func (o *InstancePeersGetParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the instance peers get params
func (*InstancePeersGetParams) WithContext ¶
func (o *InstancePeersGetParams) WithContext(ctx context.Context) *InstancePeersGetParams
WithContext adds the context to the instance peers get params
func (*InstancePeersGetParams) WithDefaults ¶
func (o *InstancePeersGetParams) WithDefaults() *InstancePeersGetParams
WithDefaults hydrates default values in the instance peers get params (not the query body).
All values with no default are reset to their zero value.
func (*InstancePeersGetParams) WithFilter ¶
func (o *InstancePeersGetParams) WithFilter(filter *string) *InstancePeersGetParams
WithFilter adds the filter to the instance peers get params
func (*InstancePeersGetParams) WithHTTPClient ¶
func (o *InstancePeersGetParams) WithHTTPClient(client *http.Client) *InstancePeersGetParams
WithHTTPClient adds the HTTPClient to the instance peers get params
func (*InstancePeersGetParams) WithTimeout ¶
func (o *InstancePeersGetParams) WithTimeout(timeout time.Duration) *InstancePeersGetParams
WithTimeout adds the timeout to the instance peers get params
func (*InstancePeersGetParams) WriteToRequest ¶
func (o *InstancePeersGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type InstancePeersGetReader ¶
type InstancePeersGetReader struct {
// contains filtered or unexported fields
}
InstancePeersGetReader is a Reader for the InstancePeersGet structure.
func (*InstancePeersGetReader) ReadResponse ¶
func (o *InstancePeersGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type InstancePeersGetUnauthorized ¶
type InstancePeersGetUnauthorized struct { }
InstancePeersGetUnauthorized describes a response with status code 401, with default header values.
unauthorized
func NewInstancePeersGetUnauthorized ¶
func NewInstancePeersGetUnauthorized() *InstancePeersGetUnauthorized
NewInstancePeersGetUnauthorized creates a InstancePeersGetUnauthorized with default headers values
func (*InstancePeersGetUnauthorized) Code ¶
func (o *InstancePeersGetUnauthorized) Code() int
Code gets the status code for the instance peers get unauthorized response
func (*InstancePeersGetUnauthorized) Error ¶
func (o *InstancePeersGetUnauthorized) Error() string
func (*InstancePeersGetUnauthorized) IsClientError ¶
func (o *InstancePeersGetUnauthorized) IsClientError() bool
IsClientError returns true when this instance peers get unauthorized response has a 4xx status code
func (*InstancePeersGetUnauthorized) IsCode ¶
func (o *InstancePeersGetUnauthorized) IsCode(code int) bool
IsCode returns true when this instance peers get unauthorized response a status code equal to that given
func (*InstancePeersGetUnauthorized) IsRedirect ¶
func (o *InstancePeersGetUnauthorized) IsRedirect() bool
IsRedirect returns true when this instance peers get unauthorized response has a 3xx status code
func (*InstancePeersGetUnauthorized) IsServerError ¶
func (o *InstancePeersGetUnauthorized) IsServerError() bool
IsServerError returns true when this instance peers get unauthorized response has a 5xx status code
func (*InstancePeersGetUnauthorized) IsSuccess ¶
func (o *InstancePeersGetUnauthorized) IsSuccess() bool
IsSuccess returns true when this instance peers get unauthorized response has a 2xx status code
func (*InstancePeersGetUnauthorized) String ¶
func (o *InstancePeersGetUnauthorized) String() string
type InstanceUpdateBadRequest ¶
type InstanceUpdateBadRequest struct { }
InstanceUpdateBadRequest describes a response with status code 400, with default header values.
bad request
func NewInstanceUpdateBadRequest ¶
func NewInstanceUpdateBadRequest() *InstanceUpdateBadRequest
NewInstanceUpdateBadRequest creates a InstanceUpdateBadRequest with default headers values
func (*InstanceUpdateBadRequest) Code ¶
func (o *InstanceUpdateBadRequest) Code() int
Code gets the status code for the instance update bad request response
func (*InstanceUpdateBadRequest) Error ¶
func (o *InstanceUpdateBadRequest) Error() string
func (*InstanceUpdateBadRequest) IsClientError ¶
func (o *InstanceUpdateBadRequest) IsClientError() bool
IsClientError returns true when this instance update bad request response has a 4xx status code
func (*InstanceUpdateBadRequest) IsCode ¶
func (o *InstanceUpdateBadRequest) IsCode(code int) bool
IsCode returns true when this instance update bad request response a status code equal to that given
func (*InstanceUpdateBadRequest) IsRedirect ¶
func (o *InstanceUpdateBadRequest) IsRedirect() bool
IsRedirect returns true when this instance update bad request response has a 3xx status code
func (*InstanceUpdateBadRequest) IsServerError ¶
func (o *InstanceUpdateBadRequest) IsServerError() bool
IsServerError returns true when this instance update bad request response has a 5xx status code
func (*InstanceUpdateBadRequest) IsSuccess ¶
func (o *InstanceUpdateBadRequest) IsSuccess() bool
IsSuccess returns true when this instance update bad request response has a 2xx status code
func (*InstanceUpdateBadRequest) String ¶
func (o *InstanceUpdateBadRequest) String() string
type InstanceUpdateForbidden ¶
type InstanceUpdateForbidden struct { }
InstanceUpdateForbidden describes a response with status code 403, with default header values.
forbidden
func NewInstanceUpdateForbidden ¶
func NewInstanceUpdateForbidden() *InstanceUpdateForbidden
NewInstanceUpdateForbidden creates a InstanceUpdateForbidden with default headers values
func (*InstanceUpdateForbidden) Code ¶
func (o *InstanceUpdateForbidden) Code() int
Code gets the status code for the instance update forbidden response
func (*InstanceUpdateForbidden) Error ¶
func (o *InstanceUpdateForbidden) Error() string
func (*InstanceUpdateForbidden) IsClientError ¶
func (o *InstanceUpdateForbidden) IsClientError() bool
IsClientError returns true when this instance update forbidden response has a 4xx status code
func (*InstanceUpdateForbidden) IsCode ¶
func (o *InstanceUpdateForbidden) IsCode(code int) bool
IsCode returns true when this instance update forbidden response a status code equal to that given
func (*InstanceUpdateForbidden) IsRedirect ¶
func (o *InstanceUpdateForbidden) IsRedirect() bool
IsRedirect returns true when this instance update forbidden response has a 3xx status code
func (*InstanceUpdateForbidden) IsServerError ¶
func (o *InstanceUpdateForbidden) IsServerError() bool
IsServerError returns true when this instance update forbidden response has a 5xx status code
func (*InstanceUpdateForbidden) IsSuccess ¶
func (o *InstanceUpdateForbidden) IsSuccess() bool
IsSuccess returns true when this instance update forbidden response has a 2xx status code
func (*InstanceUpdateForbidden) String ¶
func (o *InstanceUpdateForbidden) String() string
type InstanceUpdateInternalServerError ¶
type InstanceUpdateInternalServerError struct { }
InstanceUpdateInternalServerError describes a response with status code 500, with default header values.
internal server error
func NewInstanceUpdateInternalServerError ¶
func NewInstanceUpdateInternalServerError() *InstanceUpdateInternalServerError
NewInstanceUpdateInternalServerError creates a InstanceUpdateInternalServerError with default headers values
func (*InstanceUpdateInternalServerError) Code ¶
func (o *InstanceUpdateInternalServerError) Code() int
Code gets the status code for the instance update internal server error response
func (*InstanceUpdateInternalServerError) Error ¶
func (o *InstanceUpdateInternalServerError) Error() string
func (*InstanceUpdateInternalServerError) IsClientError ¶
func (o *InstanceUpdateInternalServerError) IsClientError() bool
IsClientError returns true when this instance update internal server error response has a 4xx status code
func (*InstanceUpdateInternalServerError) IsCode ¶
func (o *InstanceUpdateInternalServerError) IsCode(code int) bool
IsCode returns true when this instance update internal server error response a status code equal to that given
func (*InstanceUpdateInternalServerError) IsRedirect ¶
func (o *InstanceUpdateInternalServerError) IsRedirect() bool
IsRedirect returns true when this instance update internal server error response has a 3xx status code
func (*InstanceUpdateInternalServerError) IsServerError ¶
func (o *InstanceUpdateInternalServerError) IsServerError() bool
IsServerError returns true when this instance update internal server error response has a 5xx status code
func (*InstanceUpdateInternalServerError) IsSuccess ¶
func (o *InstanceUpdateInternalServerError) IsSuccess() bool
IsSuccess returns true when this instance update internal server error response has a 2xx status code
func (*InstanceUpdateInternalServerError) String ¶
func (o *InstanceUpdateInternalServerError) String() string
type InstanceUpdateNotAcceptable ¶
type InstanceUpdateNotAcceptable struct { }
InstanceUpdateNotAcceptable describes a response with status code 406, with default header values.
not acceptable
func NewInstanceUpdateNotAcceptable ¶
func NewInstanceUpdateNotAcceptable() *InstanceUpdateNotAcceptable
NewInstanceUpdateNotAcceptable creates a InstanceUpdateNotAcceptable with default headers values
func (*InstanceUpdateNotAcceptable) Code ¶
func (o *InstanceUpdateNotAcceptable) Code() int
Code gets the status code for the instance update not acceptable response
func (*InstanceUpdateNotAcceptable) Error ¶
func (o *InstanceUpdateNotAcceptable) Error() string
func (*InstanceUpdateNotAcceptable) IsClientError ¶
func (o *InstanceUpdateNotAcceptable) IsClientError() bool
IsClientError returns true when this instance update not acceptable response has a 4xx status code
func (*InstanceUpdateNotAcceptable) IsCode ¶
func (o *InstanceUpdateNotAcceptable) IsCode(code int) bool
IsCode returns true when this instance update not acceptable response a status code equal to that given
func (*InstanceUpdateNotAcceptable) IsRedirect ¶
func (o *InstanceUpdateNotAcceptable) IsRedirect() bool
IsRedirect returns true when this instance update not acceptable response has a 3xx status code
func (*InstanceUpdateNotAcceptable) IsServerError ¶
func (o *InstanceUpdateNotAcceptable) IsServerError() bool
IsServerError returns true when this instance update not acceptable response has a 5xx status code
func (*InstanceUpdateNotAcceptable) IsSuccess ¶
func (o *InstanceUpdateNotAcceptable) IsSuccess() bool
IsSuccess returns true when this instance update not acceptable response has a 2xx status code
func (*InstanceUpdateNotAcceptable) String ¶
func (o *InstanceUpdateNotAcceptable) String() string
type InstanceUpdateNotFound ¶
type InstanceUpdateNotFound struct { }
InstanceUpdateNotFound describes a response with status code 404, with default header values.
not found
func NewInstanceUpdateNotFound ¶
func NewInstanceUpdateNotFound() *InstanceUpdateNotFound
NewInstanceUpdateNotFound creates a InstanceUpdateNotFound with default headers values
func (*InstanceUpdateNotFound) Code ¶
func (o *InstanceUpdateNotFound) Code() int
Code gets the status code for the instance update not found response
func (*InstanceUpdateNotFound) Error ¶
func (o *InstanceUpdateNotFound) Error() string
func (*InstanceUpdateNotFound) IsClientError ¶
func (o *InstanceUpdateNotFound) IsClientError() bool
IsClientError returns true when this instance update not found response has a 4xx status code
func (*InstanceUpdateNotFound) IsCode ¶
func (o *InstanceUpdateNotFound) IsCode(code int) bool
IsCode returns true when this instance update not found response a status code equal to that given
func (*InstanceUpdateNotFound) IsRedirect ¶
func (o *InstanceUpdateNotFound) IsRedirect() bool
IsRedirect returns true when this instance update not found response has a 3xx status code
func (*InstanceUpdateNotFound) IsServerError ¶
func (o *InstanceUpdateNotFound) IsServerError() bool
IsServerError returns true when this instance update not found response has a 5xx status code
func (*InstanceUpdateNotFound) IsSuccess ¶
func (o *InstanceUpdateNotFound) IsSuccess() bool
IsSuccess returns true when this instance update not found response has a 2xx status code
func (*InstanceUpdateNotFound) String ¶
func (o *InstanceUpdateNotFound) String() string
type InstanceUpdateOK ¶
type InstanceUpdateOK struct {
Payload *models.InstanceV1
}
InstanceUpdateOK describes a response with status code 200, with default header values.
The newly updated instance.
func NewInstanceUpdateOK ¶
func NewInstanceUpdateOK() *InstanceUpdateOK
NewInstanceUpdateOK creates a InstanceUpdateOK with default headers values
func (*InstanceUpdateOK) Code ¶
func (o *InstanceUpdateOK) Code() int
Code gets the status code for the instance update o k response
func (*InstanceUpdateOK) Error ¶
func (o *InstanceUpdateOK) Error() string
func (*InstanceUpdateOK) GetPayload ¶
func (o *InstanceUpdateOK) GetPayload() *models.InstanceV1
func (*InstanceUpdateOK) IsClientError ¶
func (o *InstanceUpdateOK) IsClientError() bool
IsClientError returns true when this instance update o k response has a 4xx status code
func (*InstanceUpdateOK) IsCode ¶
func (o *InstanceUpdateOK) IsCode(code int) bool
IsCode returns true when this instance update o k response a status code equal to that given
func (*InstanceUpdateOK) IsRedirect ¶
func (o *InstanceUpdateOK) IsRedirect() bool
IsRedirect returns true when this instance update o k response has a 3xx status code
func (*InstanceUpdateOK) IsServerError ¶
func (o *InstanceUpdateOK) IsServerError() bool
IsServerError returns true when this instance update o k response has a 5xx status code
func (*InstanceUpdateOK) IsSuccess ¶
func (o *InstanceUpdateOK) IsSuccess() bool
IsSuccess returns true when this instance update o k response has a 2xx status code
func (*InstanceUpdateOK) String ¶
func (o *InstanceUpdateOK) String() string
type InstanceUpdateParams ¶
type InstanceUpdateParams struct { /* ContactEmail. Email address to use as the instance contact. */ ContactEmail string /* ContactUsername. Username of the contact account. This must be the username of an instance admin. */ ContactUsername string /* Description. Longer description of the instance. */ Description string /* Header. Header image to use for the instance. */ Header runtime.NamedReadCloser /* ShortDescription. Short description of the instance. */ ShortDescription string /* Terms. Terms and conditions of the instance. */ Terms string /* Thumbnail. Thumbnail image to use for the instance. */ Thumbnail runtime.NamedReadCloser /* ThumbnailDescription. Image description of the submitted instance thumbnail. */ ThumbnailDescription *string /* Title. Title to use for the instance. */ Title string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
InstanceUpdateParams contains all the parameters to send to the API endpoint
for the instance update operation. Typically these are written to a http.Request.
func NewInstanceUpdateParams ¶
func NewInstanceUpdateParams() *InstanceUpdateParams
NewInstanceUpdateParams creates a new InstanceUpdateParams 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 NewInstanceUpdateParamsWithContext ¶
func NewInstanceUpdateParamsWithContext(ctx context.Context) *InstanceUpdateParams
NewInstanceUpdateParamsWithContext creates a new InstanceUpdateParams object with the ability to set a context for a request.
func NewInstanceUpdateParamsWithHTTPClient ¶
func NewInstanceUpdateParamsWithHTTPClient(client *http.Client) *InstanceUpdateParams
NewInstanceUpdateParamsWithHTTPClient creates a new InstanceUpdateParams object with the ability to set a custom HTTPClient for a request.
func NewInstanceUpdateParamsWithTimeout ¶
func NewInstanceUpdateParamsWithTimeout(timeout time.Duration) *InstanceUpdateParams
NewInstanceUpdateParamsWithTimeout creates a new InstanceUpdateParams object with the ability to set a timeout on a request.
func (*InstanceUpdateParams) SetContactEmail ¶
func (o *InstanceUpdateParams) SetContactEmail(contactEmail string)
SetContactEmail adds the contactEmail to the instance update params
func (*InstanceUpdateParams) SetContactUsername ¶
func (o *InstanceUpdateParams) SetContactUsername(contactUsername string)
SetContactUsername adds the contactUsername to the instance update params
func (*InstanceUpdateParams) SetContext ¶
func (o *InstanceUpdateParams) SetContext(ctx context.Context)
SetContext adds the context to the instance update params
func (*InstanceUpdateParams) SetDefaults ¶
func (o *InstanceUpdateParams) SetDefaults()
SetDefaults hydrates default values in the instance update params (not the query body).
All values with no default are reset to their zero value.
func (*InstanceUpdateParams) SetDescription ¶
func (o *InstanceUpdateParams) SetDescription(description string)
SetDescription adds the description to the instance update params
func (*InstanceUpdateParams) SetHTTPClient ¶
func (o *InstanceUpdateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the instance update params
func (*InstanceUpdateParams) SetHeader ¶
func (o *InstanceUpdateParams) SetHeader(header runtime.NamedReadCloser)
SetHeader adds the header to the instance update params
func (*InstanceUpdateParams) SetShortDescription ¶
func (o *InstanceUpdateParams) SetShortDescription(shortDescription string)
SetShortDescription adds the shortDescription to the instance update params
func (*InstanceUpdateParams) SetTerms ¶
func (o *InstanceUpdateParams) SetTerms(terms string)
SetTerms adds the terms to the instance update params
func (*InstanceUpdateParams) SetThumbnail ¶
func (o *InstanceUpdateParams) SetThumbnail(thumbnail runtime.NamedReadCloser)
SetThumbnail adds the thumbnail to the instance update params
func (*InstanceUpdateParams) SetThumbnailDescription ¶
func (o *InstanceUpdateParams) SetThumbnailDescription(thumbnailDescription *string)
SetThumbnailDescription adds the thumbnailDescription to the instance update params
func (*InstanceUpdateParams) SetTimeout ¶
func (o *InstanceUpdateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the instance update params
func (*InstanceUpdateParams) SetTitle ¶
func (o *InstanceUpdateParams) SetTitle(title string)
SetTitle adds the title to the instance update params
func (*InstanceUpdateParams) WithContactEmail ¶
func (o *InstanceUpdateParams) WithContactEmail(contactEmail string) *InstanceUpdateParams
WithContactEmail adds the contactEmail to the instance update params
func (*InstanceUpdateParams) WithContactUsername ¶
func (o *InstanceUpdateParams) WithContactUsername(contactUsername string) *InstanceUpdateParams
WithContactUsername adds the contactUsername to the instance update params
func (*InstanceUpdateParams) WithContext ¶
func (o *InstanceUpdateParams) WithContext(ctx context.Context) *InstanceUpdateParams
WithContext adds the context to the instance update params
func (*InstanceUpdateParams) WithDefaults ¶
func (o *InstanceUpdateParams) WithDefaults() *InstanceUpdateParams
WithDefaults hydrates default values in the instance update params (not the query body).
All values with no default are reset to their zero value.
func (*InstanceUpdateParams) WithDescription ¶
func (o *InstanceUpdateParams) WithDescription(description string) *InstanceUpdateParams
WithDescription adds the description to the instance update params
func (*InstanceUpdateParams) WithHTTPClient ¶
func (o *InstanceUpdateParams) WithHTTPClient(client *http.Client) *InstanceUpdateParams
WithHTTPClient adds the HTTPClient to the instance update params
func (*InstanceUpdateParams) WithHeader ¶
func (o *InstanceUpdateParams) WithHeader(header runtime.NamedReadCloser) *InstanceUpdateParams
WithHeader adds the header to the instance update params
func (*InstanceUpdateParams) WithShortDescription ¶
func (o *InstanceUpdateParams) WithShortDescription(shortDescription string) *InstanceUpdateParams
WithShortDescription adds the shortDescription to the instance update params
func (*InstanceUpdateParams) WithTerms ¶
func (o *InstanceUpdateParams) WithTerms(terms string) *InstanceUpdateParams
WithTerms adds the terms to the instance update params
func (*InstanceUpdateParams) WithThumbnail ¶
func (o *InstanceUpdateParams) WithThumbnail(thumbnail runtime.NamedReadCloser) *InstanceUpdateParams
WithThumbnail adds the thumbnail to the instance update params
func (*InstanceUpdateParams) WithThumbnailDescription ¶
func (o *InstanceUpdateParams) WithThumbnailDescription(thumbnailDescription *string) *InstanceUpdateParams
WithThumbnailDescription adds the thumbnailDescription to the instance update params
func (*InstanceUpdateParams) WithTimeout ¶
func (o *InstanceUpdateParams) WithTimeout(timeout time.Duration) *InstanceUpdateParams
WithTimeout adds the timeout to the instance update params
func (*InstanceUpdateParams) WithTitle ¶
func (o *InstanceUpdateParams) WithTitle(title string) *InstanceUpdateParams
WithTitle adds the title to the instance update params
func (*InstanceUpdateParams) WriteToRequest ¶
func (o *InstanceUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type InstanceUpdateReader ¶
type InstanceUpdateReader struct {
// contains filtered or unexported fields
}
InstanceUpdateReader is a Reader for the InstanceUpdate structure.
func (*InstanceUpdateReader) ReadResponse ¶
func (o *InstanceUpdateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type InstanceUpdateUnauthorized ¶
type InstanceUpdateUnauthorized struct { }
InstanceUpdateUnauthorized describes a response with status code 401, with default header values.
unauthorized
func NewInstanceUpdateUnauthorized ¶
func NewInstanceUpdateUnauthorized() *InstanceUpdateUnauthorized
NewInstanceUpdateUnauthorized creates a InstanceUpdateUnauthorized with default headers values
func (*InstanceUpdateUnauthorized) Code ¶
func (o *InstanceUpdateUnauthorized) Code() int
Code gets the status code for the instance update unauthorized response
func (*InstanceUpdateUnauthorized) Error ¶
func (o *InstanceUpdateUnauthorized) Error() string
func (*InstanceUpdateUnauthorized) IsClientError ¶
func (o *InstanceUpdateUnauthorized) IsClientError() bool
IsClientError returns true when this instance update unauthorized response has a 4xx status code
func (*InstanceUpdateUnauthorized) IsCode ¶
func (o *InstanceUpdateUnauthorized) IsCode(code int) bool
IsCode returns true when this instance update unauthorized response a status code equal to that given
func (*InstanceUpdateUnauthorized) IsRedirect ¶
func (o *InstanceUpdateUnauthorized) IsRedirect() bool
IsRedirect returns true when this instance update unauthorized response has a 3xx status code
func (*InstanceUpdateUnauthorized) IsServerError ¶
func (o *InstanceUpdateUnauthorized) IsServerError() bool
IsServerError returns true when this instance update unauthorized response has a 5xx status code
func (*InstanceUpdateUnauthorized) IsSuccess ¶
func (o *InstanceUpdateUnauthorized) IsSuccess() bool
IsSuccess returns true when this instance update unauthorized response has a 2xx status code
func (*InstanceUpdateUnauthorized) String ¶
func (o *InstanceUpdateUnauthorized) String() string
type RulesBadRequest ¶
type RulesBadRequest struct { }
RulesBadRequest describes a response with status code 400, with default header values.
bad request
func NewRulesBadRequest ¶
func NewRulesBadRequest() *RulesBadRequest
NewRulesBadRequest creates a RulesBadRequest with default headers values
func (*RulesBadRequest) Code ¶
func (o *RulesBadRequest) Code() int
Code gets the status code for the rules bad request response
func (*RulesBadRequest) Error ¶
func (o *RulesBadRequest) Error() string
func (*RulesBadRequest) IsClientError ¶
func (o *RulesBadRequest) IsClientError() bool
IsClientError returns true when this rules bad request response has a 4xx status code
func (*RulesBadRequest) IsCode ¶
func (o *RulesBadRequest) IsCode(code int) bool
IsCode returns true when this rules bad request response a status code equal to that given
func (*RulesBadRequest) IsRedirect ¶
func (o *RulesBadRequest) IsRedirect() bool
IsRedirect returns true when this rules bad request response has a 3xx status code
func (*RulesBadRequest) IsServerError ¶
func (o *RulesBadRequest) IsServerError() bool
IsServerError returns true when this rules bad request response has a 5xx status code
func (*RulesBadRequest) IsSuccess ¶
func (o *RulesBadRequest) IsSuccess() bool
IsSuccess returns true when this rules bad request response has a 2xx status code
func (*RulesBadRequest) String ¶
func (o *RulesBadRequest) String() string
type RulesInternalServerError ¶
type RulesInternalServerError struct { }
RulesInternalServerError describes a response with status code 500, with default header values.
internal server error
func NewRulesInternalServerError ¶
func NewRulesInternalServerError() *RulesInternalServerError
NewRulesInternalServerError creates a RulesInternalServerError with default headers values
func (*RulesInternalServerError) Code ¶
func (o *RulesInternalServerError) Code() int
Code gets the status code for the rules internal server error response
func (*RulesInternalServerError) Error ¶
func (o *RulesInternalServerError) Error() string
func (*RulesInternalServerError) IsClientError ¶
func (o *RulesInternalServerError) IsClientError() bool
IsClientError returns true when this rules internal server error response has a 4xx status code
func (*RulesInternalServerError) IsCode ¶
func (o *RulesInternalServerError) IsCode(code int) bool
IsCode returns true when this rules internal server error response a status code equal to that given
func (*RulesInternalServerError) IsRedirect ¶
func (o *RulesInternalServerError) IsRedirect() bool
IsRedirect returns true when this rules internal server error response has a 3xx status code
func (*RulesInternalServerError) IsServerError ¶
func (o *RulesInternalServerError) IsServerError() bool
IsServerError returns true when this rules internal server error response has a 5xx status code
func (*RulesInternalServerError) IsSuccess ¶
func (o *RulesInternalServerError) IsSuccess() bool
IsSuccess returns true when this rules internal server error response has a 2xx status code
func (*RulesInternalServerError) String ¶
func (o *RulesInternalServerError) String() string
type RulesNotAcceptable ¶
type RulesNotAcceptable struct { }
RulesNotAcceptable describes a response with status code 406, with default header values.
not acceptable
func NewRulesNotAcceptable ¶
func NewRulesNotAcceptable() *RulesNotAcceptable
NewRulesNotAcceptable creates a RulesNotAcceptable with default headers values
func (*RulesNotAcceptable) Code ¶
func (o *RulesNotAcceptable) Code() int
Code gets the status code for the rules not acceptable response
func (*RulesNotAcceptable) Error ¶
func (o *RulesNotAcceptable) Error() string
func (*RulesNotAcceptable) IsClientError ¶
func (o *RulesNotAcceptable) IsClientError() bool
IsClientError returns true when this rules not acceptable response has a 4xx status code
func (*RulesNotAcceptable) IsCode ¶
func (o *RulesNotAcceptable) IsCode(code int) bool
IsCode returns true when this rules not acceptable response a status code equal to that given
func (*RulesNotAcceptable) IsRedirect ¶
func (o *RulesNotAcceptable) IsRedirect() bool
IsRedirect returns true when this rules not acceptable response has a 3xx status code
func (*RulesNotAcceptable) IsServerError ¶
func (o *RulesNotAcceptable) IsServerError() bool
IsServerError returns true when this rules not acceptable response has a 5xx status code
func (*RulesNotAcceptable) IsSuccess ¶
func (o *RulesNotAcceptable) IsSuccess() bool
IsSuccess returns true when this rules not acceptable response has a 2xx status code
func (*RulesNotAcceptable) String ¶
func (o *RulesNotAcceptable) String() string
type RulesNotFound ¶
type RulesNotFound struct { }
RulesNotFound describes a response with status code 404, with default header values.
not found
func NewRulesNotFound ¶
func NewRulesNotFound() *RulesNotFound
NewRulesNotFound creates a RulesNotFound with default headers values
func (*RulesNotFound) Code ¶
func (o *RulesNotFound) Code() int
Code gets the status code for the rules not found response
func (*RulesNotFound) Error ¶
func (o *RulesNotFound) Error() string
func (*RulesNotFound) IsClientError ¶
func (o *RulesNotFound) IsClientError() bool
IsClientError returns true when this rules not found response has a 4xx status code
func (*RulesNotFound) IsCode ¶
func (o *RulesNotFound) IsCode(code int) bool
IsCode returns true when this rules not found response a status code equal to that given
func (*RulesNotFound) IsRedirect ¶
func (o *RulesNotFound) IsRedirect() bool
IsRedirect returns true when this rules not found response has a 3xx status code
func (*RulesNotFound) IsServerError ¶
func (o *RulesNotFound) IsServerError() bool
IsServerError returns true when this rules not found response has a 5xx status code
func (*RulesNotFound) IsSuccess ¶
func (o *RulesNotFound) IsSuccess() bool
IsSuccess returns true when this rules not found response has a 2xx status code
func (*RulesNotFound) String ¶
func (o *RulesNotFound) String() string
type RulesOK ¶
type RulesOK struct {
Payload []*models.InstanceRule
}
RulesOK describes a response with status code 200, with default header values.
An array with all the rules for the local instance.
func NewRulesOK ¶
func NewRulesOK() *RulesOK
NewRulesOK creates a RulesOK with default headers values
func (*RulesOK) GetPayload ¶
func (o *RulesOK) GetPayload() []*models.InstanceRule
func (*RulesOK) IsClientError ¶
IsClientError returns true when this rules o k response has a 4xx status code
func (*RulesOK) IsCode ¶
IsCode returns true when this rules o k response a status code equal to that given
func (*RulesOK) IsRedirect ¶
IsRedirect returns true when this rules o k response has a 3xx status code
func (*RulesOK) IsServerError ¶
IsServerError returns true when this rules o k response has a 5xx status code
type RulesParams ¶
type RulesParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RulesParams contains all the parameters to send to the API endpoint
for the rules operation. Typically these are written to a http.Request.
func NewRulesParams ¶
func NewRulesParams() *RulesParams
NewRulesParams creates a new RulesParams 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 NewRulesParamsWithContext ¶
func NewRulesParamsWithContext(ctx context.Context) *RulesParams
NewRulesParamsWithContext creates a new RulesParams object with the ability to set a context for a request.
func NewRulesParamsWithHTTPClient ¶
func NewRulesParamsWithHTTPClient(client *http.Client) *RulesParams
NewRulesParamsWithHTTPClient creates a new RulesParams object with the ability to set a custom HTTPClient for a request.
func NewRulesParamsWithTimeout ¶
func NewRulesParamsWithTimeout(timeout time.Duration) *RulesParams
NewRulesParamsWithTimeout creates a new RulesParams object with the ability to set a timeout on a request.
func (*RulesParams) SetContext ¶
func (o *RulesParams) SetContext(ctx context.Context)
SetContext adds the context to the rules params
func (*RulesParams) SetDefaults ¶
func (o *RulesParams) SetDefaults()
SetDefaults hydrates default values in the rules params (not the query body).
All values with no default are reset to their zero value.
func (*RulesParams) SetHTTPClient ¶
func (o *RulesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the rules params
func (*RulesParams) SetTimeout ¶
func (o *RulesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the rules params
func (*RulesParams) WithContext ¶
func (o *RulesParams) WithContext(ctx context.Context) *RulesParams
WithContext adds the context to the rules params
func (*RulesParams) WithDefaults ¶
func (o *RulesParams) WithDefaults() *RulesParams
WithDefaults hydrates default values in the rules params (not the query body).
All values with no default are reset to their zero value.
func (*RulesParams) WithHTTPClient ¶
func (o *RulesParams) WithHTTPClient(client *http.Client) *RulesParams
WithHTTPClient adds the HTTPClient to the rules params
func (*RulesParams) WithTimeout ¶
func (o *RulesParams) WithTimeout(timeout time.Duration) *RulesParams
WithTimeout adds the timeout to the rules params
func (*RulesParams) WriteToRequest ¶
func (o *RulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RulesReader ¶
type RulesReader struct {
// contains filtered or unexported fields
}
RulesReader is a Reader for the Rules structure.
func (*RulesReader) ReadResponse ¶
func (o *RulesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.