Documentation ¶
Index ¶
- func WithContentTypeApplicationJSON(r *runtime.ClientOperation)
- func WithContentTypeApplicationxWwwFormUrlencoded(r *runtime.ClientOperation)
- func WithContentTypeMultipartFormData(r *runtime.ClientOperation)
- type Client
- func (a *Client) PoliciesDefaultsGet(params *PoliciesDefaultsGetParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PoliciesDefaultsGetOK, error)
- func (a *Client) PoliciesDefaultsUpdate(params *PoliciesDefaultsUpdateParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PoliciesDefaultsUpdateOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type PoliciesDefaultsGetInternalServerError
- func (o *PoliciesDefaultsGetInternalServerError) Code() int
- func (o *PoliciesDefaultsGetInternalServerError) Error() string
- func (o *PoliciesDefaultsGetInternalServerError) IsClientError() bool
- func (o *PoliciesDefaultsGetInternalServerError) IsCode(code int) bool
- func (o *PoliciesDefaultsGetInternalServerError) IsRedirect() bool
- func (o *PoliciesDefaultsGetInternalServerError) IsServerError() bool
- func (o *PoliciesDefaultsGetInternalServerError) IsSuccess() bool
- func (o *PoliciesDefaultsGetInternalServerError) String() string
- type PoliciesDefaultsGetNotAcceptable
- func (o *PoliciesDefaultsGetNotAcceptable) Code() int
- func (o *PoliciesDefaultsGetNotAcceptable) Error() string
- func (o *PoliciesDefaultsGetNotAcceptable) IsClientError() bool
- func (o *PoliciesDefaultsGetNotAcceptable) IsCode(code int) bool
- func (o *PoliciesDefaultsGetNotAcceptable) IsRedirect() bool
- func (o *PoliciesDefaultsGetNotAcceptable) IsServerError() bool
- func (o *PoliciesDefaultsGetNotAcceptable) IsSuccess() bool
- func (o *PoliciesDefaultsGetNotAcceptable) String() string
- type PoliciesDefaultsGetOK
- func (o *PoliciesDefaultsGetOK) Code() int
- func (o *PoliciesDefaultsGetOK) Error() string
- func (o *PoliciesDefaultsGetOK) GetPayload() *models.DefaultPolicies
- func (o *PoliciesDefaultsGetOK) IsClientError() bool
- func (o *PoliciesDefaultsGetOK) IsCode(code int) bool
- func (o *PoliciesDefaultsGetOK) IsRedirect() bool
- func (o *PoliciesDefaultsGetOK) IsServerError() bool
- func (o *PoliciesDefaultsGetOK) IsSuccess() bool
- func (o *PoliciesDefaultsGetOK) String() string
- type PoliciesDefaultsGetParams
- func NewPoliciesDefaultsGetParams() *PoliciesDefaultsGetParams
- func NewPoliciesDefaultsGetParamsWithContext(ctx context.Context) *PoliciesDefaultsGetParams
- func NewPoliciesDefaultsGetParamsWithHTTPClient(client *http.Client) *PoliciesDefaultsGetParams
- func NewPoliciesDefaultsGetParamsWithTimeout(timeout time.Duration) *PoliciesDefaultsGetParams
- func (o *PoliciesDefaultsGetParams) SetContext(ctx context.Context)
- func (o *PoliciesDefaultsGetParams) SetDefaults()
- func (o *PoliciesDefaultsGetParams) SetHTTPClient(client *http.Client)
- func (o *PoliciesDefaultsGetParams) SetTimeout(timeout time.Duration)
- func (o *PoliciesDefaultsGetParams) WithContext(ctx context.Context) *PoliciesDefaultsGetParams
- func (o *PoliciesDefaultsGetParams) WithDefaults() *PoliciesDefaultsGetParams
- func (o *PoliciesDefaultsGetParams) WithHTTPClient(client *http.Client) *PoliciesDefaultsGetParams
- func (o *PoliciesDefaultsGetParams) WithTimeout(timeout time.Duration) *PoliciesDefaultsGetParams
- func (o *PoliciesDefaultsGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PoliciesDefaultsGetReader
- type PoliciesDefaultsGetUnauthorized
- func (o *PoliciesDefaultsGetUnauthorized) Code() int
- func (o *PoliciesDefaultsGetUnauthorized) Error() string
- func (o *PoliciesDefaultsGetUnauthorized) IsClientError() bool
- func (o *PoliciesDefaultsGetUnauthorized) IsCode(code int) bool
- func (o *PoliciesDefaultsGetUnauthorized) IsRedirect() bool
- func (o *PoliciesDefaultsGetUnauthorized) IsServerError() bool
- func (o *PoliciesDefaultsGetUnauthorized) IsSuccess() bool
- func (o *PoliciesDefaultsGetUnauthorized) String() string
- type PoliciesDefaultsUpdateBadRequest
- func (o *PoliciesDefaultsUpdateBadRequest) Code() int
- func (o *PoliciesDefaultsUpdateBadRequest) Error() string
- func (o *PoliciesDefaultsUpdateBadRequest) IsClientError() bool
- func (o *PoliciesDefaultsUpdateBadRequest) IsCode(code int) bool
- func (o *PoliciesDefaultsUpdateBadRequest) IsRedirect() bool
- func (o *PoliciesDefaultsUpdateBadRequest) IsServerError() bool
- func (o *PoliciesDefaultsUpdateBadRequest) IsSuccess() bool
- func (o *PoliciesDefaultsUpdateBadRequest) String() string
- type PoliciesDefaultsUpdateInternalServerError
- func (o *PoliciesDefaultsUpdateInternalServerError) Code() int
- func (o *PoliciesDefaultsUpdateInternalServerError) Error() string
- func (o *PoliciesDefaultsUpdateInternalServerError) IsClientError() bool
- func (o *PoliciesDefaultsUpdateInternalServerError) IsCode(code int) bool
- func (o *PoliciesDefaultsUpdateInternalServerError) IsRedirect() bool
- func (o *PoliciesDefaultsUpdateInternalServerError) IsServerError() bool
- func (o *PoliciesDefaultsUpdateInternalServerError) IsSuccess() bool
- func (o *PoliciesDefaultsUpdateInternalServerError) String() string
- type PoliciesDefaultsUpdateNotAcceptable
- func (o *PoliciesDefaultsUpdateNotAcceptable) Code() int
- func (o *PoliciesDefaultsUpdateNotAcceptable) Error() string
- func (o *PoliciesDefaultsUpdateNotAcceptable) IsClientError() bool
- func (o *PoliciesDefaultsUpdateNotAcceptable) IsCode(code int) bool
- func (o *PoliciesDefaultsUpdateNotAcceptable) IsRedirect() bool
- func (o *PoliciesDefaultsUpdateNotAcceptable) IsServerError() bool
- func (o *PoliciesDefaultsUpdateNotAcceptable) IsSuccess() bool
- func (o *PoliciesDefaultsUpdateNotAcceptable) String() string
- type PoliciesDefaultsUpdateOK
- func (o *PoliciesDefaultsUpdateOK) Code() int
- func (o *PoliciesDefaultsUpdateOK) Error() string
- func (o *PoliciesDefaultsUpdateOK) GetPayload() *models.DefaultPolicies
- func (o *PoliciesDefaultsUpdateOK) IsClientError() bool
- func (o *PoliciesDefaultsUpdateOK) IsCode(code int) bool
- func (o *PoliciesDefaultsUpdateOK) IsRedirect() bool
- func (o *PoliciesDefaultsUpdateOK) IsServerError() bool
- func (o *PoliciesDefaultsUpdateOK) IsSuccess() bool
- func (o *PoliciesDefaultsUpdateOK) String() string
- type PoliciesDefaultsUpdateParams
- func NewPoliciesDefaultsUpdateParams() *PoliciesDefaultsUpdateParams
- func NewPoliciesDefaultsUpdateParamsWithContext(ctx context.Context) *PoliciesDefaultsUpdateParams
- func NewPoliciesDefaultsUpdateParamsWithHTTPClient(client *http.Client) *PoliciesDefaultsUpdateParams
- func NewPoliciesDefaultsUpdateParamsWithTimeout(timeout time.Duration) *PoliciesDefaultsUpdateParams
- func (o *PoliciesDefaultsUpdateParams) SetContext(ctx context.Context)
- func (o *PoliciesDefaultsUpdateParams) SetDefaults()
- func (o *PoliciesDefaultsUpdateParams) SetDirectCanFavouriteAlways0(directCanFavouriteAlways0 *string)
- func (o *PoliciesDefaultsUpdateParams) SetDirectCanFavouriteWithApproval0(directCanFavouriteWithApproval0 *string)
- func (o *PoliciesDefaultsUpdateParams) SetDirectCanReblogAlways0(directCanReblogAlways0 *string)
- func (o *PoliciesDefaultsUpdateParams) SetDirectCanReblogWithApproval0(directCanReblogWithApproval0 *string)
- func (o *PoliciesDefaultsUpdateParams) SetDirectCanReplyAlways0(directCanReplyAlways0 *string)
- func (o *PoliciesDefaultsUpdateParams) SetDirectCanReplyWithApproval0(directCanReplyWithApproval0 *string)
- func (o *PoliciesDefaultsUpdateParams) SetHTTPClient(client *http.Client)
- func (o *PoliciesDefaultsUpdateParams) SetPrivateCanFavouriteAlways0(privateCanFavouriteAlways0 *string)
- func (o *PoliciesDefaultsUpdateParams) SetPrivateCanFavouriteWithApproval0(privateCanFavouriteWithApproval0 *string)
- func (o *PoliciesDefaultsUpdateParams) SetPrivateCanReblogAlways0(privateCanReblogAlways0 *string)
- func (o *PoliciesDefaultsUpdateParams) SetPrivateCanReblogWithApproval0(privateCanReblogWithApproval0 *string)
- func (o *PoliciesDefaultsUpdateParams) SetPrivateCanReplyAlways0(privateCanReplyAlways0 *string)
- func (o *PoliciesDefaultsUpdateParams) SetPrivateCanReplyWithApproval0(privateCanReplyWithApproval0 *string)
- func (o *PoliciesDefaultsUpdateParams) SetPublicCanFavouriteAlways0(publicCanFavouriteAlways0 *string)
- func (o *PoliciesDefaultsUpdateParams) SetPublicCanFavouriteWithApproval0(publicCanFavouriteWithApproval0 *string)
- func (o *PoliciesDefaultsUpdateParams) SetPublicCanReblogAlways0(publicCanReblogAlways0 *string)
- func (o *PoliciesDefaultsUpdateParams) SetPublicCanReblogWithApproval0(publicCanReblogWithApproval0 *string)
- func (o *PoliciesDefaultsUpdateParams) SetPublicCanReplyAlways0(publicCanReplyAlways0 *string)
- func (o *PoliciesDefaultsUpdateParams) SetPublicCanReplyWithApproval0(publicCanReplyWithApproval0 *string)
- func (o *PoliciesDefaultsUpdateParams) SetTimeout(timeout time.Duration)
- func (o *PoliciesDefaultsUpdateParams) SetUnlistedCanFavouriteAlways0(unlistedCanFavouriteAlways0 *string)
- func (o *PoliciesDefaultsUpdateParams) SetUnlistedCanFavouriteWithApproval0(unlistedCanFavouriteWithApproval0 *string)
- func (o *PoliciesDefaultsUpdateParams) SetUnlistedCanReblogAlways0(unlistedCanReblogAlways0 *string)
- func (o *PoliciesDefaultsUpdateParams) SetUnlistedCanReblogWithApproval0(unlistedCanReblogWithApproval0 *string)
- func (o *PoliciesDefaultsUpdateParams) SetUnlistedCanReplyAlways0(unlistedCanReplyAlways0 *string)
- func (o *PoliciesDefaultsUpdateParams) SetUnlistedCanReplyWithApproval0(unlistedCanReplyWithApproval0 *string)
- func (o *PoliciesDefaultsUpdateParams) WithContext(ctx context.Context) *PoliciesDefaultsUpdateParams
- func (o *PoliciesDefaultsUpdateParams) WithDefaults() *PoliciesDefaultsUpdateParams
- func (o *PoliciesDefaultsUpdateParams) WithDirectCanFavouriteAlways0(directCanFavouriteAlways0 *string) *PoliciesDefaultsUpdateParams
- func (o *PoliciesDefaultsUpdateParams) WithDirectCanFavouriteWithApproval0(directCanFavouriteWithApproval0 *string) *PoliciesDefaultsUpdateParams
- func (o *PoliciesDefaultsUpdateParams) WithDirectCanReblogAlways0(directCanReblogAlways0 *string) *PoliciesDefaultsUpdateParams
- func (o *PoliciesDefaultsUpdateParams) WithDirectCanReblogWithApproval0(directCanReblogWithApproval0 *string) *PoliciesDefaultsUpdateParams
- func (o *PoliciesDefaultsUpdateParams) WithDirectCanReplyAlways0(directCanReplyAlways0 *string) *PoliciesDefaultsUpdateParams
- func (o *PoliciesDefaultsUpdateParams) WithDirectCanReplyWithApproval0(directCanReplyWithApproval0 *string) *PoliciesDefaultsUpdateParams
- func (o *PoliciesDefaultsUpdateParams) WithHTTPClient(client *http.Client) *PoliciesDefaultsUpdateParams
- func (o *PoliciesDefaultsUpdateParams) WithPrivateCanFavouriteAlways0(privateCanFavouriteAlways0 *string) *PoliciesDefaultsUpdateParams
- func (o *PoliciesDefaultsUpdateParams) WithPrivateCanFavouriteWithApproval0(privateCanFavouriteWithApproval0 *string) *PoliciesDefaultsUpdateParams
- func (o *PoliciesDefaultsUpdateParams) WithPrivateCanReblogAlways0(privateCanReblogAlways0 *string) *PoliciesDefaultsUpdateParams
- func (o *PoliciesDefaultsUpdateParams) WithPrivateCanReblogWithApproval0(privateCanReblogWithApproval0 *string) *PoliciesDefaultsUpdateParams
- func (o *PoliciesDefaultsUpdateParams) WithPrivateCanReplyAlways0(privateCanReplyAlways0 *string) *PoliciesDefaultsUpdateParams
- func (o *PoliciesDefaultsUpdateParams) WithPrivateCanReplyWithApproval0(privateCanReplyWithApproval0 *string) *PoliciesDefaultsUpdateParams
- func (o *PoliciesDefaultsUpdateParams) WithPublicCanFavouriteAlways0(publicCanFavouriteAlways0 *string) *PoliciesDefaultsUpdateParams
- func (o *PoliciesDefaultsUpdateParams) WithPublicCanFavouriteWithApproval0(publicCanFavouriteWithApproval0 *string) *PoliciesDefaultsUpdateParams
- func (o *PoliciesDefaultsUpdateParams) WithPublicCanReblogAlways0(publicCanReblogAlways0 *string) *PoliciesDefaultsUpdateParams
- func (o *PoliciesDefaultsUpdateParams) WithPublicCanReblogWithApproval0(publicCanReblogWithApproval0 *string) *PoliciesDefaultsUpdateParams
- func (o *PoliciesDefaultsUpdateParams) WithPublicCanReplyAlways0(publicCanReplyAlways0 *string) *PoliciesDefaultsUpdateParams
- func (o *PoliciesDefaultsUpdateParams) WithPublicCanReplyWithApproval0(publicCanReplyWithApproval0 *string) *PoliciesDefaultsUpdateParams
- func (o *PoliciesDefaultsUpdateParams) WithTimeout(timeout time.Duration) *PoliciesDefaultsUpdateParams
- func (o *PoliciesDefaultsUpdateParams) WithUnlistedCanFavouriteAlways0(unlistedCanFavouriteAlways0 *string) *PoliciesDefaultsUpdateParams
- func (o *PoliciesDefaultsUpdateParams) WithUnlistedCanFavouriteWithApproval0(unlistedCanFavouriteWithApproval0 *string) *PoliciesDefaultsUpdateParams
- func (o *PoliciesDefaultsUpdateParams) WithUnlistedCanReblogAlways0(unlistedCanReblogAlways0 *string) *PoliciesDefaultsUpdateParams
- func (o *PoliciesDefaultsUpdateParams) WithUnlistedCanReblogWithApproval0(unlistedCanReblogWithApproval0 *string) *PoliciesDefaultsUpdateParams
- func (o *PoliciesDefaultsUpdateParams) WithUnlistedCanReplyAlways0(unlistedCanReplyAlways0 *string) *PoliciesDefaultsUpdateParams
- func (o *PoliciesDefaultsUpdateParams) WithUnlistedCanReplyWithApproval0(unlistedCanReplyWithApproval0 *string) *PoliciesDefaultsUpdateParams
- func (o *PoliciesDefaultsUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PoliciesDefaultsUpdateReader
- type PoliciesDefaultsUpdateUnauthorized
- func (o *PoliciesDefaultsUpdateUnauthorized) Code() int
- func (o *PoliciesDefaultsUpdateUnauthorized) Error() string
- func (o *PoliciesDefaultsUpdateUnauthorized) IsClientError() bool
- func (o *PoliciesDefaultsUpdateUnauthorized) IsCode(code int) bool
- func (o *PoliciesDefaultsUpdateUnauthorized) IsRedirect() bool
- func (o *PoliciesDefaultsUpdateUnauthorized) IsServerError() bool
- func (o *PoliciesDefaultsUpdateUnauthorized) IsSuccess() bool
- func (o *PoliciesDefaultsUpdateUnauthorized) String() string
- type PoliciesDefaultsUpdateUnprocessableEntity
- func (o *PoliciesDefaultsUpdateUnprocessableEntity) Code() int
- func (o *PoliciesDefaultsUpdateUnprocessableEntity) Error() string
- func (o *PoliciesDefaultsUpdateUnprocessableEntity) IsClientError() bool
- func (o *PoliciesDefaultsUpdateUnprocessableEntity) IsCode(code int) bool
- func (o *PoliciesDefaultsUpdateUnprocessableEntity) IsRedirect() bool
- func (o *PoliciesDefaultsUpdateUnprocessableEntity) IsServerError() bool
- func (o *PoliciesDefaultsUpdateUnprocessableEntity) IsSuccess() bool
- func (o *PoliciesDefaultsUpdateUnprocessableEntity) String() string
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 WithContentTypeApplicationxWwwFormUrlencoded ¶
func WithContentTypeApplicationxWwwFormUrlencoded(r *runtime.ClientOperation)
WithContentTypeApplicationxWwwFormUrlencoded sets the Content-Type header to "application/x-www-form-urlencoded".
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 interaction policies API
func (*Client) PoliciesDefaultsGet ¶
func (a *Client) PoliciesDefaultsGet(params *PoliciesDefaultsGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PoliciesDefaultsGetOK, error)
PoliciesDefaultsGet gets default interaction policies for new statuses created by you
func (*Client) PoliciesDefaultsUpdate ¶
func (a *Client) PoliciesDefaultsUpdate(params *PoliciesDefaultsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PoliciesDefaultsUpdateOK, error)
PoliciesDefaultsUpdate updates default interaction policies per visibility level for new statuses created by you If submitting using form data, use the following pattern:
`VISIBILITY[INTERACTION_TYPE][CONDITION][INDEX]=Value`
For example: `public[can_reply][always][0]=author`
Using `curl` this might look something like:
`curl -F 'public[can_reply][always][0]=author' -F 'public[can_reply][always][1]=followers'`
The JSON equivalent would be:
`curl -H 'Content-Type: application/json' -d '{"public":{"can_reply":{"always":["author","followers"]}}}'`
Any visibility level left unspecified in the request body will be returned to the default.
Ie., in the example above, "public" would be updated, but "unlisted", "private", and "direct" would be reset to defaults.
The server will perform some normalization on submitted policies so that you can't submit totally invalid policies.
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 { PoliciesDefaultsGet(params *PoliciesDefaultsGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PoliciesDefaultsGetOK, error) PoliciesDefaultsUpdate(params *PoliciesDefaultsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PoliciesDefaultsUpdateOK, 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 interaction policies API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new interaction policies 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 interaction policies 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 PoliciesDefaultsGetInternalServerError ¶
type PoliciesDefaultsGetInternalServerError struct { }
PoliciesDefaultsGetInternalServerError describes a response with status code 500, with default header values.
internal server error
func NewPoliciesDefaultsGetInternalServerError ¶
func NewPoliciesDefaultsGetInternalServerError() *PoliciesDefaultsGetInternalServerError
NewPoliciesDefaultsGetInternalServerError creates a PoliciesDefaultsGetInternalServerError with default headers values
func (*PoliciesDefaultsGetInternalServerError) Code ¶
func (o *PoliciesDefaultsGetInternalServerError) Code() int
Code gets the status code for the policies defaults get internal server error response
func (*PoliciesDefaultsGetInternalServerError) Error ¶
func (o *PoliciesDefaultsGetInternalServerError) Error() string
func (*PoliciesDefaultsGetInternalServerError) IsClientError ¶
func (o *PoliciesDefaultsGetInternalServerError) IsClientError() bool
IsClientError returns true when this policies defaults get internal server error response has a 4xx status code
func (*PoliciesDefaultsGetInternalServerError) IsCode ¶
func (o *PoliciesDefaultsGetInternalServerError) IsCode(code int) bool
IsCode returns true when this policies defaults get internal server error response a status code equal to that given
func (*PoliciesDefaultsGetInternalServerError) IsRedirect ¶
func (o *PoliciesDefaultsGetInternalServerError) IsRedirect() bool
IsRedirect returns true when this policies defaults get internal server error response has a 3xx status code
func (*PoliciesDefaultsGetInternalServerError) IsServerError ¶
func (o *PoliciesDefaultsGetInternalServerError) IsServerError() bool
IsServerError returns true when this policies defaults get internal server error response has a 5xx status code
func (*PoliciesDefaultsGetInternalServerError) IsSuccess ¶
func (o *PoliciesDefaultsGetInternalServerError) IsSuccess() bool
IsSuccess returns true when this policies defaults get internal server error response has a 2xx status code
func (*PoliciesDefaultsGetInternalServerError) String ¶
func (o *PoliciesDefaultsGetInternalServerError) String() string
type PoliciesDefaultsGetNotAcceptable ¶
type PoliciesDefaultsGetNotAcceptable struct { }
PoliciesDefaultsGetNotAcceptable describes a response with status code 406, with default header values.
not acceptable
func NewPoliciesDefaultsGetNotAcceptable ¶
func NewPoliciesDefaultsGetNotAcceptable() *PoliciesDefaultsGetNotAcceptable
NewPoliciesDefaultsGetNotAcceptable creates a PoliciesDefaultsGetNotAcceptable with default headers values
func (*PoliciesDefaultsGetNotAcceptable) Code ¶
func (o *PoliciesDefaultsGetNotAcceptable) Code() int
Code gets the status code for the policies defaults get not acceptable response
func (*PoliciesDefaultsGetNotAcceptable) Error ¶
func (o *PoliciesDefaultsGetNotAcceptable) Error() string
func (*PoliciesDefaultsGetNotAcceptable) IsClientError ¶
func (o *PoliciesDefaultsGetNotAcceptable) IsClientError() bool
IsClientError returns true when this policies defaults get not acceptable response has a 4xx status code
func (*PoliciesDefaultsGetNotAcceptable) IsCode ¶
func (o *PoliciesDefaultsGetNotAcceptable) IsCode(code int) bool
IsCode returns true when this policies defaults get not acceptable response a status code equal to that given
func (*PoliciesDefaultsGetNotAcceptable) IsRedirect ¶
func (o *PoliciesDefaultsGetNotAcceptable) IsRedirect() bool
IsRedirect returns true when this policies defaults get not acceptable response has a 3xx status code
func (*PoliciesDefaultsGetNotAcceptable) IsServerError ¶
func (o *PoliciesDefaultsGetNotAcceptable) IsServerError() bool
IsServerError returns true when this policies defaults get not acceptable response has a 5xx status code
func (*PoliciesDefaultsGetNotAcceptable) IsSuccess ¶
func (o *PoliciesDefaultsGetNotAcceptable) IsSuccess() bool
IsSuccess returns true when this policies defaults get not acceptable response has a 2xx status code
func (*PoliciesDefaultsGetNotAcceptable) String ¶
func (o *PoliciesDefaultsGetNotAcceptable) String() string
type PoliciesDefaultsGetOK ¶
type PoliciesDefaultsGetOK struct {
Payload *models.DefaultPolicies
}
PoliciesDefaultsGetOK describes a response with status code 200, with default header values.
A default policies object containing a policy for each status visibility.
func NewPoliciesDefaultsGetOK ¶
func NewPoliciesDefaultsGetOK() *PoliciesDefaultsGetOK
NewPoliciesDefaultsGetOK creates a PoliciesDefaultsGetOK with default headers values
func (*PoliciesDefaultsGetOK) Code ¶
func (o *PoliciesDefaultsGetOK) Code() int
Code gets the status code for the policies defaults get o k response
func (*PoliciesDefaultsGetOK) Error ¶
func (o *PoliciesDefaultsGetOK) Error() string
func (*PoliciesDefaultsGetOK) GetPayload ¶
func (o *PoliciesDefaultsGetOK) GetPayload() *models.DefaultPolicies
func (*PoliciesDefaultsGetOK) IsClientError ¶
func (o *PoliciesDefaultsGetOK) IsClientError() bool
IsClientError returns true when this policies defaults get o k response has a 4xx status code
func (*PoliciesDefaultsGetOK) IsCode ¶
func (o *PoliciesDefaultsGetOK) IsCode(code int) bool
IsCode returns true when this policies defaults get o k response a status code equal to that given
func (*PoliciesDefaultsGetOK) IsRedirect ¶
func (o *PoliciesDefaultsGetOK) IsRedirect() bool
IsRedirect returns true when this policies defaults get o k response has a 3xx status code
func (*PoliciesDefaultsGetOK) IsServerError ¶
func (o *PoliciesDefaultsGetOK) IsServerError() bool
IsServerError returns true when this policies defaults get o k response has a 5xx status code
func (*PoliciesDefaultsGetOK) IsSuccess ¶
func (o *PoliciesDefaultsGetOK) IsSuccess() bool
IsSuccess returns true when this policies defaults get o k response has a 2xx status code
func (*PoliciesDefaultsGetOK) String ¶
func (o *PoliciesDefaultsGetOK) String() string
type PoliciesDefaultsGetParams ¶
type PoliciesDefaultsGetParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PoliciesDefaultsGetParams contains all the parameters to send to the API endpoint
for the policies defaults get operation. Typically these are written to a http.Request.
func NewPoliciesDefaultsGetParams ¶
func NewPoliciesDefaultsGetParams() *PoliciesDefaultsGetParams
NewPoliciesDefaultsGetParams creates a new PoliciesDefaultsGetParams 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 NewPoliciesDefaultsGetParamsWithContext ¶
func NewPoliciesDefaultsGetParamsWithContext(ctx context.Context) *PoliciesDefaultsGetParams
NewPoliciesDefaultsGetParamsWithContext creates a new PoliciesDefaultsGetParams object with the ability to set a context for a request.
func NewPoliciesDefaultsGetParamsWithHTTPClient ¶
func NewPoliciesDefaultsGetParamsWithHTTPClient(client *http.Client) *PoliciesDefaultsGetParams
NewPoliciesDefaultsGetParamsWithHTTPClient creates a new PoliciesDefaultsGetParams object with the ability to set a custom HTTPClient for a request.
func NewPoliciesDefaultsGetParamsWithTimeout ¶
func NewPoliciesDefaultsGetParamsWithTimeout(timeout time.Duration) *PoliciesDefaultsGetParams
NewPoliciesDefaultsGetParamsWithTimeout creates a new PoliciesDefaultsGetParams object with the ability to set a timeout on a request.
func (*PoliciesDefaultsGetParams) SetContext ¶
func (o *PoliciesDefaultsGetParams) SetContext(ctx context.Context)
SetContext adds the context to the policies defaults get params
func (*PoliciesDefaultsGetParams) SetDefaults ¶
func (o *PoliciesDefaultsGetParams) SetDefaults()
SetDefaults hydrates default values in the policies defaults get params (not the query body).
All values with no default are reset to their zero value.
func (*PoliciesDefaultsGetParams) SetHTTPClient ¶
func (o *PoliciesDefaultsGetParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the policies defaults get params
func (*PoliciesDefaultsGetParams) SetTimeout ¶
func (o *PoliciesDefaultsGetParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the policies defaults get params
func (*PoliciesDefaultsGetParams) WithContext ¶
func (o *PoliciesDefaultsGetParams) WithContext(ctx context.Context) *PoliciesDefaultsGetParams
WithContext adds the context to the policies defaults get params
func (*PoliciesDefaultsGetParams) WithDefaults ¶
func (o *PoliciesDefaultsGetParams) WithDefaults() *PoliciesDefaultsGetParams
WithDefaults hydrates default values in the policies defaults get params (not the query body).
All values with no default are reset to their zero value.
func (*PoliciesDefaultsGetParams) WithHTTPClient ¶
func (o *PoliciesDefaultsGetParams) WithHTTPClient(client *http.Client) *PoliciesDefaultsGetParams
WithHTTPClient adds the HTTPClient to the policies defaults get params
func (*PoliciesDefaultsGetParams) WithTimeout ¶
func (o *PoliciesDefaultsGetParams) WithTimeout(timeout time.Duration) *PoliciesDefaultsGetParams
WithTimeout adds the timeout to the policies defaults get params
func (*PoliciesDefaultsGetParams) WriteToRequest ¶
func (o *PoliciesDefaultsGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PoliciesDefaultsGetReader ¶
type PoliciesDefaultsGetReader struct {
// contains filtered or unexported fields
}
PoliciesDefaultsGetReader is a Reader for the PoliciesDefaultsGet structure.
func (*PoliciesDefaultsGetReader) ReadResponse ¶
func (o *PoliciesDefaultsGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PoliciesDefaultsGetUnauthorized ¶
type PoliciesDefaultsGetUnauthorized struct { }
PoliciesDefaultsGetUnauthorized describes a response with status code 401, with default header values.
unauthorized
func NewPoliciesDefaultsGetUnauthorized ¶
func NewPoliciesDefaultsGetUnauthorized() *PoliciesDefaultsGetUnauthorized
NewPoliciesDefaultsGetUnauthorized creates a PoliciesDefaultsGetUnauthorized with default headers values
func (*PoliciesDefaultsGetUnauthorized) Code ¶
func (o *PoliciesDefaultsGetUnauthorized) Code() int
Code gets the status code for the policies defaults get unauthorized response
func (*PoliciesDefaultsGetUnauthorized) Error ¶
func (o *PoliciesDefaultsGetUnauthorized) Error() string
func (*PoliciesDefaultsGetUnauthorized) IsClientError ¶
func (o *PoliciesDefaultsGetUnauthorized) IsClientError() bool
IsClientError returns true when this policies defaults get unauthorized response has a 4xx status code
func (*PoliciesDefaultsGetUnauthorized) IsCode ¶
func (o *PoliciesDefaultsGetUnauthorized) IsCode(code int) bool
IsCode returns true when this policies defaults get unauthorized response a status code equal to that given
func (*PoliciesDefaultsGetUnauthorized) IsRedirect ¶
func (o *PoliciesDefaultsGetUnauthorized) IsRedirect() bool
IsRedirect returns true when this policies defaults get unauthorized response has a 3xx status code
func (*PoliciesDefaultsGetUnauthorized) IsServerError ¶
func (o *PoliciesDefaultsGetUnauthorized) IsServerError() bool
IsServerError returns true when this policies defaults get unauthorized response has a 5xx status code
func (*PoliciesDefaultsGetUnauthorized) IsSuccess ¶
func (o *PoliciesDefaultsGetUnauthorized) IsSuccess() bool
IsSuccess returns true when this policies defaults get unauthorized response has a 2xx status code
func (*PoliciesDefaultsGetUnauthorized) String ¶
func (o *PoliciesDefaultsGetUnauthorized) String() string
type PoliciesDefaultsUpdateBadRequest ¶
type PoliciesDefaultsUpdateBadRequest struct { }
PoliciesDefaultsUpdateBadRequest describes a response with status code 400, with default header values.
bad request
func NewPoliciesDefaultsUpdateBadRequest ¶
func NewPoliciesDefaultsUpdateBadRequest() *PoliciesDefaultsUpdateBadRequest
NewPoliciesDefaultsUpdateBadRequest creates a PoliciesDefaultsUpdateBadRequest with default headers values
func (*PoliciesDefaultsUpdateBadRequest) Code ¶
func (o *PoliciesDefaultsUpdateBadRequest) Code() int
Code gets the status code for the policies defaults update bad request response
func (*PoliciesDefaultsUpdateBadRequest) Error ¶
func (o *PoliciesDefaultsUpdateBadRequest) Error() string
func (*PoliciesDefaultsUpdateBadRequest) IsClientError ¶
func (o *PoliciesDefaultsUpdateBadRequest) IsClientError() bool
IsClientError returns true when this policies defaults update bad request response has a 4xx status code
func (*PoliciesDefaultsUpdateBadRequest) IsCode ¶
func (o *PoliciesDefaultsUpdateBadRequest) IsCode(code int) bool
IsCode returns true when this policies defaults update bad request response a status code equal to that given
func (*PoliciesDefaultsUpdateBadRequest) IsRedirect ¶
func (o *PoliciesDefaultsUpdateBadRequest) IsRedirect() bool
IsRedirect returns true when this policies defaults update bad request response has a 3xx status code
func (*PoliciesDefaultsUpdateBadRequest) IsServerError ¶
func (o *PoliciesDefaultsUpdateBadRequest) IsServerError() bool
IsServerError returns true when this policies defaults update bad request response has a 5xx status code
func (*PoliciesDefaultsUpdateBadRequest) IsSuccess ¶
func (o *PoliciesDefaultsUpdateBadRequest) IsSuccess() bool
IsSuccess returns true when this policies defaults update bad request response has a 2xx status code
func (*PoliciesDefaultsUpdateBadRequest) String ¶
func (o *PoliciesDefaultsUpdateBadRequest) String() string
type PoliciesDefaultsUpdateInternalServerError ¶
type PoliciesDefaultsUpdateInternalServerError struct { }
PoliciesDefaultsUpdateInternalServerError describes a response with status code 500, with default header values.
internal server error
func NewPoliciesDefaultsUpdateInternalServerError ¶
func NewPoliciesDefaultsUpdateInternalServerError() *PoliciesDefaultsUpdateInternalServerError
NewPoliciesDefaultsUpdateInternalServerError creates a PoliciesDefaultsUpdateInternalServerError with default headers values
func (*PoliciesDefaultsUpdateInternalServerError) Code ¶
func (o *PoliciesDefaultsUpdateInternalServerError) Code() int
Code gets the status code for the policies defaults update internal server error response
func (*PoliciesDefaultsUpdateInternalServerError) Error ¶
func (o *PoliciesDefaultsUpdateInternalServerError) Error() string
func (*PoliciesDefaultsUpdateInternalServerError) IsClientError ¶
func (o *PoliciesDefaultsUpdateInternalServerError) IsClientError() bool
IsClientError returns true when this policies defaults update internal server error response has a 4xx status code
func (*PoliciesDefaultsUpdateInternalServerError) IsCode ¶
func (o *PoliciesDefaultsUpdateInternalServerError) IsCode(code int) bool
IsCode returns true when this policies defaults update internal server error response a status code equal to that given
func (*PoliciesDefaultsUpdateInternalServerError) IsRedirect ¶
func (o *PoliciesDefaultsUpdateInternalServerError) IsRedirect() bool
IsRedirect returns true when this policies defaults update internal server error response has a 3xx status code
func (*PoliciesDefaultsUpdateInternalServerError) IsServerError ¶
func (o *PoliciesDefaultsUpdateInternalServerError) IsServerError() bool
IsServerError returns true when this policies defaults update internal server error response has a 5xx status code
func (*PoliciesDefaultsUpdateInternalServerError) IsSuccess ¶
func (o *PoliciesDefaultsUpdateInternalServerError) IsSuccess() bool
IsSuccess returns true when this policies defaults update internal server error response has a 2xx status code
func (*PoliciesDefaultsUpdateInternalServerError) String ¶
func (o *PoliciesDefaultsUpdateInternalServerError) String() string
type PoliciesDefaultsUpdateNotAcceptable ¶
type PoliciesDefaultsUpdateNotAcceptable struct { }
PoliciesDefaultsUpdateNotAcceptable describes a response with status code 406, with default header values.
not acceptable
func NewPoliciesDefaultsUpdateNotAcceptable ¶
func NewPoliciesDefaultsUpdateNotAcceptable() *PoliciesDefaultsUpdateNotAcceptable
NewPoliciesDefaultsUpdateNotAcceptable creates a PoliciesDefaultsUpdateNotAcceptable with default headers values
func (*PoliciesDefaultsUpdateNotAcceptable) Code ¶
func (o *PoliciesDefaultsUpdateNotAcceptable) Code() int
Code gets the status code for the policies defaults update not acceptable response
func (*PoliciesDefaultsUpdateNotAcceptable) Error ¶
func (o *PoliciesDefaultsUpdateNotAcceptable) Error() string
func (*PoliciesDefaultsUpdateNotAcceptable) IsClientError ¶
func (o *PoliciesDefaultsUpdateNotAcceptable) IsClientError() bool
IsClientError returns true when this policies defaults update not acceptable response has a 4xx status code
func (*PoliciesDefaultsUpdateNotAcceptable) IsCode ¶
func (o *PoliciesDefaultsUpdateNotAcceptable) IsCode(code int) bool
IsCode returns true when this policies defaults update not acceptable response a status code equal to that given
func (*PoliciesDefaultsUpdateNotAcceptable) IsRedirect ¶
func (o *PoliciesDefaultsUpdateNotAcceptable) IsRedirect() bool
IsRedirect returns true when this policies defaults update not acceptable response has a 3xx status code
func (*PoliciesDefaultsUpdateNotAcceptable) IsServerError ¶
func (o *PoliciesDefaultsUpdateNotAcceptable) IsServerError() bool
IsServerError returns true when this policies defaults update not acceptable response has a 5xx status code
func (*PoliciesDefaultsUpdateNotAcceptable) IsSuccess ¶
func (o *PoliciesDefaultsUpdateNotAcceptable) IsSuccess() bool
IsSuccess returns true when this policies defaults update not acceptable response has a 2xx status code
func (*PoliciesDefaultsUpdateNotAcceptable) String ¶
func (o *PoliciesDefaultsUpdateNotAcceptable) String() string
type PoliciesDefaultsUpdateOK ¶
type PoliciesDefaultsUpdateOK struct {
Payload *models.DefaultPolicies
}
PoliciesDefaultsUpdateOK describes a response with status code 200, with default header values.
Updated default policies object containing a policy for each status visibility.
func NewPoliciesDefaultsUpdateOK ¶
func NewPoliciesDefaultsUpdateOK() *PoliciesDefaultsUpdateOK
NewPoliciesDefaultsUpdateOK creates a PoliciesDefaultsUpdateOK with default headers values
func (*PoliciesDefaultsUpdateOK) Code ¶
func (o *PoliciesDefaultsUpdateOK) Code() int
Code gets the status code for the policies defaults update o k response
func (*PoliciesDefaultsUpdateOK) Error ¶
func (o *PoliciesDefaultsUpdateOK) Error() string
func (*PoliciesDefaultsUpdateOK) GetPayload ¶
func (o *PoliciesDefaultsUpdateOK) GetPayload() *models.DefaultPolicies
func (*PoliciesDefaultsUpdateOK) IsClientError ¶
func (o *PoliciesDefaultsUpdateOK) IsClientError() bool
IsClientError returns true when this policies defaults update o k response has a 4xx status code
func (*PoliciesDefaultsUpdateOK) IsCode ¶
func (o *PoliciesDefaultsUpdateOK) IsCode(code int) bool
IsCode returns true when this policies defaults update o k response a status code equal to that given
func (*PoliciesDefaultsUpdateOK) IsRedirect ¶
func (o *PoliciesDefaultsUpdateOK) IsRedirect() bool
IsRedirect returns true when this policies defaults update o k response has a 3xx status code
func (*PoliciesDefaultsUpdateOK) IsServerError ¶
func (o *PoliciesDefaultsUpdateOK) IsServerError() bool
IsServerError returns true when this policies defaults update o k response has a 5xx status code
func (*PoliciesDefaultsUpdateOK) IsSuccess ¶
func (o *PoliciesDefaultsUpdateOK) IsSuccess() bool
IsSuccess returns true when this policies defaults update o k response has a 2xx status code
func (*PoliciesDefaultsUpdateOK) String ¶
func (o *PoliciesDefaultsUpdateOK) String() string
type PoliciesDefaultsUpdateParams ¶
type PoliciesDefaultsUpdateParams struct { /* DirectCanFavouriteAlways0. Nth entry for direct.can_favourite.always. */ DirectCanFavouriteAlways0 *string /* DirectCanFavouriteWithApproval0. Nth entry for direct.can_favourite.with_approval. */ DirectCanFavouriteWithApproval0 *string /* DirectCanReblogAlways0. Nth entry for direct.can_reblog.always. */ DirectCanReblogAlways0 *string /* DirectCanReblogWithApproval0. Nth entry for direct.can_reblog.with_approval. */ DirectCanReblogWithApproval0 *string /* DirectCanReplyAlways0. Nth entry for direct.can_reply.always. */ DirectCanReplyAlways0 *string /* DirectCanReplyWithApproval0. Nth entry for direct.can_reply.with_approval. */ DirectCanReplyWithApproval0 *string /* PrivateCanFavouriteAlways0. Nth entry for private.can_favourite.always. */ PrivateCanFavouriteAlways0 *string /* PrivateCanFavouriteWithApproval0. Nth entry for private.can_favourite.with_approval. */ PrivateCanFavouriteWithApproval0 *string /* PrivateCanReblogAlways0. Nth entry for private.can_reblog.always. */ PrivateCanReblogAlways0 *string /* PrivateCanReblogWithApproval0. Nth entry for private.can_reblog.with_approval. */ PrivateCanReblogWithApproval0 *string /* PrivateCanReplyAlways0. Nth entry for private.can_reply.always. */ PrivateCanReplyAlways0 *string /* PrivateCanReplyWithApproval0. Nth entry for private.can_reply.with_approval. */ PrivateCanReplyWithApproval0 *string /* PublicCanFavouriteAlways0. Nth entry for public.can_favourite.always. */ PublicCanFavouriteAlways0 *string /* PublicCanFavouriteWithApproval0. Nth entry for public.can_favourite.with_approval. */ PublicCanFavouriteWithApproval0 *string /* PublicCanReblogAlways0. Nth entry for public.can_reblog.always. */ PublicCanReblogAlways0 *string /* PublicCanReblogWithApproval0. Nth entry for public.can_reblog.with_approval. */ PublicCanReblogWithApproval0 *string /* PublicCanReplyAlways0. Nth entry for public.can_reply.always. */ PublicCanReplyAlways0 *string /* PublicCanReplyWithApproval0. Nth entry for public.can_reply.with_approval. */ PublicCanReplyWithApproval0 *string /* UnlistedCanFavouriteAlways0. Nth entry for unlisted.can_favourite.always. */ UnlistedCanFavouriteAlways0 *string /* UnlistedCanFavouriteWithApproval0. Nth entry for unlisted.can_favourite.with_approval. */ UnlistedCanFavouriteWithApproval0 *string /* UnlistedCanReblogAlways0. Nth entry for unlisted.can_reblog.always. */ UnlistedCanReblogAlways0 *string /* UnlistedCanReblogWithApproval0. Nth entry for unlisted.can_reblog.with_approval. */ UnlistedCanReblogWithApproval0 *string /* UnlistedCanReplyAlways0. Nth entry for unlisted.can_reply.always. */ UnlistedCanReplyAlways0 *string /* UnlistedCanReplyWithApproval0. Nth entry for unlisted.can_reply.with_approval. */ UnlistedCanReplyWithApproval0 *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PoliciesDefaultsUpdateParams contains all the parameters to send to the API endpoint
for the policies defaults update operation. Typically these are written to a http.Request.
func NewPoliciesDefaultsUpdateParams ¶
func NewPoliciesDefaultsUpdateParams() *PoliciesDefaultsUpdateParams
NewPoliciesDefaultsUpdateParams creates a new PoliciesDefaultsUpdateParams 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 NewPoliciesDefaultsUpdateParamsWithContext ¶
func NewPoliciesDefaultsUpdateParamsWithContext(ctx context.Context) *PoliciesDefaultsUpdateParams
NewPoliciesDefaultsUpdateParamsWithContext creates a new PoliciesDefaultsUpdateParams object with the ability to set a context for a request.
func NewPoliciesDefaultsUpdateParamsWithHTTPClient ¶
func NewPoliciesDefaultsUpdateParamsWithHTTPClient(client *http.Client) *PoliciesDefaultsUpdateParams
NewPoliciesDefaultsUpdateParamsWithHTTPClient creates a new PoliciesDefaultsUpdateParams object with the ability to set a custom HTTPClient for a request.
func NewPoliciesDefaultsUpdateParamsWithTimeout ¶
func NewPoliciesDefaultsUpdateParamsWithTimeout(timeout time.Duration) *PoliciesDefaultsUpdateParams
NewPoliciesDefaultsUpdateParamsWithTimeout creates a new PoliciesDefaultsUpdateParams object with the ability to set a timeout on a request.
func (*PoliciesDefaultsUpdateParams) SetContext ¶
func (o *PoliciesDefaultsUpdateParams) SetContext(ctx context.Context)
SetContext adds the context to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) SetDefaults ¶
func (o *PoliciesDefaultsUpdateParams) SetDefaults()
SetDefaults hydrates default values in the policies defaults update params (not the query body).
All values with no default are reset to their zero value.
func (*PoliciesDefaultsUpdateParams) SetDirectCanFavouriteAlways0 ¶
func (o *PoliciesDefaultsUpdateParams) SetDirectCanFavouriteAlways0(directCanFavouriteAlways0 *string)
SetDirectCanFavouriteAlways0 adds the directCanFavouriteAlways0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) SetDirectCanFavouriteWithApproval0 ¶
func (o *PoliciesDefaultsUpdateParams) SetDirectCanFavouriteWithApproval0(directCanFavouriteWithApproval0 *string)
SetDirectCanFavouriteWithApproval0 adds the directCanFavouriteWithApproval0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) SetDirectCanReblogAlways0 ¶
func (o *PoliciesDefaultsUpdateParams) SetDirectCanReblogAlways0(directCanReblogAlways0 *string)
SetDirectCanReblogAlways0 adds the directCanReblogAlways0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) SetDirectCanReblogWithApproval0 ¶
func (o *PoliciesDefaultsUpdateParams) SetDirectCanReblogWithApproval0(directCanReblogWithApproval0 *string)
SetDirectCanReblogWithApproval0 adds the directCanReblogWithApproval0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) SetDirectCanReplyAlways0 ¶
func (o *PoliciesDefaultsUpdateParams) SetDirectCanReplyAlways0(directCanReplyAlways0 *string)
SetDirectCanReplyAlways0 adds the directCanReplyAlways0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) SetDirectCanReplyWithApproval0 ¶
func (o *PoliciesDefaultsUpdateParams) SetDirectCanReplyWithApproval0(directCanReplyWithApproval0 *string)
SetDirectCanReplyWithApproval0 adds the directCanReplyWithApproval0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) SetHTTPClient ¶
func (o *PoliciesDefaultsUpdateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) SetPrivateCanFavouriteAlways0 ¶
func (o *PoliciesDefaultsUpdateParams) SetPrivateCanFavouriteAlways0(privateCanFavouriteAlways0 *string)
SetPrivateCanFavouriteAlways0 adds the privateCanFavouriteAlways0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) SetPrivateCanFavouriteWithApproval0 ¶
func (o *PoliciesDefaultsUpdateParams) SetPrivateCanFavouriteWithApproval0(privateCanFavouriteWithApproval0 *string)
SetPrivateCanFavouriteWithApproval0 adds the privateCanFavouriteWithApproval0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) SetPrivateCanReblogAlways0 ¶
func (o *PoliciesDefaultsUpdateParams) SetPrivateCanReblogAlways0(privateCanReblogAlways0 *string)
SetPrivateCanReblogAlways0 adds the privateCanReblogAlways0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) SetPrivateCanReblogWithApproval0 ¶
func (o *PoliciesDefaultsUpdateParams) SetPrivateCanReblogWithApproval0(privateCanReblogWithApproval0 *string)
SetPrivateCanReblogWithApproval0 adds the privateCanReblogWithApproval0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) SetPrivateCanReplyAlways0 ¶
func (o *PoliciesDefaultsUpdateParams) SetPrivateCanReplyAlways0(privateCanReplyAlways0 *string)
SetPrivateCanReplyAlways0 adds the privateCanReplyAlways0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) SetPrivateCanReplyWithApproval0 ¶
func (o *PoliciesDefaultsUpdateParams) SetPrivateCanReplyWithApproval0(privateCanReplyWithApproval0 *string)
SetPrivateCanReplyWithApproval0 adds the privateCanReplyWithApproval0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) SetPublicCanFavouriteAlways0 ¶
func (o *PoliciesDefaultsUpdateParams) SetPublicCanFavouriteAlways0(publicCanFavouriteAlways0 *string)
SetPublicCanFavouriteAlways0 adds the publicCanFavouriteAlways0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) SetPublicCanFavouriteWithApproval0 ¶
func (o *PoliciesDefaultsUpdateParams) SetPublicCanFavouriteWithApproval0(publicCanFavouriteWithApproval0 *string)
SetPublicCanFavouriteWithApproval0 adds the publicCanFavouriteWithApproval0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) SetPublicCanReblogAlways0 ¶
func (o *PoliciesDefaultsUpdateParams) SetPublicCanReblogAlways0(publicCanReblogAlways0 *string)
SetPublicCanReblogAlways0 adds the publicCanReblogAlways0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) SetPublicCanReblogWithApproval0 ¶
func (o *PoliciesDefaultsUpdateParams) SetPublicCanReblogWithApproval0(publicCanReblogWithApproval0 *string)
SetPublicCanReblogWithApproval0 adds the publicCanReblogWithApproval0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) SetPublicCanReplyAlways0 ¶
func (o *PoliciesDefaultsUpdateParams) SetPublicCanReplyAlways0(publicCanReplyAlways0 *string)
SetPublicCanReplyAlways0 adds the publicCanReplyAlways0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) SetPublicCanReplyWithApproval0 ¶
func (o *PoliciesDefaultsUpdateParams) SetPublicCanReplyWithApproval0(publicCanReplyWithApproval0 *string)
SetPublicCanReplyWithApproval0 adds the publicCanReplyWithApproval0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) SetTimeout ¶
func (o *PoliciesDefaultsUpdateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) SetUnlistedCanFavouriteAlways0 ¶
func (o *PoliciesDefaultsUpdateParams) SetUnlistedCanFavouriteAlways0(unlistedCanFavouriteAlways0 *string)
SetUnlistedCanFavouriteAlways0 adds the unlistedCanFavouriteAlways0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) SetUnlistedCanFavouriteWithApproval0 ¶
func (o *PoliciesDefaultsUpdateParams) SetUnlistedCanFavouriteWithApproval0(unlistedCanFavouriteWithApproval0 *string)
SetUnlistedCanFavouriteWithApproval0 adds the unlistedCanFavouriteWithApproval0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) SetUnlistedCanReblogAlways0 ¶
func (o *PoliciesDefaultsUpdateParams) SetUnlistedCanReblogAlways0(unlistedCanReblogAlways0 *string)
SetUnlistedCanReblogAlways0 adds the unlistedCanReblogAlways0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) SetUnlistedCanReblogWithApproval0 ¶
func (o *PoliciesDefaultsUpdateParams) SetUnlistedCanReblogWithApproval0(unlistedCanReblogWithApproval0 *string)
SetUnlistedCanReblogWithApproval0 adds the unlistedCanReblogWithApproval0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) SetUnlistedCanReplyAlways0 ¶
func (o *PoliciesDefaultsUpdateParams) SetUnlistedCanReplyAlways0(unlistedCanReplyAlways0 *string)
SetUnlistedCanReplyAlways0 adds the unlistedCanReplyAlways0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) SetUnlistedCanReplyWithApproval0 ¶
func (o *PoliciesDefaultsUpdateParams) SetUnlistedCanReplyWithApproval0(unlistedCanReplyWithApproval0 *string)
SetUnlistedCanReplyWithApproval0 adds the unlistedCanReplyWithApproval0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) WithContext ¶
func (o *PoliciesDefaultsUpdateParams) WithContext(ctx context.Context) *PoliciesDefaultsUpdateParams
WithContext adds the context to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) WithDefaults ¶
func (o *PoliciesDefaultsUpdateParams) WithDefaults() *PoliciesDefaultsUpdateParams
WithDefaults hydrates default values in the policies defaults update params (not the query body).
All values with no default are reset to their zero value.
func (*PoliciesDefaultsUpdateParams) WithDirectCanFavouriteAlways0 ¶
func (o *PoliciesDefaultsUpdateParams) WithDirectCanFavouriteAlways0(directCanFavouriteAlways0 *string) *PoliciesDefaultsUpdateParams
WithDirectCanFavouriteAlways0 adds the directCanFavouriteAlways0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) WithDirectCanFavouriteWithApproval0 ¶
func (o *PoliciesDefaultsUpdateParams) WithDirectCanFavouriteWithApproval0(directCanFavouriteWithApproval0 *string) *PoliciesDefaultsUpdateParams
WithDirectCanFavouriteWithApproval0 adds the directCanFavouriteWithApproval0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) WithDirectCanReblogAlways0 ¶
func (o *PoliciesDefaultsUpdateParams) WithDirectCanReblogAlways0(directCanReblogAlways0 *string) *PoliciesDefaultsUpdateParams
WithDirectCanReblogAlways0 adds the directCanReblogAlways0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) WithDirectCanReblogWithApproval0 ¶
func (o *PoliciesDefaultsUpdateParams) WithDirectCanReblogWithApproval0(directCanReblogWithApproval0 *string) *PoliciesDefaultsUpdateParams
WithDirectCanReblogWithApproval0 adds the directCanReblogWithApproval0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) WithDirectCanReplyAlways0 ¶
func (o *PoliciesDefaultsUpdateParams) WithDirectCanReplyAlways0(directCanReplyAlways0 *string) *PoliciesDefaultsUpdateParams
WithDirectCanReplyAlways0 adds the directCanReplyAlways0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) WithDirectCanReplyWithApproval0 ¶
func (o *PoliciesDefaultsUpdateParams) WithDirectCanReplyWithApproval0(directCanReplyWithApproval0 *string) *PoliciesDefaultsUpdateParams
WithDirectCanReplyWithApproval0 adds the directCanReplyWithApproval0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) WithHTTPClient ¶
func (o *PoliciesDefaultsUpdateParams) WithHTTPClient(client *http.Client) *PoliciesDefaultsUpdateParams
WithHTTPClient adds the HTTPClient to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) WithPrivateCanFavouriteAlways0 ¶
func (o *PoliciesDefaultsUpdateParams) WithPrivateCanFavouriteAlways0(privateCanFavouriteAlways0 *string) *PoliciesDefaultsUpdateParams
WithPrivateCanFavouriteAlways0 adds the privateCanFavouriteAlways0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) WithPrivateCanFavouriteWithApproval0 ¶
func (o *PoliciesDefaultsUpdateParams) WithPrivateCanFavouriteWithApproval0(privateCanFavouriteWithApproval0 *string) *PoliciesDefaultsUpdateParams
WithPrivateCanFavouriteWithApproval0 adds the privateCanFavouriteWithApproval0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) WithPrivateCanReblogAlways0 ¶
func (o *PoliciesDefaultsUpdateParams) WithPrivateCanReblogAlways0(privateCanReblogAlways0 *string) *PoliciesDefaultsUpdateParams
WithPrivateCanReblogAlways0 adds the privateCanReblogAlways0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) WithPrivateCanReblogWithApproval0 ¶
func (o *PoliciesDefaultsUpdateParams) WithPrivateCanReblogWithApproval0(privateCanReblogWithApproval0 *string) *PoliciesDefaultsUpdateParams
WithPrivateCanReblogWithApproval0 adds the privateCanReblogWithApproval0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) WithPrivateCanReplyAlways0 ¶
func (o *PoliciesDefaultsUpdateParams) WithPrivateCanReplyAlways0(privateCanReplyAlways0 *string) *PoliciesDefaultsUpdateParams
WithPrivateCanReplyAlways0 adds the privateCanReplyAlways0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) WithPrivateCanReplyWithApproval0 ¶
func (o *PoliciesDefaultsUpdateParams) WithPrivateCanReplyWithApproval0(privateCanReplyWithApproval0 *string) *PoliciesDefaultsUpdateParams
WithPrivateCanReplyWithApproval0 adds the privateCanReplyWithApproval0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) WithPublicCanFavouriteAlways0 ¶
func (o *PoliciesDefaultsUpdateParams) WithPublicCanFavouriteAlways0(publicCanFavouriteAlways0 *string) *PoliciesDefaultsUpdateParams
WithPublicCanFavouriteAlways0 adds the publicCanFavouriteAlways0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) WithPublicCanFavouriteWithApproval0 ¶
func (o *PoliciesDefaultsUpdateParams) WithPublicCanFavouriteWithApproval0(publicCanFavouriteWithApproval0 *string) *PoliciesDefaultsUpdateParams
WithPublicCanFavouriteWithApproval0 adds the publicCanFavouriteWithApproval0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) WithPublicCanReblogAlways0 ¶
func (o *PoliciesDefaultsUpdateParams) WithPublicCanReblogAlways0(publicCanReblogAlways0 *string) *PoliciesDefaultsUpdateParams
WithPublicCanReblogAlways0 adds the publicCanReblogAlways0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) WithPublicCanReblogWithApproval0 ¶
func (o *PoliciesDefaultsUpdateParams) WithPublicCanReblogWithApproval0(publicCanReblogWithApproval0 *string) *PoliciesDefaultsUpdateParams
WithPublicCanReblogWithApproval0 adds the publicCanReblogWithApproval0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) WithPublicCanReplyAlways0 ¶
func (o *PoliciesDefaultsUpdateParams) WithPublicCanReplyAlways0(publicCanReplyAlways0 *string) *PoliciesDefaultsUpdateParams
WithPublicCanReplyAlways0 adds the publicCanReplyAlways0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) WithPublicCanReplyWithApproval0 ¶
func (o *PoliciesDefaultsUpdateParams) WithPublicCanReplyWithApproval0(publicCanReplyWithApproval0 *string) *PoliciesDefaultsUpdateParams
WithPublicCanReplyWithApproval0 adds the publicCanReplyWithApproval0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) WithTimeout ¶
func (o *PoliciesDefaultsUpdateParams) WithTimeout(timeout time.Duration) *PoliciesDefaultsUpdateParams
WithTimeout adds the timeout to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) WithUnlistedCanFavouriteAlways0 ¶
func (o *PoliciesDefaultsUpdateParams) WithUnlistedCanFavouriteAlways0(unlistedCanFavouriteAlways0 *string) *PoliciesDefaultsUpdateParams
WithUnlistedCanFavouriteAlways0 adds the unlistedCanFavouriteAlways0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) WithUnlistedCanFavouriteWithApproval0 ¶
func (o *PoliciesDefaultsUpdateParams) WithUnlistedCanFavouriteWithApproval0(unlistedCanFavouriteWithApproval0 *string) *PoliciesDefaultsUpdateParams
WithUnlistedCanFavouriteWithApproval0 adds the unlistedCanFavouriteWithApproval0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) WithUnlistedCanReblogAlways0 ¶
func (o *PoliciesDefaultsUpdateParams) WithUnlistedCanReblogAlways0(unlistedCanReblogAlways0 *string) *PoliciesDefaultsUpdateParams
WithUnlistedCanReblogAlways0 adds the unlistedCanReblogAlways0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) WithUnlistedCanReblogWithApproval0 ¶
func (o *PoliciesDefaultsUpdateParams) WithUnlistedCanReblogWithApproval0(unlistedCanReblogWithApproval0 *string) *PoliciesDefaultsUpdateParams
WithUnlistedCanReblogWithApproval0 adds the unlistedCanReblogWithApproval0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) WithUnlistedCanReplyAlways0 ¶
func (o *PoliciesDefaultsUpdateParams) WithUnlistedCanReplyAlways0(unlistedCanReplyAlways0 *string) *PoliciesDefaultsUpdateParams
WithUnlistedCanReplyAlways0 adds the unlistedCanReplyAlways0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) WithUnlistedCanReplyWithApproval0 ¶
func (o *PoliciesDefaultsUpdateParams) WithUnlistedCanReplyWithApproval0(unlistedCanReplyWithApproval0 *string) *PoliciesDefaultsUpdateParams
WithUnlistedCanReplyWithApproval0 adds the unlistedCanReplyWithApproval0 to the policies defaults update params
func (*PoliciesDefaultsUpdateParams) WriteToRequest ¶
func (o *PoliciesDefaultsUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PoliciesDefaultsUpdateReader ¶
type PoliciesDefaultsUpdateReader struct {
// contains filtered or unexported fields
}
PoliciesDefaultsUpdateReader is a Reader for the PoliciesDefaultsUpdate structure.
func (*PoliciesDefaultsUpdateReader) ReadResponse ¶
func (o *PoliciesDefaultsUpdateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PoliciesDefaultsUpdateUnauthorized ¶
type PoliciesDefaultsUpdateUnauthorized struct { }
PoliciesDefaultsUpdateUnauthorized describes a response with status code 401, with default header values.
unauthorized
func NewPoliciesDefaultsUpdateUnauthorized ¶
func NewPoliciesDefaultsUpdateUnauthorized() *PoliciesDefaultsUpdateUnauthorized
NewPoliciesDefaultsUpdateUnauthorized creates a PoliciesDefaultsUpdateUnauthorized with default headers values
func (*PoliciesDefaultsUpdateUnauthorized) Code ¶
func (o *PoliciesDefaultsUpdateUnauthorized) Code() int
Code gets the status code for the policies defaults update unauthorized response
func (*PoliciesDefaultsUpdateUnauthorized) Error ¶
func (o *PoliciesDefaultsUpdateUnauthorized) Error() string
func (*PoliciesDefaultsUpdateUnauthorized) IsClientError ¶
func (o *PoliciesDefaultsUpdateUnauthorized) IsClientError() bool
IsClientError returns true when this policies defaults update unauthorized response has a 4xx status code
func (*PoliciesDefaultsUpdateUnauthorized) IsCode ¶
func (o *PoliciesDefaultsUpdateUnauthorized) IsCode(code int) bool
IsCode returns true when this policies defaults update unauthorized response a status code equal to that given
func (*PoliciesDefaultsUpdateUnauthorized) IsRedirect ¶
func (o *PoliciesDefaultsUpdateUnauthorized) IsRedirect() bool
IsRedirect returns true when this policies defaults update unauthorized response has a 3xx status code
func (*PoliciesDefaultsUpdateUnauthorized) IsServerError ¶
func (o *PoliciesDefaultsUpdateUnauthorized) IsServerError() bool
IsServerError returns true when this policies defaults update unauthorized response has a 5xx status code
func (*PoliciesDefaultsUpdateUnauthorized) IsSuccess ¶
func (o *PoliciesDefaultsUpdateUnauthorized) IsSuccess() bool
IsSuccess returns true when this policies defaults update unauthorized response has a 2xx status code
func (*PoliciesDefaultsUpdateUnauthorized) String ¶
func (o *PoliciesDefaultsUpdateUnauthorized) String() string
type PoliciesDefaultsUpdateUnprocessableEntity ¶
type PoliciesDefaultsUpdateUnprocessableEntity struct { }
PoliciesDefaultsUpdateUnprocessableEntity describes a response with status code 422, with default header values.
unprocessable
func NewPoliciesDefaultsUpdateUnprocessableEntity ¶
func NewPoliciesDefaultsUpdateUnprocessableEntity() *PoliciesDefaultsUpdateUnprocessableEntity
NewPoliciesDefaultsUpdateUnprocessableEntity creates a PoliciesDefaultsUpdateUnprocessableEntity with default headers values
func (*PoliciesDefaultsUpdateUnprocessableEntity) Code ¶
func (o *PoliciesDefaultsUpdateUnprocessableEntity) Code() int
Code gets the status code for the policies defaults update unprocessable entity response
func (*PoliciesDefaultsUpdateUnprocessableEntity) Error ¶
func (o *PoliciesDefaultsUpdateUnprocessableEntity) Error() string
func (*PoliciesDefaultsUpdateUnprocessableEntity) IsClientError ¶
func (o *PoliciesDefaultsUpdateUnprocessableEntity) IsClientError() bool
IsClientError returns true when this policies defaults update unprocessable entity response has a 4xx status code
func (*PoliciesDefaultsUpdateUnprocessableEntity) IsCode ¶
func (o *PoliciesDefaultsUpdateUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this policies defaults update unprocessable entity response a status code equal to that given
func (*PoliciesDefaultsUpdateUnprocessableEntity) IsRedirect ¶
func (o *PoliciesDefaultsUpdateUnprocessableEntity) IsRedirect() bool
IsRedirect returns true when this policies defaults update unprocessable entity response has a 3xx status code
func (*PoliciesDefaultsUpdateUnprocessableEntity) IsServerError ¶
func (o *PoliciesDefaultsUpdateUnprocessableEntity) IsServerError() bool
IsServerError returns true when this policies defaults update unprocessable entity response has a 5xx status code
func (*PoliciesDefaultsUpdateUnprocessableEntity) IsSuccess ¶
func (o *PoliciesDefaultsUpdateUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this policies defaults update unprocessable entity response has a 2xx status code
func (*PoliciesDefaultsUpdateUnprocessableEntity) String ¶
func (o *PoliciesDefaultsUpdateUnprocessableEntity) String() string