Documentation ¶
Index ¶
- type Client
- func (a *Client) GetBansType(params *GetBansTypeParams, authInfo runtime.ClientAuthInfoWriter) (*GetBansTypeOK, *GetBansTypeUnauthorized, *GetBansTypeForbidden, error)
- func (a *Client) GetBansTypeShort(params *GetBansTypeParams, authInfo runtime.ClientAuthInfoWriter) (*GetBansTypeOK, error)
- func (a *Client) GetListBanReason(params *GetListBanReasonParams, authInfo runtime.ClientAuthInfoWriter) (*GetListBanReasonOK, *GetListBanReasonUnauthorized, *GetListBanReasonForbidden, ...)
- func (a *Client) GetListBanReasonShort(params *GetListBanReasonParams, authInfo runtime.ClientAuthInfoWriter) (*GetListBanReasonOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type GetBansTypeForbidden
- type GetBansTypeOK
- type GetBansTypeParams
- func (o *GetBansTypeParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *GetBansTypeParams) SetContext(ctx context.Context)
- func (o *GetBansTypeParams) SetHTTPClient(client *http.Client)
- func (o *GetBansTypeParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *GetBansTypeParams) SetTimeout(timeout time.Duration)
- func (o *GetBansTypeParams) WithContext(ctx context.Context) *GetBansTypeParams
- func (o *GetBansTypeParams) WithHTTPClient(client *http.Client) *GetBansTypeParams
- func (o *GetBansTypeParams) WithTimeout(timeout time.Duration) *GetBansTypeParams
- func (o *GetBansTypeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetBansTypeReader
- type GetBansTypeUnauthorized
- type GetListBanReasonForbidden
- type GetListBanReasonOK
- type GetListBanReasonParams
- func NewGetListBanReasonParams() *GetListBanReasonParams
- func NewGetListBanReasonParamsWithContext(ctx context.Context) *GetListBanReasonParams
- func NewGetListBanReasonParamsWithHTTPClient(client *http.Client) *GetListBanReasonParams
- func NewGetListBanReasonParamsWithTimeout(timeout time.Duration) *GetListBanReasonParams
- func (o *GetListBanReasonParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *GetListBanReasonParams) SetContext(ctx context.Context)
- func (o *GetListBanReasonParams) SetHTTPClient(client *http.Client)
- func (o *GetListBanReasonParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *GetListBanReasonParams) SetTimeout(timeout time.Duration)
- func (o *GetListBanReasonParams) WithContext(ctx context.Context) *GetListBanReasonParams
- func (o *GetListBanReasonParams) WithHTTPClient(client *http.Client) *GetListBanReasonParams
- func (o *GetListBanReasonParams) WithTimeout(timeout time.Duration) *GetListBanReasonParams
- func (o *GetListBanReasonParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetListBanReasonReader
- type GetListBanReasonUnauthorized
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 bans deprecated API
func (*Client) GetBansType ¶
func (a *Client) GetBansType(params *GetBansTypeParams, authInfo runtime.ClientAuthInfoWriter) (*GetBansTypeOK, *GetBansTypeUnauthorized, *GetBansTypeForbidden, error)
GetBansType gets list of ban types <h2>The endpoint is going to be deprecated</h2> </br> <p>Required permission 'BAN:ADMIN [READ]' or 'ADMIN:BAN [READ]'</p> <strong>Endpoint migration guide</strong> <ul> <li><b>Substitute endpoint: <i>/iam/v3/admin/bans [GET]</i></b></li> <li><b>Note: </b></li> </ul></p>
func (*Client) GetBansTypeShort ¶
func (a *Client) GetBansTypeShort(params *GetBansTypeParams, authInfo runtime.ClientAuthInfoWriter) (*GetBansTypeOK, error)
func (*Client) GetListBanReason ¶
func (a *Client) GetListBanReason(params *GetListBanReasonParams, authInfo runtime.ClientAuthInfoWriter) (*GetListBanReasonOK, *GetListBanReasonUnauthorized, *GetListBanReasonForbidden, error)
GetListBanReason gets list of ban reasons <h2>The endpoint is going to be deprecated</h2> </br> <p>Required permission 'BAN:ADMIN [READ]' or 'ADMIN:BAN [READ]'</p> <strong>Endpoint migration guide</strong> <ul> <li><b>Substitute endpoint: <i>/iam/v3/admin/bans/reasons [GET]</i></b></li> <li><b>Note: </b></li> </ul></p>
func (*Client) GetListBanReasonShort ¶
func (a *Client) GetListBanReasonShort(params *GetListBanReasonParams, authInfo runtime.ClientAuthInfoWriter) (*GetListBanReasonOK, error)
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { GetBansType(params *GetBansTypeParams, authInfo runtime.ClientAuthInfoWriter) (*GetBansTypeOK, *GetBansTypeUnauthorized, *GetBansTypeForbidden, error) GetBansTypeShort(params *GetBansTypeParams, authInfo runtime.ClientAuthInfoWriter) (*GetBansTypeOK, error) GetListBanReason(params *GetListBanReasonParams, authInfo runtime.ClientAuthInfoWriter) (*GetListBanReasonOK, *GetListBanReasonUnauthorized, *GetListBanReasonForbidden, error) GetListBanReasonShort(params *GetListBanReasonParams, authInfo runtime.ClientAuthInfoWriter) (*GetListBanReasonOK, 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 bans deprecated API client.
type GetBansTypeForbidden ¶
type GetBansTypeForbidden struct { }
GetBansTypeForbidden handles this case with default header values.
Forbidden
func NewGetBansTypeForbidden ¶
func NewGetBansTypeForbidden() *GetBansTypeForbidden
NewGetBansTypeForbidden creates a GetBansTypeForbidden with default headers values
func (*GetBansTypeForbidden) Error ¶
func (o *GetBansTypeForbidden) Error() string
type GetBansTypeOK ¶
type GetBansTypeOK struct {
Payload *iamclientmodels.AccountcommonBans
}
GetBansTypeOK handles this case with default header values.
OK
func NewGetBansTypeOK ¶
func NewGetBansTypeOK() *GetBansTypeOK
NewGetBansTypeOK creates a GetBansTypeOK with default headers values
func (*GetBansTypeOK) Error ¶
func (o *GetBansTypeOK) Error() string
func (*GetBansTypeOK) GetPayload ¶
func (o *GetBansTypeOK) GetPayload() *iamclientmodels.AccountcommonBans
type GetBansTypeParams ¶
type GetBansTypeParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetBansTypeParams contains all the parameters to send to the API endpoint for the get bans type operation typically these are written to a http.Request
func NewGetBansTypeParams ¶
func NewGetBansTypeParams() *GetBansTypeParams
NewGetBansTypeParams creates a new GetBansTypeParams object with the default values initialized.
func NewGetBansTypeParamsWithContext ¶
func NewGetBansTypeParamsWithContext(ctx context.Context) *GetBansTypeParams
NewGetBansTypeParamsWithContext creates a new GetBansTypeParams object with the default values initialized, and the ability to set a context for a request
func NewGetBansTypeParamsWithHTTPClient ¶
func NewGetBansTypeParamsWithHTTPClient(client *http.Client) *GetBansTypeParams
NewGetBansTypeParamsWithHTTPClient creates a new GetBansTypeParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetBansTypeParamsWithTimeout ¶
func NewGetBansTypeParamsWithTimeout(timeout time.Duration) *GetBansTypeParams
NewGetBansTypeParamsWithTimeout creates a new GetBansTypeParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetBansTypeParams) SetAuthInfoWriter ¶
func (o *GetBansTypeParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the get bans type params
func (*GetBansTypeParams) SetContext ¶
func (o *GetBansTypeParams) SetContext(ctx context.Context)
SetContext adds the context to the get bans type params
func (*GetBansTypeParams) SetHTTPClient ¶
func (o *GetBansTypeParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get bans type params
func (*GetBansTypeParams) SetHTTPClientTransport ¶
func (o *GetBansTypeParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the get bans type params
func (*GetBansTypeParams) SetTimeout ¶
func (o *GetBansTypeParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get bans type params
func (*GetBansTypeParams) WithContext ¶
func (o *GetBansTypeParams) WithContext(ctx context.Context) *GetBansTypeParams
WithContext adds the context to the get bans type params
func (*GetBansTypeParams) WithHTTPClient ¶
func (o *GetBansTypeParams) WithHTTPClient(client *http.Client) *GetBansTypeParams
WithHTTPClient adds the HTTPClient to the get bans type params
func (*GetBansTypeParams) WithTimeout ¶
func (o *GetBansTypeParams) WithTimeout(timeout time.Duration) *GetBansTypeParams
WithTimeout adds the timeout to the get bans type params
func (*GetBansTypeParams) WriteToRequest ¶
func (o *GetBansTypeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetBansTypeReader ¶
type GetBansTypeReader struct {
// contains filtered or unexported fields
}
GetBansTypeReader is a Reader for the GetBansType structure.
func (*GetBansTypeReader) ReadResponse ¶
func (o *GetBansTypeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetBansTypeUnauthorized ¶
type GetBansTypeUnauthorized struct { }
GetBansTypeUnauthorized handles this case with default header values.
Unauthorized access
func NewGetBansTypeUnauthorized ¶
func NewGetBansTypeUnauthorized() *GetBansTypeUnauthorized
NewGetBansTypeUnauthorized creates a GetBansTypeUnauthorized with default headers values
func (*GetBansTypeUnauthorized) Error ¶
func (o *GetBansTypeUnauthorized) Error() string
type GetListBanReasonForbidden ¶
type GetListBanReasonForbidden struct { }
GetListBanReasonForbidden handles this case with default header values.
Forbidden
func NewGetListBanReasonForbidden ¶
func NewGetListBanReasonForbidden() *GetListBanReasonForbidden
NewGetListBanReasonForbidden creates a GetListBanReasonForbidden with default headers values
func (*GetListBanReasonForbidden) Error ¶
func (o *GetListBanReasonForbidden) Error() string
type GetListBanReasonOK ¶
type GetListBanReasonOK struct {
Payload *iamclientmodels.AccountcommonBanReasons
}
GetListBanReasonOK handles this case with default header values.
OK
func NewGetListBanReasonOK ¶
func NewGetListBanReasonOK() *GetListBanReasonOK
NewGetListBanReasonOK creates a GetListBanReasonOK with default headers values
func (*GetListBanReasonOK) Error ¶
func (o *GetListBanReasonOK) Error() string
func (*GetListBanReasonOK) GetPayload ¶
func (o *GetListBanReasonOK) GetPayload() *iamclientmodels.AccountcommonBanReasons
type GetListBanReasonParams ¶
type GetListBanReasonParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetListBanReasonParams contains all the parameters to send to the API endpoint for the get list ban reason operation typically these are written to a http.Request
func NewGetListBanReasonParams ¶
func NewGetListBanReasonParams() *GetListBanReasonParams
NewGetListBanReasonParams creates a new GetListBanReasonParams object with the default values initialized.
func NewGetListBanReasonParamsWithContext ¶
func NewGetListBanReasonParamsWithContext(ctx context.Context) *GetListBanReasonParams
NewGetListBanReasonParamsWithContext creates a new GetListBanReasonParams object with the default values initialized, and the ability to set a context for a request
func NewGetListBanReasonParamsWithHTTPClient ¶
func NewGetListBanReasonParamsWithHTTPClient(client *http.Client) *GetListBanReasonParams
NewGetListBanReasonParamsWithHTTPClient creates a new GetListBanReasonParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetListBanReasonParamsWithTimeout ¶
func NewGetListBanReasonParamsWithTimeout(timeout time.Duration) *GetListBanReasonParams
NewGetListBanReasonParamsWithTimeout creates a new GetListBanReasonParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetListBanReasonParams) SetAuthInfoWriter ¶
func (o *GetListBanReasonParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the get list ban reason params
func (*GetListBanReasonParams) SetContext ¶
func (o *GetListBanReasonParams) SetContext(ctx context.Context)
SetContext adds the context to the get list ban reason params
func (*GetListBanReasonParams) SetHTTPClient ¶
func (o *GetListBanReasonParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get list ban reason params
func (*GetListBanReasonParams) SetHTTPClientTransport ¶
func (o *GetListBanReasonParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the get list ban reason params
func (*GetListBanReasonParams) SetTimeout ¶
func (o *GetListBanReasonParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get list ban reason params
func (*GetListBanReasonParams) WithContext ¶
func (o *GetListBanReasonParams) WithContext(ctx context.Context) *GetListBanReasonParams
WithContext adds the context to the get list ban reason params
func (*GetListBanReasonParams) WithHTTPClient ¶
func (o *GetListBanReasonParams) WithHTTPClient(client *http.Client) *GetListBanReasonParams
WithHTTPClient adds the HTTPClient to the get list ban reason params
func (*GetListBanReasonParams) WithTimeout ¶
func (o *GetListBanReasonParams) WithTimeout(timeout time.Duration) *GetListBanReasonParams
WithTimeout adds the timeout to the get list ban reason params
func (*GetListBanReasonParams) WriteToRequest ¶
func (o *GetListBanReasonParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetListBanReasonReader ¶
type GetListBanReasonReader struct {
// contains filtered or unexported fields
}
GetListBanReasonReader is a Reader for the GetListBanReason structure.
func (*GetListBanReasonReader) ReadResponse ¶
func (o *GetListBanReasonReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetListBanReasonUnauthorized ¶
type GetListBanReasonUnauthorized struct { }
GetListBanReasonUnauthorized handles this case with default header values.
Unauthorized access
func NewGetListBanReasonUnauthorized ¶
func NewGetListBanReasonUnauthorized() *GetListBanReasonUnauthorized
NewGetListBanReasonUnauthorized creates a GetListBanReasonUnauthorized with default headers values
func (*GetListBanReasonUnauthorized) Error ¶
func (o *GetListBanReasonUnauthorized) Error() string