Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type ReadForbidden
- func (o *ReadForbidden) Code() int
- func (o *ReadForbidden) Error() string
- func (o *ReadForbidden) IsClientError() bool
- func (o *ReadForbidden) IsCode(code int) bool
- func (o *ReadForbidden) IsRedirect() bool
- func (o *ReadForbidden) IsServerError() bool
- func (o *ReadForbidden) IsSuccess() bool
- func (o *ReadForbidden) String() string
- type ReadOK
- func (o *ReadOK) Code() int
- func (o *ReadOK) Error() string
- func (o *ReadOK) GetPayload() *models.AnonymousAccessSettingsXO
- func (o *ReadOK) IsClientError() bool
- func (o *ReadOK) IsCode(code int) bool
- func (o *ReadOK) IsRedirect() bool
- func (o *ReadOK) IsServerError() bool
- func (o *ReadOK) IsSuccess() bool
- func (o *ReadOK) String() string
- type ReadParams
- func (o *ReadParams) SetContext(ctx context.Context)
- func (o *ReadParams) SetDefaults()
- func (o *ReadParams) SetHTTPClient(client *http.Client)
- func (o *ReadParams) SetTimeout(timeout time.Duration)
- func (o *ReadParams) WithContext(ctx context.Context) *ReadParams
- func (o *ReadParams) WithDefaults() *ReadParams
- func (o *ReadParams) WithHTTPClient(client *http.Client) *ReadParams
- func (o *ReadParams) WithTimeout(timeout time.Duration) *ReadParams
- func (o *ReadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ReadReader
- type UpdateForbidden
- func (o *UpdateForbidden) Code() int
- func (o *UpdateForbidden) Error() string
- func (o *UpdateForbidden) IsClientError() bool
- func (o *UpdateForbidden) IsCode(code int) bool
- func (o *UpdateForbidden) IsRedirect() bool
- func (o *UpdateForbidden) IsServerError() bool
- func (o *UpdateForbidden) IsSuccess() bool
- func (o *UpdateForbidden) String() string
- type UpdateOK
- func (o *UpdateOK) Code() int
- func (o *UpdateOK) Error() string
- func (o *UpdateOK) GetPayload() *models.AnonymousAccessSettingsXO
- func (o *UpdateOK) IsClientError() bool
- func (o *UpdateOK) IsCode(code int) bool
- func (o *UpdateOK) IsRedirect() bool
- func (o *UpdateOK) IsServerError() bool
- func (o *UpdateOK) IsSuccess() bool
- func (o *UpdateOK) String() string
- type UpdateParams
- func (o *UpdateParams) SetBody(body *models.AnonymousAccessSettingsXO)
- func (o *UpdateParams) SetContext(ctx context.Context)
- func (o *UpdateParams) SetDefaults()
- func (o *UpdateParams) SetHTTPClient(client *http.Client)
- func (o *UpdateParams) SetTimeout(timeout time.Duration)
- func (o *UpdateParams) WithBody(body *models.AnonymousAccessSettingsXO) *UpdateParams
- func (o *UpdateParams) WithContext(ctx context.Context) *UpdateParams
- func (o *UpdateParams) WithDefaults() *UpdateParams
- func (o *UpdateParams) WithHTTPClient(client *http.Client) *UpdateParams
- func (o *UpdateParams) WithTimeout(timeout time.Duration) *UpdateParams
- func (o *UpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateReader
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 security management anonymous access API
func (*Client) Read ¶
func (a *Client) Read(params *ReadParams, opts ...ClientOption) (*ReadOK, error)
Read gets anonymous access settings
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) Update ¶
func (a *Client) Update(params *UpdateParams, opts ...ClientOption) (*UpdateOK, error)
Update updates anonymous access settings
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { Read(params *ReadParams, opts ...ClientOption) (*ReadOK, error) Update(params *UpdateParams, opts ...ClientOption) (*UpdateOK, 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 security management anonymous access API client.
type ReadForbidden ¶
type ReadForbidden struct { }
ReadForbidden describes a response with status code 403, with default header values.
Insufficient permissions to update settings
func NewReadForbidden ¶
func NewReadForbidden() *ReadForbidden
NewReadForbidden creates a ReadForbidden with default headers values
func (*ReadForbidden) Code ¶
func (o *ReadForbidden) Code() int
Code gets the status code for the read forbidden response
func (*ReadForbidden) Error ¶
func (o *ReadForbidden) Error() string
func (*ReadForbidden) IsClientError ¶
func (o *ReadForbidden) IsClientError() bool
IsClientError returns true when this read forbidden response has a 4xx status code
func (*ReadForbidden) IsCode ¶
func (o *ReadForbidden) IsCode(code int) bool
IsCode returns true when this read forbidden response a status code equal to that given
func (*ReadForbidden) IsRedirect ¶
func (o *ReadForbidden) IsRedirect() bool
IsRedirect returns true when this read forbidden response has a 3xx status code
func (*ReadForbidden) IsServerError ¶
func (o *ReadForbidden) IsServerError() bool
IsServerError returns true when this read forbidden response has a 5xx status code
func (*ReadForbidden) IsSuccess ¶
func (o *ReadForbidden) IsSuccess() bool
IsSuccess returns true when this read forbidden response has a 2xx status code
func (*ReadForbidden) String ¶
func (o *ReadForbidden) String() string
type ReadOK ¶
type ReadOK struct {
Payload *models.AnonymousAccessSettingsXO
}
ReadOK describes a response with status code 200, with default header values.
successful operation
func (*ReadOK) GetPayload ¶
func (o *ReadOK) GetPayload() *models.AnonymousAccessSettingsXO
func (*ReadOK) IsClientError ¶
IsClientError returns true when this read o k response has a 4xx status code
func (*ReadOK) IsCode ¶
IsCode returns true when this read o k response a status code equal to that given
func (*ReadOK) IsRedirect ¶
IsRedirect returns true when this read o k response has a 3xx status code
func (*ReadOK) IsServerError ¶
IsServerError returns true when this read o k response has a 5xx status code
type ReadParams ¶
type ReadParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ReadParams contains all the parameters to send to the API endpoint
for the read operation. Typically these are written to a http.Request.
func NewReadParams ¶
func NewReadParams() *ReadParams
NewReadParams creates a new ReadParams 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 NewReadParamsWithContext ¶
func NewReadParamsWithContext(ctx context.Context) *ReadParams
NewReadParamsWithContext creates a new ReadParams object with the ability to set a context for a request.
func NewReadParamsWithHTTPClient ¶
func NewReadParamsWithHTTPClient(client *http.Client) *ReadParams
NewReadParamsWithHTTPClient creates a new ReadParams object with the ability to set a custom HTTPClient for a request.
func NewReadParamsWithTimeout ¶
func NewReadParamsWithTimeout(timeout time.Duration) *ReadParams
NewReadParamsWithTimeout creates a new ReadParams object with the ability to set a timeout on a request.
func (*ReadParams) SetContext ¶
func (o *ReadParams) SetContext(ctx context.Context)
SetContext adds the context to the read params
func (*ReadParams) SetDefaults ¶
func (o *ReadParams) SetDefaults()
SetDefaults hydrates default values in the read params (not the query body).
All values with no default are reset to their zero value.
func (*ReadParams) SetHTTPClient ¶
func (o *ReadParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the read params
func (*ReadParams) SetTimeout ¶
func (o *ReadParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the read params
func (*ReadParams) WithContext ¶
func (o *ReadParams) WithContext(ctx context.Context) *ReadParams
WithContext adds the context to the read params
func (*ReadParams) WithDefaults ¶
func (o *ReadParams) WithDefaults() *ReadParams
WithDefaults hydrates default values in the read params (not the query body).
All values with no default are reset to their zero value.
func (*ReadParams) WithHTTPClient ¶
func (o *ReadParams) WithHTTPClient(client *http.Client) *ReadParams
WithHTTPClient adds the HTTPClient to the read params
func (*ReadParams) WithTimeout ¶
func (o *ReadParams) WithTimeout(timeout time.Duration) *ReadParams
WithTimeout adds the timeout to the read params
func (*ReadParams) WriteToRequest ¶
func (o *ReadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ReadReader ¶
type ReadReader struct {
// contains filtered or unexported fields
}
ReadReader is a Reader for the Read structure.
func (*ReadReader) ReadResponse ¶
func (o *ReadReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateForbidden ¶
type UpdateForbidden struct { }
UpdateForbidden describes a response with status code 403, with default header values.
Insufficient permissions to update settings
func NewUpdateForbidden ¶
func NewUpdateForbidden() *UpdateForbidden
NewUpdateForbidden creates a UpdateForbidden with default headers values
func (*UpdateForbidden) Code ¶
func (o *UpdateForbidden) Code() int
Code gets the status code for the update forbidden response
func (*UpdateForbidden) Error ¶
func (o *UpdateForbidden) Error() string
func (*UpdateForbidden) IsClientError ¶
func (o *UpdateForbidden) IsClientError() bool
IsClientError returns true when this update forbidden response has a 4xx status code
func (*UpdateForbidden) IsCode ¶
func (o *UpdateForbidden) IsCode(code int) bool
IsCode returns true when this update forbidden response a status code equal to that given
func (*UpdateForbidden) IsRedirect ¶
func (o *UpdateForbidden) IsRedirect() bool
IsRedirect returns true when this update forbidden response has a 3xx status code
func (*UpdateForbidden) IsServerError ¶
func (o *UpdateForbidden) IsServerError() bool
IsServerError returns true when this update forbidden response has a 5xx status code
func (*UpdateForbidden) IsSuccess ¶
func (o *UpdateForbidden) IsSuccess() bool
IsSuccess returns true when this update forbidden response has a 2xx status code
func (*UpdateForbidden) String ¶
func (o *UpdateForbidden) String() string
type UpdateOK ¶
type UpdateOK struct {
Payload *models.AnonymousAccessSettingsXO
}
UpdateOK describes a response with status code 200, with default header values.
successful operation
func NewUpdateOK ¶
func NewUpdateOK() *UpdateOK
NewUpdateOK creates a UpdateOK with default headers values
func (*UpdateOK) GetPayload ¶
func (o *UpdateOK) GetPayload() *models.AnonymousAccessSettingsXO
func (*UpdateOK) IsClientError ¶
IsClientError returns true when this update o k response has a 4xx status code
func (*UpdateOK) IsCode ¶
IsCode returns true when this update o k response a status code equal to that given
func (*UpdateOK) IsRedirect ¶
IsRedirect returns true when this update o k response has a 3xx status code
func (*UpdateOK) IsServerError ¶
IsServerError returns true when this update o k response has a 5xx status code
type UpdateParams ¶
type UpdateParams struct { // Body. Body *models.AnonymousAccessSettingsXO Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateParams contains all the parameters to send to the API endpoint
for the update operation. Typically these are written to a http.Request.
func NewUpdateParams ¶
func NewUpdateParams() *UpdateParams
NewUpdateParams creates a new UpdateParams 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 NewUpdateParamsWithContext ¶
func NewUpdateParamsWithContext(ctx context.Context) *UpdateParams
NewUpdateParamsWithContext creates a new UpdateParams object with the ability to set a context for a request.
func NewUpdateParamsWithHTTPClient ¶
func NewUpdateParamsWithHTTPClient(client *http.Client) *UpdateParams
NewUpdateParamsWithHTTPClient creates a new UpdateParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateParamsWithTimeout ¶
func NewUpdateParamsWithTimeout(timeout time.Duration) *UpdateParams
NewUpdateParamsWithTimeout creates a new UpdateParams object with the ability to set a timeout on a request.
func (*UpdateParams) SetBody ¶
func (o *UpdateParams) SetBody(body *models.AnonymousAccessSettingsXO)
SetBody adds the body to the update params
func (*UpdateParams) SetContext ¶
func (o *UpdateParams) SetContext(ctx context.Context)
SetContext adds the context to the update params
func (*UpdateParams) SetDefaults ¶
func (o *UpdateParams) SetDefaults()
SetDefaults hydrates default values in the update params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateParams) SetHTTPClient ¶
func (o *UpdateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update params
func (*UpdateParams) SetTimeout ¶
func (o *UpdateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update params
func (*UpdateParams) WithBody ¶
func (o *UpdateParams) WithBody(body *models.AnonymousAccessSettingsXO) *UpdateParams
WithBody adds the body to the update params
func (*UpdateParams) WithContext ¶
func (o *UpdateParams) WithContext(ctx context.Context) *UpdateParams
WithContext adds the context to the update params
func (*UpdateParams) WithDefaults ¶
func (o *UpdateParams) WithDefaults() *UpdateParams
WithDefaults hydrates default values in the update params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateParams) WithHTTPClient ¶
func (o *UpdateParams) WithHTTPClient(client *http.Client) *UpdateParams
WithHTTPClient adds the HTTPClient to the update params
func (*UpdateParams) WithTimeout ¶
func (o *UpdateParams) WithTimeout(timeout time.Duration) *UpdateParams
WithTimeout adds the timeout to the update params
func (*UpdateParams) WriteToRequest ¶
func (o *UpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateReader ¶
type UpdateReader struct {
// contains filtered or unexported fields
}
UpdateReader is a Reader for the Update structure.
func (*UpdateReader) ReadResponse ¶
func (o *UpdateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.