instance

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2025 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

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) InstanceDomainAllowsGet added in v0.20.1

func (a *Client) InstanceDomainAllowsGet(params *InstanceDomainAllowsGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*InstanceDomainAllowsGetOK, error)

InstanceDomainAllowsGet lists explicitly allowed domains

OAuth token may need to be provided depending on setting `instance-expose-allowlist`.

func (*Client) InstanceDomainBlocksGet added in v0.20.1

func (a *Client) InstanceDomainBlocksGet(params *InstanceDomainBlocksGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*InstanceDomainBlocksGetOK, error)

InstanceDomainBlocksGet lists blocked domains

OAuth token may need to be provided depending on setting `instance-expose-blocklist`.

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, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*InstancePeersGetOK, error)

InstancePeersGet lists peer domains

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 {
	InstanceDomainAllowsGet(params *InstanceDomainAllowsGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*InstanceDomainAllowsGetOK, error)

	InstanceDomainBlocksGet(params *InstanceDomainBlocksGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*InstanceDomainBlocksGetOK, error)

	InstanceGetV1(params *InstanceGetV1Params, opts ...ClientOption) (*InstanceGetV1OK, error)

	InstanceGetV2(params *InstanceGetV2Params, opts ...ClientOption) (*InstanceGetV2OK, error)

	InstancePeersGet(params *InstancePeersGetParams, authInfo runtime.ClientAuthInfoWriter, 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 InstanceDomainAllowsGetBadRequest added in v0.20.1

type InstanceDomainAllowsGetBadRequest struct {
}

InstanceDomainAllowsGetBadRequest describes a response with status code 400, with default header values.

bad request

func NewInstanceDomainAllowsGetBadRequest added in v0.20.1

func NewInstanceDomainAllowsGetBadRequest() *InstanceDomainAllowsGetBadRequest

NewInstanceDomainAllowsGetBadRequest creates a InstanceDomainAllowsGetBadRequest with default headers values

func (*InstanceDomainAllowsGetBadRequest) Code added in v0.20.1

Code gets the status code for the instance domain allows get bad request response

func (*InstanceDomainAllowsGetBadRequest) Error added in v0.20.1

func (*InstanceDomainAllowsGetBadRequest) IsClientError added in v0.20.1

func (o *InstanceDomainAllowsGetBadRequest) IsClientError() bool

IsClientError returns true when this instance domain allows get bad request response has a 4xx status code

func (*InstanceDomainAllowsGetBadRequest) IsCode added in v0.20.1

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

IsCode returns true when this instance domain allows get bad request response a status code equal to that given

func (*InstanceDomainAllowsGetBadRequest) IsRedirect added in v0.20.1

func (o *InstanceDomainAllowsGetBadRequest) IsRedirect() bool

IsRedirect returns true when this instance domain allows get bad request response has a 3xx status code

func (*InstanceDomainAllowsGetBadRequest) IsServerError added in v0.20.1

func (o *InstanceDomainAllowsGetBadRequest) IsServerError() bool

IsServerError returns true when this instance domain allows get bad request response has a 5xx status code

func (*InstanceDomainAllowsGetBadRequest) IsSuccess added in v0.20.1

func (o *InstanceDomainAllowsGetBadRequest) IsSuccess() bool

IsSuccess returns true when this instance domain allows get bad request response has a 2xx status code

func (*InstanceDomainAllowsGetBadRequest) String added in v0.20.1

type InstanceDomainAllowsGetForbidden added in v0.20.1

type InstanceDomainAllowsGetForbidden struct {
}

InstanceDomainAllowsGetForbidden describes a response with status code 403, with default header values.

forbidden

func NewInstanceDomainAllowsGetForbidden added in v0.20.1

func NewInstanceDomainAllowsGetForbidden() *InstanceDomainAllowsGetForbidden

NewInstanceDomainAllowsGetForbidden creates a InstanceDomainAllowsGetForbidden with default headers values

func (*InstanceDomainAllowsGetForbidden) Code added in v0.20.1

Code gets the status code for the instance domain allows get forbidden response

func (*InstanceDomainAllowsGetForbidden) Error added in v0.20.1

func (*InstanceDomainAllowsGetForbidden) IsClientError added in v0.20.1

func (o *InstanceDomainAllowsGetForbidden) IsClientError() bool

IsClientError returns true when this instance domain allows get forbidden response has a 4xx status code

func (*InstanceDomainAllowsGetForbidden) IsCode added in v0.20.1

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

IsCode returns true when this instance domain allows get forbidden response a status code equal to that given

func (*InstanceDomainAllowsGetForbidden) IsRedirect added in v0.20.1

func (o *InstanceDomainAllowsGetForbidden) IsRedirect() bool

IsRedirect returns true when this instance domain allows get forbidden response has a 3xx status code

func (*InstanceDomainAllowsGetForbidden) IsServerError added in v0.20.1

func (o *InstanceDomainAllowsGetForbidden) IsServerError() bool

IsServerError returns true when this instance domain allows get forbidden response has a 5xx status code

func (*InstanceDomainAllowsGetForbidden) IsSuccess added in v0.20.1

func (o *InstanceDomainAllowsGetForbidden) IsSuccess() bool

IsSuccess returns true when this instance domain allows get forbidden response has a 2xx status code

func (*InstanceDomainAllowsGetForbidden) String added in v0.20.1

type InstanceDomainAllowsGetInternalServerError added in v0.20.1

type InstanceDomainAllowsGetInternalServerError struct {
}

InstanceDomainAllowsGetInternalServerError describes a response with status code 500, with default header values.

internal server error

func NewInstanceDomainAllowsGetInternalServerError added in v0.20.1

func NewInstanceDomainAllowsGetInternalServerError() *InstanceDomainAllowsGetInternalServerError

NewInstanceDomainAllowsGetInternalServerError creates a InstanceDomainAllowsGetInternalServerError with default headers values

func (*InstanceDomainAllowsGetInternalServerError) Code added in v0.20.1

Code gets the status code for the instance domain allows get internal server error response

func (*InstanceDomainAllowsGetInternalServerError) Error added in v0.20.1

func (*InstanceDomainAllowsGetInternalServerError) IsClientError added in v0.20.1

IsClientError returns true when this instance domain allows get internal server error response has a 4xx status code

func (*InstanceDomainAllowsGetInternalServerError) IsCode added in v0.20.1

IsCode returns true when this instance domain allows get internal server error response a status code equal to that given

func (*InstanceDomainAllowsGetInternalServerError) IsRedirect added in v0.20.1

IsRedirect returns true when this instance domain allows get internal server error response has a 3xx status code

func (*InstanceDomainAllowsGetInternalServerError) IsServerError added in v0.20.1

IsServerError returns true when this instance domain allows get internal server error response has a 5xx status code

func (*InstanceDomainAllowsGetInternalServerError) IsSuccess added in v0.20.1

IsSuccess returns true when this instance domain allows get internal server error response has a 2xx status code

func (*InstanceDomainAllowsGetInternalServerError) String added in v0.20.1

type InstanceDomainAllowsGetNotAcceptable added in v0.20.1

type InstanceDomainAllowsGetNotAcceptable struct {
}

InstanceDomainAllowsGetNotAcceptable describes a response with status code 406, with default header values.

not acceptable

func NewInstanceDomainAllowsGetNotAcceptable added in v0.20.1

func NewInstanceDomainAllowsGetNotAcceptable() *InstanceDomainAllowsGetNotAcceptable

NewInstanceDomainAllowsGetNotAcceptable creates a InstanceDomainAllowsGetNotAcceptable with default headers values

func (*InstanceDomainAllowsGetNotAcceptable) Code added in v0.20.1

Code gets the status code for the instance domain allows get not acceptable response

func (*InstanceDomainAllowsGetNotAcceptable) Error added in v0.20.1

func (*InstanceDomainAllowsGetNotAcceptable) IsClientError added in v0.20.1

func (o *InstanceDomainAllowsGetNotAcceptable) IsClientError() bool

IsClientError returns true when this instance domain allows get not acceptable response has a 4xx status code

func (*InstanceDomainAllowsGetNotAcceptable) IsCode added in v0.20.1

IsCode returns true when this instance domain allows get not acceptable response a status code equal to that given

func (*InstanceDomainAllowsGetNotAcceptable) IsRedirect added in v0.20.1

IsRedirect returns true when this instance domain allows get not acceptable response has a 3xx status code

func (*InstanceDomainAllowsGetNotAcceptable) IsServerError added in v0.20.1

func (o *InstanceDomainAllowsGetNotAcceptable) IsServerError() bool

IsServerError returns true when this instance domain allows get not acceptable response has a 5xx status code

func (*InstanceDomainAllowsGetNotAcceptable) IsSuccess added in v0.20.1

IsSuccess returns true when this instance domain allows get not acceptable response has a 2xx status code

func (*InstanceDomainAllowsGetNotAcceptable) String added in v0.20.1

type InstanceDomainAllowsGetNotFound added in v0.20.1

type InstanceDomainAllowsGetNotFound struct {
}

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

not found

func NewInstanceDomainAllowsGetNotFound added in v0.20.1

func NewInstanceDomainAllowsGetNotFound() *InstanceDomainAllowsGetNotFound

NewInstanceDomainAllowsGetNotFound creates a InstanceDomainAllowsGetNotFound with default headers values

func (*InstanceDomainAllowsGetNotFound) Code added in v0.20.1

Code gets the status code for the instance domain allows get not found response

func (*InstanceDomainAllowsGetNotFound) Error added in v0.20.1

func (*InstanceDomainAllowsGetNotFound) IsClientError added in v0.20.1

func (o *InstanceDomainAllowsGetNotFound) IsClientError() bool

IsClientError returns true when this instance domain allows get not found response has a 4xx status code

func (*InstanceDomainAllowsGetNotFound) IsCode added in v0.20.1

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

IsCode returns true when this instance domain allows get not found response a status code equal to that given

func (*InstanceDomainAllowsGetNotFound) IsRedirect added in v0.20.1

func (o *InstanceDomainAllowsGetNotFound) IsRedirect() bool

IsRedirect returns true when this instance domain allows get not found response has a 3xx status code

func (*InstanceDomainAllowsGetNotFound) IsServerError added in v0.20.1

func (o *InstanceDomainAllowsGetNotFound) IsServerError() bool

IsServerError returns true when this instance domain allows get not found response has a 5xx status code

func (*InstanceDomainAllowsGetNotFound) IsSuccess added in v0.20.1

func (o *InstanceDomainAllowsGetNotFound) IsSuccess() bool

IsSuccess returns true when this instance domain allows get not found response has a 2xx status code

func (*InstanceDomainAllowsGetNotFound) String added in v0.20.1

type InstanceDomainAllowsGetOK added in v0.20.1

type InstanceDomainAllowsGetOK struct {
	Payload []*models.Domain
}

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

List of explicitly allowed domains.

func NewInstanceDomainAllowsGetOK added in v0.20.1

func NewInstanceDomainAllowsGetOK() *InstanceDomainAllowsGetOK

NewInstanceDomainAllowsGetOK creates a InstanceDomainAllowsGetOK with default headers values

func (*InstanceDomainAllowsGetOK) Code added in v0.20.1

func (o *InstanceDomainAllowsGetOK) Code() int

Code gets the status code for the instance domain allows get o k response

func (*InstanceDomainAllowsGetOK) Error added in v0.20.1

func (o *InstanceDomainAllowsGetOK) Error() string

func (*InstanceDomainAllowsGetOK) GetPayload added in v0.20.1

func (o *InstanceDomainAllowsGetOK) GetPayload() []*models.Domain

func (*InstanceDomainAllowsGetOK) IsClientError added in v0.20.1

func (o *InstanceDomainAllowsGetOK) IsClientError() bool

IsClientError returns true when this instance domain allows get o k response has a 4xx status code

func (*InstanceDomainAllowsGetOK) IsCode added in v0.20.1

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

IsCode returns true when this instance domain allows get o k response a status code equal to that given

func (*InstanceDomainAllowsGetOK) IsRedirect added in v0.20.1

func (o *InstanceDomainAllowsGetOK) IsRedirect() bool

IsRedirect returns true when this instance domain allows get o k response has a 3xx status code

func (*InstanceDomainAllowsGetOK) IsServerError added in v0.20.1

func (o *InstanceDomainAllowsGetOK) IsServerError() bool

IsServerError returns true when this instance domain allows get o k response has a 5xx status code

func (*InstanceDomainAllowsGetOK) IsSuccess added in v0.20.1

func (o *InstanceDomainAllowsGetOK) IsSuccess() bool

IsSuccess returns true when this instance domain allows get o k response has a 2xx status code

func (*InstanceDomainAllowsGetOK) String added in v0.20.1

func (o *InstanceDomainAllowsGetOK) String() string

type InstanceDomainAllowsGetParams added in v0.20.1

type InstanceDomainAllowsGetParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

InstanceDomainAllowsGetParams contains all the parameters to send to the API endpoint

for the instance domain allows get operation.

Typically these are written to a http.Request.

func NewInstanceDomainAllowsGetParams added in v0.20.1

func NewInstanceDomainAllowsGetParams() *InstanceDomainAllowsGetParams

NewInstanceDomainAllowsGetParams creates a new InstanceDomainAllowsGetParams 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 NewInstanceDomainAllowsGetParamsWithContext added in v0.20.1

func NewInstanceDomainAllowsGetParamsWithContext(ctx context.Context) *InstanceDomainAllowsGetParams

NewInstanceDomainAllowsGetParamsWithContext creates a new InstanceDomainAllowsGetParams object with the ability to set a context for a request.

func NewInstanceDomainAllowsGetParamsWithHTTPClient added in v0.20.1

func NewInstanceDomainAllowsGetParamsWithHTTPClient(client *http.Client) *InstanceDomainAllowsGetParams

NewInstanceDomainAllowsGetParamsWithHTTPClient creates a new InstanceDomainAllowsGetParams object with the ability to set a custom HTTPClient for a request.

func NewInstanceDomainAllowsGetParamsWithTimeout added in v0.20.1

func NewInstanceDomainAllowsGetParamsWithTimeout(timeout time.Duration) *InstanceDomainAllowsGetParams

NewInstanceDomainAllowsGetParamsWithTimeout creates a new InstanceDomainAllowsGetParams object with the ability to set a timeout on a request.

func (*InstanceDomainAllowsGetParams) SetContext added in v0.20.1

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

SetContext adds the context to the instance domain allows get params

func (*InstanceDomainAllowsGetParams) SetDefaults added in v0.20.1

func (o *InstanceDomainAllowsGetParams) SetDefaults()

SetDefaults hydrates default values in the instance domain allows get params (not the query body).

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

func (*InstanceDomainAllowsGetParams) SetHTTPClient added in v0.20.1

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

SetHTTPClient adds the HTTPClient to the instance domain allows get params

func (*InstanceDomainAllowsGetParams) SetTimeout added in v0.20.1

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

SetTimeout adds the timeout to the instance domain allows get params

func (*InstanceDomainAllowsGetParams) WithContext added in v0.20.1

WithContext adds the context to the instance domain allows get params

func (*InstanceDomainAllowsGetParams) WithDefaults added in v0.20.1

WithDefaults hydrates default values in the instance domain allows get params (not the query body).

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

func (*InstanceDomainAllowsGetParams) WithHTTPClient added in v0.20.1

WithHTTPClient adds the HTTPClient to the instance domain allows get params

func (*InstanceDomainAllowsGetParams) WithTimeout added in v0.20.1

WithTimeout adds the timeout to the instance domain allows get params

func (*InstanceDomainAllowsGetParams) WriteToRequest added in v0.20.1

WriteToRequest writes these params to a swagger request

type InstanceDomainAllowsGetReader added in v0.20.1

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

InstanceDomainAllowsGetReader is a Reader for the InstanceDomainAllowsGet structure.

func (*InstanceDomainAllowsGetReader) ReadResponse added in v0.20.1

func (o *InstanceDomainAllowsGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type InstanceDomainAllowsGetUnauthorized added in v0.20.1

type InstanceDomainAllowsGetUnauthorized struct {
}

InstanceDomainAllowsGetUnauthorized describes a response with status code 401, with default header values.

unauthorized

func NewInstanceDomainAllowsGetUnauthorized added in v0.20.1

func NewInstanceDomainAllowsGetUnauthorized() *InstanceDomainAllowsGetUnauthorized

NewInstanceDomainAllowsGetUnauthorized creates a InstanceDomainAllowsGetUnauthorized with default headers values

func (*InstanceDomainAllowsGetUnauthorized) Code added in v0.20.1

Code gets the status code for the instance domain allows get unauthorized response

func (*InstanceDomainAllowsGetUnauthorized) Error added in v0.20.1

func (*InstanceDomainAllowsGetUnauthorized) IsClientError added in v0.20.1

func (o *InstanceDomainAllowsGetUnauthorized) IsClientError() bool

IsClientError returns true when this instance domain allows get unauthorized response has a 4xx status code

func (*InstanceDomainAllowsGetUnauthorized) IsCode added in v0.20.1

IsCode returns true when this instance domain allows get unauthorized response a status code equal to that given

func (*InstanceDomainAllowsGetUnauthorized) IsRedirect added in v0.20.1

func (o *InstanceDomainAllowsGetUnauthorized) IsRedirect() bool

IsRedirect returns true when this instance domain allows get unauthorized response has a 3xx status code

func (*InstanceDomainAllowsGetUnauthorized) IsServerError added in v0.20.1

func (o *InstanceDomainAllowsGetUnauthorized) IsServerError() bool

IsServerError returns true when this instance domain allows get unauthorized response has a 5xx status code

func (*InstanceDomainAllowsGetUnauthorized) IsSuccess added in v0.20.1

IsSuccess returns true when this instance domain allows get unauthorized response has a 2xx status code

func (*InstanceDomainAllowsGetUnauthorized) String added in v0.20.1

type InstanceDomainBlocksGetBadRequest added in v0.20.1

type InstanceDomainBlocksGetBadRequest struct {
}

InstanceDomainBlocksGetBadRequest describes a response with status code 400, with default header values.

bad request

func NewInstanceDomainBlocksGetBadRequest added in v0.20.1

func NewInstanceDomainBlocksGetBadRequest() *InstanceDomainBlocksGetBadRequest

NewInstanceDomainBlocksGetBadRequest creates a InstanceDomainBlocksGetBadRequest with default headers values

func (*InstanceDomainBlocksGetBadRequest) Code added in v0.20.1

Code gets the status code for the instance domain blocks get bad request response

func (*InstanceDomainBlocksGetBadRequest) Error added in v0.20.1

func (*InstanceDomainBlocksGetBadRequest) IsClientError added in v0.20.1

func (o *InstanceDomainBlocksGetBadRequest) IsClientError() bool

IsClientError returns true when this instance domain blocks get bad request response has a 4xx status code

func (*InstanceDomainBlocksGetBadRequest) IsCode added in v0.20.1

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

IsCode returns true when this instance domain blocks get bad request response a status code equal to that given

func (*InstanceDomainBlocksGetBadRequest) IsRedirect added in v0.20.1

func (o *InstanceDomainBlocksGetBadRequest) IsRedirect() bool

IsRedirect returns true when this instance domain blocks get bad request response has a 3xx status code

func (*InstanceDomainBlocksGetBadRequest) IsServerError added in v0.20.1

func (o *InstanceDomainBlocksGetBadRequest) IsServerError() bool

IsServerError returns true when this instance domain blocks get bad request response has a 5xx status code

func (*InstanceDomainBlocksGetBadRequest) IsSuccess added in v0.20.1

func (o *InstanceDomainBlocksGetBadRequest) IsSuccess() bool

IsSuccess returns true when this instance domain blocks get bad request response has a 2xx status code

func (*InstanceDomainBlocksGetBadRequest) String added in v0.20.1

type InstanceDomainBlocksGetForbidden added in v0.20.1

type InstanceDomainBlocksGetForbidden struct {
}

InstanceDomainBlocksGetForbidden describes a response with status code 403, with default header values.

forbidden

func NewInstanceDomainBlocksGetForbidden added in v0.20.1

func NewInstanceDomainBlocksGetForbidden() *InstanceDomainBlocksGetForbidden

NewInstanceDomainBlocksGetForbidden creates a InstanceDomainBlocksGetForbidden with default headers values

func (*InstanceDomainBlocksGetForbidden) Code added in v0.20.1

Code gets the status code for the instance domain blocks get forbidden response

func (*InstanceDomainBlocksGetForbidden) Error added in v0.20.1

func (*InstanceDomainBlocksGetForbidden) IsClientError added in v0.20.1

func (o *InstanceDomainBlocksGetForbidden) IsClientError() bool

IsClientError returns true when this instance domain blocks get forbidden response has a 4xx status code

func (*InstanceDomainBlocksGetForbidden) IsCode added in v0.20.1

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

IsCode returns true when this instance domain blocks get forbidden response a status code equal to that given

func (*InstanceDomainBlocksGetForbidden) IsRedirect added in v0.20.1

func (o *InstanceDomainBlocksGetForbidden) IsRedirect() bool

IsRedirect returns true when this instance domain blocks get forbidden response has a 3xx status code

func (*InstanceDomainBlocksGetForbidden) IsServerError added in v0.20.1

func (o *InstanceDomainBlocksGetForbidden) IsServerError() bool

IsServerError returns true when this instance domain blocks get forbidden response has a 5xx status code

func (*InstanceDomainBlocksGetForbidden) IsSuccess added in v0.20.1

func (o *InstanceDomainBlocksGetForbidden) IsSuccess() bool

IsSuccess returns true when this instance domain blocks get forbidden response has a 2xx status code

func (*InstanceDomainBlocksGetForbidden) String added in v0.20.1

type InstanceDomainBlocksGetInternalServerError added in v0.20.1

type InstanceDomainBlocksGetInternalServerError struct {
}

InstanceDomainBlocksGetInternalServerError describes a response with status code 500, with default header values.

internal server error

func NewInstanceDomainBlocksGetInternalServerError added in v0.20.1

func NewInstanceDomainBlocksGetInternalServerError() *InstanceDomainBlocksGetInternalServerError

NewInstanceDomainBlocksGetInternalServerError creates a InstanceDomainBlocksGetInternalServerError with default headers values

func (*InstanceDomainBlocksGetInternalServerError) Code added in v0.20.1

Code gets the status code for the instance domain blocks get internal server error response

func (*InstanceDomainBlocksGetInternalServerError) Error added in v0.20.1

func (*InstanceDomainBlocksGetInternalServerError) IsClientError added in v0.20.1

IsClientError returns true when this instance domain blocks get internal server error response has a 4xx status code

func (*InstanceDomainBlocksGetInternalServerError) IsCode added in v0.20.1

IsCode returns true when this instance domain blocks get internal server error response a status code equal to that given

func (*InstanceDomainBlocksGetInternalServerError) IsRedirect added in v0.20.1

IsRedirect returns true when this instance domain blocks get internal server error response has a 3xx status code

func (*InstanceDomainBlocksGetInternalServerError) IsServerError added in v0.20.1

IsServerError returns true when this instance domain blocks get internal server error response has a 5xx status code

func (*InstanceDomainBlocksGetInternalServerError) IsSuccess added in v0.20.1

IsSuccess returns true when this instance domain blocks get internal server error response has a 2xx status code

func (*InstanceDomainBlocksGetInternalServerError) String added in v0.20.1

type InstanceDomainBlocksGetNotAcceptable added in v0.20.1

type InstanceDomainBlocksGetNotAcceptable struct {
}

InstanceDomainBlocksGetNotAcceptable describes a response with status code 406, with default header values.

not acceptable

func NewInstanceDomainBlocksGetNotAcceptable added in v0.20.1

func NewInstanceDomainBlocksGetNotAcceptable() *InstanceDomainBlocksGetNotAcceptable

NewInstanceDomainBlocksGetNotAcceptable creates a InstanceDomainBlocksGetNotAcceptable with default headers values

func (*InstanceDomainBlocksGetNotAcceptable) Code added in v0.20.1

Code gets the status code for the instance domain blocks get not acceptable response

func (*InstanceDomainBlocksGetNotAcceptable) Error added in v0.20.1

func (*InstanceDomainBlocksGetNotAcceptable) IsClientError added in v0.20.1

func (o *InstanceDomainBlocksGetNotAcceptable) IsClientError() bool

IsClientError returns true when this instance domain blocks get not acceptable response has a 4xx status code

func (*InstanceDomainBlocksGetNotAcceptable) IsCode added in v0.20.1

IsCode returns true when this instance domain blocks get not acceptable response a status code equal to that given

func (*InstanceDomainBlocksGetNotAcceptable) IsRedirect added in v0.20.1

IsRedirect returns true when this instance domain blocks get not acceptable response has a 3xx status code

func (*InstanceDomainBlocksGetNotAcceptable) IsServerError added in v0.20.1

func (o *InstanceDomainBlocksGetNotAcceptable) IsServerError() bool

IsServerError returns true when this instance domain blocks get not acceptable response has a 5xx status code

func (*InstanceDomainBlocksGetNotAcceptable) IsSuccess added in v0.20.1

IsSuccess returns true when this instance domain blocks get not acceptable response has a 2xx status code

func (*InstanceDomainBlocksGetNotAcceptable) String added in v0.20.1

type InstanceDomainBlocksGetNotFound added in v0.20.1

type InstanceDomainBlocksGetNotFound struct {
}

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

not found

func NewInstanceDomainBlocksGetNotFound added in v0.20.1

func NewInstanceDomainBlocksGetNotFound() *InstanceDomainBlocksGetNotFound

NewInstanceDomainBlocksGetNotFound creates a InstanceDomainBlocksGetNotFound with default headers values

func (*InstanceDomainBlocksGetNotFound) Code added in v0.20.1

Code gets the status code for the instance domain blocks get not found response

func (*InstanceDomainBlocksGetNotFound) Error added in v0.20.1

func (*InstanceDomainBlocksGetNotFound) IsClientError added in v0.20.1

func (o *InstanceDomainBlocksGetNotFound) IsClientError() bool

IsClientError returns true when this instance domain blocks get not found response has a 4xx status code

func (*InstanceDomainBlocksGetNotFound) IsCode added in v0.20.1

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

IsCode returns true when this instance domain blocks get not found response a status code equal to that given

func (*InstanceDomainBlocksGetNotFound) IsRedirect added in v0.20.1

func (o *InstanceDomainBlocksGetNotFound) IsRedirect() bool

IsRedirect returns true when this instance domain blocks get not found response has a 3xx status code

func (*InstanceDomainBlocksGetNotFound) IsServerError added in v0.20.1

func (o *InstanceDomainBlocksGetNotFound) IsServerError() bool

IsServerError returns true when this instance domain blocks get not found response has a 5xx status code

func (*InstanceDomainBlocksGetNotFound) IsSuccess added in v0.20.1

func (o *InstanceDomainBlocksGetNotFound) IsSuccess() bool

IsSuccess returns true when this instance domain blocks get not found response has a 2xx status code

func (*InstanceDomainBlocksGetNotFound) String added in v0.20.1

type InstanceDomainBlocksGetOK added in v0.20.1

type InstanceDomainBlocksGetOK struct {
	Payload []*models.Domain
}

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

List of blocked domains.

func NewInstanceDomainBlocksGetOK added in v0.20.1

func NewInstanceDomainBlocksGetOK() *InstanceDomainBlocksGetOK

NewInstanceDomainBlocksGetOK creates a InstanceDomainBlocksGetOK with default headers values

func (*InstanceDomainBlocksGetOK) Code added in v0.20.1

func (o *InstanceDomainBlocksGetOK) Code() int

Code gets the status code for the instance domain blocks get o k response

func (*InstanceDomainBlocksGetOK) Error added in v0.20.1

func (o *InstanceDomainBlocksGetOK) Error() string

func (*InstanceDomainBlocksGetOK) GetPayload added in v0.20.1

func (o *InstanceDomainBlocksGetOK) GetPayload() []*models.Domain

func (*InstanceDomainBlocksGetOK) IsClientError added in v0.20.1

func (o *InstanceDomainBlocksGetOK) IsClientError() bool

IsClientError returns true when this instance domain blocks get o k response has a 4xx status code

func (*InstanceDomainBlocksGetOK) IsCode added in v0.20.1

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

IsCode returns true when this instance domain blocks get o k response a status code equal to that given

func (*InstanceDomainBlocksGetOK) IsRedirect added in v0.20.1

func (o *InstanceDomainBlocksGetOK) IsRedirect() bool

IsRedirect returns true when this instance domain blocks get o k response has a 3xx status code

func (*InstanceDomainBlocksGetOK) IsServerError added in v0.20.1

func (o *InstanceDomainBlocksGetOK) IsServerError() bool

IsServerError returns true when this instance domain blocks get o k response has a 5xx status code

func (*InstanceDomainBlocksGetOK) IsSuccess added in v0.20.1

func (o *InstanceDomainBlocksGetOK) IsSuccess() bool

IsSuccess returns true when this instance domain blocks get o k response has a 2xx status code

func (*InstanceDomainBlocksGetOK) String added in v0.20.1

func (o *InstanceDomainBlocksGetOK) String() string

type InstanceDomainBlocksGetParams added in v0.20.1

type InstanceDomainBlocksGetParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

InstanceDomainBlocksGetParams contains all the parameters to send to the API endpoint

for the instance domain blocks get operation.

Typically these are written to a http.Request.

func NewInstanceDomainBlocksGetParams added in v0.20.1

func NewInstanceDomainBlocksGetParams() *InstanceDomainBlocksGetParams

NewInstanceDomainBlocksGetParams creates a new InstanceDomainBlocksGetParams 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 NewInstanceDomainBlocksGetParamsWithContext added in v0.20.1

func NewInstanceDomainBlocksGetParamsWithContext(ctx context.Context) *InstanceDomainBlocksGetParams

NewInstanceDomainBlocksGetParamsWithContext creates a new InstanceDomainBlocksGetParams object with the ability to set a context for a request.

func NewInstanceDomainBlocksGetParamsWithHTTPClient added in v0.20.1

func NewInstanceDomainBlocksGetParamsWithHTTPClient(client *http.Client) *InstanceDomainBlocksGetParams

NewInstanceDomainBlocksGetParamsWithHTTPClient creates a new InstanceDomainBlocksGetParams object with the ability to set a custom HTTPClient for a request.

func NewInstanceDomainBlocksGetParamsWithTimeout added in v0.20.1

func NewInstanceDomainBlocksGetParamsWithTimeout(timeout time.Duration) *InstanceDomainBlocksGetParams

NewInstanceDomainBlocksGetParamsWithTimeout creates a new InstanceDomainBlocksGetParams object with the ability to set a timeout on a request.

func (*InstanceDomainBlocksGetParams) SetContext added in v0.20.1

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

SetContext adds the context to the instance domain blocks get params

func (*InstanceDomainBlocksGetParams) SetDefaults added in v0.20.1

func (o *InstanceDomainBlocksGetParams) SetDefaults()

SetDefaults hydrates default values in the instance domain blocks get params (not the query body).

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

func (*InstanceDomainBlocksGetParams) SetHTTPClient added in v0.20.1

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

SetHTTPClient adds the HTTPClient to the instance domain blocks get params

func (*InstanceDomainBlocksGetParams) SetTimeout added in v0.20.1

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

SetTimeout adds the timeout to the instance domain blocks get params

func (*InstanceDomainBlocksGetParams) WithContext added in v0.20.1

WithContext adds the context to the instance domain blocks get params

func (*InstanceDomainBlocksGetParams) WithDefaults added in v0.20.1

WithDefaults hydrates default values in the instance domain blocks get params (not the query body).

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

func (*InstanceDomainBlocksGetParams) WithHTTPClient added in v0.20.1

WithHTTPClient adds the HTTPClient to the instance domain blocks get params

func (*InstanceDomainBlocksGetParams) WithTimeout added in v0.20.1

WithTimeout adds the timeout to the instance domain blocks get params

func (*InstanceDomainBlocksGetParams) WriteToRequest added in v0.20.1

WriteToRequest writes these params to a swagger request

type InstanceDomainBlocksGetReader added in v0.20.1

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

InstanceDomainBlocksGetReader is a Reader for the InstanceDomainBlocksGet structure.

func (*InstanceDomainBlocksGetReader) ReadResponse added in v0.20.1

func (o *InstanceDomainBlocksGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type InstanceDomainBlocksGetUnauthorized added in v0.20.1

type InstanceDomainBlocksGetUnauthorized struct {
}

InstanceDomainBlocksGetUnauthorized describes a response with status code 401, with default header values.

unauthorized

func NewInstanceDomainBlocksGetUnauthorized added in v0.20.1

func NewInstanceDomainBlocksGetUnauthorized() *InstanceDomainBlocksGetUnauthorized

NewInstanceDomainBlocksGetUnauthorized creates a InstanceDomainBlocksGetUnauthorized with default headers values

func (*InstanceDomainBlocksGetUnauthorized) Code added in v0.20.1

Code gets the status code for the instance domain blocks get unauthorized response

func (*InstanceDomainBlocksGetUnauthorized) Error added in v0.20.1

func (*InstanceDomainBlocksGetUnauthorized) IsClientError added in v0.20.1

func (o *InstanceDomainBlocksGetUnauthorized) IsClientError() bool

IsClientError returns true when this instance domain blocks get unauthorized response has a 4xx status code

func (*InstanceDomainBlocksGetUnauthorized) IsCode added in v0.20.1

IsCode returns true when this instance domain blocks get unauthorized response a status code equal to that given

func (*InstanceDomainBlocksGetUnauthorized) IsRedirect added in v0.20.1

func (o *InstanceDomainBlocksGetUnauthorized) IsRedirect() bool

IsRedirect returns true when this instance domain blocks get unauthorized response has a 3xx status code

func (*InstanceDomainBlocksGetUnauthorized) IsServerError added in v0.20.1

func (o *InstanceDomainBlocksGetUnauthorized) IsServerError() bool

IsServerError returns true when this instance domain blocks get unauthorized response has a 5xx status code

func (*InstanceDomainBlocksGetUnauthorized) IsSuccess added in v0.20.1

IsSuccess returns true when this instance domain blocks get unauthorized response has a 2xx status code

func (*InstanceDomainBlocksGetUnauthorized) String added in v0.20.1

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

Code gets the status code for the instance get v1 internal server error response

func (*InstanceGetV1InternalServerError) Error

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

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 (*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

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) (any, 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

Code gets the status code for the instance get v2 internal server error response

func (*InstanceGetV2InternalServerError) Error

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

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 (*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

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) (any, 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 (*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

Code gets the status code for the instance peers get internal server error response

func (*InstancePeersGetInternalServerError) Error

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

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

IsSuccess returns true when this instance peers get internal server error response has a 2xx status code

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

Code gets the status code for the instance peers get not acceptable response

func (*InstancePeersGetNotAcceptable) Error

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

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

type InstancePeersGetOK struct {
	Payload []*models.Domain
}
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 setting a filter of `open` and flat=true.

If a filter parameter is provided and flat is not true, 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 known domains that are not in the domain blocklist
	  - `allowed` -- include domains that are in the domain allowlist
	  - `blocked` -- include domains that are in the domain blocklist
	  - `suspended` -- DEPRECATED! Use `blocked` instead. Same as `blocked`: include domains that are in the domain blocklist;

	If filter is `open`, only domains that aren't in the blocklist will be shown.

	If filter is `blocked`, only domains that *are* in the blocklist will be shown.

	If filter is `allowed`, only domains that are in the allowlist will be shown.

	If filter is `open,blocked`, then blocked domains and known domains not on the blocklist will be shown.

	If filter is `open,allowed`, then allowed domains and known domains not on the blocklist will be shown.

	If filter is an empty string or not set, then `open` will be assumed as the default.

	     Default: "flat"
	*/
	Filter *string

	/* Flat.

	   If true, a "flat" array of strings will be returned corresponding to just domain names.
	*/
	Flat *bool

	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) SetFlat added in v0.20.1

func (o *InstancePeersGetParams) SetFlat(flat *bool)

SetFlat adds the flat 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

WithContext adds the context to the instance peers get params

func (*InstancePeersGetParams) WithDefaults

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) WithFlat added in v0.20.1

WithFlat adds the flat 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

WithTimeout adds the timeout to the instance peers get params

func (*InstancePeersGetParams) WriteToRequest

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) (any, 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

Code gets the status code for the instance peers get unauthorized response

func (*InstancePeersGetUnauthorized) Error

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

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

Code gets the status code for the instance update internal server error response

func (*InstanceUpdateInternalServerError) Error

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

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 (*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

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

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

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) (any, 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 (*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) Code

func (o *RulesOK) Code() int

Code gets the status code for the rules o k response

func (*RulesOK) Error

func (o *RulesOK) Error() string

func (*RulesOK) GetPayload

func (o *RulesOK) GetPayload() []*models.InstanceRule

func (*RulesOK) IsClientError

func (o *RulesOK) IsClientError() bool

IsClientError returns true when this rules o k response has a 4xx status code

func (*RulesOK) IsCode

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

IsCode returns true when this rules o k response a status code equal to that given

func (*RulesOK) IsRedirect

func (o *RulesOK) IsRedirect() bool

IsRedirect returns true when this rules o k response has a 3xx status code

func (*RulesOK) IsServerError

func (o *RulesOK) IsServerError() bool

IsServerError returns true when this rules o k response has a 5xx status code

func (*RulesOK) IsSuccess

func (o *RulesOK) IsSuccess() bool

IsSuccess returns true when this rules o k response has a 2xx status code

func (*RulesOK) String

func (o *RulesOK) String() string

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) (any, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL