Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateModerationRule(params *CreateModerationRuleParams, authInfo runtime.ClientAuthInfoWriter) (*CreateModerationRuleCreated, *CreateModerationRuleBadRequest, ...)deprecated
- func (a *Client) CreateModerationRuleShort(params *CreateModerationRuleParams, authInfo runtime.ClientAuthInfoWriter) (*CreateModerationRuleCreated, error)
- func (a *Client) DeleteModerationRule(params *DeleteModerationRuleParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteModerationRuleNoContent, *DeleteModerationRuleBadRequest, ...)deprecated
- func (a *Client) DeleteModerationRuleShort(params *DeleteModerationRuleParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteModerationRuleNoContent, error)
- func (a *Client) GetModerationRuleDetails(params *GetModerationRuleDetailsParams, authInfo runtime.ClientAuthInfoWriter) (*GetModerationRuleDetailsOK, *GetModerationRuleDetailsNotFound, ...)deprecated
- func (a *Client) GetModerationRuleDetailsShort(params *GetModerationRuleDetailsParams, authInfo runtime.ClientAuthInfoWriter) (*GetModerationRuleDetailsOK, error)
- func (a *Client) GetModerationRules(params *GetModerationRulesParams, authInfo runtime.ClientAuthInfoWriter) (*GetModerationRulesOK, *GetModerationRulesBadRequest, ...)deprecated
- func (a *Client) GetModerationRulesShort(params *GetModerationRulesParams, authInfo runtime.ClientAuthInfoWriter) (*GetModerationRulesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateModerationRule(params *UpdateModerationRuleParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateModerationRuleOK, *UpdateModerationRuleBadRequest, ...)deprecated
- func (a *Client) UpdateModerationRuleShort(params *UpdateModerationRuleParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateModerationRuleOK, error)
- func (a *Client) UpdateModerationRuleStatus(params *UpdateModerationRuleStatusParams, ...) (*UpdateModerationRuleStatusNoContent, *UpdateModerationRuleStatusBadRequest, ...)deprecated
- func (a *Client) UpdateModerationRuleStatusShort(params *UpdateModerationRuleStatusParams, ...) (*UpdateModerationRuleStatusNoContent, error)
- type ClientService
- type CreateModerationRuleBadRequest
- type CreateModerationRuleConflict
- type CreateModerationRuleCreated
- type CreateModerationRuleInternalServerError
- type CreateModerationRuleParams
- func NewCreateModerationRuleParams() *CreateModerationRuleParams
- func NewCreateModerationRuleParamsWithContext(ctx context.Context) *CreateModerationRuleParams
- func NewCreateModerationRuleParamsWithHTTPClient(client *http.Client) *CreateModerationRuleParams
- func NewCreateModerationRuleParamsWithTimeout(timeout time.Duration) *CreateModerationRuleParams
- func (o *CreateModerationRuleParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *CreateModerationRuleParams) SetBody(body *reportingclientmodels.RestapiModerationRuleRequest)
- func (o *CreateModerationRuleParams) SetContext(ctx context.Context)
- func (o *CreateModerationRuleParams) SetHTTPClient(client *http.Client)
- func (o *CreateModerationRuleParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *CreateModerationRuleParams) SetNamespace(namespace string)
- func (o *CreateModerationRuleParams) SetTimeout(timeout time.Duration)
- func (o *CreateModerationRuleParams) WithBody(body *reportingclientmodels.RestapiModerationRuleRequest) *CreateModerationRuleParams
- func (o *CreateModerationRuleParams) WithContext(ctx context.Context) *CreateModerationRuleParams
- func (o *CreateModerationRuleParams) WithHTTPClient(client *http.Client) *CreateModerationRuleParams
- func (o *CreateModerationRuleParams) WithNamespace(namespace string) *CreateModerationRuleParams
- func (o *CreateModerationRuleParams) WithTimeout(timeout time.Duration) *CreateModerationRuleParams
- func (o *CreateModerationRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateModerationRuleReader
- type DeleteModerationRuleBadRequest
- type DeleteModerationRuleInternalServerError
- type DeleteModerationRuleNoContent
- type DeleteModerationRuleParams
- func NewDeleteModerationRuleParams() *DeleteModerationRuleParams
- func NewDeleteModerationRuleParamsWithContext(ctx context.Context) *DeleteModerationRuleParams
- func NewDeleteModerationRuleParamsWithHTTPClient(client *http.Client) *DeleteModerationRuleParams
- func NewDeleteModerationRuleParamsWithTimeout(timeout time.Duration) *DeleteModerationRuleParams
- func (o *DeleteModerationRuleParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *DeleteModerationRuleParams) SetContext(ctx context.Context)
- func (o *DeleteModerationRuleParams) SetHTTPClient(client *http.Client)
- func (o *DeleteModerationRuleParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *DeleteModerationRuleParams) SetNamespace(namespace string)
- func (o *DeleteModerationRuleParams) SetRuleID(ruleID string)
- func (o *DeleteModerationRuleParams) SetTimeout(timeout time.Duration)
- func (o *DeleteModerationRuleParams) WithContext(ctx context.Context) *DeleteModerationRuleParams
- func (o *DeleteModerationRuleParams) WithHTTPClient(client *http.Client) *DeleteModerationRuleParams
- func (o *DeleteModerationRuleParams) WithNamespace(namespace string) *DeleteModerationRuleParams
- func (o *DeleteModerationRuleParams) WithRuleID(ruleID string) *DeleteModerationRuleParams
- func (o *DeleteModerationRuleParams) WithTimeout(timeout time.Duration) *DeleteModerationRuleParams
- func (o *DeleteModerationRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteModerationRuleReader
- type GetModerationRuleDetailsInternalServerError
- type GetModerationRuleDetailsNotFound
- type GetModerationRuleDetailsOK
- type GetModerationRuleDetailsParams
- func NewGetModerationRuleDetailsParams() *GetModerationRuleDetailsParams
- func NewGetModerationRuleDetailsParamsWithContext(ctx context.Context) *GetModerationRuleDetailsParams
- func NewGetModerationRuleDetailsParamsWithHTTPClient(client *http.Client) *GetModerationRuleDetailsParams
- func NewGetModerationRuleDetailsParamsWithTimeout(timeout time.Duration) *GetModerationRuleDetailsParams
- func (o *GetModerationRuleDetailsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *GetModerationRuleDetailsParams) SetContext(ctx context.Context)
- func (o *GetModerationRuleDetailsParams) SetHTTPClient(client *http.Client)
- func (o *GetModerationRuleDetailsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *GetModerationRuleDetailsParams) SetNamespace(namespace string)
- func (o *GetModerationRuleDetailsParams) SetRuleID(ruleID string)
- func (o *GetModerationRuleDetailsParams) SetTimeout(timeout time.Duration)
- func (o *GetModerationRuleDetailsParams) WithContext(ctx context.Context) *GetModerationRuleDetailsParams
- func (o *GetModerationRuleDetailsParams) WithHTTPClient(client *http.Client) *GetModerationRuleDetailsParams
- func (o *GetModerationRuleDetailsParams) WithNamespace(namespace string) *GetModerationRuleDetailsParams
- func (o *GetModerationRuleDetailsParams) WithRuleID(ruleID string) *GetModerationRuleDetailsParams
- func (o *GetModerationRuleDetailsParams) WithTimeout(timeout time.Duration) *GetModerationRuleDetailsParams
- func (o *GetModerationRuleDetailsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetModerationRuleDetailsReader
- type GetModerationRulesBadRequest
- type GetModerationRulesInternalServerError
- type GetModerationRulesNotFound
- type GetModerationRulesOK
- type GetModerationRulesParams
- func NewGetModerationRulesParams() *GetModerationRulesParams
- func NewGetModerationRulesParamsWithContext(ctx context.Context) *GetModerationRulesParams
- func NewGetModerationRulesParamsWithHTTPClient(client *http.Client) *GetModerationRulesParams
- func NewGetModerationRulesParamsWithTimeout(timeout time.Duration) *GetModerationRulesParams
- func (o *GetModerationRulesParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *GetModerationRulesParams) SetCategory(category *string)
- func (o *GetModerationRulesParams) SetContext(ctx context.Context)
- func (o *GetModerationRulesParams) SetExtensionCategory(extensionCategory *string)
- func (o *GetModerationRulesParams) SetHTTPClient(client *http.Client)
- func (o *GetModerationRulesParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *GetModerationRulesParams) SetLimit(limit *int64)
- func (o *GetModerationRulesParams) SetNamespace(namespace string)
- func (o *GetModerationRulesParams) SetOffset(offset *int64)
- func (o *GetModerationRulesParams) SetTimeout(timeout time.Duration)
- func (o *GetModerationRulesParams) WithCategory(category *string) *GetModerationRulesParams
- func (o *GetModerationRulesParams) WithContext(ctx context.Context) *GetModerationRulesParams
- func (o *GetModerationRulesParams) WithExtensionCategory(extensionCategory *string) *GetModerationRulesParams
- func (o *GetModerationRulesParams) WithHTTPClient(client *http.Client) *GetModerationRulesParams
- func (o *GetModerationRulesParams) WithLimit(limit *int64) *GetModerationRulesParams
- func (o *GetModerationRulesParams) WithNamespace(namespace string) *GetModerationRulesParams
- func (o *GetModerationRulesParams) WithOffset(offset *int64) *GetModerationRulesParams
- func (o *GetModerationRulesParams) WithTimeout(timeout time.Duration) *GetModerationRulesParams
- func (o *GetModerationRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetModerationRulesReader
- type UpdateModerationRuleBadRequest
- type UpdateModerationRuleConflict
- type UpdateModerationRuleInternalServerError
- type UpdateModerationRuleNotFound
- type UpdateModerationRuleOK
- type UpdateModerationRuleParams
- func NewUpdateModerationRuleParams() *UpdateModerationRuleParams
- func NewUpdateModerationRuleParamsWithContext(ctx context.Context) *UpdateModerationRuleParams
- func NewUpdateModerationRuleParamsWithHTTPClient(client *http.Client) *UpdateModerationRuleParams
- func NewUpdateModerationRuleParamsWithTimeout(timeout time.Duration) *UpdateModerationRuleParams
- func (o *UpdateModerationRuleParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *UpdateModerationRuleParams) SetBody(body *reportingclientmodels.RestapiModerationRuleRequest)
- func (o *UpdateModerationRuleParams) SetContext(ctx context.Context)
- func (o *UpdateModerationRuleParams) SetHTTPClient(client *http.Client)
- func (o *UpdateModerationRuleParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *UpdateModerationRuleParams) SetNamespace(namespace string)
- func (o *UpdateModerationRuleParams) SetRuleID(ruleID string)
- func (o *UpdateModerationRuleParams) SetTimeout(timeout time.Duration)
- func (o *UpdateModerationRuleParams) WithBody(body *reportingclientmodels.RestapiModerationRuleRequest) *UpdateModerationRuleParams
- func (o *UpdateModerationRuleParams) WithContext(ctx context.Context) *UpdateModerationRuleParams
- func (o *UpdateModerationRuleParams) WithHTTPClient(client *http.Client) *UpdateModerationRuleParams
- func (o *UpdateModerationRuleParams) WithNamespace(namespace string) *UpdateModerationRuleParams
- func (o *UpdateModerationRuleParams) WithRuleID(ruleID string) *UpdateModerationRuleParams
- func (o *UpdateModerationRuleParams) WithTimeout(timeout time.Duration) *UpdateModerationRuleParams
- func (o *UpdateModerationRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateModerationRuleReader
- type UpdateModerationRuleStatusBadRequest
- type UpdateModerationRuleStatusInternalServerError
- type UpdateModerationRuleStatusNoContent
- type UpdateModerationRuleStatusNotFound
- type UpdateModerationRuleStatusParams
- func NewUpdateModerationRuleStatusParams() *UpdateModerationRuleStatusParams
- func NewUpdateModerationRuleStatusParamsWithContext(ctx context.Context) *UpdateModerationRuleStatusParams
- func NewUpdateModerationRuleStatusParamsWithHTTPClient(client *http.Client) *UpdateModerationRuleStatusParams
- func NewUpdateModerationRuleStatusParamsWithTimeout(timeout time.Duration) *UpdateModerationRuleStatusParams
- func (o *UpdateModerationRuleStatusParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *UpdateModerationRuleStatusParams) SetBody(body *reportingclientmodels.RestapiModerationRuleActiveRequest)
- func (o *UpdateModerationRuleStatusParams) SetContext(ctx context.Context)
- func (o *UpdateModerationRuleStatusParams) SetHTTPClient(client *http.Client)
- func (o *UpdateModerationRuleStatusParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *UpdateModerationRuleStatusParams) SetNamespace(namespace string)
- func (o *UpdateModerationRuleStatusParams) SetRuleID(ruleID string)
- func (o *UpdateModerationRuleStatusParams) SetTimeout(timeout time.Duration)
- func (o *UpdateModerationRuleStatusParams) WithBody(body *reportingclientmodels.RestapiModerationRuleActiveRequest) *UpdateModerationRuleStatusParams
- func (o *UpdateModerationRuleStatusParams) WithContext(ctx context.Context) *UpdateModerationRuleStatusParams
- func (o *UpdateModerationRuleStatusParams) WithHTTPClient(client *http.Client) *UpdateModerationRuleStatusParams
- func (o *UpdateModerationRuleStatusParams) WithNamespace(namespace string) *UpdateModerationRuleStatusParams
- func (o *UpdateModerationRuleStatusParams) WithRuleID(ruleID string) *UpdateModerationRuleStatusParams
- func (o *UpdateModerationRuleStatusParams) WithTimeout(timeout time.Duration) *UpdateModerationRuleStatusParams
- func (o *UpdateModerationRuleStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateModerationRuleStatusReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for admin moderation rule API
func (*Client) CreateModerationRule
deprecated
func (a *Client) CreateModerationRule(params *CreateModerationRuleParams, authInfo runtime.ClientAuthInfoWriter) (*CreateModerationRuleCreated, *CreateModerationRuleBadRequest, *CreateModerationRuleConflict, *CreateModerationRuleInternalServerError, error)
Deprecated: Use CreateModerationRuleShort instead.
CreateModerationRule creates auto moderation rule <p>This endpoint create moderation rule.</p>
<p> Required Permission: ADMIN:NAMESPACE:{namespace}:RULE [CREATE]</p> <p> Supported Category: <ul><li>UGC</li><li>USER</li><li>CHAT</li><li>EXTENSION</li></ul></p> <p> Supported Action (GOING TO DEPRECATE, for replacement please use "actions"):</p> <ul>
<li>HideContent</li>
</ul> <p> Supported Actions:</p> <ul>
<li><b>hideContent</b>: Hide the content</li> <li><b>banAccount</b>: Ban the user account</li> <li><b>deleteChat</b>: Delete chat</li>
</ul>
func (*Client) CreateModerationRuleShort ¶
func (a *Client) CreateModerationRuleShort(params *CreateModerationRuleParams, authInfo runtime.ClientAuthInfoWriter) (*CreateModerationRuleCreated, error)
CreateModerationRuleShort creates auto moderation rule <p>This endpoint create moderation rule.</p>
<p> Required Permission: ADMIN:NAMESPACE:{namespace}:RULE [CREATE]</p> <p> Supported Category: <ul><li>UGC</li><li>USER</li><li>CHAT</li><li>EXTENSION</li></ul></p> <p> Supported Action (GOING TO DEPRECATE, for replacement please use "actions"):</p> <ul>
<li>HideContent</li>
</ul> <p> Supported Actions:</p> <ul>
<li><b>hideContent</b>: Hide the content</li> <li><b>banAccount</b>: Ban the user account</li> <li><b>deleteChat</b>: Delete chat</li>
</ul>
func (*Client) DeleteModerationRule
deprecated
func (a *Client) DeleteModerationRule(params *DeleteModerationRuleParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteModerationRuleNoContent, *DeleteModerationRuleBadRequest, *DeleteModerationRuleInternalServerError, error)
Deprecated: Use DeleteModerationRuleShort instead.
DeleteModerationRule deletes auto moderation rule <p>This endpoint delete moderation rule.</p>
<p> Required Permission: ADMIN:NAMESPACE:{namespace}:RULE [DELETE]
func (*Client) DeleteModerationRuleShort ¶
func (a *Client) DeleteModerationRuleShort(params *DeleteModerationRuleParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteModerationRuleNoContent, error)
DeleteModerationRuleShort deletes auto moderation rule <p>This endpoint delete moderation rule.</p>
<p> Required Permission: ADMIN:NAMESPACE:{namespace}:RULE [DELETE]
func (*Client) GetModerationRuleDetails
deprecated
func (a *Client) GetModerationRuleDetails(params *GetModerationRuleDetailsParams, authInfo runtime.ClientAuthInfoWriter) (*GetModerationRuleDetailsOK, *GetModerationRuleDetailsNotFound, *GetModerationRuleDetailsInternalServerError, error)
Deprecated: Use GetModerationRuleDetailsShort instead.
GetModerationRuleDetails gets auto moderation rule <p>This endpoint get moderation rule.</p>
<p> Required Permission: ADMIN:NAMESPACE:{namespace}:RULE [READ]
func (*Client) GetModerationRuleDetailsShort ¶
func (a *Client) GetModerationRuleDetailsShort(params *GetModerationRuleDetailsParams, authInfo runtime.ClientAuthInfoWriter) (*GetModerationRuleDetailsOK, error)
GetModerationRuleDetailsShort gets auto moderation rule <p>This endpoint get moderation rule.</p>
<p> Required Permission: ADMIN:NAMESPACE:{namespace}:RULE [READ]
func (*Client) GetModerationRules
deprecated
func (a *Client) GetModerationRules(params *GetModerationRulesParams, authInfo runtime.ClientAuthInfoWriter) (*GetModerationRulesOK, *GetModerationRulesBadRequest, *GetModerationRulesNotFound, *GetModerationRulesInternalServerError, error)
Deprecated: Use GetModerationRulesShort instead.
GetModerationRules gets auto moderation rules <p>This endpoint get moderation rules.</p>
<p> Required Permission: ADMIN:NAMESPACE:{namespace}:RULE [READ]
func (*Client) GetModerationRulesShort ¶
func (a *Client) GetModerationRulesShort(params *GetModerationRulesParams, authInfo runtime.ClientAuthInfoWriter) (*GetModerationRulesOK, error)
GetModerationRulesShort gets auto moderation rules <p>This endpoint get moderation rules.</p>
<p> Required Permission: ADMIN:NAMESPACE:{namespace}:RULE [READ]
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateModerationRule
deprecated
func (a *Client) UpdateModerationRule(params *UpdateModerationRuleParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateModerationRuleOK, *UpdateModerationRuleBadRequest, *UpdateModerationRuleNotFound, *UpdateModerationRuleConflict, *UpdateModerationRuleInternalServerError, error)
Deprecated: Use UpdateModerationRuleShort instead.
UpdateModerationRule updates auto moderation rule <p>This endpoint update moderation rule.</p>
<p> Required Permission: ADMIN:NAMESPACE:{namespace}:RULE [UPDATE] <p> Supported Category:<ul><li>UGC</li><li>USER</li><li>CHAT</li><li>EXTENSION</li></ul></p> <p> Supported Action (GOING TO DEPRECATE, for replacement please use "actions"):</p> <ul>
<li>HideContent</li>
</ul> <p> Supported Actions:</p> <ul>
<li><b>hideContent</b>: Hide the content</li> <li><b>banAccount</b>: Ban the user account</li> <li><b>deleteChat</b>: Delete chat</li>
</ul>
func (*Client) UpdateModerationRuleShort ¶
func (a *Client) UpdateModerationRuleShort(params *UpdateModerationRuleParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateModerationRuleOK, error)
UpdateModerationRuleShort updates auto moderation rule <p>This endpoint update moderation rule.</p>
<p> Required Permission: ADMIN:NAMESPACE:{namespace}:RULE [UPDATE] <p> Supported Category:<ul><li>UGC</li><li>USER</li><li>CHAT</li><li>EXTENSION</li></ul></p> <p> Supported Action (GOING TO DEPRECATE, for replacement please use "actions"):</p> <ul>
<li>HideContent</li>
</ul> <p> Supported Actions:</p> <ul>
<li><b>hideContent</b>: Hide the content</li> <li><b>banAccount</b>: Ban the user account</li> <li><b>deleteChat</b>: Delete chat</li>
</ul>
func (*Client) UpdateModerationRuleStatus
deprecated
func (a *Client) UpdateModerationRuleStatus(params *UpdateModerationRuleStatusParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateModerationRuleStatusNoContent, *UpdateModerationRuleStatusBadRequest, *UpdateModerationRuleStatusNotFound, *UpdateModerationRuleStatusInternalServerError, error)
Deprecated: Use UpdateModerationRuleStatusShort instead.
UpdateModerationRuleStatus enables disable auto moderation rule <p>This endpoint enable/disable moderation rule status.</p>
<p> Required Permission: ADMIN:NAMESPACE:{namespace}:RULE [UPDATE]
func (*Client) UpdateModerationRuleStatusShort ¶
func (a *Client) UpdateModerationRuleStatusShort(params *UpdateModerationRuleStatusParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateModerationRuleStatusNoContent, error)
UpdateModerationRuleStatusShort enables disable auto moderation rule <p>This endpoint enable/disable moderation rule status.</p>
<p> Required Permission: ADMIN:NAMESPACE:{namespace}:RULE [UPDATE]
type ClientService ¶
type ClientService interface { CreateModerationRule(params *CreateModerationRuleParams, authInfo runtime.ClientAuthInfoWriter) (*CreateModerationRuleCreated, *CreateModerationRuleBadRequest, *CreateModerationRuleConflict, *CreateModerationRuleInternalServerError, error) CreateModerationRuleShort(params *CreateModerationRuleParams, authInfo runtime.ClientAuthInfoWriter) (*CreateModerationRuleCreated, error) DeleteModerationRule(params *DeleteModerationRuleParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteModerationRuleNoContent, *DeleteModerationRuleBadRequest, *DeleteModerationRuleInternalServerError, error) DeleteModerationRuleShort(params *DeleteModerationRuleParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteModerationRuleNoContent, error) GetModerationRuleDetails(params *GetModerationRuleDetailsParams, authInfo runtime.ClientAuthInfoWriter) (*GetModerationRuleDetailsOK, *GetModerationRuleDetailsNotFound, *GetModerationRuleDetailsInternalServerError, error) GetModerationRuleDetailsShort(params *GetModerationRuleDetailsParams, authInfo runtime.ClientAuthInfoWriter) (*GetModerationRuleDetailsOK, error) GetModerationRules(params *GetModerationRulesParams, authInfo runtime.ClientAuthInfoWriter) (*GetModerationRulesOK, *GetModerationRulesBadRequest, *GetModerationRulesNotFound, *GetModerationRulesInternalServerError, error) GetModerationRulesShort(params *GetModerationRulesParams, authInfo runtime.ClientAuthInfoWriter) (*GetModerationRulesOK, error) UpdateModerationRule(params *UpdateModerationRuleParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateModerationRuleOK, *UpdateModerationRuleBadRequest, *UpdateModerationRuleNotFound, *UpdateModerationRuleConflict, *UpdateModerationRuleInternalServerError, error) UpdateModerationRuleShort(params *UpdateModerationRuleParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateModerationRuleOK, error) UpdateModerationRuleStatus(params *UpdateModerationRuleStatusParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateModerationRuleStatusNoContent, *UpdateModerationRuleStatusBadRequest, *UpdateModerationRuleStatusNotFound, *UpdateModerationRuleStatusInternalServerError, error) UpdateModerationRuleStatusShort(params *UpdateModerationRuleStatusParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateModerationRuleStatusNoContent, 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 admin moderation rule API client.
type CreateModerationRuleBadRequest ¶
type CreateModerationRuleBadRequest struct {
Payload *reportingclientmodels.RestapiErrorResponse
}
CreateModerationRuleBadRequest handles this case with default header values.
Bad Request
func NewCreateModerationRuleBadRequest ¶
func NewCreateModerationRuleBadRequest() *CreateModerationRuleBadRequest
NewCreateModerationRuleBadRequest creates a CreateModerationRuleBadRequest with default headers values
func (*CreateModerationRuleBadRequest) Error ¶
func (o *CreateModerationRuleBadRequest) Error() string
func (*CreateModerationRuleBadRequest) GetPayload ¶
func (o *CreateModerationRuleBadRequest) GetPayload() *reportingclientmodels.RestapiErrorResponse
func (*CreateModerationRuleBadRequest) ToJSONString ¶
func (o *CreateModerationRuleBadRequest) ToJSONString() string
type CreateModerationRuleConflict ¶
type CreateModerationRuleConflict struct {
Payload *reportingclientmodels.RestapiErrorResponse
}
CreateModerationRuleConflict handles this case with default header values.
Conflict
func NewCreateModerationRuleConflict ¶
func NewCreateModerationRuleConflict() *CreateModerationRuleConflict
NewCreateModerationRuleConflict creates a CreateModerationRuleConflict with default headers values
func (*CreateModerationRuleConflict) Error ¶
func (o *CreateModerationRuleConflict) Error() string
func (*CreateModerationRuleConflict) GetPayload ¶
func (o *CreateModerationRuleConflict) GetPayload() *reportingclientmodels.RestapiErrorResponse
func (*CreateModerationRuleConflict) ToJSONString ¶
func (o *CreateModerationRuleConflict) ToJSONString() string
type CreateModerationRuleCreated ¶
type CreateModerationRuleCreated struct { }
CreateModerationRuleCreated handles this case with default header values.
Created
func NewCreateModerationRuleCreated ¶
func NewCreateModerationRuleCreated() *CreateModerationRuleCreated
NewCreateModerationRuleCreated creates a CreateModerationRuleCreated with default headers values
func (*CreateModerationRuleCreated) Error ¶
func (o *CreateModerationRuleCreated) Error() string
type CreateModerationRuleInternalServerError ¶
type CreateModerationRuleInternalServerError struct {
Payload *reportingclientmodels.RestapiErrorResponse
}
CreateModerationRuleInternalServerError handles this case with default header values.
Internal Server Error
func NewCreateModerationRuleInternalServerError ¶
func NewCreateModerationRuleInternalServerError() *CreateModerationRuleInternalServerError
NewCreateModerationRuleInternalServerError creates a CreateModerationRuleInternalServerError with default headers values
func (*CreateModerationRuleInternalServerError) Error ¶
func (o *CreateModerationRuleInternalServerError) Error() string
func (*CreateModerationRuleInternalServerError) GetPayload ¶
func (o *CreateModerationRuleInternalServerError) GetPayload() *reportingclientmodels.RestapiErrorResponse
func (*CreateModerationRuleInternalServerError) ToJSONString ¶
func (o *CreateModerationRuleInternalServerError) ToJSONString() string
type CreateModerationRuleParams ¶
type CreateModerationRuleParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*Body*/ Body *reportingclientmodels.RestapiModerationRuleRequest /*Namespace*/ Namespace string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateModerationRuleParams contains all the parameters to send to the API endpoint for the create moderation rule operation typically these are written to a http.Request
func NewCreateModerationRuleParams ¶
func NewCreateModerationRuleParams() *CreateModerationRuleParams
NewCreateModerationRuleParams creates a new CreateModerationRuleParams object with the default values initialized.
func NewCreateModerationRuleParamsWithContext ¶
func NewCreateModerationRuleParamsWithContext(ctx context.Context) *CreateModerationRuleParams
NewCreateModerationRuleParamsWithContext creates a new CreateModerationRuleParams object with the default values initialized, and the ability to set a context for a request
func NewCreateModerationRuleParamsWithHTTPClient ¶
func NewCreateModerationRuleParamsWithHTTPClient(client *http.Client) *CreateModerationRuleParams
NewCreateModerationRuleParamsWithHTTPClient creates a new CreateModerationRuleParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCreateModerationRuleParamsWithTimeout ¶
func NewCreateModerationRuleParamsWithTimeout(timeout time.Duration) *CreateModerationRuleParams
NewCreateModerationRuleParamsWithTimeout creates a new CreateModerationRuleParams object with the default values initialized, and the ability to set a timeout on a request
func (*CreateModerationRuleParams) SetAuthInfoWriter ¶
func (o *CreateModerationRuleParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the create moderation rule params
func (*CreateModerationRuleParams) SetBody ¶
func (o *CreateModerationRuleParams) SetBody(body *reportingclientmodels.RestapiModerationRuleRequest)
SetBody adds the body to the create moderation rule params
func (*CreateModerationRuleParams) SetContext ¶
func (o *CreateModerationRuleParams) SetContext(ctx context.Context)
SetContext adds the context to the create moderation rule params
func (*CreateModerationRuleParams) SetHTTPClient ¶
func (o *CreateModerationRuleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create moderation rule params
func (*CreateModerationRuleParams) SetHTTPClientTransport ¶
func (o *CreateModerationRuleParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the create moderation rule params
func (*CreateModerationRuleParams) SetNamespace ¶
func (o *CreateModerationRuleParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the create moderation rule params
func (*CreateModerationRuleParams) SetTimeout ¶
func (o *CreateModerationRuleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create moderation rule params
func (*CreateModerationRuleParams) WithBody ¶
func (o *CreateModerationRuleParams) WithBody(body *reportingclientmodels.RestapiModerationRuleRequest) *CreateModerationRuleParams
WithBody adds the body to the create moderation rule params
func (*CreateModerationRuleParams) WithContext ¶
func (o *CreateModerationRuleParams) WithContext(ctx context.Context) *CreateModerationRuleParams
WithContext adds the context to the create moderation rule params
func (*CreateModerationRuleParams) WithHTTPClient ¶
func (o *CreateModerationRuleParams) WithHTTPClient(client *http.Client) *CreateModerationRuleParams
WithHTTPClient adds the HTTPClient to the create moderation rule params
func (*CreateModerationRuleParams) WithNamespace ¶
func (o *CreateModerationRuleParams) WithNamespace(namespace string) *CreateModerationRuleParams
WithNamespace adds the namespace to the create moderation rule params
func (*CreateModerationRuleParams) WithTimeout ¶
func (o *CreateModerationRuleParams) WithTimeout(timeout time.Duration) *CreateModerationRuleParams
WithTimeout adds the timeout to the create moderation rule params
func (*CreateModerationRuleParams) WriteToRequest ¶
func (o *CreateModerationRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateModerationRuleReader ¶
type CreateModerationRuleReader struct {
// contains filtered or unexported fields
}
CreateModerationRuleReader is a Reader for the CreateModerationRule structure.
func (*CreateModerationRuleReader) ReadResponse ¶
func (o *CreateModerationRuleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteModerationRuleBadRequest ¶
type DeleteModerationRuleBadRequest struct {
Payload *reportingclientmodels.RestapiErrorResponse
}
DeleteModerationRuleBadRequest handles this case with default header values.
Bad Request
func NewDeleteModerationRuleBadRequest ¶
func NewDeleteModerationRuleBadRequest() *DeleteModerationRuleBadRequest
NewDeleteModerationRuleBadRequest creates a DeleteModerationRuleBadRequest with default headers values
func (*DeleteModerationRuleBadRequest) Error ¶
func (o *DeleteModerationRuleBadRequest) Error() string
func (*DeleteModerationRuleBadRequest) GetPayload ¶
func (o *DeleteModerationRuleBadRequest) GetPayload() *reportingclientmodels.RestapiErrorResponse
func (*DeleteModerationRuleBadRequest) ToJSONString ¶
func (o *DeleteModerationRuleBadRequest) ToJSONString() string
type DeleteModerationRuleInternalServerError ¶
type DeleteModerationRuleInternalServerError struct {
Payload *reportingclientmodels.RestapiErrorResponse
}
DeleteModerationRuleInternalServerError handles this case with default header values.
Internal Server Error
func NewDeleteModerationRuleInternalServerError ¶
func NewDeleteModerationRuleInternalServerError() *DeleteModerationRuleInternalServerError
NewDeleteModerationRuleInternalServerError creates a DeleteModerationRuleInternalServerError with default headers values
func (*DeleteModerationRuleInternalServerError) Error ¶
func (o *DeleteModerationRuleInternalServerError) Error() string
func (*DeleteModerationRuleInternalServerError) GetPayload ¶
func (o *DeleteModerationRuleInternalServerError) GetPayload() *reportingclientmodels.RestapiErrorResponse
func (*DeleteModerationRuleInternalServerError) ToJSONString ¶
func (o *DeleteModerationRuleInternalServerError) ToJSONString() string
type DeleteModerationRuleNoContent ¶
type DeleteModerationRuleNoContent struct { }
DeleteModerationRuleNoContent handles this case with default header values.
No Content
func NewDeleteModerationRuleNoContent ¶
func NewDeleteModerationRuleNoContent() *DeleteModerationRuleNoContent
NewDeleteModerationRuleNoContent creates a DeleteModerationRuleNoContent with default headers values
func (*DeleteModerationRuleNoContent) Error ¶
func (o *DeleteModerationRuleNoContent) Error() string
type DeleteModerationRuleParams ¶
type DeleteModerationRuleParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*Namespace*/ Namespace string /*RuleID*/ RuleID string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteModerationRuleParams contains all the parameters to send to the API endpoint for the delete moderation rule operation typically these are written to a http.Request
func NewDeleteModerationRuleParams ¶
func NewDeleteModerationRuleParams() *DeleteModerationRuleParams
NewDeleteModerationRuleParams creates a new DeleteModerationRuleParams object with the default values initialized.
func NewDeleteModerationRuleParamsWithContext ¶
func NewDeleteModerationRuleParamsWithContext(ctx context.Context) *DeleteModerationRuleParams
NewDeleteModerationRuleParamsWithContext creates a new DeleteModerationRuleParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteModerationRuleParamsWithHTTPClient ¶
func NewDeleteModerationRuleParamsWithHTTPClient(client *http.Client) *DeleteModerationRuleParams
NewDeleteModerationRuleParamsWithHTTPClient creates a new DeleteModerationRuleParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteModerationRuleParamsWithTimeout ¶
func NewDeleteModerationRuleParamsWithTimeout(timeout time.Duration) *DeleteModerationRuleParams
NewDeleteModerationRuleParamsWithTimeout creates a new DeleteModerationRuleParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteModerationRuleParams) SetAuthInfoWriter ¶
func (o *DeleteModerationRuleParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the delete moderation rule params
func (*DeleteModerationRuleParams) SetContext ¶
func (o *DeleteModerationRuleParams) SetContext(ctx context.Context)
SetContext adds the context to the delete moderation rule params
func (*DeleteModerationRuleParams) SetHTTPClient ¶
func (o *DeleteModerationRuleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete moderation rule params
func (*DeleteModerationRuleParams) SetHTTPClientTransport ¶
func (o *DeleteModerationRuleParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the delete moderation rule params
func (*DeleteModerationRuleParams) SetNamespace ¶
func (o *DeleteModerationRuleParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the delete moderation rule params
func (*DeleteModerationRuleParams) SetRuleID ¶
func (o *DeleteModerationRuleParams) SetRuleID(ruleID string)
SetRuleID adds the ruleId to the delete moderation rule params
func (*DeleteModerationRuleParams) SetTimeout ¶
func (o *DeleteModerationRuleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete moderation rule params
func (*DeleteModerationRuleParams) WithContext ¶
func (o *DeleteModerationRuleParams) WithContext(ctx context.Context) *DeleteModerationRuleParams
WithContext adds the context to the delete moderation rule params
func (*DeleteModerationRuleParams) WithHTTPClient ¶
func (o *DeleteModerationRuleParams) WithHTTPClient(client *http.Client) *DeleteModerationRuleParams
WithHTTPClient adds the HTTPClient to the delete moderation rule params
func (*DeleteModerationRuleParams) WithNamespace ¶
func (o *DeleteModerationRuleParams) WithNamespace(namespace string) *DeleteModerationRuleParams
WithNamespace adds the namespace to the delete moderation rule params
func (*DeleteModerationRuleParams) WithRuleID ¶
func (o *DeleteModerationRuleParams) WithRuleID(ruleID string) *DeleteModerationRuleParams
WithRuleID adds the ruleID to the delete moderation rule params
func (*DeleteModerationRuleParams) WithTimeout ¶
func (o *DeleteModerationRuleParams) WithTimeout(timeout time.Duration) *DeleteModerationRuleParams
WithTimeout adds the timeout to the delete moderation rule params
func (*DeleteModerationRuleParams) WriteToRequest ¶
func (o *DeleteModerationRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteModerationRuleReader ¶
type DeleteModerationRuleReader struct {
// contains filtered or unexported fields
}
DeleteModerationRuleReader is a Reader for the DeleteModerationRule structure.
func (*DeleteModerationRuleReader) ReadResponse ¶
func (o *DeleteModerationRuleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetModerationRuleDetailsInternalServerError ¶
type GetModerationRuleDetailsInternalServerError struct {
Payload *reportingclientmodels.RestapiErrorResponse
}
GetModerationRuleDetailsInternalServerError handles this case with default header values.
Internal Server Error
func NewGetModerationRuleDetailsInternalServerError ¶
func NewGetModerationRuleDetailsInternalServerError() *GetModerationRuleDetailsInternalServerError
NewGetModerationRuleDetailsInternalServerError creates a GetModerationRuleDetailsInternalServerError with default headers values
func (*GetModerationRuleDetailsInternalServerError) Error ¶
func (o *GetModerationRuleDetailsInternalServerError) Error() string
func (*GetModerationRuleDetailsInternalServerError) GetPayload ¶
func (o *GetModerationRuleDetailsInternalServerError) GetPayload() *reportingclientmodels.RestapiErrorResponse
func (*GetModerationRuleDetailsInternalServerError) ToJSONString ¶
func (o *GetModerationRuleDetailsInternalServerError) ToJSONString() string
type GetModerationRuleDetailsNotFound ¶
type GetModerationRuleDetailsNotFound struct {
Payload *reportingclientmodels.RestapiErrorResponse
}
GetModerationRuleDetailsNotFound handles this case with default header values.
Not Found
func NewGetModerationRuleDetailsNotFound ¶
func NewGetModerationRuleDetailsNotFound() *GetModerationRuleDetailsNotFound
NewGetModerationRuleDetailsNotFound creates a GetModerationRuleDetailsNotFound with default headers values
func (*GetModerationRuleDetailsNotFound) Error ¶
func (o *GetModerationRuleDetailsNotFound) Error() string
func (*GetModerationRuleDetailsNotFound) GetPayload ¶
func (o *GetModerationRuleDetailsNotFound) GetPayload() *reportingclientmodels.RestapiErrorResponse
func (*GetModerationRuleDetailsNotFound) ToJSONString ¶
func (o *GetModerationRuleDetailsNotFound) ToJSONString() string
type GetModerationRuleDetailsOK ¶
type GetModerationRuleDetailsOK struct {
Payload *reportingclientmodels.RestapiModerationRuleResponse
}
GetModerationRuleDetailsOK handles this case with default header values.
OK
func NewGetModerationRuleDetailsOK ¶
func NewGetModerationRuleDetailsOK() *GetModerationRuleDetailsOK
NewGetModerationRuleDetailsOK creates a GetModerationRuleDetailsOK with default headers values
func (*GetModerationRuleDetailsOK) Error ¶
func (o *GetModerationRuleDetailsOK) Error() string
func (*GetModerationRuleDetailsOK) GetPayload ¶
func (o *GetModerationRuleDetailsOK) GetPayload() *reportingclientmodels.RestapiModerationRuleResponse
func (*GetModerationRuleDetailsOK) ToJSONString ¶
func (o *GetModerationRuleDetailsOK) ToJSONString() string
type GetModerationRuleDetailsParams ¶
type GetModerationRuleDetailsParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*Namespace*/ Namespace string /*RuleID*/ RuleID string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetModerationRuleDetailsParams contains all the parameters to send to the API endpoint for the get moderation rule details operation typically these are written to a http.Request
func NewGetModerationRuleDetailsParams ¶
func NewGetModerationRuleDetailsParams() *GetModerationRuleDetailsParams
NewGetModerationRuleDetailsParams creates a new GetModerationRuleDetailsParams object with the default values initialized.
func NewGetModerationRuleDetailsParamsWithContext ¶
func NewGetModerationRuleDetailsParamsWithContext(ctx context.Context) *GetModerationRuleDetailsParams
NewGetModerationRuleDetailsParamsWithContext creates a new GetModerationRuleDetailsParams object with the default values initialized, and the ability to set a context for a request
func NewGetModerationRuleDetailsParamsWithHTTPClient ¶
func NewGetModerationRuleDetailsParamsWithHTTPClient(client *http.Client) *GetModerationRuleDetailsParams
NewGetModerationRuleDetailsParamsWithHTTPClient creates a new GetModerationRuleDetailsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetModerationRuleDetailsParamsWithTimeout ¶
func NewGetModerationRuleDetailsParamsWithTimeout(timeout time.Duration) *GetModerationRuleDetailsParams
NewGetModerationRuleDetailsParamsWithTimeout creates a new GetModerationRuleDetailsParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetModerationRuleDetailsParams) SetAuthInfoWriter ¶
func (o *GetModerationRuleDetailsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the get moderation rule details params
func (*GetModerationRuleDetailsParams) SetContext ¶
func (o *GetModerationRuleDetailsParams) SetContext(ctx context.Context)
SetContext adds the context to the get moderation rule details params
func (*GetModerationRuleDetailsParams) SetHTTPClient ¶
func (o *GetModerationRuleDetailsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get moderation rule details params
func (*GetModerationRuleDetailsParams) SetHTTPClientTransport ¶
func (o *GetModerationRuleDetailsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the get moderation rule details params
func (*GetModerationRuleDetailsParams) SetNamespace ¶
func (o *GetModerationRuleDetailsParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the get moderation rule details params
func (*GetModerationRuleDetailsParams) SetRuleID ¶
func (o *GetModerationRuleDetailsParams) SetRuleID(ruleID string)
SetRuleID adds the ruleId to the get moderation rule details params
func (*GetModerationRuleDetailsParams) SetTimeout ¶
func (o *GetModerationRuleDetailsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get moderation rule details params
func (*GetModerationRuleDetailsParams) WithContext ¶
func (o *GetModerationRuleDetailsParams) WithContext(ctx context.Context) *GetModerationRuleDetailsParams
WithContext adds the context to the get moderation rule details params
func (*GetModerationRuleDetailsParams) WithHTTPClient ¶
func (o *GetModerationRuleDetailsParams) WithHTTPClient(client *http.Client) *GetModerationRuleDetailsParams
WithHTTPClient adds the HTTPClient to the get moderation rule details params
func (*GetModerationRuleDetailsParams) WithNamespace ¶
func (o *GetModerationRuleDetailsParams) WithNamespace(namespace string) *GetModerationRuleDetailsParams
WithNamespace adds the namespace to the get moderation rule details params
func (*GetModerationRuleDetailsParams) WithRuleID ¶
func (o *GetModerationRuleDetailsParams) WithRuleID(ruleID string) *GetModerationRuleDetailsParams
WithRuleID adds the ruleID to the get moderation rule details params
func (*GetModerationRuleDetailsParams) WithTimeout ¶
func (o *GetModerationRuleDetailsParams) WithTimeout(timeout time.Duration) *GetModerationRuleDetailsParams
WithTimeout adds the timeout to the get moderation rule details params
func (*GetModerationRuleDetailsParams) WriteToRequest ¶
func (o *GetModerationRuleDetailsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetModerationRuleDetailsReader ¶
type GetModerationRuleDetailsReader struct {
// contains filtered or unexported fields
}
GetModerationRuleDetailsReader is a Reader for the GetModerationRuleDetails structure.
func (*GetModerationRuleDetailsReader) ReadResponse ¶
func (o *GetModerationRuleDetailsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetModerationRulesBadRequest ¶
type GetModerationRulesBadRequest struct {
Payload *reportingclientmodels.RestapiErrorResponse
}
GetModerationRulesBadRequest handles this case with default header values.
Bad Request
func NewGetModerationRulesBadRequest ¶
func NewGetModerationRulesBadRequest() *GetModerationRulesBadRequest
NewGetModerationRulesBadRequest creates a GetModerationRulesBadRequest with default headers values
func (*GetModerationRulesBadRequest) Error ¶
func (o *GetModerationRulesBadRequest) Error() string
func (*GetModerationRulesBadRequest) GetPayload ¶
func (o *GetModerationRulesBadRequest) GetPayload() *reportingclientmodels.RestapiErrorResponse
func (*GetModerationRulesBadRequest) ToJSONString ¶
func (o *GetModerationRulesBadRequest) ToJSONString() string
type GetModerationRulesInternalServerError ¶
type GetModerationRulesInternalServerError struct {
Payload *reportingclientmodels.RestapiErrorResponse
}
GetModerationRulesInternalServerError handles this case with default header values.
Internal Server Error
func NewGetModerationRulesInternalServerError ¶
func NewGetModerationRulesInternalServerError() *GetModerationRulesInternalServerError
NewGetModerationRulesInternalServerError creates a GetModerationRulesInternalServerError with default headers values
func (*GetModerationRulesInternalServerError) Error ¶
func (o *GetModerationRulesInternalServerError) Error() string
func (*GetModerationRulesInternalServerError) GetPayload ¶
func (o *GetModerationRulesInternalServerError) GetPayload() *reportingclientmodels.RestapiErrorResponse
func (*GetModerationRulesInternalServerError) ToJSONString ¶
func (o *GetModerationRulesInternalServerError) ToJSONString() string
type GetModerationRulesNotFound ¶
type GetModerationRulesNotFound struct {
Payload *reportingclientmodels.RestapiErrorResponse
}
GetModerationRulesNotFound handles this case with default header values.
Not Found
func NewGetModerationRulesNotFound ¶
func NewGetModerationRulesNotFound() *GetModerationRulesNotFound
NewGetModerationRulesNotFound creates a GetModerationRulesNotFound with default headers values
func (*GetModerationRulesNotFound) Error ¶
func (o *GetModerationRulesNotFound) Error() string
func (*GetModerationRulesNotFound) GetPayload ¶
func (o *GetModerationRulesNotFound) GetPayload() *reportingclientmodels.RestapiErrorResponse
func (*GetModerationRulesNotFound) ToJSONString ¶
func (o *GetModerationRulesNotFound) ToJSONString() string
type GetModerationRulesOK ¶
type GetModerationRulesOK struct {
Payload *reportingclientmodels.RestapiModerationRulesList
}
GetModerationRulesOK handles this case with default header values.
OK
func NewGetModerationRulesOK ¶
func NewGetModerationRulesOK() *GetModerationRulesOK
NewGetModerationRulesOK creates a GetModerationRulesOK with default headers values
func (*GetModerationRulesOK) Error ¶
func (o *GetModerationRulesOK) Error() string
func (*GetModerationRulesOK) GetPayload ¶
func (o *GetModerationRulesOK) GetPayload() *reportingclientmodels.RestapiModerationRulesList
func (*GetModerationRulesOK) ToJSONString ¶
func (o *GetModerationRulesOK) ToJSONString() string
type GetModerationRulesParams ¶
type GetModerationRulesParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*Category filter rules by category */ Category *string /*ExtensionCategory filter rules by extension category */ ExtensionCategory *string /*Limit number of data requested (default 25) */ Limit *int64 /*Namespace*/ Namespace string /*Offset number of data offset (default 0) */ Offset *int64 AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetModerationRulesParams contains all the parameters to send to the API endpoint for the get moderation rules operation typically these are written to a http.Request
func NewGetModerationRulesParams ¶
func NewGetModerationRulesParams() *GetModerationRulesParams
NewGetModerationRulesParams creates a new GetModerationRulesParams object with the default values initialized.
func NewGetModerationRulesParamsWithContext ¶
func NewGetModerationRulesParamsWithContext(ctx context.Context) *GetModerationRulesParams
NewGetModerationRulesParamsWithContext creates a new GetModerationRulesParams object with the default values initialized, and the ability to set a context for a request
func NewGetModerationRulesParamsWithHTTPClient ¶
func NewGetModerationRulesParamsWithHTTPClient(client *http.Client) *GetModerationRulesParams
NewGetModerationRulesParamsWithHTTPClient creates a new GetModerationRulesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetModerationRulesParamsWithTimeout ¶
func NewGetModerationRulesParamsWithTimeout(timeout time.Duration) *GetModerationRulesParams
NewGetModerationRulesParamsWithTimeout creates a new GetModerationRulesParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetModerationRulesParams) SetAuthInfoWriter ¶
func (o *GetModerationRulesParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the get moderation rules params
func (*GetModerationRulesParams) SetCategory ¶
func (o *GetModerationRulesParams) SetCategory(category *string)
SetCategory adds the category to the get moderation rules params
func (*GetModerationRulesParams) SetContext ¶
func (o *GetModerationRulesParams) SetContext(ctx context.Context)
SetContext adds the context to the get moderation rules params
func (*GetModerationRulesParams) SetExtensionCategory ¶
func (o *GetModerationRulesParams) SetExtensionCategory(extensionCategory *string)
SetExtensionCategory adds the extensionCategory to the get moderation rules params
func (*GetModerationRulesParams) SetHTTPClient ¶
func (o *GetModerationRulesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get moderation rules params
func (*GetModerationRulesParams) SetHTTPClientTransport ¶
func (o *GetModerationRulesParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the get moderation rules params
func (*GetModerationRulesParams) SetLimit ¶
func (o *GetModerationRulesParams) SetLimit(limit *int64)
SetLimit adds the limit to the get moderation rules params
func (*GetModerationRulesParams) SetNamespace ¶
func (o *GetModerationRulesParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the get moderation rules params
func (*GetModerationRulesParams) SetOffset ¶
func (o *GetModerationRulesParams) SetOffset(offset *int64)
SetOffset adds the offset to the get moderation rules params
func (*GetModerationRulesParams) SetTimeout ¶
func (o *GetModerationRulesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get moderation rules params
func (*GetModerationRulesParams) WithCategory ¶
func (o *GetModerationRulesParams) WithCategory(category *string) *GetModerationRulesParams
WithCategory adds the category to the get moderation rules params
func (*GetModerationRulesParams) WithContext ¶
func (o *GetModerationRulesParams) WithContext(ctx context.Context) *GetModerationRulesParams
WithContext adds the context to the get moderation rules params
func (*GetModerationRulesParams) WithExtensionCategory ¶
func (o *GetModerationRulesParams) WithExtensionCategory(extensionCategory *string) *GetModerationRulesParams
WithExtensionCategory adds the extensionCategory to the get moderation rules params
func (*GetModerationRulesParams) WithHTTPClient ¶
func (o *GetModerationRulesParams) WithHTTPClient(client *http.Client) *GetModerationRulesParams
WithHTTPClient adds the HTTPClient to the get moderation rules params
func (*GetModerationRulesParams) WithLimit ¶
func (o *GetModerationRulesParams) WithLimit(limit *int64) *GetModerationRulesParams
WithLimit adds the limit to the get moderation rules params
func (*GetModerationRulesParams) WithNamespace ¶
func (o *GetModerationRulesParams) WithNamespace(namespace string) *GetModerationRulesParams
WithNamespace adds the namespace to the get moderation rules params
func (*GetModerationRulesParams) WithOffset ¶
func (o *GetModerationRulesParams) WithOffset(offset *int64) *GetModerationRulesParams
WithOffset adds the offset to the get moderation rules params
func (*GetModerationRulesParams) WithTimeout ¶
func (o *GetModerationRulesParams) WithTimeout(timeout time.Duration) *GetModerationRulesParams
WithTimeout adds the timeout to the get moderation rules params
func (*GetModerationRulesParams) WriteToRequest ¶
func (o *GetModerationRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetModerationRulesReader ¶
type GetModerationRulesReader struct {
// contains filtered or unexported fields
}
GetModerationRulesReader is a Reader for the GetModerationRules structure.
func (*GetModerationRulesReader) ReadResponse ¶
func (o *GetModerationRulesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateModerationRuleBadRequest ¶
type UpdateModerationRuleBadRequest struct {
Payload *reportingclientmodels.RestapiErrorResponse
}
UpdateModerationRuleBadRequest handles this case with default header values.
Bad Request
func NewUpdateModerationRuleBadRequest ¶
func NewUpdateModerationRuleBadRequest() *UpdateModerationRuleBadRequest
NewUpdateModerationRuleBadRequest creates a UpdateModerationRuleBadRequest with default headers values
func (*UpdateModerationRuleBadRequest) Error ¶
func (o *UpdateModerationRuleBadRequest) Error() string
func (*UpdateModerationRuleBadRequest) GetPayload ¶
func (o *UpdateModerationRuleBadRequest) GetPayload() *reportingclientmodels.RestapiErrorResponse
func (*UpdateModerationRuleBadRequest) ToJSONString ¶
func (o *UpdateModerationRuleBadRequest) ToJSONString() string
type UpdateModerationRuleConflict ¶
type UpdateModerationRuleConflict struct {
Payload *reportingclientmodels.RestapiErrorResponse
}
UpdateModerationRuleConflict handles this case with default header values.
Conflict
func NewUpdateModerationRuleConflict ¶
func NewUpdateModerationRuleConflict() *UpdateModerationRuleConflict
NewUpdateModerationRuleConflict creates a UpdateModerationRuleConflict with default headers values
func (*UpdateModerationRuleConflict) Error ¶
func (o *UpdateModerationRuleConflict) Error() string
func (*UpdateModerationRuleConflict) GetPayload ¶
func (o *UpdateModerationRuleConflict) GetPayload() *reportingclientmodels.RestapiErrorResponse
func (*UpdateModerationRuleConflict) ToJSONString ¶
func (o *UpdateModerationRuleConflict) ToJSONString() string
type UpdateModerationRuleInternalServerError ¶
type UpdateModerationRuleInternalServerError struct {
Payload *reportingclientmodels.RestapiErrorResponse
}
UpdateModerationRuleInternalServerError handles this case with default header values.
Internal Server Error
func NewUpdateModerationRuleInternalServerError ¶
func NewUpdateModerationRuleInternalServerError() *UpdateModerationRuleInternalServerError
NewUpdateModerationRuleInternalServerError creates a UpdateModerationRuleInternalServerError with default headers values
func (*UpdateModerationRuleInternalServerError) Error ¶
func (o *UpdateModerationRuleInternalServerError) Error() string
func (*UpdateModerationRuleInternalServerError) GetPayload ¶
func (o *UpdateModerationRuleInternalServerError) GetPayload() *reportingclientmodels.RestapiErrorResponse
func (*UpdateModerationRuleInternalServerError) ToJSONString ¶
func (o *UpdateModerationRuleInternalServerError) ToJSONString() string
type UpdateModerationRuleNotFound ¶
type UpdateModerationRuleNotFound struct {
Payload *reportingclientmodels.RestapiErrorResponse
}
UpdateModerationRuleNotFound handles this case with default header values.
Not Found
func NewUpdateModerationRuleNotFound ¶
func NewUpdateModerationRuleNotFound() *UpdateModerationRuleNotFound
NewUpdateModerationRuleNotFound creates a UpdateModerationRuleNotFound with default headers values
func (*UpdateModerationRuleNotFound) Error ¶
func (o *UpdateModerationRuleNotFound) Error() string
func (*UpdateModerationRuleNotFound) GetPayload ¶
func (o *UpdateModerationRuleNotFound) GetPayload() *reportingclientmodels.RestapiErrorResponse
func (*UpdateModerationRuleNotFound) ToJSONString ¶
func (o *UpdateModerationRuleNotFound) ToJSONString() string
type UpdateModerationRuleOK ¶
type UpdateModerationRuleOK struct {
Payload *reportingclientmodels.RestapiModerationRuleResponse
}
UpdateModerationRuleOK handles this case with default header values.
OK
func NewUpdateModerationRuleOK ¶
func NewUpdateModerationRuleOK() *UpdateModerationRuleOK
NewUpdateModerationRuleOK creates a UpdateModerationRuleOK with default headers values
func (*UpdateModerationRuleOK) Error ¶
func (o *UpdateModerationRuleOK) Error() string
func (*UpdateModerationRuleOK) GetPayload ¶
func (o *UpdateModerationRuleOK) GetPayload() *reportingclientmodels.RestapiModerationRuleResponse
func (*UpdateModerationRuleOK) ToJSONString ¶
func (o *UpdateModerationRuleOK) ToJSONString() string
type UpdateModerationRuleParams ¶
type UpdateModerationRuleParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*Body*/ Body *reportingclientmodels.RestapiModerationRuleRequest /*Namespace*/ Namespace string /*RuleID*/ RuleID string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateModerationRuleParams contains all the parameters to send to the API endpoint for the update moderation rule operation typically these are written to a http.Request
func NewUpdateModerationRuleParams ¶
func NewUpdateModerationRuleParams() *UpdateModerationRuleParams
NewUpdateModerationRuleParams creates a new UpdateModerationRuleParams object with the default values initialized.
func NewUpdateModerationRuleParamsWithContext ¶
func NewUpdateModerationRuleParamsWithContext(ctx context.Context) *UpdateModerationRuleParams
NewUpdateModerationRuleParamsWithContext creates a new UpdateModerationRuleParams object with the default values initialized, and the ability to set a context for a request
func NewUpdateModerationRuleParamsWithHTTPClient ¶
func NewUpdateModerationRuleParamsWithHTTPClient(client *http.Client) *UpdateModerationRuleParams
NewUpdateModerationRuleParamsWithHTTPClient creates a new UpdateModerationRuleParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewUpdateModerationRuleParamsWithTimeout ¶
func NewUpdateModerationRuleParamsWithTimeout(timeout time.Duration) *UpdateModerationRuleParams
NewUpdateModerationRuleParamsWithTimeout creates a new UpdateModerationRuleParams object with the default values initialized, and the ability to set a timeout on a request
func (*UpdateModerationRuleParams) SetAuthInfoWriter ¶
func (o *UpdateModerationRuleParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the update moderation rule params
func (*UpdateModerationRuleParams) SetBody ¶
func (o *UpdateModerationRuleParams) SetBody(body *reportingclientmodels.RestapiModerationRuleRequest)
SetBody adds the body to the update moderation rule params
func (*UpdateModerationRuleParams) SetContext ¶
func (o *UpdateModerationRuleParams) SetContext(ctx context.Context)
SetContext adds the context to the update moderation rule params
func (*UpdateModerationRuleParams) SetHTTPClient ¶
func (o *UpdateModerationRuleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update moderation rule params
func (*UpdateModerationRuleParams) SetHTTPClientTransport ¶
func (o *UpdateModerationRuleParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the update moderation rule params
func (*UpdateModerationRuleParams) SetNamespace ¶
func (o *UpdateModerationRuleParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the update moderation rule params
func (*UpdateModerationRuleParams) SetRuleID ¶
func (o *UpdateModerationRuleParams) SetRuleID(ruleID string)
SetRuleID adds the ruleId to the update moderation rule params
func (*UpdateModerationRuleParams) SetTimeout ¶
func (o *UpdateModerationRuleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update moderation rule params
func (*UpdateModerationRuleParams) WithBody ¶
func (o *UpdateModerationRuleParams) WithBody(body *reportingclientmodels.RestapiModerationRuleRequest) *UpdateModerationRuleParams
WithBody adds the body to the update moderation rule params
func (*UpdateModerationRuleParams) WithContext ¶
func (o *UpdateModerationRuleParams) WithContext(ctx context.Context) *UpdateModerationRuleParams
WithContext adds the context to the update moderation rule params
func (*UpdateModerationRuleParams) WithHTTPClient ¶
func (o *UpdateModerationRuleParams) WithHTTPClient(client *http.Client) *UpdateModerationRuleParams
WithHTTPClient adds the HTTPClient to the update moderation rule params
func (*UpdateModerationRuleParams) WithNamespace ¶
func (o *UpdateModerationRuleParams) WithNamespace(namespace string) *UpdateModerationRuleParams
WithNamespace adds the namespace to the update moderation rule params
func (*UpdateModerationRuleParams) WithRuleID ¶
func (o *UpdateModerationRuleParams) WithRuleID(ruleID string) *UpdateModerationRuleParams
WithRuleID adds the ruleID to the update moderation rule params
func (*UpdateModerationRuleParams) WithTimeout ¶
func (o *UpdateModerationRuleParams) WithTimeout(timeout time.Duration) *UpdateModerationRuleParams
WithTimeout adds the timeout to the update moderation rule params
func (*UpdateModerationRuleParams) WriteToRequest ¶
func (o *UpdateModerationRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateModerationRuleReader ¶
type UpdateModerationRuleReader struct {
// contains filtered or unexported fields
}
UpdateModerationRuleReader is a Reader for the UpdateModerationRule structure.
func (*UpdateModerationRuleReader) ReadResponse ¶
func (o *UpdateModerationRuleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateModerationRuleStatusBadRequest ¶
type UpdateModerationRuleStatusBadRequest struct {
Payload *reportingclientmodels.RestapiErrorResponse
}
UpdateModerationRuleStatusBadRequest handles this case with default header values.
Bad Request
func NewUpdateModerationRuleStatusBadRequest ¶
func NewUpdateModerationRuleStatusBadRequest() *UpdateModerationRuleStatusBadRequest
NewUpdateModerationRuleStatusBadRequest creates a UpdateModerationRuleStatusBadRequest with default headers values
func (*UpdateModerationRuleStatusBadRequest) Error ¶
func (o *UpdateModerationRuleStatusBadRequest) Error() string
func (*UpdateModerationRuleStatusBadRequest) GetPayload ¶
func (o *UpdateModerationRuleStatusBadRequest) GetPayload() *reportingclientmodels.RestapiErrorResponse
func (*UpdateModerationRuleStatusBadRequest) ToJSONString ¶
func (o *UpdateModerationRuleStatusBadRequest) ToJSONString() string
type UpdateModerationRuleStatusInternalServerError ¶
type UpdateModerationRuleStatusInternalServerError struct {
Payload *reportingclientmodels.RestapiErrorResponse
}
UpdateModerationRuleStatusInternalServerError handles this case with default header values.
Internal Server Error
func NewUpdateModerationRuleStatusInternalServerError ¶
func NewUpdateModerationRuleStatusInternalServerError() *UpdateModerationRuleStatusInternalServerError
NewUpdateModerationRuleStatusInternalServerError creates a UpdateModerationRuleStatusInternalServerError with default headers values
func (*UpdateModerationRuleStatusInternalServerError) Error ¶
func (o *UpdateModerationRuleStatusInternalServerError) Error() string
func (*UpdateModerationRuleStatusInternalServerError) GetPayload ¶
func (o *UpdateModerationRuleStatusInternalServerError) GetPayload() *reportingclientmodels.RestapiErrorResponse
func (*UpdateModerationRuleStatusInternalServerError) ToJSONString ¶
func (o *UpdateModerationRuleStatusInternalServerError) ToJSONString() string
type UpdateModerationRuleStatusNoContent ¶
type UpdateModerationRuleStatusNoContent struct { }
UpdateModerationRuleStatusNoContent handles this case with default header values.
No Content
func NewUpdateModerationRuleStatusNoContent ¶
func NewUpdateModerationRuleStatusNoContent() *UpdateModerationRuleStatusNoContent
NewUpdateModerationRuleStatusNoContent creates a UpdateModerationRuleStatusNoContent with default headers values
func (*UpdateModerationRuleStatusNoContent) Error ¶
func (o *UpdateModerationRuleStatusNoContent) Error() string
type UpdateModerationRuleStatusNotFound ¶
type UpdateModerationRuleStatusNotFound struct {
Payload *reportingclientmodels.RestapiErrorResponse
}
UpdateModerationRuleStatusNotFound handles this case with default header values.
Not Found
func NewUpdateModerationRuleStatusNotFound ¶
func NewUpdateModerationRuleStatusNotFound() *UpdateModerationRuleStatusNotFound
NewUpdateModerationRuleStatusNotFound creates a UpdateModerationRuleStatusNotFound with default headers values
func (*UpdateModerationRuleStatusNotFound) Error ¶
func (o *UpdateModerationRuleStatusNotFound) Error() string
func (*UpdateModerationRuleStatusNotFound) GetPayload ¶
func (o *UpdateModerationRuleStatusNotFound) GetPayload() *reportingclientmodels.RestapiErrorResponse
func (*UpdateModerationRuleStatusNotFound) ToJSONString ¶
func (o *UpdateModerationRuleStatusNotFound) ToJSONString() string
type UpdateModerationRuleStatusParams ¶
type UpdateModerationRuleStatusParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*Body*/ Body *reportingclientmodels.RestapiModerationRuleActiveRequest /*Namespace*/ Namespace string /*RuleID*/ RuleID string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateModerationRuleStatusParams contains all the parameters to send to the API endpoint for the update moderation rule status operation typically these are written to a http.Request
func NewUpdateModerationRuleStatusParams ¶
func NewUpdateModerationRuleStatusParams() *UpdateModerationRuleStatusParams
NewUpdateModerationRuleStatusParams creates a new UpdateModerationRuleStatusParams object with the default values initialized.
func NewUpdateModerationRuleStatusParamsWithContext ¶
func NewUpdateModerationRuleStatusParamsWithContext(ctx context.Context) *UpdateModerationRuleStatusParams
NewUpdateModerationRuleStatusParamsWithContext creates a new UpdateModerationRuleStatusParams object with the default values initialized, and the ability to set a context for a request
func NewUpdateModerationRuleStatusParamsWithHTTPClient ¶
func NewUpdateModerationRuleStatusParamsWithHTTPClient(client *http.Client) *UpdateModerationRuleStatusParams
NewUpdateModerationRuleStatusParamsWithHTTPClient creates a new UpdateModerationRuleStatusParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewUpdateModerationRuleStatusParamsWithTimeout ¶
func NewUpdateModerationRuleStatusParamsWithTimeout(timeout time.Duration) *UpdateModerationRuleStatusParams
NewUpdateModerationRuleStatusParamsWithTimeout creates a new UpdateModerationRuleStatusParams object with the default values initialized, and the ability to set a timeout on a request
func (*UpdateModerationRuleStatusParams) SetAuthInfoWriter ¶
func (o *UpdateModerationRuleStatusParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the update moderation rule status params
func (*UpdateModerationRuleStatusParams) SetBody ¶
func (o *UpdateModerationRuleStatusParams) SetBody(body *reportingclientmodels.RestapiModerationRuleActiveRequest)
SetBody adds the body to the update moderation rule status params
func (*UpdateModerationRuleStatusParams) SetContext ¶
func (o *UpdateModerationRuleStatusParams) SetContext(ctx context.Context)
SetContext adds the context to the update moderation rule status params
func (*UpdateModerationRuleStatusParams) SetHTTPClient ¶
func (o *UpdateModerationRuleStatusParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update moderation rule status params
func (*UpdateModerationRuleStatusParams) SetHTTPClientTransport ¶
func (o *UpdateModerationRuleStatusParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the update moderation rule status params
func (*UpdateModerationRuleStatusParams) SetNamespace ¶
func (o *UpdateModerationRuleStatusParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the update moderation rule status params
func (*UpdateModerationRuleStatusParams) SetRuleID ¶
func (o *UpdateModerationRuleStatusParams) SetRuleID(ruleID string)
SetRuleID adds the ruleId to the update moderation rule status params
func (*UpdateModerationRuleStatusParams) SetTimeout ¶
func (o *UpdateModerationRuleStatusParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update moderation rule status params
func (*UpdateModerationRuleStatusParams) WithBody ¶
func (o *UpdateModerationRuleStatusParams) WithBody(body *reportingclientmodels.RestapiModerationRuleActiveRequest) *UpdateModerationRuleStatusParams
WithBody adds the body to the update moderation rule status params
func (*UpdateModerationRuleStatusParams) WithContext ¶
func (o *UpdateModerationRuleStatusParams) WithContext(ctx context.Context) *UpdateModerationRuleStatusParams
WithContext adds the context to the update moderation rule status params
func (*UpdateModerationRuleStatusParams) WithHTTPClient ¶
func (o *UpdateModerationRuleStatusParams) WithHTTPClient(client *http.Client) *UpdateModerationRuleStatusParams
WithHTTPClient adds the HTTPClient to the update moderation rule status params
func (*UpdateModerationRuleStatusParams) WithNamespace ¶
func (o *UpdateModerationRuleStatusParams) WithNamespace(namespace string) *UpdateModerationRuleStatusParams
WithNamespace adds the namespace to the update moderation rule status params
func (*UpdateModerationRuleStatusParams) WithRuleID ¶
func (o *UpdateModerationRuleStatusParams) WithRuleID(ruleID string) *UpdateModerationRuleStatusParams
WithRuleID adds the ruleID to the update moderation rule status params
func (*UpdateModerationRuleStatusParams) WithTimeout ¶
func (o *UpdateModerationRuleStatusParams) WithTimeout(timeout time.Duration) *UpdateModerationRuleStatusParams
WithTimeout adds the timeout to the update moderation rule status params
func (*UpdateModerationRuleStatusParams) WriteToRequest ¶
func (o *UpdateModerationRuleStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateModerationRuleStatusReader ¶
type UpdateModerationRuleStatusReader struct {
// contains filtered or unexported fields
}
UpdateModerationRuleStatusReader is a Reader for the UpdateModerationRuleStatus structure.
func (*UpdateModerationRuleStatusReader) ReadResponse ¶
func (o *UpdateModerationRuleStatusReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- admin_moderation_rule_client.go
- create_moderation_rule_parameters.go
- create_moderation_rule_responses.go
- delete_moderation_rule_parameters.go
- delete_moderation_rule_responses.go
- get_moderation_rule_details_parameters.go
- get_moderation_rule_details_responses.go
- get_moderation_rules_parameters.go
- get_moderation_rules_responses.go
- update_moderation_rule_parameters.go
- update_moderation_rule_responses.go
- update_moderation_rule_status_parameters.go
- update_moderation_rule_status_responses.go