interaction_policies

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithContentTypeApplicationJSON

func WithContentTypeApplicationJSON(r *runtime.ClientOperation)

WithContentTypeApplicationJSON sets the Content-Type header to "application/json".

func 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][automatic_approval][0]=author`

Using `curl` this might look something like:

`curl -F 'public[can_reply][automatic_approval][0]=author' -F 'public[can_reply][automatic_approval][1]=followers'`

The JSON equivalent would be:

`curl -H 'Content-Type: application/json' -d '{"public":{"can_reply":{"automatic_approval":["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 {
	Payload *models.Error
}

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

Code gets the status code for the policies defaults get internal server error response

func (*PoliciesDefaultsGetInternalServerError) Error

func (*PoliciesDefaultsGetInternalServerError) GetPayload added in v1.1.0

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

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

func (*PoliciesDefaultsGetInternalServerError) IsRedirect

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

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

func (*PoliciesDefaultsGetInternalServerError) String

type PoliciesDefaultsGetNotAcceptable

type PoliciesDefaultsGetNotAcceptable struct {
	Payload *models.Error
}

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

Code gets the status code for the policies defaults get not acceptable response

func (*PoliciesDefaultsGetNotAcceptable) Error

func (*PoliciesDefaultsGetNotAcceptable) GetPayload added in v1.1.0

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

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

WithContext adds the context to the policies defaults get params

func (*PoliciesDefaultsGetParams) WithDefaults

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

WithTimeout adds the timeout to the policies defaults get params

func (*PoliciesDefaultsGetParams) WriteToRequest

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

ReadResponse reads a server response into the received o.

type PoliciesDefaultsGetUnauthorized

type PoliciesDefaultsGetUnauthorized struct {
	Payload *models.Error
}

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

Code gets the status code for the policies defaults get unauthorized response

func (*PoliciesDefaultsGetUnauthorized) Error

func (*PoliciesDefaultsGetUnauthorized) GetPayload added in v1.1.0

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

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

type PoliciesDefaultsUpdateBadRequest

type PoliciesDefaultsUpdateBadRequest struct {
	Payload *models.Error
}

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

Code gets the status code for the policies defaults update bad request response

func (*PoliciesDefaultsUpdateBadRequest) Error

func (*PoliciesDefaultsUpdateBadRequest) GetPayload added in v1.1.0

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

type PoliciesDefaultsUpdateInternalServerError

type PoliciesDefaultsUpdateInternalServerError struct {
	Payload *models.Error
}

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

Code gets the status code for the policies defaults update internal server error response

func (*PoliciesDefaultsUpdateInternalServerError) Error

func (*PoliciesDefaultsUpdateInternalServerError) GetPayload added in v1.1.0

func (*PoliciesDefaultsUpdateInternalServerError) IsClientError

IsClientError returns true when this policies defaults update internal server error response has a 4xx status code

func (*PoliciesDefaultsUpdateInternalServerError) IsCode

IsCode returns true when this policies defaults update internal server error response a status code equal to that given

func (*PoliciesDefaultsUpdateInternalServerError) IsRedirect

IsRedirect returns true when this policies defaults update internal server error response has a 3xx status code

func (*PoliciesDefaultsUpdateInternalServerError) IsServerError

IsServerError returns true when this policies defaults update internal server error response has a 5xx status code

func (*PoliciesDefaultsUpdateInternalServerError) IsSuccess

IsSuccess returns true when this policies defaults update internal server error response has a 2xx status code

func (*PoliciesDefaultsUpdateInternalServerError) String

type PoliciesDefaultsUpdateNotAcceptable

type PoliciesDefaultsUpdateNotAcceptable struct {
	Payload *models.Error
}

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

Code gets the status code for the policies defaults update not acceptable response

func (*PoliciesDefaultsUpdateNotAcceptable) Error

func (*PoliciesDefaultsUpdateNotAcceptable) GetPayload added in v1.1.0

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

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

IsSuccess returns true when this policies defaults update not acceptable response has a 2xx status code

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

	/* DirectCanFavouriteAutomaticApproval0.

	   Nth entry for direct.can_favourite.automatic_approval.
	*/
	DirectCanFavouriteAutomaticApproval0 *string

	/* DirectCanFavouriteManualApproval0.

	   Nth entry for direct.can_favourite.manual_approval.
	*/
	DirectCanFavouriteManualApproval0 *string

	/* DirectCanReblogAutomaticApproval0.

	   Nth entry for direct.can_reblog.automatic_approval.
	*/
	DirectCanReblogAutomaticApproval0 *string

	/* DirectCanReblogManualApproval0.

	   Nth entry for direct.can_reblog.manual_approval.
	*/
	DirectCanReblogManualApproval0 *string

	/* DirectCanReplyAutomaticApproval0.

	   Nth entry for direct.can_reply.automatic_approval.
	*/
	DirectCanReplyAutomaticApproval0 *string

	/* DirectCanReplyManualApproval0.

	   Nth entry for direct.can_reply.manual_approval.
	*/
	DirectCanReplyManualApproval0 *string

	/* PrivateCanFavouriteAutomaticApproval0.

	   Nth entry for private.can_favourite.automatic_approval.
	*/
	PrivateCanFavouriteAutomaticApproval0 *string

	/* PrivateCanFavouriteManualApproval0.

	   Nth entry for private.can_favourite.manual_approval.
	*/
	PrivateCanFavouriteManualApproval0 *string

	/* PrivateCanReblogAutomaticApproval0.

	   Nth entry for private.can_reblog.automatic_approval.
	*/
	PrivateCanReblogAutomaticApproval0 *string

	/* PrivateCanReblogManualApproval0.

	   Nth entry for private.can_reblog.manual_approval.
	*/
	PrivateCanReblogManualApproval0 *string

	/* PrivateCanReplyAutomaticApproval0.

	   Nth entry for private.can_reply.automatic_approval.
	*/
	PrivateCanReplyAutomaticApproval0 *string

	/* PrivateCanReplyManualApproval0.

	   Nth entry for private.can_reply.manual_approval.
	*/
	PrivateCanReplyManualApproval0 *string

	/* PublicCanFavouriteAutomaticApproval0.

	   Nth entry for public.can_favourite.automatic_approval.
	*/
	PublicCanFavouriteAutomaticApproval0 *string

	/* PublicCanFavouriteManualApproval0.

	   Nth entry for public.can_favourite.manual_approval.
	*/
	PublicCanFavouriteManualApproval0 *string

	/* PublicCanReblogAutomaticApproval0.

	   Nth entry for public.can_reblog.automatic_approval.
	*/
	PublicCanReblogAutomaticApproval0 *string

	/* PublicCanReblogManualApproval0.

	   Nth entry for public.can_reblog.manual_approval.
	*/
	PublicCanReblogManualApproval0 *string

	/* PublicCanReplyAutomaticApproval0.

	   Nth entry for public.can_reply.automatic_approval.
	*/
	PublicCanReplyAutomaticApproval0 *string

	/* PublicCanReplyManualApproval0.

	   Nth entry for public.can_reply.manual_approval.
	*/
	PublicCanReplyManualApproval0 *string

	/* UnlistedCanFavouriteAutomaticApproval0.

	   Nth entry for unlisted.can_favourite.automatic_approval.
	*/
	UnlistedCanFavouriteAutomaticApproval0 *string

	/* UnlistedCanFavouriteManualApproval0.

	   Nth entry for unlisted.can_favourite.manual_approval.
	*/
	UnlistedCanFavouriteManualApproval0 *string

	/* UnlistedCanReblogAutomaticApproval0.

	   Nth entry for unlisted.can_reblog.automatic_approval.
	*/
	UnlistedCanReblogAutomaticApproval0 *string

	/* UnlistedCanReblogManualApproval0.

	   Nth entry for unlisted.can_reblog.manual_approval.
	*/
	UnlistedCanReblogManualApproval0 *string

	/* UnlistedCanReplyAutomaticApproval0.

	   Nth entry for unlisted.can_reply.automatic_approval.
	*/
	UnlistedCanReplyAutomaticApproval0 *string

	/* UnlistedCanReplyManualApproval0.

	   Nth entry for unlisted.can_reply.manual_approval.
	*/
	UnlistedCanReplyManualApproval0 *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) SetDirectCanFavouriteAutomaticApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) SetDirectCanFavouriteAutomaticApproval0(directCanFavouriteAutomaticApproval0 *string)

SetDirectCanFavouriteAutomaticApproval0 adds the directCanFavouriteAutomaticApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) SetDirectCanFavouriteManualApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) SetDirectCanFavouriteManualApproval0(directCanFavouriteManualApproval0 *string)

SetDirectCanFavouriteManualApproval0 adds the directCanFavouriteManualApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) SetDirectCanReblogAutomaticApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) SetDirectCanReblogAutomaticApproval0(directCanReblogAutomaticApproval0 *string)

SetDirectCanReblogAutomaticApproval0 adds the directCanReblogAutomaticApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) SetDirectCanReblogManualApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) SetDirectCanReblogManualApproval0(directCanReblogManualApproval0 *string)

SetDirectCanReblogManualApproval0 adds the directCanReblogManualApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) SetDirectCanReplyAutomaticApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) SetDirectCanReplyAutomaticApproval0(directCanReplyAutomaticApproval0 *string)

SetDirectCanReplyAutomaticApproval0 adds the directCanReplyAutomaticApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) SetDirectCanReplyManualApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) SetDirectCanReplyManualApproval0(directCanReplyManualApproval0 *string)

SetDirectCanReplyManualApproval0 adds the directCanReplyManualApproval0 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) SetPrivateCanFavouriteAutomaticApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) SetPrivateCanFavouriteAutomaticApproval0(privateCanFavouriteAutomaticApproval0 *string)

SetPrivateCanFavouriteAutomaticApproval0 adds the privateCanFavouriteAutomaticApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) SetPrivateCanFavouriteManualApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) SetPrivateCanFavouriteManualApproval0(privateCanFavouriteManualApproval0 *string)

SetPrivateCanFavouriteManualApproval0 adds the privateCanFavouriteManualApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) SetPrivateCanReblogAutomaticApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) SetPrivateCanReblogAutomaticApproval0(privateCanReblogAutomaticApproval0 *string)

SetPrivateCanReblogAutomaticApproval0 adds the privateCanReblogAutomaticApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) SetPrivateCanReblogManualApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) SetPrivateCanReblogManualApproval0(privateCanReblogManualApproval0 *string)

SetPrivateCanReblogManualApproval0 adds the privateCanReblogManualApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) SetPrivateCanReplyAutomaticApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) SetPrivateCanReplyAutomaticApproval0(privateCanReplyAutomaticApproval0 *string)

SetPrivateCanReplyAutomaticApproval0 adds the privateCanReplyAutomaticApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) SetPrivateCanReplyManualApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) SetPrivateCanReplyManualApproval0(privateCanReplyManualApproval0 *string)

SetPrivateCanReplyManualApproval0 adds the privateCanReplyManualApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) SetPublicCanFavouriteAutomaticApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) SetPublicCanFavouriteAutomaticApproval0(publicCanFavouriteAutomaticApproval0 *string)

SetPublicCanFavouriteAutomaticApproval0 adds the publicCanFavouriteAutomaticApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) SetPublicCanFavouriteManualApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) SetPublicCanFavouriteManualApproval0(publicCanFavouriteManualApproval0 *string)

SetPublicCanFavouriteManualApproval0 adds the publicCanFavouriteManualApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) SetPublicCanReblogAutomaticApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) SetPublicCanReblogAutomaticApproval0(publicCanReblogAutomaticApproval0 *string)

SetPublicCanReblogAutomaticApproval0 adds the publicCanReblogAutomaticApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) SetPublicCanReblogManualApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) SetPublicCanReblogManualApproval0(publicCanReblogManualApproval0 *string)

SetPublicCanReblogManualApproval0 adds the publicCanReblogManualApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) SetPublicCanReplyAutomaticApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) SetPublicCanReplyAutomaticApproval0(publicCanReplyAutomaticApproval0 *string)

SetPublicCanReplyAutomaticApproval0 adds the publicCanReplyAutomaticApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) SetPublicCanReplyManualApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) SetPublicCanReplyManualApproval0(publicCanReplyManualApproval0 *string)

SetPublicCanReplyManualApproval0 adds the publicCanReplyManualApproval0 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) SetUnlistedCanFavouriteAutomaticApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) SetUnlistedCanFavouriteAutomaticApproval0(unlistedCanFavouriteAutomaticApproval0 *string)

SetUnlistedCanFavouriteAutomaticApproval0 adds the unlistedCanFavouriteAutomaticApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) SetUnlistedCanFavouriteManualApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) SetUnlistedCanFavouriteManualApproval0(unlistedCanFavouriteManualApproval0 *string)

SetUnlistedCanFavouriteManualApproval0 adds the unlistedCanFavouriteManualApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) SetUnlistedCanReblogAutomaticApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) SetUnlistedCanReblogAutomaticApproval0(unlistedCanReblogAutomaticApproval0 *string)

SetUnlistedCanReblogAutomaticApproval0 adds the unlistedCanReblogAutomaticApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) SetUnlistedCanReblogManualApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) SetUnlistedCanReblogManualApproval0(unlistedCanReblogManualApproval0 *string)

SetUnlistedCanReblogManualApproval0 adds the unlistedCanReblogManualApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) SetUnlistedCanReplyAutomaticApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) SetUnlistedCanReplyAutomaticApproval0(unlistedCanReplyAutomaticApproval0 *string)

SetUnlistedCanReplyAutomaticApproval0 adds the unlistedCanReplyAutomaticApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) SetUnlistedCanReplyManualApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) SetUnlistedCanReplyManualApproval0(unlistedCanReplyManualApproval0 *string)

SetUnlistedCanReplyManualApproval0 adds the unlistedCanReplyManualApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) WithContext

WithContext adds the context to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) WithDefaults

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) WithDirectCanFavouriteAutomaticApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) WithDirectCanFavouriteAutomaticApproval0(directCanFavouriteAutomaticApproval0 *string) *PoliciesDefaultsUpdateParams

WithDirectCanFavouriteAutomaticApproval0 adds the directCanFavouriteAutomaticApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) WithDirectCanFavouriteManualApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) WithDirectCanFavouriteManualApproval0(directCanFavouriteManualApproval0 *string) *PoliciesDefaultsUpdateParams

WithDirectCanFavouriteManualApproval0 adds the directCanFavouriteManualApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) WithDirectCanReblogAutomaticApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) WithDirectCanReblogAutomaticApproval0(directCanReblogAutomaticApproval0 *string) *PoliciesDefaultsUpdateParams

WithDirectCanReblogAutomaticApproval0 adds the directCanReblogAutomaticApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) WithDirectCanReblogManualApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) WithDirectCanReblogManualApproval0(directCanReblogManualApproval0 *string) *PoliciesDefaultsUpdateParams

WithDirectCanReblogManualApproval0 adds the directCanReblogManualApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) WithDirectCanReplyAutomaticApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) WithDirectCanReplyAutomaticApproval0(directCanReplyAutomaticApproval0 *string) *PoliciesDefaultsUpdateParams

WithDirectCanReplyAutomaticApproval0 adds the directCanReplyAutomaticApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) WithDirectCanReplyManualApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) WithDirectCanReplyManualApproval0(directCanReplyManualApproval0 *string) *PoliciesDefaultsUpdateParams

WithDirectCanReplyManualApproval0 adds the directCanReplyManualApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) WithPrivateCanFavouriteAutomaticApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) WithPrivateCanFavouriteAutomaticApproval0(privateCanFavouriteAutomaticApproval0 *string) *PoliciesDefaultsUpdateParams

WithPrivateCanFavouriteAutomaticApproval0 adds the privateCanFavouriteAutomaticApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) WithPrivateCanFavouriteManualApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) WithPrivateCanFavouriteManualApproval0(privateCanFavouriteManualApproval0 *string) *PoliciesDefaultsUpdateParams

WithPrivateCanFavouriteManualApproval0 adds the privateCanFavouriteManualApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) WithPrivateCanReblogAutomaticApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) WithPrivateCanReblogAutomaticApproval0(privateCanReblogAutomaticApproval0 *string) *PoliciesDefaultsUpdateParams

WithPrivateCanReblogAutomaticApproval0 adds the privateCanReblogAutomaticApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) WithPrivateCanReblogManualApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) WithPrivateCanReblogManualApproval0(privateCanReblogManualApproval0 *string) *PoliciesDefaultsUpdateParams

WithPrivateCanReblogManualApproval0 adds the privateCanReblogManualApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) WithPrivateCanReplyAutomaticApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) WithPrivateCanReplyAutomaticApproval0(privateCanReplyAutomaticApproval0 *string) *PoliciesDefaultsUpdateParams

WithPrivateCanReplyAutomaticApproval0 adds the privateCanReplyAutomaticApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) WithPrivateCanReplyManualApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) WithPrivateCanReplyManualApproval0(privateCanReplyManualApproval0 *string) *PoliciesDefaultsUpdateParams

WithPrivateCanReplyManualApproval0 adds the privateCanReplyManualApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) WithPublicCanFavouriteAutomaticApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) WithPublicCanFavouriteAutomaticApproval0(publicCanFavouriteAutomaticApproval0 *string) *PoliciesDefaultsUpdateParams

WithPublicCanFavouriteAutomaticApproval0 adds the publicCanFavouriteAutomaticApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) WithPublicCanFavouriteManualApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) WithPublicCanFavouriteManualApproval0(publicCanFavouriteManualApproval0 *string) *PoliciesDefaultsUpdateParams

WithPublicCanFavouriteManualApproval0 adds the publicCanFavouriteManualApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) WithPublicCanReblogAutomaticApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) WithPublicCanReblogAutomaticApproval0(publicCanReblogAutomaticApproval0 *string) *PoliciesDefaultsUpdateParams

WithPublicCanReblogAutomaticApproval0 adds the publicCanReblogAutomaticApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) WithPublicCanReblogManualApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) WithPublicCanReblogManualApproval0(publicCanReblogManualApproval0 *string) *PoliciesDefaultsUpdateParams

WithPublicCanReblogManualApproval0 adds the publicCanReblogManualApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) WithPublicCanReplyAutomaticApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) WithPublicCanReplyAutomaticApproval0(publicCanReplyAutomaticApproval0 *string) *PoliciesDefaultsUpdateParams

WithPublicCanReplyAutomaticApproval0 adds the publicCanReplyAutomaticApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) WithPublicCanReplyManualApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) WithPublicCanReplyManualApproval0(publicCanReplyManualApproval0 *string) *PoliciesDefaultsUpdateParams

WithPublicCanReplyManualApproval0 adds the publicCanReplyManualApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) WithTimeout

WithTimeout adds the timeout to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) WithUnlistedCanFavouriteAutomaticApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) WithUnlistedCanFavouriteAutomaticApproval0(unlistedCanFavouriteAutomaticApproval0 *string) *PoliciesDefaultsUpdateParams

WithUnlistedCanFavouriteAutomaticApproval0 adds the unlistedCanFavouriteAutomaticApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) WithUnlistedCanFavouriteManualApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) WithUnlistedCanFavouriteManualApproval0(unlistedCanFavouriteManualApproval0 *string) *PoliciesDefaultsUpdateParams

WithUnlistedCanFavouriteManualApproval0 adds the unlistedCanFavouriteManualApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) WithUnlistedCanReblogAutomaticApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) WithUnlistedCanReblogAutomaticApproval0(unlistedCanReblogAutomaticApproval0 *string) *PoliciesDefaultsUpdateParams

WithUnlistedCanReblogAutomaticApproval0 adds the unlistedCanReblogAutomaticApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) WithUnlistedCanReblogManualApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) WithUnlistedCanReblogManualApproval0(unlistedCanReblogManualApproval0 *string) *PoliciesDefaultsUpdateParams

WithUnlistedCanReblogManualApproval0 adds the unlistedCanReblogManualApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) WithUnlistedCanReplyAutomaticApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) WithUnlistedCanReplyAutomaticApproval0(unlistedCanReplyAutomaticApproval0 *string) *PoliciesDefaultsUpdateParams

WithUnlistedCanReplyAutomaticApproval0 adds the unlistedCanReplyAutomaticApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) WithUnlistedCanReplyManualApproval0 added in v1.1.0

func (o *PoliciesDefaultsUpdateParams) WithUnlistedCanReplyManualApproval0(unlistedCanReplyManualApproval0 *string) *PoliciesDefaultsUpdateParams

WithUnlistedCanReplyManualApproval0 adds the unlistedCanReplyManualApproval0 to the policies defaults update params

func (*PoliciesDefaultsUpdateParams) WriteToRequest

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

ReadResponse reads a server response into the received o.

type PoliciesDefaultsUpdateUnauthorized

type PoliciesDefaultsUpdateUnauthorized struct {
	Payload *models.Error
}

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

Code gets the status code for the policies defaults update unauthorized response

func (*PoliciesDefaultsUpdateUnauthorized) Error

func (*PoliciesDefaultsUpdateUnauthorized) GetPayload added in v1.1.0

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

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

IsSuccess returns true when this policies defaults update unauthorized response has a 2xx status code

func (*PoliciesDefaultsUpdateUnauthorized) String

type PoliciesDefaultsUpdateUnprocessableEntity

type PoliciesDefaultsUpdateUnprocessableEntity struct {
	Payload *models.Error
}

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

Code gets the status code for the policies defaults update unprocessable entity response

func (*PoliciesDefaultsUpdateUnprocessableEntity) Error

func (*PoliciesDefaultsUpdateUnprocessableEntity) GetPayload added in v1.1.0

func (*PoliciesDefaultsUpdateUnprocessableEntity) IsClientError

IsClientError returns true when this policies defaults update unprocessable entity response has a 4xx status code

func (*PoliciesDefaultsUpdateUnprocessableEntity) IsCode

IsCode returns true when this policies defaults update unprocessable entity response a status code equal to that given

func (*PoliciesDefaultsUpdateUnprocessableEntity) IsRedirect

IsRedirect returns true when this policies defaults update unprocessable entity response has a 3xx status code

func (*PoliciesDefaultsUpdateUnprocessableEntity) IsServerError

IsServerError returns true when this policies defaults update unprocessable entity response has a 5xx status code

func (*PoliciesDefaultsUpdateUnprocessableEntity) IsSuccess

IsSuccess returns true when this policies defaults update unprocessable entity response has a 2xx status code

func (*PoliciesDefaultsUpdateUnprocessableEntity) String

Jump to

Keyboard shortcuts

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