follow_requests

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizeFollowRequestBadRequest

type AuthorizeFollowRequestBadRequest struct {
	Payload *models.Error
}

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

bad request

func NewAuthorizeFollowRequestBadRequest

func NewAuthorizeFollowRequestBadRequest() *AuthorizeFollowRequestBadRequest

NewAuthorizeFollowRequestBadRequest creates a AuthorizeFollowRequestBadRequest with default headers values

func (*AuthorizeFollowRequestBadRequest) Code

Code gets the status code for the authorize follow request bad request response

func (*AuthorizeFollowRequestBadRequest) Error

func (*AuthorizeFollowRequestBadRequest) GetPayload added in v1.1.0

func (*AuthorizeFollowRequestBadRequest) IsClientError

func (o *AuthorizeFollowRequestBadRequest) IsClientError() bool

IsClientError returns true when this authorize follow request bad request response has a 4xx status code

func (*AuthorizeFollowRequestBadRequest) IsCode

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

IsCode returns true when this authorize follow request bad request response a status code equal to that given

func (*AuthorizeFollowRequestBadRequest) IsRedirect

func (o *AuthorizeFollowRequestBadRequest) IsRedirect() bool

IsRedirect returns true when this authorize follow request bad request response has a 3xx status code

func (*AuthorizeFollowRequestBadRequest) IsServerError

func (o *AuthorizeFollowRequestBadRequest) IsServerError() bool

IsServerError returns true when this authorize follow request bad request response has a 5xx status code

func (*AuthorizeFollowRequestBadRequest) IsSuccess

func (o *AuthorizeFollowRequestBadRequest) IsSuccess() bool

IsSuccess returns true when this authorize follow request bad request response has a 2xx status code

func (*AuthorizeFollowRequestBadRequest) String

type AuthorizeFollowRequestInternalServerError

type AuthorizeFollowRequestInternalServerError struct {
	Payload *models.Error
}

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

internal server error

func NewAuthorizeFollowRequestInternalServerError

func NewAuthorizeFollowRequestInternalServerError() *AuthorizeFollowRequestInternalServerError

NewAuthorizeFollowRequestInternalServerError creates a AuthorizeFollowRequestInternalServerError with default headers values

func (*AuthorizeFollowRequestInternalServerError) Code

Code gets the status code for the authorize follow request internal server error response

func (*AuthorizeFollowRequestInternalServerError) Error

func (*AuthorizeFollowRequestInternalServerError) GetPayload added in v1.1.0

func (*AuthorizeFollowRequestInternalServerError) IsClientError

IsClientError returns true when this authorize follow request internal server error response has a 4xx status code

func (*AuthorizeFollowRequestInternalServerError) IsCode

IsCode returns true when this authorize follow request internal server error response a status code equal to that given

func (*AuthorizeFollowRequestInternalServerError) IsRedirect

IsRedirect returns true when this authorize follow request internal server error response has a 3xx status code

func (*AuthorizeFollowRequestInternalServerError) IsServerError

IsServerError returns true when this authorize follow request internal server error response has a 5xx status code

func (*AuthorizeFollowRequestInternalServerError) IsSuccess

IsSuccess returns true when this authorize follow request internal server error response has a 2xx status code

func (*AuthorizeFollowRequestInternalServerError) String

type AuthorizeFollowRequestNotAcceptable

type AuthorizeFollowRequestNotAcceptable struct {
	Payload *models.Error
}

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

not acceptable

func NewAuthorizeFollowRequestNotAcceptable

func NewAuthorizeFollowRequestNotAcceptable() *AuthorizeFollowRequestNotAcceptable

NewAuthorizeFollowRequestNotAcceptable creates a AuthorizeFollowRequestNotAcceptable with default headers values

func (*AuthorizeFollowRequestNotAcceptable) Code

Code gets the status code for the authorize follow request not acceptable response

func (*AuthorizeFollowRequestNotAcceptable) Error

func (*AuthorizeFollowRequestNotAcceptable) GetPayload added in v1.1.0

func (*AuthorizeFollowRequestNotAcceptable) IsClientError

func (o *AuthorizeFollowRequestNotAcceptable) IsClientError() bool

IsClientError returns true when this authorize follow request not acceptable response has a 4xx status code

func (*AuthorizeFollowRequestNotAcceptable) IsCode

IsCode returns true when this authorize follow request not acceptable response a status code equal to that given

func (*AuthorizeFollowRequestNotAcceptable) IsRedirect

func (o *AuthorizeFollowRequestNotAcceptable) IsRedirect() bool

IsRedirect returns true when this authorize follow request not acceptable response has a 3xx status code

func (*AuthorizeFollowRequestNotAcceptable) IsServerError

func (o *AuthorizeFollowRequestNotAcceptable) IsServerError() bool

IsServerError returns true when this authorize follow request not acceptable response has a 5xx status code

func (*AuthorizeFollowRequestNotAcceptable) IsSuccess

IsSuccess returns true when this authorize follow request not acceptable response has a 2xx status code

func (*AuthorizeFollowRequestNotAcceptable) String

type AuthorizeFollowRequestNotFound

type AuthorizeFollowRequestNotFound struct {
	Payload *models.Error
}

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

not found

func NewAuthorizeFollowRequestNotFound

func NewAuthorizeFollowRequestNotFound() *AuthorizeFollowRequestNotFound

NewAuthorizeFollowRequestNotFound creates a AuthorizeFollowRequestNotFound with default headers values

func (*AuthorizeFollowRequestNotFound) Code

Code gets the status code for the authorize follow request not found response

func (*AuthorizeFollowRequestNotFound) Error

func (*AuthorizeFollowRequestNotFound) GetPayload added in v1.1.0

func (o *AuthorizeFollowRequestNotFound) GetPayload() *models.Error

func (*AuthorizeFollowRequestNotFound) IsClientError

func (o *AuthorizeFollowRequestNotFound) IsClientError() bool

IsClientError returns true when this authorize follow request not found response has a 4xx status code

func (*AuthorizeFollowRequestNotFound) IsCode

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

IsCode returns true when this authorize follow request not found response a status code equal to that given

func (*AuthorizeFollowRequestNotFound) IsRedirect

func (o *AuthorizeFollowRequestNotFound) IsRedirect() bool

IsRedirect returns true when this authorize follow request not found response has a 3xx status code

func (*AuthorizeFollowRequestNotFound) IsServerError

func (o *AuthorizeFollowRequestNotFound) IsServerError() bool

IsServerError returns true when this authorize follow request not found response has a 5xx status code

func (*AuthorizeFollowRequestNotFound) IsSuccess

func (o *AuthorizeFollowRequestNotFound) IsSuccess() bool

IsSuccess returns true when this authorize follow request not found response has a 2xx status code

func (*AuthorizeFollowRequestNotFound) String

type AuthorizeFollowRequestOK

type AuthorizeFollowRequestOK struct {
	Payload *models.Relationship
}

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

Your relationship to this account.

func NewAuthorizeFollowRequestOK

func NewAuthorizeFollowRequestOK() *AuthorizeFollowRequestOK

NewAuthorizeFollowRequestOK creates a AuthorizeFollowRequestOK with default headers values

func (*AuthorizeFollowRequestOK) Code

func (o *AuthorizeFollowRequestOK) Code() int

Code gets the status code for the authorize follow request o k response

func (*AuthorizeFollowRequestOK) Error

func (o *AuthorizeFollowRequestOK) Error() string

func (*AuthorizeFollowRequestOK) GetPayload

func (o *AuthorizeFollowRequestOK) GetPayload() *models.Relationship

func (*AuthorizeFollowRequestOK) IsClientError

func (o *AuthorizeFollowRequestOK) IsClientError() bool

IsClientError returns true when this authorize follow request o k response has a 4xx status code

func (*AuthorizeFollowRequestOK) IsCode

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

IsCode returns true when this authorize follow request o k response a status code equal to that given

func (*AuthorizeFollowRequestOK) IsRedirect

func (o *AuthorizeFollowRequestOK) IsRedirect() bool

IsRedirect returns true when this authorize follow request o k response has a 3xx status code

func (*AuthorizeFollowRequestOK) IsServerError

func (o *AuthorizeFollowRequestOK) IsServerError() bool

IsServerError returns true when this authorize follow request o k response has a 5xx status code

func (*AuthorizeFollowRequestOK) IsSuccess

func (o *AuthorizeFollowRequestOK) IsSuccess() bool

IsSuccess returns true when this authorize follow request o k response has a 2xx status code

func (*AuthorizeFollowRequestOK) String

func (o *AuthorizeFollowRequestOK) String() string

type AuthorizeFollowRequestParams

type AuthorizeFollowRequestParams struct {

	/* AccountID.

	   ID of the account requesting to follow you.
	*/
	AccountID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

AuthorizeFollowRequestParams contains all the parameters to send to the API endpoint

for the authorize follow request operation.

Typically these are written to a http.Request.

func NewAuthorizeFollowRequestParams

func NewAuthorizeFollowRequestParams() *AuthorizeFollowRequestParams

NewAuthorizeFollowRequestParams creates a new AuthorizeFollowRequestParams 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 NewAuthorizeFollowRequestParamsWithContext

func NewAuthorizeFollowRequestParamsWithContext(ctx context.Context) *AuthorizeFollowRequestParams

NewAuthorizeFollowRequestParamsWithContext creates a new AuthorizeFollowRequestParams object with the ability to set a context for a request.

func NewAuthorizeFollowRequestParamsWithHTTPClient

func NewAuthorizeFollowRequestParamsWithHTTPClient(client *http.Client) *AuthorizeFollowRequestParams

NewAuthorizeFollowRequestParamsWithHTTPClient creates a new AuthorizeFollowRequestParams object with the ability to set a custom HTTPClient for a request.

func NewAuthorizeFollowRequestParamsWithTimeout

func NewAuthorizeFollowRequestParamsWithTimeout(timeout time.Duration) *AuthorizeFollowRequestParams

NewAuthorizeFollowRequestParamsWithTimeout creates a new AuthorizeFollowRequestParams object with the ability to set a timeout on a request.

func (*AuthorizeFollowRequestParams) SetAccountID

func (o *AuthorizeFollowRequestParams) SetAccountID(accountID string)

SetAccountID adds the accountId to the authorize follow request params

func (*AuthorizeFollowRequestParams) SetContext

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

SetContext adds the context to the authorize follow request params

func (*AuthorizeFollowRequestParams) SetDefaults

func (o *AuthorizeFollowRequestParams) SetDefaults()

SetDefaults hydrates default values in the authorize follow request params (not the query body).

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

func (*AuthorizeFollowRequestParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the authorize follow request params

func (*AuthorizeFollowRequestParams) SetTimeout

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

SetTimeout adds the timeout to the authorize follow request params

func (*AuthorizeFollowRequestParams) WithAccountID

WithAccountID adds the accountID to the authorize follow request params

func (*AuthorizeFollowRequestParams) WithContext

WithContext adds the context to the authorize follow request params

func (*AuthorizeFollowRequestParams) WithDefaults

WithDefaults hydrates default values in the authorize follow request params (not the query body).

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

func (*AuthorizeFollowRequestParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the authorize follow request params

func (*AuthorizeFollowRequestParams) WithTimeout

WithTimeout adds the timeout to the authorize follow request params

func (*AuthorizeFollowRequestParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AuthorizeFollowRequestReader

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

AuthorizeFollowRequestReader is a Reader for the AuthorizeFollowRequest structure.

func (*AuthorizeFollowRequestReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AuthorizeFollowRequestUnauthorized

type AuthorizeFollowRequestUnauthorized struct {
	Payload *models.Error
}

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

unauthorized

func NewAuthorizeFollowRequestUnauthorized

func NewAuthorizeFollowRequestUnauthorized() *AuthorizeFollowRequestUnauthorized

NewAuthorizeFollowRequestUnauthorized creates a AuthorizeFollowRequestUnauthorized with default headers values

func (*AuthorizeFollowRequestUnauthorized) Code

Code gets the status code for the authorize follow request unauthorized response

func (*AuthorizeFollowRequestUnauthorized) Error

func (*AuthorizeFollowRequestUnauthorized) GetPayload added in v1.1.0

func (*AuthorizeFollowRequestUnauthorized) IsClientError

func (o *AuthorizeFollowRequestUnauthorized) IsClientError() bool

IsClientError returns true when this authorize follow request unauthorized response has a 4xx status code

func (*AuthorizeFollowRequestUnauthorized) IsCode

IsCode returns true when this authorize follow request unauthorized response a status code equal to that given

func (*AuthorizeFollowRequestUnauthorized) IsRedirect

func (o *AuthorizeFollowRequestUnauthorized) IsRedirect() bool

IsRedirect returns true when this authorize follow request unauthorized response has a 3xx status code

func (*AuthorizeFollowRequestUnauthorized) IsServerError

func (o *AuthorizeFollowRequestUnauthorized) IsServerError() bool

IsServerError returns true when this authorize follow request unauthorized response has a 5xx status code

func (*AuthorizeFollowRequestUnauthorized) IsSuccess

IsSuccess returns true when this authorize follow request unauthorized response has a 2xx status code

func (*AuthorizeFollowRequestUnauthorized) String

type Client

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

Client for follow requests API

func (*Client) AuthorizeFollowRequest

func (a *Client) AuthorizeFollowRequest(params *AuthorizeFollowRequestParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AuthorizeFollowRequestOK, error)

AuthorizeFollowRequest accepts authorize follow request from the given account ID

Accept a follow request and put the requesting account in your 'followers' list.

func (*Client) GetFollowRequests

func (a *Client) GetFollowRequests(params *GetFollowRequestsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetFollowRequestsOK, error)
GetFollowRequests gets an array of accounts that have requested to follow you

The next and previous queries can be parsed from the returned Link header.

Example:

``` <https://example.org/api/v1/follow_requests?limit=80&max_id=01FC0SKA48HNSVR6YKZCQGS2V8>; rel="next", <https://example.org/api/v1/follow_requests?limit=80&min_id=01FC0SKW5JK2Q4EVAV2B462YY0>; rel="prev" ````

func (*Client) GetOutgoingFollowRequests added in v1.1.0

func (a *Client) GetOutgoingFollowRequests(params *GetOutgoingFollowRequestsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetOutgoingFollowRequestsOK, error)
GetOutgoingFollowRequests gets an array of accounts that you have requested to follow

The next and previous queries can be parsed from the returned Link header.

Example:

``` <https://example.org/api/v1/follow_requests/outgoing?limit=80&max_id=01FC0SKA48HNSVR6YKZCQGS2V8>; rel="next", <https://example.org/api/v1/follow_requests/outgoing?limit=80&min_id=01FC0SKW5JK2Q4EVAV2B462YY0>; rel="prev" ````

func (*Client) RejectFollowRequest

func (a *Client) RejectFollowRequest(params *RejectFollowRequestParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RejectFollowRequestOK, error)

RejectFollowRequest rejects deny follow request from the given account ID

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.

type ClientService

type ClientService interface {
	AuthorizeFollowRequest(params *AuthorizeFollowRequestParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AuthorizeFollowRequestOK, error)

	GetFollowRequests(params *GetFollowRequestsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetFollowRequestsOK, error)

	GetOutgoingFollowRequests(params *GetOutgoingFollowRequestsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetOutgoingFollowRequestsOK, error)

	RejectFollowRequest(params *RejectFollowRequestParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RejectFollowRequestOK, 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 follow requests API client.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new follow requests 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 follow requests 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 GetFollowRequestsBadRequest

type GetFollowRequestsBadRequest struct {
	Payload *models.Error
}

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

bad request

func NewGetFollowRequestsBadRequest

func NewGetFollowRequestsBadRequest() *GetFollowRequestsBadRequest

NewGetFollowRequestsBadRequest creates a GetFollowRequestsBadRequest with default headers values

func (*GetFollowRequestsBadRequest) Code

func (o *GetFollowRequestsBadRequest) Code() int

Code gets the status code for the get follow requests bad request response

func (*GetFollowRequestsBadRequest) Error

func (*GetFollowRequestsBadRequest) GetPayload added in v1.1.0

func (o *GetFollowRequestsBadRequest) GetPayload() *models.Error

func (*GetFollowRequestsBadRequest) IsClientError

func (o *GetFollowRequestsBadRequest) IsClientError() bool

IsClientError returns true when this get follow requests bad request response has a 4xx status code

func (*GetFollowRequestsBadRequest) IsCode

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

IsCode returns true when this get follow requests bad request response a status code equal to that given

func (*GetFollowRequestsBadRequest) IsRedirect

func (o *GetFollowRequestsBadRequest) IsRedirect() bool

IsRedirect returns true when this get follow requests bad request response has a 3xx status code

func (*GetFollowRequestsBadRequest) IsServerError

func (o *GetFollowRequestsBadRequest) IsServerError() bool

IsServerError returns true when this get follow requests bad request response has a 5xx status code

func (*GetFollowRequestsBadRequest) IsSuccess

func (o *GetFollowRequestsBadRequest) IsSuccess() bool

IsSuccess returns true when this get follow requests bad request response has a 2xx status code

func (*GetFollowRequestsBadRequest) String

func (o *GetFollowRequestsBadRequest) String() string

type GetFollowRequestsInternalServerError

type GetFollowRequestsInternalServerError struct {
	Payload *models.Error
}

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

internal server error

func NewGetFollowRequestsInternalServerError

func NewGetFollowRequestsInternalServerError() *GetFollowRequestsInternalServerError

NewGetFollowRequestsInternalServerError creates a GetFollowRequestsInternalServerError with default headers values

func (*GetFollowRequestsInternalServerError) Code

Code gets the status code for the get follow requests internal server error response

func (*GetFollowRequestsInternalServerError) Error

func (*GetFollowRequestsInternalServerError) GetPayload added in v1.1.0

func (*GetFollowRequestsInternalServerError) IsClientError

func (o *GetFollowRequestsInternalServerError) IsClientError() bool

IsClientError returns true when this get follow requests internal server error response has a 4xx status code

func (*GetFollowRequestsInternalServerError) IsCode

IsCode returns true when this get follow requests internal server error response a status code equal to that given

func (*GetFollowRequestsInternalServerError) IsRedirect

IsRedirect returns true when this get follow requests internal server error response has a 3xx status code

func (*GetFollowRequestsInternalServerError) IsServerError

func (o *GetFollowRequestsInternalServerError) IsServerError() bool

IsServerError returns true when this get follow requests internal server error response has a 5xx status code

func (*GetFollowRequestsInternalServerError) IsSuccess

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

func (*GetFollowRequestsInternalServerError) String

type GetFollowRequestsNotAcceptable

type GetFollowRequestsNotAcceptable struct {
	Payload *models.Error
}

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

not acceptable

func NewGetFollowRequestsNotAcceptable

func NewGetFollowRequestsNotAcceptable() *GetFollowRequestsNotAcceptable

NewGetFollowRequestsNotAcceptable creates a GetFollowRequestsNotAcceptable with default headers values

func (*GetFollowRequestsNotAcceptable) Code

Code gets the status code for the get follow requests not acceptable response

func (*GetFollowRequestsNotAcceptable) Error

func (*GetFollowRequestsNotAcceptable) GetPayload added in v1.1.0

func (o *GetFollowRequestsNotAcceptable) GetPayload() *models.Error

func (*GetFollowRequestsNotAcceptable) IsClientError

func (o *GetFollowRequestsNotAcceptable) IsClientError() bool

IsClientError returns true when this get follow requests not acceptable response has a 4xx status code

func (*GetFollowRequestsNotAcceptable) IsCode

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

IsCode returns true when this get follow requests not acceptable response a status code equal to that given

func (*GetFollowRequestsNotAcceptable) IsRedirect

func (o *GetFollowRequestsNotAcceptable) IsRedirect() bool

IsRedirect returns true when this get follow requests not acceptable response has a 3xx status code

func (*GetFollowRequestsNotAcceptable) IsServerError

func (o *GetFollowRequestsNotAcceptable) IsServerError() bool

IsServerError returns true when this get follow requests not acceptable response has a 5xx status code

func (*GetFollowRequestsNotAcceptable) IsSuccess

func (o *GetFollowRequestsNotAcceptable) IsSuccess() bool

IsSuccess returns true when this get follow requests not acceptable response has a 2xx status code

func (*GetFollowRequestsNotAcceptable) String

type GetFollowRequestsNotFound

type GetFollowRequestsNotFound struct {
	Payload *models.Error
}

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

not found

func NewGetFollowRequestsNotFound

func NewGetFollowRequestsNotFound() *GetFollowRequestsNotFound

NewGetFollowRequestsNotFound creates a GetFollowRequestsNotFound with default headers values

func (*GetFollowRequestsNotFound) Code

func (o *GetFollowRequestsNotFound) Code() int

Code gets the status code for the get follow requests not found response

func (*GetFollowRequestsNotFound) Error

func (o *GetFollowRequestsNotFound) Error() string

func (*GetFollowRequestsNotFound) GetPayload added in v1.1.0

func (o *GetFollowRequestsNotFound) GetPayload() *models.Error

func (*GetFollowRequestsNotFound) IsClientError

func (o *GetFollowRequestsNotFound) IsClientError() bool

IsClientError returns true when this get follow requests not found response has a 4xx status code

func (*GetFollowRequestsNotFound) IsCode

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

IsCode returns true when this get follow requests not found response a status code equal to that given

func (*GetFollowRequestsNotFound) IsRedirect

func (o *GetFollowRequestsNotFound) IsRedirect() bool

IsRedirect returns true when this get follow requests not found response has a 3xx status code

func (*GetFollowRequestsNotFound) IsServerError

func (o *GetFollowRequestsNotFound) IsServerError() bool

IsServerError returns true when this get follow requests not found response has a 5xx status code

func (*GetFollowRequestsNotFound) IsSuccess

func (o *GetFollowRequestsNotFound) IsSuccess() bool

IsSuccess returns true when this get follow requests not found response has a 2xx status code

func (*GetFollowRequestsNotFound) String

func (o *GetFollowRequestsNotFound) String() string

type GetFollowRequestsOK

type GetFollowRequestsOK struct {

	/* Links to the next and previous queries.
	 */
	Link string

	Payload []*models.Account
}

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

GetFollowRequestsOK get follow requests o k

func NewGetFollowRequestsOK

func NewGetFollowRequestsOK() *GetFollowRequestsOK

NewGetFollowRequestsOK creates a GetFollowRequestsOK with default headers values

func (*GetFollowRequestsOK) Code

func (o *GetFollowRequestsOK) Code() int

Code gets the status code for the get follow requests o k response

func (*GetFollowRequestsOK) Error

func (o *GetFollowRequestsOK) Error() string

func (*GetFollowRequestsOK) GetPayload

func (o *GetFollowRequestsOK) GetPayload() []*models.Account

func (*GetFollowRequestsOK) IsClientError

func (o *GetFollowRequestsOK) IsClientError() bool

IsClientError returns true when this get follow requests o k response has a 4xx status code

func (*GetFollowRequestsOK) IsCode

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

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

func (*GetFollowRequestsOK) IsRedirect

func (o *GetFollowRequestsOK) IsRedirect() bool

IsRedirect returns true when this get follow requests o k response has a 3xx status code

func (*GetFollowRequestsOK) IsServerError

func (o *GetFollowRequestsOK) IsServerError() bool

IsServerError returns true when this get follow requests o k response has a 5xx status code

func (*GetFollowRequestsOK) IsSuccess

func (o *GetFollowRequestsOK) IsSuccess() bool

IsSuccess returns true when this get follow requests o k response has a 2xx status code

func (*GetFollowRequestsOK) String

func (o *GetFollowRequestsOK) String() string

type GetFollowRequestsParams

type GetFollowRequestsParams struct {

	/* Limit.

	   Number of follow requesting accounts to return.

	   Default: 40
	*/
	Limit *int64

	/* MaxID.

	   Return only follow requesting accounts *OLDER* than the given max ID. The follow requester with the specified ID will not be included in the response. NOTE: the ID is of the internal follow request, NOT any of the returned accounts.
	*/
	MaxID *string

	/* MinID.

	   Return only follow requesting accounts *IMMEDIATELY NEWER* than the given min ID. The follow requester with the specified ID will not be included in the response. NOTE: the ID is of the internal follow request, NOT any of the returned accounts.
	*/
	MinID *string

	/* SinceID.

	   Return only follow requesting accounts *NEWER* than the given since ID. The follow requester with the specified ID will not be included in the response. NOTE: the ID is of the internal follow request, NOT any of the returned accounts.
	*/
	SinceID *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetFollowRequestsParams contains all the parameters to send to the API endpoint

for the get follow requests operation.

Typically these are written to a http.Request.

func NewGetFollowRequestsParams

func NewGetFollowRequestsParams() *GetFollowRequestsParams

NewGetFollowRequestsParams creates a new GetFollowRequestsParams 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 NewGetFollowRequestsParamsWithContext

func NewGetFollowRequestsParamsWithContext(ctx context.Context) *GetFollowRequestsParams

NewGetFollowRequestsParamsWithContext creates a new GetFollowRequestsParams object with the ability to set a context for a request.

func NewGetFollowRequestsParamsWithHTTPClient

func NewGetFollowRequestsParamsWithHTTPClient(client *http.Client) *GetFollowRequestsParams

NewGetFollowRequestsParamsWithHTTPClient creates a new GetFollowRequestsParams object with the ability to set a custom HTTPClient for a request.

func NewGetFollowRequestsParamsWithTimeout

func NewGetFollowRequestsParamsWithTimeout(timeout time.Duration) *GetFollowRequestsParams

NewGetFollowRequestsParamsWithTimeout creates a new GetFollowRequestsParams object with the ability to set a timeout on a request.

func (*GetFollowRequestsParams) SetContext

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

SetContext adds the context to the get follow requests params

func (*GetFollowRequestsParams) SetDefaults

func (o *GetFollowRequestsParams) SetDefaults()

SetDefaults hydrates default values in the get follow requests params (not the query body).

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

func (*GetFollowRequestsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get follow requests params

func (*GetFollowRequestsParams) SetLimit

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

SetLimit adds the limit to the get follow requests params

func (*GetFollowRequestsParams) SetMaxID

func (o *GetFollowRequestsParams) SetMaxID(maxID *string)

SetMaxID adds the maxId to the get follow requests params

func (*GetFollowRequestsParams) SetMinID

func (o *GetFollowRequestsParams) SetMinID(minID *string)

SetMinID adds the minId to the get follow requests params

func (*GetFollowRequestsParams) SetSinceID

func (o *GetFollowRequestsParams) SetSinceID(sinceID *string)

SetSinceID adds the sinceId to the get follow requests params

func (*GetFollowRequestsParams) SetTimeout

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

SetTimeout adds the timeout to the get follow requests params

func (*GetFollowRequestsParams) WithContext

WithContext adds the context to the get follow requests params

func (*GetFollowRequestsParams) WithDefaults

WithDefaults hydrates default values in the get follow requests params (not the query body).

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

func (*GetFollowRequestsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get follow requests params

func (*GetFollowRequestsParams) WithLimit

WithLimit adds the limit to the get follow requests params

func (*GetFollowRequestsParams) WithMaxID

WithMaxID adds the maxID to the get follow requests params

func (*GetFollowRequestsParams) WithMinID

WithMinID adds the minID to the get follow requests params

func (*GetFollowRequestsParams) WithSinceID

func (o *GetFollowRequestsParams) WithSinceID(sinceID *string) *GetFollowRequestsParams

WithSinceID adds the sinceID to the get follow requests params

func (*GetFollowRequestsParams) WithTimeout

WithTimeout adds the timeout to the get follow requests params

func (*GetFollowRequestsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetFollowRequestsReader

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

GetFollowRequestsReader is a Reader for the GetFollowRequests structure.

func (*GetFollowRequestsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetFollowRequestsUnauthorized

type GetFollowRequestsUnauthorized struct {
	Payload *models.Error
}

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

unauthorized

func NewGetFollowRequestsUnauthorized

func NewGetFollowRequestsUnauthorized() *GetFollowRequestsUnauthorized

NewGetFollowRequestsUnauthorized creates a GetFollowRequestsUnauthorized with default headers values

func (*GetFollowRequestsUnauthorized) Code

Code gets the status code for the get follow requests unauthorized response

func (*GetFollowRequestsUnauthorized) Error

func (*GetFollowRequestsUnauthorized) GetPayload added in v1.1.0

func (o *GetFollowRequestsUnauthorized) GetPayload() *models.Error

func (*GetFollowRequestsUnauthorized) IsClientError

func (o *GetFollowRequestsUnauthorized) IsClientError() bool

IsClientError returns true when this get follow requests unauthorized response has a 4xx status code

func (*GetFollowRequestsUnauthorized) IsCode

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

IsCode returns true when this get follow requests unauthorized response a status code equal to that given

func (*GetFollowRequestsUnauthorized) IsRedirect

func (o *GetFollowRequestsUnauthorized) IsRedirect() bool

IsRedirect returns true when this get follow requests unauthorized response has a 3xx status code

func (*GetFollowRequestsUnauthorized) IsServerError

func (o *GetFollowRequestsUnauthorized) IsServerError() bool

IsServerError returns true when this get follow requests unauthorized response has a 5xx status code

func (*GetFollowRequestsUnauthorized) IsSuccess

func (o *GetFollowRequestsUnauthorized) IsSuccess() bool

IsSuccess returns true when this get follow requests unauthorized response has a 2xx status code

func (*GetFollowRequestsUnauthorized) String

type GetOutgoingFollowRequestsBadRequest added in v1.1.0

type GetOutgoingFollowRequestsBadRequest struct {
	Payload *models.Error
}

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

bad request

func NewGetOutgoingFollowRequestsBadRequest added in v1.1.0

func NewGetOutgoingFollowRequestsBadRequest() *GetOutgoingFollowRequestsBadRequest

NewGetOutgoingFollowRequestsBadRequest creates a GetOutgoingFollowRequestsBadRequest with default headers values

func (*GetOutgoingFollowRequestsBadRequest) Code added in v1.1.0

Code gets the status code for the get outgoing follow requests bad request response

func (*GetOutgoingFollowRequestsBadRequest) Error added in v1.1.0

func (*GetOutgoingFollowRequestsBadRequest) GetPayload added in v1.1.0

func (*GetOutgoingFollowRequestsBadRequest) IsClientError added in v1.1.0

func (o *GetOutgoingFollowRequestsBadRequest) IsClientError() bool

IsClientError returns true when this get outgoing follow requests bad request response has a 4xx status code

func (*GetOutgoingFollowRequestsBadRequest) IsCode added in v1.1.0

IsCode returns true when this get outgoing follow requests bad request response a status code equal to that given

func (*GetOutgoingFollowRequestsBadRequest) IsRedirect added in v1.1.0

func (o *GetOutgoingFollowRequestsBadRequest) IsRedirect() bool

IsRedirect returns true when this get outgoing follow requests bad request response has a 3xx status code

func (*GetOutgoingFollowRequestsBadRequest) IsServerError added in v1.1.0

func (o *GetOutgoingFollowRequestsBadRequest) IsServerError() bool

IsServerError returns true when this get outgoing follow requests bad request response has a 5xx status code

func (*GetOutgoingFollowRequestsBadRequest) IsSuccess added in v1.1.0

IsSuccess returns true when this get outgoing follow requests bad request response has a 2xx status code

func (*GetOutgoingFollowRequestsBadRequest) String added in v1.1.0

type GetOutgoingFollowRequestsInternalServerError added in v1.1.0

type GetOutgoingFollowRequestsInternalServerError struct {
	Payload *models.Error
}

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

internal server error

func NewGetOutgoingFollowRequestsInternalServerError added in v1.1.0

func NewGetOutgoingFollowRequestsInternalServerError() *GetOutgoingFollowRequestsInternalServerError

NewGetOutgoingFollowRequestsInternalServerError creates a GetOutgoingFollowRequestsInternalServerError with default headers values

func (*GetOutgoingFollowRequestsInternalServerError) Code added in v1.1.0

Code gets the status code for the get outgoing follow requests internal server error response

func (*GetOutgoingFollowRequestsInternalServerError) Error added in v1.1.0

func (*GetOutgoingFollowRequestsInternalServerError) GetPayload added in v1.1.0

func (*GetOutgoingFollowRequestsInternalServerError) IsClientError added in v1.1.0

IsClientError returns true when this get outgoing follow requests internal server error response has a 4xx status code

func (*GetOutgoingFollowRequestsInternalServerError) IsCode added in v1.1.0

IsCode returns true when this get outgoing follow requests internal server error response a status code equal to that given

func (*GetOutgoingFollowRequestsInternalServerError) IsRedirect added in v1.1.0

IsRedirect returns true when this get outgoing follow requests internal server error response has a 3xx status code

func (*GetOutgoingFollowRequestsInternalServerError) IsServerError added in v1.1.0

IsServerError returns true when this get outgoing follow requests internal server error response has a 5xx status code

func (*GetOutgoingFollowRequestsInternalServerError) IsSuccess added in v1.1.0

IsSuccess returns true when this get outgoing follow requests internal server error response has a 2xx status code

func (*GetOutgoingFollowRequestsInternalServerError) String added in v1.1.0

type GetOutgoingFollowRequestsNotAcceptable added in v1.1.0

type GetOutgoingFollowRequestsNotAcceptable struct {
	Payload *models.Error
}

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

not acceptable

func NewGetOutgoingFollowRequestsNotAcceptable added in v1.1.0

func NewGetOutgoingFollowRequestsNotAcceptable() *GetOutgoingFollowRequestsNotAcceptable

NewGetOutgoingFollowRequestsNotAcceptable creates a GetOutgoingFollowRequestsNotAcceptable with default headers values

func (*GetOutgoingFollowRequestsNotAcceptable) Code added in v1.1.0

Code gets the status code for the get outgoing follow requests not acceptable response

func (*GetOutgoingFollowRequestsNotAcceptable) Error added in v1.1.0

func (*GetOutgoingFollowRequestsNotAcceptable) GetPayload added in v1.1.0

func (*GetOutgoingFollowRequestsNotAcceptable) IsClientError added in v1.1.0

func (o *GetOutgoingFollowRequestsNotAcceptable) IsClientError() bool

IsClientError returns true when this get outgoing follow requests not acceptable response has a 4xx status code

func (*GetOutgoingFollowRequestsNotAcceptable) IsCode added in v1.1.0

IsCode returns true when this get outgoing follow requests not acceptable response a status code equal to that given

func (*GetOutgoingFollowRequestsNotAcceptable) IsRedirect added in v1.1.0

IsRedirect returns true when this get outgoing follow requests not acceptable response has a 3xx status code

func (*GetOutgoingFollowRequestsNotAcceptable) IsServerError added in v1.1.0

func (o *GetOutgoingFollowRequestsNotAcceptable) IsServerError() bool

IsServerError returns true when this get outgoing follow requests not acceptable response has a 5xx status code

func (*GetOutgoingFollowRequestsNotAcceptable) IsSuccess added in v1.1.0

IsSuccess returns true when this get outgoing follow requests not acceptable response has a 2xx status code

func (*GetOutgoingFollowRequestsNotAcceptable) String added in v1.1.0

type GetOutgoingFollowRequestsNotFound added in v1.1.0

type GetOutgoingFollowRequestsNotFound struct {
	Payload *models.Error
}

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

not found

func NewGetOutgoingFollowRequestsNotFound added in v1.1.0

func NewGetOutgoingFollowRequestsNotFound() *GetOutgoingFollowRequestsNotFound

NewGetOutgoingFollowRequestsNotFound creates a GetOutgoingFollowRequestsNotFound with default headers values

func (*GetOutgoingFollowRequestsNotFound) Code added in v1.1.0

Code gets the status code for the get outgoing follow requests not found response

func (*GetOutgoingFollowRequestsNotFound) Error added in v1.1.0

func (*GetOutgoingFollowRequestsNotFound) GetPayload added in v1.1.0

func (*GetOutgoingFollowRequestsNotFound) IsClientError added in v1.1.0

func (o *GetOutgoingFollowRequestsNotFound) IsClientError() bool

IsClientError returns true when this get outgoing follow requests not found response has a 4xx status code

func (*GetOutgoingFollowRequestsNotFound) IsCode added in v1.1.0

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

IsCode returns true when this get outgoing follow requests not found response a status code equal to that given

func (*GetOutgoingFollowRequestsNotFound) IsRedirect added in v1.1.0

func (o *GetOutgoingFollowRequestsNotFound) IsRedirect() bool

IsRedirect returns true when this get outgoing follow requests not found response has a 3xx status code

func (*GetOutgoingFollowRequestsNotFound) IsServerError added in v1.1.0

func (o *GetOutgoingFollowRequestsNotFound) IsServerError() bool

IsServerError returns true when this get outgoing follow requests not found response has a 5xx status code

func (*GetOutgoingFollowRequestsNotFound) IsSuccess added in v1.1.0

func (o *GetOutgoingFollowRequestsNotFound) IsSuccess() bool

IsSuccess returns true when this get outgoing follow requests not found response has a 2xx status code

func (*GetOutgoingFollowRequestsNotFound) String added in v1.1.0

type GetOutgoingFollowRequestsOK added in v1.1.0

type GetOutgoingFollowRequestsOK struct {

	/* Links to the next and previous queries.
	 */
	Link string

	Payload []*models.Account
}

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

GetOutgoingFollowRequestsOK get outgoing follow requests o k

func NewGetOutgoingFollowRequestsOK added in v1.1.0

func NewGetOutgoingFollowRequestsOK() *GetOutgoingFollowRequestsOK

NewGetOutgoingFollowRequestsOK creates a GetOutgoingFollowRequestsOK with default headers values

func (*GetOutgoingFollowRequestsOK) Code added in v1.1.0

func (o *GetOutgoingFollowRequestsOK) Code() int

Code gets the status code for the get outgoing follow requests o k response

func (*GetOutgoingFollowRequestsOK) Error added in v1.1.0

func (*GetOutgoingFollowRequestsOK) GetPayload added in v1.1.0

func (o *GetOutgoingFollowRequestsOK) GetPayload() []*models.Account

func (*GetOutgoingFollowRequestsOK) IsClientError added in v1.1.0

func (o *GetOutgoingFollowRequestsOK) IsClientError() bool

IsClientError returns true when this get outgoing follow requests o k response has a 4xx status code

func (*GetOutgoingFollowRequestsOK) IsCode added in v1.1.0

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

IsCode returns true when this get outgoing follow requests o k response a status code equal to that given

func (*GetOutgoingFollowRequestsOK) IsRedirect added in v1.1.0

func (o *GetOutgoingFollowRequestsOK) IsRedirect() bool

IsRedirect returns true when this get outgoing follow requests o k response has a 3xx status code

func (*GetOutgoingFollowRequestsOK) IsServerError added in v1.1.0

func (o *GetOutgoingFollowRequestsOK) IsServerError() bool

IsServerError returns true when this get outgoing follow requests o k response has a 5xx status code

func (*GetOutgoingFollowRequestsOK) IsSuccess added in v1.1.0

func (o *GetOutgoingFollowRequestsOK) IsSuccess() bool

IsSuccess returns true when this get outgoing follow requests o k response has a 2xx status code

func (*GetOutgoingFollowRequestsOK) String added in v1.1.0

func (o *GetOutgoingFollowRequestsOK) String() string

type GetOutgoingFollowRequestsParams added in v1.1.0

type GetOutgoingFollowRequestsParams struct {

	/* Limit.

	   Number of follow requested accounts to return.

	   Default: 40
	*/
	Limit *int64

	/* MaxID.

	   Return only follow requested accounts *OLDER* than the given max ID. The follow requestee with the specified ID will not be included in the response. NOTE: the ID is of the internal follow request, NOT any of the returned accounts.
	*/
	MaxID *string

	/* MinID.

	   Return only follow requested accounts *IMMEDIATELY NEWER* than the given min ID. The follow requestee with the specified ID will not be included in the response. NOTE: the ID is of the internal follow request, NOT any of the returned accounts.
	*/
	MinID *string

	/* SinceID.

	   Return only follow requested accounts *NEWER* than the given since ID. The follow requestee with the specified ID will not be included in the response. NOTE: the ID is of the internal follow request, NOT any of the returned accounts.
	*/
	SinceID *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetOutgoingFollowRequestsParams contains all the parameters to send to the API endpoint

for the get outgoing follow requests operation.

Typically these are written to a http.Request.

func NewGetOutgoingFollowRequestsParams added in v1.1.0

func NewGetOutgoingFollowRequestsParams() *GetOutgoingFollowRequestsParams

NewGetOutgoingFollowRequestsParams creates a new GetOutgoingFollowRequestsParams 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 NewGetOutgoingFollowRequestsParamsWithContext added in v1.1.0

func NewGetOutgoingFollowRequestsParamsWithContext(ctx context.Context) *GetOutgoingFollowRequestsParams

NewGetOutgoingFollowRequestsParamsWithContext creates a new GetOutgoingFollowRequestsParams object with the ability to set a context for a request.

func NewGetOutgoingFollowRequestsParamsWithHTTPClient added in v1.1.0

func NewGetOutgoingFollowRequestsParamsWithHTTPClient(client *http.Client) *GetOutgoingFollowRequestsParams

NewGetOutgoingFollowRequestsParamsWithHTTPClient creates a new GetOutgoingFollowRequestsParams object with the ability to set a custom HTTPClient for a request.

func NewGetOutgoingFollowRequestsParamsWithTimeout added in v1.1.0

func NewGetOutgoingFollowRequestsParamsWithTimeout(timeout time.Duration) *GetOutgoingFollowRequestsParams

NewGetOutgoingFollowRequestsParamsWithTimeout creates a new GetOutgoingFollowRequestsParams object with the ability to set a timeout on a request.

func (*GetOutgoingFollowRequestsParams) SetContext added in v1.1.0

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

SetContext adds the context to the get outgoing follow requests params

func (*GetOutgoingFollowRequestsParams) SetDefaults added in v1.1.0

func (o *GetOutgoingFollowRequestsParams) SetDefaults()

SetDefaults hydrates default values in the get outgoing follow requests params (not the query body).

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

func (*GetOutgoingFollowRequestsParams) SetHTTPClient added in v1.1.0

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

SetHTTPClient adds the HTTPClient to the get outgoing follow requests params

func (*GetOutgoingFollowRequestsParams) SetLimit added in v1.1.0

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

SetLimit adds the limit to the get outgoing follow requests params

func (*GetOutgoingFollowRequestsParams) SetMaxID added in v1.1.0

func (o *GetOutgoingFollowRequestsParams) SetMaxID(maxID *string)

SetMaxID adds the maxId to the get outgoing follow requests params

func (*GetOutgoingFollowRequestsParams) SetMinID added in v1.1.0

func (o *GetOutgoingFollowRequestsParams) SetMinID(minID *string)

SetMinID adds the minId to the get outgoing follow requests params

func (*GetOutgoingFollowRequestsParams) SetSinceID added in v1.1.0

func (o *GetOutgoingFollowRequestsParams) SetSinceID(sinceID *string)

SetSinceID adds the sinceId to the get outgoing follow requests params

func (*GetOutgoingFollowRequestsParams) SetTimeout added in v1.1.0

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

SetTimeout adds the timeout to the get outgoing follow requests params

func (*GetOutgoingFollowRequestsParams) WithContext added in v1.1.0

WithContext adds the context to the get outgoing follow requests params

func (*GetOutgoingFollowRequestsParams) WithDefaults added in v1.1.0

WithDefaults hydrates default values in the get outgoing follow requests params (not the query body).

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

func (*GetOutgoingFollowRequestsParams) WithHTTPClient added in v1.1.0

WithHTTPClient adds the HTTPClient to the get outgoing follow requests params

func (*GetOutgoingFollowRequestsParams) WithLimit added in v1.1.0

WithLimit adds the limit to the get outgoing follow requests params

func (*GetOutgoingFollowRequestsParams) WithMaxID added in v1.1.0

WithMaxID adds the maxID to the get outgoing follow requests params

func (*GetOutgoingFollowRequestsParams) WithMinID added in v1.1.0

WithMinID adds the minID to the get outgoing follow requests params

func (*GetOutgoingFollowRequestsParams) WithSinceID added in v1.1.0

WithSinceID adds the sinceID to the get outgoing follow requests params

func (*GetOutgoingFollowRequestsParams) WithTimeout added in v1.1.0

WithTimeout adds the timeout to the get outgoing follow requests params

func (*GetOutgoingFollowRequestsParams) WriteToRequest added in v1.1.0

WriteToRequest writes these params to a swagger request

type GetOutgoingFollowRequestsReader added in v1.1.0

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

GetOutgoingFollowRequestsReader is a Reader for the GetOutgoingFollowRequests structure.

func (*GetOutgoingFollowRequestsReader) ReadResponse added in v1.1.0

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

ReadResponse reads a server response into the received o.

type GetOutgoingFollowRequestsUnauthorized added in v1.1.0

type GetOutgoingFollowRequestsUnauthorized struct {
	Payload *models.Error
}

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

unauthorized

func NewGetOutgoingFollowRequestsUnauthorized added in v1.1.0

func NewGetOutgoingFollowRequestsUnauthorized() *GetOutgoingFollowRequestsUnauthorized

NewGetOutgoingFollowRequestsUnauthorized creates a GetOutgoingFollowRequestsUnauthorized with default headers values

func (*GetOutgoingFollowRequestsUnauthorized) Code added in v1.1.0

Code gets the status code for the get outgoing follow requests unauthorized response

func (*GetOutgoingFollowRequestsUnauthorized) Error added in v1.1.0

func (*GetOutgoingFollowRequestsUnauthorized) GetPayload added in v1.1.0

func (*GetOutgoingFollowRequestsUnauthorized) IsClientError added in v1.1.0

func (o *GetOutgoingFollowRequestsUnauthorized) IsClientError() bool

IsClientError returns true when this get outgoing follow requests unauthorized response has a 4xx status code

func (*GetOutgoingFollowRequestsUnauthorized) IsCode added in v1.1.0

IsCode returns true when this get outgoing follow requests unauthorized response a status code equal to that given

func (*GetOutgoingFollowRequestsUnauthorized) IsRedirect added in v1.1.0

IsRedirect returns true when this get outgoing follow requests unauthorized response has a 3xx status code

func (*GetOutgoingFollowRequestsUnauthorized) IsServerError added in v1.1.0

func (o *GetOutgoingFollowRequestsUnauthorized) IsServerError() bool

IsServerError returns true when this get outgoing follow requests unauthorized response has a 5xx status code

func (*GetOutgoingFollowRequestsUnauthorized) IsSuccess added in v1.1.0

IsSuccess returns true when this get outgoing follow requests unauthorized response has a 2xx status code

func (*GetOutgoingFollowRequestsUnauthorized) String added in v1.1.0

type RejectFollowRequestBadRequest

type RejectFollowRequestBadRequest struct {
	Payload *models.Error
}

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

bad request

func NewRejectFollowRequestBadRequest

func NewRejectFollowRequestBadRequest() *RejectFollowRequestBadRequest

NewRejectFollowRequestBadRequest creates a RejectFollowRequestBadRequest with default headers values

func (*RejectFollowRequestBadRequest) Code

Code gets the status code for the reject follow request bad request response

func (*RejectFollowRequestBadRequest) Error

func (*RejectFollowRequestBadRequest) GetPayload added in v1.1.0

func (o *RejectFollowRequestBadRequest) GetPayload() *models.Error

func (*RejectFollowRequestBadRequest) IsClientError

func (o *RejectFollowRequestBadRequest) IsClientError() bool

IsClientError returns true when this reject follow request bad request response has a 4xx status code

func (*RejectFollowRequestBadRequest) IsCode

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

IsCode returns true when this reject follow request bad request response a status code equal to that given

func (*RejectFollowRequestBadRequest) IsRedirect

func (o *RejectFollowRequestBadRequest) IsRedirect() bool

IsRedirect returns true when this reject follow request bad request response has a 3xx status code

func (*RejectFollowRequestBadRequest) IsServerError

func (o *RejectFollowRequestBadRequest) IsServerError() bool

IsServerError returns true when this reject follow request bad request response has a 5xx status code

func (*RejectFollowRequestBadRequest) IsSuccess

func (o *RejectFollowRequestBadRequest) IsSuccess() bool

IsSuccess returns true when this reject follow request bad request response has a 2xx status code

func (*RejectFollowRequestBadRequest) String

type RejectFollowRequestInternalServerError

type RejectFollowRequestInternalServerError struct {
	Payload *models.Error
}

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

internal server error

func NewRejectFollowRequestInternalServerError

func NewRejectFollowRequestInternalServerError() *RejectFollowRequestInternalServerError

NewRejectFollowRequestInternalServerError creates a RejectFollowRequestInternalServerError with default headers values

func (*RejectFollowRequestInternalServerError) Code

Code gets the status code for the reject follow request internal server error response

func (*RejectFollowRequestInternalServerError) Error

func (*RejectFollowRequestInternalServerError) GetPayload added in v1.1.0

func (*RejectFollowRequestInternalServerError) IsClientError

func (o *RejectFollowRequestInternalServerError) IsClientError() bool

IsClientError returns true when this reject follow request internal server error response has a 4xx status code

func (*RejectFollowRequestInternalServerError) IsCode

IsCode returns true when this reject follow request internal server error response a status code equal to that given

func (*RejectFollowRequestInternalServerError) IsRedirect

IsRedirect returns true when this reject follow request internal server error response has a 3xx status code

func (*RejectFollowRequestInternalServerError) IsServerError

func (o *RejectFollowRequestInternalServerError) IsServerError() bool

IsServerError returns true when this reject follow request internal server error response has a 5xx status code

func (*RejectFollowRequestInternalServerError) IsSuccess

IsSuccess returns true when this reject follow request internal server error response has a 2xx status code

func (*RejectFollowRequestInternalServerError) String

type RejectFollowRequestNotAcceptable

type RejectFollowRequestNotAcceptable struct {
	Payload *models.Error
}

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

not acceptable

func NewRejectFollowRequestNotAcceptable

func NewRejectFollowRequestNotAcceptable() *RejectFollowRequestNotAcceptable

NewRejectFollowRequestNotAcceptable creates a RejectFollowRequestNotAcceptable with default headers values

func (*RejectFollowRequestNotAcceptable) Code

Code gets the status code for the reject follow request not acceptable response

func (*RejectFollowRequestNotAcceptable) Error

func (*RejectFollowRequestNotAcceptable) GetPayload added in v1.1.0

func (*RejectFollowRequestNotAcceptable) IsClientError

func (o *RejectFollowRequestNotAcceptable) IsClientError() bool

IsClientError returns true when this reject follow request not acceptable response has a 4xx status code

func (*RejectFollowRequestNotAcceptable) IsCode

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

IsCode returns true when this reject follow request not acceptable response a status code equal to that given

func (*RejectFollowRequestNotAcceptable) IsRedirect

func (o *RejectFollowRequestNotAcceptable) IsRedirect() bool

IsRedirect returns true when this reject follow request not acceptable response has a 3xx status code

func (*RejectFollowRequestNotAcceptable) IsServerError

func (o *RejectFollowRequestNotAcceptable) IsServerError() bool

IsServerError returns true when this reject follow request not acceptable response has a 5xx status code

func (*RejectFollowRequestNotAcceptable) IsSuccess

func (o *RejectFollowRequestNotAcceptable) IsSuccess() bool

IsSuccess returns true when this reject follow request not acceptable response has a 2xx status code

func (*RejectFollowRequestNotAcceptable) String

type RejectFollowRequestNotFound

type RejectFollowRequestNotFound struct {
	Payload *models.Error
}

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

not found

func NewRejectFollowRequestNotFound

func NewRejectFollowRequestNotFound() *RejectFollowRequestNotFound

NewRejectFollowRequestNotFound creates a RejectFollowRequestNotFound with default headers values

func (*RejectFollowRequestNotFound) Code

func (o *RejectFollowRequestNotFound) Code() int

Code gets the status code for the reject follow request not found response

func (*RejectFollowRequestNotFound) Error

func (*RejectFollowRequestNotFound) GetPayload added in v1.1.0

func (o *RejectFollowRequestNotFound) GetPayload() *models.Error

func (*RejectFollowRequestNotFound) IsClientError

func (o *RejectFollowRequestNotFound) IsClientError() bool

IsClientError returns true when this reject follow request not found response has a 4xx status code

func (*RejectFollowRequestNotFound) IsCode

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

IsCode returns true when this reject follow request not found response a status code equal to that given

func (*RejectFollowRequestNotFound) IsRedirect

func (o *RejectFollowRequestNotFound) IsRedirect() bool

IsRedirect returns true when this reject follow request not found response has a 3xx status code

func (*RejectFollowRequestNotFound) IsServerError

func (o *RejectFollowRequestNotFound) IsServerError() bool

IsServerError returns true when this reject follow request not found response has a 5xx status code

func (*RejectFollowRequestNotFound) IsSuccess

func (o *RejectFollowRequestNotFound) IsSuccess() bool

IsSuccess returns true when this reject follow request not found response has a 2xx status code

func (*RejectFollowRequestNotFound) String

func (o *RejectFollowRequestNotFound) String() string

type RejectFollowRequestOK

type RejectFollowRequestOK struct {
	Payload *models.Relationship
}

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

Your relationship to this account.

func NewRejectFollowRequestOK

func NewRejectFollowRequestOK() *RejectFollowRequestOK

NewRejectFollowRequestOK creates a RejectFollowRequestOK with default headers values

func (*RejectFollowRequestOK) Code

func (o *RejectFollowRequestOK) Code() int

Code gets the status code for the reject follow request o k response

func (*RejectFollowRequestOK) Error

func (o *RejectFollowRequestOK) Error() string

func (*RejectFollowRequestOK) GetPayload

func (o *RejectFollowRequestOK) GetPayload() *models.Relationship

func (*RejectFollowRequestOK) IsClientError

func (o *RejectFollowRequestOK) IsClientError() bool

IsClientError returns true when this reject follow request o k response has a 4xx status code

func (*RejectFollowRequestOK) IsCode

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

IsCode returns true when this reject follow request o k response a status code equal to that given

func (*RejectFollowRequestOK) IsRedirect

func (o *RejectFollowRequestOK) IsRedirect() bool

IsRedirect returns true when this reject follow request o k response has a 3xx status code

func (*RejectFollowRequestOK) IsServerError

func (o *RejectFollowRequestOK) IsServerError() bool

IsServerError returns true when this reject follow request o k response has a 5xx status code

func (*RejectFollowRequestOK) IsSuccess

func (o *RejectFollowRequestOK) IsSuccess() bool

IsSuccess returns true when this reject follow request o k response has a 2xx status code

func (*RejectFollowRequestOK) String

func (o *RejectFollowRequestOK) String() string

type RejectFollowRequestParams

type RejectFollowRequestParams struct {

	/* AccountID.

	   ID of the account requesting to follow you.
	*/
	AccountID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

RejectFollowRequestParams contains all the parameters to send to the API endpoint

for the reject follow request operation.

Typically these are written to a http.Request.

func NewRejectFollowRequestParams

func NewRejectFollowRequestParams() *RejectFollowRequestParams

NewRejectFollowRequestParams creates a new RejectFollowRequestParams 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 NewRejectFollowRequestParamsWithContext

func NewRejectFollowRequestParamsWithContext(ctx context.Context) *RejectFollowRequestParams

NewRejectFollowRequestParamsWithContext creates a new RejectFollowRequestParams object with the ability to set a context for a request.

func NewRejectFollowRequestParamsWithHTTPClient

func NewRejectFollowRequestParamsWithHTTPClient(client *http.Client) *RejectFollowRequestParams

NewRejectFollowRequestParamsWithHTTPClient creates a new RejectFollowRequestParams object with the ability to set a custom HTTPClient for a request.

func NewRejectFollowRequestParamsWithTimeout

func NewRejectFollowRequestParamsWithTimeout(timeout time.Duration) *RejectFollowRequestParams

NewRejectFollowRequestParamsWithTimeout creates a new RejectFollowRequestParams object with the ability to set a timeout on a request.

func (*RejectFollowRequestParams) SetAccountID

func (o *RejectFollowRequestParams) SetAccountID(accountID string)

SetAccountID adds the accountId to the reject follow request params

func (*RejectFollowRequestParams) SetContext

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

SetContext adds the context to the reject follow request params

func (*RejectFollowRequestParams) SetDefaults

func (o *RejectFollowRequestParams) SetDefaults()

SetDefaults hydrates default values in the reject follow request params (not the query body).

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

func (*RejectFollowRequestParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the reject follow request params

func (*RejectFollowRequestParams) SetTimeout

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

SetTimeout adds the timeout to the reject follow request params

func (*RejectFollowRequestParams) WithAccountID

func (o *RejectFollowRequestParams) WithAccountID(accountID string) *RejectFollowRequestParams

WithAccountID adds the accountID to the reject follow request params

func (*RejectFollowRequestParams) WithContext

WithContext adds the context to the reject follow request params

func (*RejectFollowRequestParams) WithDefaults

WithDefaults hydrates default values in the reject follow request params (not the query body).

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

func (*RejectFollowRequestParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the reject follow request params

func (*RejectFollowRequestParams) WithTimeout

WithTimeout adds the timeout to the reject follow request params

func (*RejectFollowRequestParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RejectFollowRequestReader

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

RejectFollowRequestReader is a Reader for the RejectFollowRequest structure.

func (*RejectFollowRequestReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RejectFollowRequestUnauthorized

type RejectFollowRequestUnauthorized struct {
	Payload *models.Error
}

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

unauthorized

func NewRejectFollowRequestUnauthorized

func NewRejectFollowRequestUnauthorized() *RejectFollowRequestUnauthorized

NewRejectFollowRequestUnauthorized creates a RejectFollowRequestUnauthorized with default headers values

func (*RejectFollowRequestUnauthorized) Code

Code gets the status code for the reject follow request unauthorized response

func (*RejectFollowRequestUnauthorized) Error

func (*RejectFollowRequestUnauthorized) GetPayload added in v1.1.0

func (o *RejectFollowRequestUnauthorized) GetPayload() *models.Error

func (*RejectFollowRequestUnauthorized) IsClientError

func (o *RejectFollowRequestUnauthorized) IsClientError() bool

IsClientError returns true when this reject follow request unauthorized response has a 4xx status code

func (*RejectFollowRequestUnauthorized) IsCode

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

IsCode returns true when this reject follow request unauthorized response a status code equal to that given

func (*RejectFollowRequestUnauthorized) IsRedirect

func (o *RejectFollowRequestUnauthorized) IsRedirect() bool

IsRedirect returns true when this reject follow request unauthorized response has a 3xx status code

func (*RejectFollowRequestUnauthorized) IsServerError

func (o *RejectFollowRequestUnauthorized) IsServerError() bool

IsServerError returns true when this reject follow request unauthorized response has a 5xx status code

func (*RejectFollowRequestUnauthorized) IsSuccess

func (o *RejectFollowRequestUnauthorized) IsSuccess() bool

IsSuccess returns true when this reject follow request unauthorized response has a 2xx status code

func (*RejectFollowRequestUnauthorized) String

Jump to

Keyboard shortcuts

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