security_management_anonymous_access

package
v0.0.0-...-f4869d1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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 NewReadOK

func NewReadOK() *ReadOK

NewReadOK creates a ReadOK with default headers values

func (*ReadOK) Code

func (o *ReadOK) Code() int

Code gets the status code for the read o k response

func (*ReadOK) Error

func (o *ReadOK) Error() string

func (*ReadOK) GetPayload

func (o *ReadOK) GetPayload() *models.AnonymousAccessSettingsXO

func (*ReadOK) IsClientError

func (o *ReadOK) IsClientError() bool

IsClientError returns true when this read o k response has a 4xx status code

func (*ReadOK) IsCode

func (o *ReadOK) IsCode(code int) bool

IsCode returns true when this read o k response a status code equal to that given

func (*ReadOK) IsRedirect

func (o *ReadOK) IsRedirect() bool

IsRedirect returns true when this read o k response has a 3xx status code

func (*ReadOK) IsServerError

func (o *ReadOK) IsServerError() bool

IsServerError returns true when this read o k response has a 5xx status code

func (*ReadOK) IsSuccess

func (o *ReadOK) IsSuccess() bool

IsSuccess returns true when this read o k response has a 2xx status code

func (*ReadOK) String

func (o *ReadOK) String() string

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) Code

func (o *UpdateOK) Code() int

Code gets the status code for the update o k response

func (*UpdateOK) Error

func (o *UpdateOK) Error() string

func (*UpdateOK) GetPayload

func (o *UpdateOK) GetPayload() *models.AnonymousAccessSettingsXO

func (*UpdateOK) IsClientError

func (o *UpdateOK) IsClientError() bool

IsClientError returns true when this update o k response has a 4xx status code

func (*UpdateOK) IsCode

func (o *UpdateOK) IsCode(code int) bool

IsCode returns true when this update o k response a status code equal to that given

func (*UpdateOK) IsRedirect

func (o *UpdateOK) IsRedirect() bool

IsRedirect returns true when this update o k response has a 3xx status code

func (*UpdateOK) IsServerError

func (o *UpdateOK) IsServerError() bool

IsServerError returns true when this update o k response has a 5xx status code

func (*UpdateOK) IsSuccess

func (o *UpdateOK) IsSuccess() bool

IsSuccess returns true when this update o k response has a 2xx status code

func (*UpdateOK) String

func (o *UpdateOK) String() string

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

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.

Jump to

Keyboard shortcuts

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