Documentation ¶
Index ¶
- type Client
- func (a *Client) GetOrgPreferences(opts ...ClientOption) (*GetOrgPreferencesOK, error)
- func (a *Client) GetOrgPreferencesWithParams(params *GetOrgPreferencesParams, opts ...ClientOption) (*GetOrgPreferencesOK, error)
- func (a *Client) PatchOrgPreferences(body *models.PatchPrefsCmd, opts ...ClientOption) (*PatchOrgPreferencesOK, error)
- func (a *Client) PatchOrgPreferencesWithParams(params *PatchOrgPreferencesParams, opts ...ClientOption) (*PatchOrgPreferencesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateOrgPreferences(body *models.UpdatePrefsCmd, opts ...ClientOption) (*UpdateOrgPreferencesOK, error)
- func (a *Client) UpdateOrgPreferencesWithParams(params *UpdateOrgPreferencesParams, opts ...ClientOption) (*UpdateOrgPreferencesOK, error)
- type ClientOption
- type ClientService
- type GetOrgPreferencesForbidden
- func (o *GetOrgPreferencesForbidden) Code() int
- func (o *GetOrgPreferencesForbidden) Error() string
- func (o *GetOrgPreferencesForbidden) GetPayload() *models.ErrorResponseBody
- func (o *GetOrgPreferencesForbidden) IsClientError() bool
- func (o *GetOrgPreferencesForbidden) IsCode(code int) bool
- func (o *GetOrgPreferencesForbidden) IsRedirect() bool
- func (o *GetOrgPreferencesForbidden) IsServerError() bool
- func (o *GetOrgPreferencesForbidden) IsSuccess() bool
- func (o *GetOrgPreferencesForbidden) String() string
- type GetOrgPreferencesInternalServerError
- func (o *GetOrgPreferencesInternalServerError) Code() int
- func (o *GetOrgPreferencesInternalServerError) Error() string
- func (o *GetOrgPreferencesInternalServerError) GetPayload() *models.ErrorResponseBody
- func (o *GetOrgPreferencesInternalServerError) IsClientError() bool
- func (o *GetOrgPreferencesInternalServerError) IsCode(code int) bool
- func (o *GetOrgPreferencesInternalServerError) IsRedirect() bool
- func (o *GetOrgPreferencesInternalServerError) IsServerError() bool
- func (o *GetOrgPreferencesInternalServerError) IsSuccess() bool
- func (o *GetOrgPreferencesInternalServerError) String() string
- type GetOrgPreferencesOK
- func (o *GetOrgPreferencesOK) Code() int
- func (o *GetOrgPreferencesOK) Error() string
- func (o *GetOrgPreferencesOK) GetPayload() *models.Preferences
- func (o *GetOrgPreferencesOK) IsClientError() bool
- func (o *GetOrgPreferencesOK) IsCode(code int) bool
- func (o *GetOrgPreferencesOK) IsRedirect() bool
- func (o *GetOrgPreferencesOK) IsServerError() bool
- func (o *GetOrgPreferencesOK) IsSuccess() bool
- func (o *GetOrgPreferencesOK) String() string
- type GetOrgPreferencesParams
- func NewGetOrgPreferencesParams() *GetOrgPreferencesParams
- func NewGetOrgPreferencesParamsWithContext(ctx context.Context) *GetOrgPreferencesParams
- func NewGetOrgPreferencesParamsWithHTTPClient(client *http.Client) *GetOrgPreferencesParams
- func NewGetOrgPreferencesParamsWithTimeout(timeout time.Duration) *GetOrgPreferencesParams
- func (o *GetOrgPreferencesParams) SetContext(ctx context.Context)
- func (o *GetOrgPreferencesParams) SetDefaults()
- func (o *GetOrgPreferencesParams) SetHTTPClient(client *http.Client)
- func (o *GetOrgPreferencesParams) SetTimeout(timeout time.Duration)
- func (o *GetOrgPreferencesParams) WithContext(ctx context.Context) *GetOrgPreferencesParams
- func (o *GetOrgPreferencesParams) WithDefaults() *GetOrgPreferencesParams
- func (o *GetOrgPreferencesParams) WithHTTPClient(client *http.Client) *GetOrgPreferencesParams
- func (o *GetOrgPreferencesParams) WithTimeout(timeout time.Duration) *GetOrgPreferencesParams
- func (o *GetOrgPreferencesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetOrgPreferencesReader
- type GetOrgPreferencesUnauthorized
- func (o *GetOrgPreferencesUnauthorized) Code() int
- func (o *GetOrgPreferencesUnauthorized) Error() string
- func (o *GetOrgPreferencesUnauthorized) GetPayload() *models.ErrorResponseBody
- func (o *GetOrgPreferencesUnauthorized) IsClientError() bool
- func (o *GetOrgPreferencesUnauthorized) IsCode(code int) bool
- func (o *GetOrgPreferencesUnauthorized) IsRedirect() bool
- func (o *GetOrgPreferencesUnauthorized) IsServerError() bool
- func (o *GetOrgPreferencesUnauthorized) IsSuccess() bool
- func (o *GetOrgPreferencesUnauthorized) String() string
- type PatchOrgPreferencesBadRequest
- func (o *PatchOrgPreferencesBadRequest) Code() int
- func (o *PatchOrgPreferencesBadRequest) Error() string
- func (o *PatchOrgPreferencesBadRequest) GetPayload() *models.ErrorResponseBody
- func (o *PatchOrgPreferencesBadRequest) IsClientError() bool
- func (o *PatchOrgPreferencesBadRequest) IsCode(code int) bool
- func (o *PatchOrgPreferencesBadRequest) IsRedirect() bool
- func (o *PatchOrgPreferencesBadRequest) IsServerError() bool
- func (o *PatchOrgPreferencesBadRequest) IsSuccess() bool
- func (o *PatchOrgPreferencesBadRequest) String() string
- type PatchOrgPreferencesForbidden
- func (o *PatchOrgPreferencesForbidden) Code() int
- func (o *PatchOrgPreferencesForbidden) Error() string
- func (o *PatchOrgPreferencesForbidden) GetPayload() *models.ErrorResponseBody
- func (o *PatchOrgPreferencesForbidden) IsClientError() bool
- func (o *PatchOrgPreferencesForbidden) IsCode(code int) bool
- func (o *PatchOrgPreferencesForbidden) IsRedirect() bool
- func (o *PatchOrgPreferencesForbidden) IsServerError() bool
- func (o *PatchOrgPreferencesForbidden) IsSuccess() bool
- func (o *PatchOrgPreferencesForbidden) String() string
- type PatchOrgPreferencesInternalServerError
- func (o *PatchOrgPreferencesInternalServerError) Code() int
- func (o *PatchOrgPreferencesInternalServerError) Error() string
- func (o *PatchOrgPreferencesInternalServerError) GetPayload() *models.ErrorResponseBody
- func (o *PatchOrgPreferencesInternalServerError) IsClientError() bool
- func (o *PatchOrgPreferencesInternalServerError) IsCode(code int) bool
- func (o *PatchOrgPreferencesInternalServerError) IsRedirect() bool
- func (o *PatchOrgPreferencesInternalServerError) IsServerError() bool
- func (o *PatchOrgPreferencesInternalServerError) IsSuccess() bool
- func (o *PatchOrgPreferencesInternalServerError) String() string
- type PatchOrgPreferencesOK
- func (o *PatchOrgPreferencesOK) Code() int
- func (o *PatchOrgPreferencesOK) Error() string
- func (o *PatchOrgPreferencesOK) GetPayload() *models.SuccessResponseBody
- func (o *PatchOrgPreferencesOK) IsClientError() bool
- func (o *PatchOrgPreferencesOK) IsCode(code int) bool
- func (o *PatchOrgPreferencesOK) IsRedirect() bool
- func (o *PatchOrgPreferencesOK) IsServerError() bool
- func (o *PatchOrgPreferencesOK) IsSuccess() bool
- func (o *PatchOrgPreferencesOK) String() string
- type PatchOrgPreferencesParams
- func NewPatchOrgPreferencesParams() *PatchOrgPreferencesParams
- func NewPatchOrgPreferencesParamsWithContext(ctx context.Context) *PatchOrgPreferencesParams
- func NewPatchOrgPreferencesParamsWithHTTPClient(client *http.Client) *PatchOrgPreferencesParams
- func NewPatchOrgPreferencesParamsWithTimeout(timeout time.Duration) *PatchOrgPreferencesParams
- func (o *PatchOrgPreferencesParams) SetBody(body *models.PatchPrefsCmd)
- func (o *PatchOrgPreferencesParams) SetContext(ctx context.Context)
- func (o *PatchOrgPreferencesParams) SetDefaults()
- func (o *PatchOrgPreferencesParams) SetHTTPClient(client *http.Client)
- func (o *PatchOrgPreferencesParams) SetTimeout(timeout time.Duration)
- func (o *PatchOrgPreferencesParams) WithBody(body *models.PatchPrefsCmd) *PatchOrgPreferencesParams
- func (o *PatchOrgPreferencesParams) WithContext(ctx context.Context) *PatchOrgPreferencesParams
- func (o *PatchOrgPreferencesParams) WithDefaults() *PatchOrgPreferencesParams
- func (o *PatchOrgPreferencesParams) WithHTTPClient(client *http.Client) *PatchOrgPreferencesParams
- func (o *PatchOrgPreferencesParams) WithTimeout(timeout time.Duration) *PatchOrgPreferencesParams
- func (o *PatchOrgPreferencesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PatchOrgPreferencesReader
- type PatchOrgPreferencesUnauthorized
- func (o *PatchOrgPreferencesUnauthorized) Code() int
- func (o *PatchOrgPreferencesUnauthorized) Error() string
- func (o *PatchOrgPreferencesUnauthorized) GetPayload() *models.ErrorResponseBody
- func (o *PatchOrgPreferencesUnauthorized) IsClientError() bool
- func (o *PatchOrgPreferencesUnauthorized) IsCode(code int) bool
- func (o *PatchOrgPreferencesUnauthorized) IsRedirect() bool
- func (o *PatchOrgPreferencesUnauthorized) IsServerError() bool
- func (o *PatchOrgPreferencesUnauthorized) IsSuccess() bool
- func (o *PatchOrgPreferencesUnauthorized) String() string
- type UpdateOrgPreferencesBadRequest
- func (o *UpdateOrgPreferencesBadRequest) Code() int
- func (o *UpdateOrgPreferencesBadRequest) Error() string
- func (o *UpdateOrgPreferencesBadRequest) GetPayload() *models.ErrorResponseBody
- func (o *UpdateOrgPreferencesBadRequest) IsClientError() bool
- func (o *UpdateOrgPreferencesBadRequest) IsCode(code int) bool
- func (o *UpdateOrgPreferencesBadRequest) IsRedirect() bool
- func (o *UpdateOrgPreferencesBadRequest) IsServerError() bool
- func (o *UpdateOrgPreferencesBadRequest) IsSuccess() bool
- func (o *UpdateOrgPreferencesBadRequest) String() string
- type UpdateOrgPreferencesForbidden
- func (o *UpdateOrgPreferencesForbidden) Code() int
- func (o *UpdateOrgPreferencesForbidden) Error() string
- func (o *UpdateOrgPreferencesForbidden) GetPayload() *models.ErrorResponseBody
- func (o *UpdateOrgPreferencesForbidden) IsClientError() bool
- func (o *UpdateOrgPreferencesForbidden) IsCode(code int) bool
- func (o *UpdateOrgPreferencesForbidden) IsRedirect() bool
- func (o *UpdateOrgPreferencesForbidden) IsServerError() bool
- func (o *UpdateOrgPreferencesForbidden) IsSuccess() bool
- func (o *UpdateOrgPreferencesForbidden) String() string
- type UpdateOrgPreferencesInternalServerError
- func (o *UpdateOrgPreferencesInternalServerError) Code() int
- func (o *UpdateOrgPreferencesInternalServerError) Error() string
- func (o *UpdateOrgPreferencesInternalServerError) GetPayload() *models.ErrorResponseBody
- func (o *UpdateOrgPreferencesInternalServerError) IsClientError() bool
- func (o *UpdateOrgPreferencesInternalServerError) IsCode(code int) bool
- func (o *UpdateOrgPreferencesInternalServerError) IsRedirect() bool
- func (o *UpdateOrgPreferencesInternalServerError) IsServerError() bool
- func (o *UpdateOrgPreferencesInternalServerError) IsSuccess() bool
- func (o *UpdateOrgPreferencesInternalServerError) String() string
- type UpdateOrgPreferencesOK
- func (o *UpdateOrgPreferencesOK) Code() int
- func (o *UpdateOrgPreferencesOK) Error() string
- func (o *UpdateOrgPreferencesOK) GetPayload() *models.SuccessResponseBody
- func (o *UpdateOrgPreferencesOK) IsClientError() bool
- func (o *UpdateOrgPreferencesOK) IsCode(code int) bool
- func (o *UpdateOrgPreferencesOK) IsRedirect() bool
- func (o *UpdateOrgPreferencesOK) IsServerError() bool
- func (o *UpdateOrgPreferencesOK) IsSuccess() bool
- func (o *UpdateOrgPreferencesOK) String() string
- type UpdateOrgPreferencesParams
- func NewUpdateOrgPreferencesParams() *UpdateOrgPreferencesParams
- func NewUpdateOrgPreferencesParamsWithContext(ctx context.Context) *UpdateOrgPreferencesParams
- func NewUpdateOrgPreferencesParamsWithHTTPClient(client *http.Client) *UpdateOrgPreferencesParams
- func NewUpdateOrgPreferencesParamsWithTimeout(timeout time.Duration) *UpdateOrgPreferencesParams
- func (o *UpdateOrgPreferencesParams) SetBody(body *models.UpdatePrefsCmd)
- func (o *UpdateOrgPreferencesParams) SetContext(ctx context.Context)
- func (o *UpdateOrgPreferencesParams) SetDefaults()
- func (o *UpdateOrgPreferencesParams) SetHTTPClient(client *http.Client)
- func (o *UpdateOrgPreferencesParams) SetTimeout(timeout time.Duration)
- func (o *UpdateOrgPreferencesParams) WithBody(body *models.UpdatePrefsCmd) *UpdateOrgPreferencesParams
- func (o *UpdateOrgPreferencesParams) WithContext(ctx context.Context) *UpdateOrgPreferencesParams
- func (o *UpdateOrgPreferencesParams) WithDefaults() *UpdateOrgPreferencesParams
- func (o *UpdateOrgPreferencesParams) WithHTTPClient(client *http.Client) *UpdateOrgPreferencesParams
- func (o *UpdateOrgPreferencesParams) WithTimeout(timeout time.Duration) *UpdateOrgPreferencesParams
- func (o *UpdateOrgPreferencesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateOrgPreferencesReader
- type UpdateOrgPreferencesUnauthorized
- func (o *UpdateOrgPreferencesUnauthorized) Code() int
- func (o *UpdateOrgPreferencesUnauthorized) Error() string
- func (o *UpdateOrgPreferencesUnauthorized) GetPayload() *models.ErrorResponseBody
- func (o *UpdateOrgPreferencesUnauthorized) IsClientError() bool
- func (o *UpdateOrgPreferencesUnauthorized) IsCode(code int) bool
- func (o *UpdateOrgPreferencesUnauthorized) IsRedirect() bool
- func (o *UpdateOrgPreferencesUnauthorized) IsServerError() bool
- func (o *UpdateOrgPreferencesUnauthorized) IsSuccess() bool
- func (o *UpdateOrgPreferencesUnauthorized) String() string
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 org preferences API
func (*Client) GetOrgPreferences ¶
func (a *Client) GetOrgPreferences(opts ...ClientOption) (*GetOrgPreferencesOK, error)
GetOrgPreferences gets current org prefs
func (*Client) GetOrgPreferencesWithParams ¶
func (a *Client) GetOrgPreferencesWithParams(params *GetOrgPreferencesParams, opts ...ClientOption) (*GetOrgPreferencesOK, error)
func (*Client) PatchOrgPreferences ¶
func (a *Client) PatchOrgPreferences(body *models.PatchPrefsCmd, opts ...ClientOption) (*PatchOrgPreferencesOK, error)
PatchOrgPreferences patches current org prefs
func (*Client) PatchOrgPreferencesWithParams ¶
func (a *Client) PatchOrgPreferencesWithParams(params *PatchOrgPreferencesParams, opts ...ClientOption) (*PatchOrgPreferencesOK, error)
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateOrgPreferences ¶
func (a *Client) UpdateOrgPreferences(body *models.UpdatePrefsCmd, opts ...ClientOption) (*UpdateOrgPreferencesOK, error)
UpdateOrgPreferences updates current org prefs
func (*Client) UpdateOrgPreferencesWithParams ¶
func (a *Client) UpdateOrgPreferencesWithParams(params *UpdateOrgPreferencesParams, opts ...ClientOption) (*UpdateOrgPreferencesOK, error)
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
func WithAuthInfo ¶
func WithAuthInfo(authInfo runtime.ClientAuthInfoWriter) ClientOption
WithAuthInfo changes the transport on the client
type ClientService ¶
type ClientService interface { GetOrgPreferences(opts ...ClientOption) (*GetOrgPreferencesOK, error) GetOrgPreferencesWithParams(params *GetOrgPreferencesParams, opts ...ClientOption) (*GetOrgPreferencesOK, error) PatchOrgPreferences(body *models.PatchPrefsCmd, opts ...ClientOption) (*PatchOrgPreferencesOK, error) PatchOrgPreferencesWithParams(params *PatchOrgPreferencesParams, opts ...ClientOption) (*PatchOrgPreferencesOK, error) UpdateOrgPreferences(body *models.UpdatePrefsCmd, opts ...ClientOption) (*UpdateOrgPreferencesOK, error) UpdateOrgPreferencesWithParams(params *UpdateOrgPreferencesParams, opts ...ClientOption) (*UpdateOrgPreferencesOK, 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 org preferences API client.
type GetOrgPreferencesForbidden ¶
type GetOrgPreferencesForbidden struct {
Payload *models.ErrorResponseBody
}
GetOrgPreferencesForbidden describes a response with status code 403, with default header values.
ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.
func NewGetOrgPreferencesForbidden ¶
func NewGetOrgPreferencesForbidden() *GetOrgPreferencesForbidden
NewGetOrgPreferencesForbidden creates a GetOrgPreferencesForbidden with default headers values
func (*GetOrgPreferencesForbidden) Code ¶
func (o *GetOrgPreferencesForbidden) Code() int
Code gets the status code for the get org preferences forbidden response
func (*GetOrgPreferencesForbidden) Error ¶
func (o *GetOrgPreferencesForbidden) Error() string
func (*GetOrgPreferencesForbidden) GetPayload ¶
func (o *GetOrgPreferencesForbidden) GetPayload() *models.ErrorResponseBody
func (*GetOrgPreferencesForbidden) IsClientError ¶
func (o *GetOrgPreferencesForbidden) IsClientError() bool
IsClientError returns true when this get org preferences forbidden response has a 4xx status code
func (*GetOrgPreferencesForbidden) IsCode ¶
func (o *GetOrgPreferencesForbidden) IsCode(code int) bool
IsCode returns true when this get org preferences forbidden response a status code equal to that given
func (*GetOrgPreferencesForbidden) IsRedirect ¶
func (o *GetOrgPreferencesForbidden) IsRedirect() bool
IsRedirect returns true when this get org preferences forbidden response has a 3xx status code
func (*GetOrgPreferencesForbidden) IsServerError ¶
func (o *GetOrgPreferencesForbidden) IsServerError() bool
IsServerError returns true when this get org preferences forbidden response has a 5xx status code
func (*GetOrgPreferencesForbidden) IsSuccess ¶
func (o *GetOrgPreferencesForbidden) IsSuccess() bool
IsSuccess returns true when this get org preferences forbidden response has a 2xx status code
func (*GetOrgPreferencesForbidden) String ¶
func (o *GetOrgPreferencesForbidden) String() string
type GetOrgPreferencesInternalServerError ¶
type GetOrgPreferencesInternalServerError struct {
Payload *models.ErrorResponseBody
}
GetOrgPreferencesInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewGetOrgPreferencesInternalServerError ¶
func NewGetOrgPreferencesInternalServerError() *GetOrgPreferencesInternalServerError
NewGetOrgPreferencesInternalServerError creates a GetOrgPreferencesInternalServerError with default headers values
func (*GetOrgPreferencesInternalServerError) Code ¶
func (o *GetOrgPreferencesInternalServerError) Code() int
Code gets the status code for the get org preferences internal server error response
func (*GetOrgPreferencesInternalServerError) Error ¶
func (o *GetOrgPreferencesInternalServerError) Error() string
func (*GetOrgPreferencesInternalServerError) GetPayload ¶
func (o *GetOrgPreferencesInternalServerError) GetPayload() *models.ErrorResponseBody
func (*GetOrgPreferencesInternalServerError) IsClientError ¶
func (o *GetOrgPreferencesInternalServerError) IsClientError() bool
IsClientError returns true when this get org preferences internal server error response has a 4xx status code
func (*GetOrgPreferencesInternalServerError) IsCode ¶
func (o *GetOrgPreferencesInternalServerError) IsCode(code int) bool
IsCode returns true when this get org preferences internal server error response a status code equal to that given
func (*GetOrgPreferencesInternalServerError) IsRedirect ¶
func (o *GetOrgPreferencesInternalServerError) IsRedirect() bool
IsRedirect returns true when this get org preferences internal server error response has a 3xx status code
func (*GetOrgPreferencesInternalServerError) IsServerError ¶
func (o *GetOrgPreferencesInternalServerError) IsServerError() bool
IsServerError returns true when this get org preferences internal server error response has a 5xx status code
func (*GetOrgPreferencesInternalServerError) IsSuccess ¶
func (o *GetOrgPreferencesInternalServerError) IsSuccess() bool
IsSuccess returns true when this get org preferences internal server error response has a 2xx status code
func (*GetOrgPreferencesInternalServerError) String ¶
func (o *GetOrgPreferencesInternalServerError) String() string
type GetOrgPreferencesOK ¶
type GetOrgPreferencesOK struct {
Payload *models.Preferences
}
GetOrgPreferencesOK describes a response with status code 200, with default header values.
(empty)
func NewGetOrgPreferencesOK ¶
func NewGetOrgPreferencesOK() *GetOrgPreferencesOK
NewGetOrgPreferencesOK creates a GetOrgPreferencesOK with default headers values
func (*GetOrgPreferencesOK) Code ¶
func (o *GetOrgPreferencesOK) Code() int
Code gets the status code for the get org preferences Ok response
func (*GetOrgPreferencesOK) Error ¶
func (o *GetOrgPreferencesOK) Error() string
func (*GetOrgPreferencesOK) GetPayload ¶
func (o *GetOrgPreferencesOK) GetPayload() *models.Preferences
func (*GetOrgPreferencesOK) IsClientError ¶
func (o *GetOrgPreferencesOK) IsClientError() bool
IsClientError returns true when this get org preferences Ok response has a 4xx status code
func (*GetOrgPreferencesOK) IsCode ¶
func (o *GetOrgPreferencesOK) IsCode(code int) bool
IsCode returns true when this get org preferences Ok response a status code equal to that given
func (*GetOrgPreferencesOK) IsRedirect ¶
func (o *GetOrgPreferencesOK) IsRedirect() bool
IsRedirect returns true when this get org preferences Ok response has a 3xx status code
func (*GetOrgPreferencesOK) IsServerError ¶
func (o *GetOrgPreferencesOK) IsServerError() bool
IsServerError returns true when this get org preferences Ok response has a 5xx status code
func (*GetOrgPreferencesOK) IsSuccess ¶
func (o *GetOrgPreferencesOK) IsSuccess() bool
IsSuccess returns true when this get org preferences Ok response has a 2xx status code
func (*GetOrgPreferencesOK) String ¶
func (o *GetOrgPreferencesOK) String() string
type GetOrgPreferencesParams ¶
type GetOrgPreferencesParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetOrgPreferencesParams contains all the parameters to send to the API endpoint
for the get org preferences operation. Typically these are written to a http.Request.
func NewGetOrgPreferencesParams ¶
func NewGetOrgPreferencesParams() *GetOrgPreferencesParams
NewGetOrgPreferencesParams creates a new GetOrgPreferencesParams 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 NewGetOrgPreferencesParamsWithContext ¶
func NewGetOrgPreferencesParamsWithContext(ctx context.Context) *GetOrgPreferencesParams
NewGetOrgPreferencesParamsWithContext creates a new GetOrgPreferencesParams object with the ability to set a context for a request.
func NewGetOrgPreferencesParamsWithHTTPClient ¶
func NewGetOrgPreferencesParamsWithHTTPClient(client *http.Client) *GetOrgPreferencesParams
NewGetOrgPreferencesParamsWithHTTPClient creates a new GetOrgPreferencesParams object with the ability to set a custom HTTPClient for a request.
func NewGetOrgPreferencesParamsWithTimeout ¶
func NewGetOrgPreferencesParamsWithTimeout(timeout time.Duration) *GetOrgPreferencesParams
NewGetOrgPreferencesParamsWithTimeout creates a new GetOrgPreferencesParams object with the ability to set a timeout on a request.
func (*GetOrgPreferencesParams) SetContext ¶
func (o *GetOrgPreferencesParams) SetContext(ctx context.Context)
SetContext adds the context to the get org preferences params
func (*GetOrgPreferencesParams) SetDefaults ¶
func (o *GetOrgPreferencesParams) SetDefaults()
SetDefaults hydrates default values in the get org preferences params (not the query body).
All values with no default are reset to their zero value.
func (*GetOrgPreferencesParams) SetHTTPClient ¶
func (o *GetOrgPreferencesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get org preferences params
func (*GetOrgPreferencesParams) SetTimeout ¶
func (o *GetOrgPreferencesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get org preferences params
func (*GetOrgPreferencesParams) WithContext ¶
func (o *GetOrgPreferencesParams) WithContext(ctx context.Context) *GetOrgPreferencesParams
WithContext adds the context to the get org preferences params
func (*GetOrgPreferencesParams) WithDefaults ¶
func (o *GetOrgPreferencesParams) WithDefaults() *GetOrgPreferencesParams
WithDefaults hydrates default values in the get org preferences params (not the query body).
All values with no default are reset to their zero value.
func (*GetOrgPreferencesParams) WithHTTPClient ¶
func (o *GetOrgPreferencesParams) WithHTTPClient(client *http.Client) *GetOrgPreferencesParams
WithHTTPClient adds the HTTPClient to the get org preferences params
func (*GetOrgPreferencesParams) WithTimeout ¶
func (o *GetOrgPreferencesParams) WithTimeout(timeout time.Duration) *GetOrgPreferencesParams
WithTimeout adds the timeout to the get org preferences params
func (*GetOrgPreferencesParams) WriteToRequest ¶
func (o *GetOrgPreferencesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetOrgPreferencesReader ¶
type GetOrgPreferencesReader struct {
// contains filtered or unexported fields
}
GetOrgPreferencesReader is a Reader for the GetOrgPreferences structure.
func (*GetOrgPreferencesReader) ReadResponse ¶
func (o *GetOrgPreferencesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetOrgPreferencesUnauthorized ¶
type GetOrgPreferencesUnauthorized struct {
}GetOrgPreferencesUnauthorized describes a response with status code 401, with default header values.
UnauthorizedError is returned when the request is not authenticated.
func NewGetOrgPreferencesUnauthorized ¶
func NewGetOrgPreferencesUnauthorized() *GetOrgPreferencesUnauthorized
NewGetOrgPreferencesUnauthorized creates a GetOrgPreferencesUnauthorized with default headers values
func (*GetOrgPreferencesUnauthorized) Code ¶
func (o *GetOrgPreferencesUnauthorized) Code() int
Code gets the status code for the get org preferences unauthorized response
func (*GetOrgPreferencesUnauthorized) Error ¶
func (o *GetOrgPreferencesUnauthorized) Error() string
func (*GetOrgPreferencesUnauthorized) GetPayload ¶
func (o *GetOrgPreferencesUnauthorized) GetPayload() *models.ErrorResponseBody
func (*GetOrgPreferencesUnauthorized) IsClientError ¶
func (o *GetOrgPreferencesUnauthorized) IsClientError() bool
IsClientError returns true when this get org preferences unauthorized response has a 4xx status code
func (*GetOrgPreferencesUnauthorized) IsCode ¶
func (o *GetOrgPreferencesUnauthorized) IsCode(code int) bool
IsCode returns true when this get org preferences unauthorized response a status code equal to that given
func (*GetOrgPreferencesUnauthorized) IsRedirect ¶
func (o *GetOrgPreferencesUnauthorized) IsRedirect() bool
IsRedirect returns true when this get org preferences unauthorized response has a 3xx status code
func (*GetOrgPreferencesUnauthorized) IsServerError ¶
func (o *GetOrgPreferencesUnauthorized) IsServerError() bool
IsServerError returns true when this get org preferences unauthorized response has a 5xx status code
func (*GetOrgPreferencesUnauthorized) IsSuccess ¶
func (o *GetOrgPreferencesUnauthorized) IsSuccess() bool
IsSuccess returns true when this get org preferences unauthorized response has a 2xx status code
func (*GetOrgPreferencesUnauthorized) String ¶
func (o *GetOrgPreferencesUnauthorized) String() string
type PatchOrgPreferencesBadRequest ¶
type PatchOrgPreferencesBadRequest struct {
Payload *models.ErrorResponseBody
}
PatchOrgPreferencesBadRequest describes a response with status code 400, with default header values.
BadRequestError is returned when the request is invalid and it cannot be processed.
func NewPatchOrgPreferencesBadRequest ¶
func NewPatchOrgPreferencesBadRequest() *PatchOrgPreferencesBadRequest
NewPatchOrgPreferencesBadRequest creates a PatchOrgPreferencesBadRequest with default headers values
func (*PatchOrgPreferencesBadRequest) Code ¶
func (o *PatchOrgPreferencesBadRequest) Code() int
Code gets the status code for the patch org preferences bad request response
func (*PatchOrgPreferencesBadRequest) Error ¶
func (o *PatchOrgPreferencesBadRequest) Error() string
func (*PatchOrgPreferencesBadRequest) GetPayload ¶
func (o *PatchOrgPreferencesBadRequest) GetPayload() *models.ErrorResponseBody
func (*PatchOrgPreferencesBadRequest) IsClientError ¶
func (o *PatchOrgPreferencesBadRequest) IsClientError() bool
IsClientError returns true when this patch org preferences bad request response has a 4xx status code
func (*PatchOrgPreferencesBadRequest) IsCode ¶
func (o *PatchOrgPreferencesBadRequest) IsCode(code int) bool
IsCode returns true when this patch org preferences bad request response a status code equal to that given
func (*PatchOrgPreferencesBadRequest) IsRedirect ¶
func (o *PatchOrgPreferencesBadRequest) IsRedirect() bool
IsRedirect returns true when this patch org preferences bad request response has a 3xx status code
func (*PatchOrgPreferencesBadRequest) IsServerError ¶
func (o *PatchOrgPreferencesBadRequest) IsServerError() bool
IsServerError returns true when this patch org preferences bad request response has a 5xx status code
func (*PatchOrgPreferencesBadRequest) IsSuccess ¶
func (o *PatchOrgPreferencesBadRequest) IsSuccess() bool
IsSuccess returns true when this patch org preferences bad request response has a 2xx status code
func (*PatchOrgPreferencesBadRequest) String ¶
func (o *PatchOrgPreferencesBadRequest) String() string
type PatchOrgPreferencesForbidden ¶
type PatchOrgPreferencesForbidden struct {
Payload *models.ErrorResponseBody
}
PatchOrgPreferencesForbidden describes a response with status code 403, with default header values.
ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.
func NewPatchOrgPreferencesForbidden ¶
func NewPatchOrgPreferencesForbidden() *PatchOrgPreferencesForbidden
NewPatchOrgPreferencesForbidden creates a PatchOrgPreferencesForbidden with default headers values
func (*PatchOrgPreferencesForbidden) Code ¶
func (o *PatchOrgPreferencesForbidden) Code() int
Code gets the status code for the patch org preferences forbidden response
func (*PatchOrgPreferencesForbidden) Error ¶
func (o *PatchOrgPreferencesForbidden) Error() string
func (*PatchOrgPreferencesForbidden) GetPayload ¶
func (o *PatchOrgPreferencesForbidden) GetPayload() *models.ErrorResponseBody
func (*PatchOrgPreferencesForbidden) IsClientError ¶
func (o *PatchOrgPreferencesForbidden) IsClientError() bool
IsClientError returns true when this patch org preferences forbidden response has a 4xx status code
func (*PatchOrgPreferencesForbidden) IsCode ¶
func (o *PatchOrgPreferencesForbidden) IsCode(code int) bool
IsCode returns true when this patch org preferences forbidden response a status code equal to that given
func (*PatchOrgPreferencesForbidden) IsRedirect ¶
func (o *PatchOrgPreferencesForbidden) IsRedirect() bool
IsRedirect returns true when this patch org preferences forbidden response has a 3xx status code
func (*PatchOrgPreferencesForbidden) IsServerError ¶
func (o *PatchOrgPreferencesForbidden) IsServerError() bool
IsServerError returns true when this patch org preferences forbidden response has a 5xx status code
func (*PatchOrgPreferencesForbidden) IsSuccess ¶
func (o *PatchOrgPreferencesForbidden) IsSuccess() bool
IsSuccess returns true when this patch org preferences forbidden response has a 2xx status code
func (*PatchOrgPreferencesForbidden) String ¶
func (o *PatchOrgPreferencesForbidden) String() string
type PatchOrgPreferencesInternalServerError ¶
type PatchOrgPreferencesInternalServerError struct {
Payload *models.ErrorResponseBody
}
PatchOrgPreferencesInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewPatchOrgPreferencesInternalServerError ¶
func NewPatchOrgPreferencesInternalServerError() *PatchOrgPreferencesInternalServerError
NewPatchOrgPreferencesInternalServerError creates a PatchOrgPreferencesInternalServerError with default headers values
func (*PatchOrgPreferencesInternalServerError) Code ¶
func (o *PatchOrgPreferencesInternalServerError) Code() int
Code gets the status code for the patch org preferences internal server error response
func (*PatchOrgPreferencesInternalServerError) Error ¶
func (o *PatchOrgPreferencesInternalServerError) Error() string
func (*PatchOrgPreferencesInternalServerError) GetPayload ¶
func (o *PatchOrgPreferencesInternalServerError) GetPayload() *models.ErrorResponseBody
func (*PatchOrgPreferencesInternalServerError) IsClientError ¶
func (o *PatchOrgPreferencesInternalServerError) IsClientError() bool
IsClientError returns true when this patch org preferences internal server error response has a 4xx status code
func (*PatchOrgPreferencesInternalServerError) IsCode ¶
func (o *PatchOrgPreferencesInternalServerError) IsCode(code int) bool
IsCode returns true when this patch org preferences internal server error response a status code equal to that given
func (*PatchOrgPreferencesInternalServerError) IsRedirect ¶
func (o *PatchOrgPreferencesInternalServerError) IsRedirect() bool
IsRedirect returns true when this patch org preferences internal server error response has a 3xx status code
func (*PatchOrgPreferencesInternalServerError) IsServerError ¶
func (o *PatchOrgPreferencesInternalServerError) IsServerError() bool
IsServerError returns true when this patch org preferences internal server error response has a 5xx status code
func (*PatchOrgPreferencesInternalServerError) IsSuccess ¶
func (o *PatchOrgPreferencesInternalServerError) IsSuccess() bool
IsSuccess returns true when this patch org preferences internal server error response has a 2xx status code
func (*PatchOrgPreferencesInternalServerError) String ¶
func (o *PatchOrgPreferencesInternalServerError) String() string
type PatchOrgPreferencesOK ¶
type PatchOrgPreferencesOK struct {
Payload *models.SuccessResponseBody
}
PatchOrgPreferencesOK describes a response with status code 200, with default header values.
An OKResponse is returned if the request was successful.
func NewPatchOrgPreferencesOK ¶
func NewPatchOrgPreferencesOK() *PatchOrgPreferencesOK
NewPatchOrgPreferencesOK creates a PatchOrgPreferencesOK with default headers values
func (*PatchOrgPreferencesOK) Code ¶
func (o *PatchOrgPreferencesOK) Code() int
Code gets the status code for the patch org preferences Ok response
func (*PatchOrgPreferencesOK) Error ¶
func (o *PatchOrgPreferencesOK) Error() string
func (*PatchOrgPreferencesOK) GetPayload ¶
func (o *PatchOrgPreferencesOK) GetPayload() *models.SuccessResponseBody
func (*PatchOrgPreferencesOK) IsClientError ¶
func (o *PatchOrgPreferencesOK) IsClientError() bool
IsClientError returns true when this patch org preferences Ok response has a 4xx status code
func (*PatchOrgPreferencesOK) IsCode ¶
func (o *PatchOrgPreferencesOK) IsCode(code int) bool
IsCode returns true when this patch org preferences Ok response a status code equal to that given
func (*PatchOrgPreferencesOK) IsRedirect ¶
func (o *PatchOrgPreferencesOK) IsRedirect() bool
IsRedirect returns true when this patch org preferences Ok response has a 3xx status code
func (*PatchOrgPreferencesOK) IsServerError ¶
func (o *PatchOrgPreferencesOK) IsServerError() bool
IsServerError returns true when this patch org preferences Ok response has a 5xx status code
func (*PatchOrgPreferencesOK) IsSuccess ¶
func (o *PatchOrgPreferencesOK) IsSuccess() bool
IsSuccess returns true when this patch org preferences Ok response has a 2xx status code
func (*PatchOrgPreferencesOK) String ¶
func (o *PatchOrgPreferencesOK) String() string
type PatchOrgPreferencesParams ¶
type PatchOrgPreferencesParams struct { // Body. Body *models.PatchPrefsCmd Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PatchOrgPreferencesParams contains all the parameters to send to the API endpoint
for the patch org preferences operation. Typically these are written to a http.Request.
func NewPatchOrgPreferencesParams ¶
func NewPatchOrgPreferencesParams() *PatchOrgPreferencesParams
NewPatchOrgPreferencesParams creates a new PatchOrgPreferencesParams 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 NewPatchOrgPreferencesParamsWithContext ¶
func NewPatchOrgPreferencesParamsWithContext(ctx context.Context) *PatchOrgPreferencesParams
NewPatchOrgPreferencesParamsWithContext creates a new PatchOrgPreferencesParams object with the ability to set a context for a request.
func NewPatchOrgPreferencesParamsWithHTTPClient ¶
func NewPatchOrgPreferencesParamsWithHTTPClient(client *http.Client) *PatchOrgPreferencesParams
NewPatchOrgPreferencesParamsWithHTTPClient creates a new PatchOrgPreferencesParams object with the ability to set a custom HTTPClient for a request.
func NewPatchOrgPreferencesParamsWithTimeout ¶
func NewPatchOrgPreferencesParamsWithTimeout(timeout time.Duration) *PatchOrgPreferencesParams
NewPatchOrgPreferencesParamsWithTimeout creates a new PatchOrgPreferencesParams object with the ability to set a timeout on a request.
func (*PatchOrgPreferencesParams) SetBody ¶
func (o *PatchOrgPreferencesParams) SetBody(body *models.PatchPrefsCmd)
SetBody adds the body to the patch org preferences params
func (*PatchOrgPreferencesParams) SetContext ¶
func (o *PatchOrgPreferencesParams) SetContext(ctx context.Context)
SetContext adds the context to the patch org preferences params
func (*PatchOrgPreferencesParams) SetDefaults ¶
func (o *PatchOrgPreferencesParams) SetDefaults()
SetDefaults hydrates default values in the patch org preferences params (not the query body).
All values with no default are reset to their zero value.
func (*PatchOrgPreferencesParams) SetHTTPClient ¶
func (o *PatchOrgPreferencesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the patch org preferences params
func (*PatchOrgPreferencesParams) SetTimeout ¶
func (o *PatchOrgPreferencesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the patch org preferences params
func (*PatchOrgPreferencesParams) WithBody ¶
func (o *PatchOrgPreferencesParams) WithBody(body *models.PatchPrefsCmd) *PatchOrgPreferencesParams
WithBody adds the body to the patch org preferences params
func (*PatchOrgPreferencesParams) WithContext ¶
func (o *PatchOrgPreferencesParams) WithContext(ctx context.Context) *PatchOrgPreferencesParams
WithContext adds the context to the patch org preferences params
func (*PatchOrgPreferencesParams) WithDefaults ¶
func (o *PatchOrgPreferencesParams) WithDefaults() *PatchOrgPreferencesParams
WithDefaults hydrates default values in the patch org preferences params (not the query body).
All values with no default are reset to their zero value.
func (*PatchOrgPreferencesParams) WithHTTPClient ¶
func (o *PatchOrgPreferencesParams) WithHTTPClient(client *http.Client) *PatchOrgPreferencesParams
WithHTTPClient adds the HTTPClient to the patch org preferences params
func (*PatchOrgPreferencesParams) WithTimeout ¶
func (o *PatchOrgPreferencesParams) WithTimeout(timeout time.Duration) *PatchOrgPreferencesParams
WithTimeout adds the timeout to the patch org preferences params
func (*PatchOrgPreferencesParams) WriteToRequest ¶
func (o *PatchOrgPreferencesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PatchOrgPreferencesReader ¶
type PatchOrgPreferencesReader struct {
// contains filtered or unexported fields
}
PatchOrgPreferencesReader is a Reader for the PatchOrgPreferences structure.
func (*PatchOrgPreferencesReader) ReadResponse ¶
func (o *PatchOrgPreferencesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PatchOrgPreferencesUnauthorized ¶
type PatchOrgPreferencesUnauthorized struct {
}PatchOrgPreferencesUnauthorized describes a response with status code 401, with default header values.
UnauthorizedError is returned when the request is not authenticated.
func NewPatchOrgPreferencesUnauthorized ¶
func NewPatchOrgPreferencesUnauthorized() *PatchOrgPreferencesUnauthorized
NewPatchOrgPreferencesUnauthorized creates a PatchOrgPreferencesUnauthorized with default headers values
func (*PatchOrgPreferencesUnauthorized) Code ¶
func (o *PatchOrgPreferencesUnauthorized) Code() int
Code gets the status code for the patch org preferences unauthorized response
func (*PatchOrgPreferencesUnauthorized) Error ¶
func (o *PatchOrgPreferencesUnauthorized) Error() string
func (*PatchOrgPreferencesUnauthorized) GetPayload ¶
func (o *PatchOrgPreferencesUnauthorized) GetPayload() *models.ErrorResponseBody
func (*PatchOrgPreferencesUnauthorized) IsClientError ¶
func (o *PatchOrgPreferencesUnauthorized) IsClientError() bool
IsClientError returns true when this patch org preferences unauthorized response has a 4xx status code
func (*PatchOrgPreferencesUnauthorized) IsCode ¶
func (o *PatchOrgPreferencesUnauthorized) IsCode(code int) bool
IsCode returns true when this patch org preferences unauthorized response a status code equal to that given
func (*PatchOrgPreferencesUnauthorized) IsRedirect ¶
func (o *PatchOrgPreferencesUnauthorized) IsRedirect() bool
IsRedirect returns true when this patch org preferences unauthorized response has a 3xx status code
func (*PatchOrgPreferencesUnauthorized) IsServerError ¶
func (o *PatchOrgPreferencesUnauthorized) IsServerError() bool
IsServerError returns true when this patch org preferences unauthorized response has a 5xx status code
func (*PatchOrgPreferencesUnauthorized) IsSuccess ¶
func (o *PatchOrgPreferencesUnauthorized) IsSuccess() bool
IsSuccess returns true when this patch org preferences unauthorized response has a 2xx status code
func (*PatchOrgPreferencesUnauthorized) String ¶
func (o *PatchOrgPreferencesUnauthorized) String() string
type UpdateOrgPreferencesBadRequest ¶
type UpdateOrgPreferencesBadRequest struct {
Payload *models.ErrorResponseBody
}
UpdateOrgPreferencesBadRequest describes a response with status code 400, with default header values.
BadRequestError is returned when the request is invalid and it cannot be processed.
func NewUpdateOrgPreferencesBadRequest ¶
func NewUpdateOrgPreferencesBadRequest() *UpdateOrgPreferencesBadRequest
NewUpdateOrgPreferencesBadRequest creates a UpdateOrgPreferencesBadRequest with default headers values
func (*UpdateOrgPreferencesBadRequest) Code ¶
func (o *UpdateOrgPreferencesBadRequest) Code() int
Code gets the status code for the update org preferences bad request response
func (*UpdateOrgPreferencesBadRequest) Error ¶
func (o *UpdateOrgPreferencesBadRequest) Error() string
func (*UpdateOrgPreferencesBadRequest) GetPayload ¶
func (o *UpdateOrgPreferencesBadRequest) GetPayload() *models.ErrorResponseBody
func (*UpdateOrgPreferencesBadRequest) IsClientError ¶
func (o *UpdateOrgPreferencesBadRequest) IsClientError() bool
IsClientError returns true when this update org preferences bad request response has a 4xx status code
func (*UpdateOrgPreferencesBadRequest) IsCode ¶
func (o *UpdateOrgPreferencesBadRequest) IsCode(code int) bool
IsCode returns true when this update org preferences bad request response a status code equal to that given
func (*UpdateOrgPreferencesBadRequest) IsRedirect ¶
func (o *UpdateOrgPreferencesBadRequest) IsRedirect() bool
IsRedirect returns true when this update org preferences bad request response has a 3xx status code
func (*UpdateOrgPreferencesBadRequest) IsServerError ¶
func (o *UpdateOrgPreferencesBadRequest) IsServerError() bool
IsServerError returns true when this update org preferences bad request response has a 5xx status code
func (*UpdateOrgPreferencesBadRequest) IsSuccess ¶
func (o *UpdateOrgPreferencesBadRequest) IsSuccess() bool
IsSuccess returns true when this update org preferences bad request response has a 2xx status code
func (*UpdateOrgPreferencesBadRequest) String ¶
func (o *UpdateOrgPreferencesBadRequest) String() string
type UpdateOrgPreferencesForbidden ¶
type UpdateOrgPreferencesForbidden struct {
Payload *models.ErrorResponseBody
}
UpdateOrgPreferencesForbidden describes a response with status code 403, with default header values.
ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.
func NewUpdateOrgPreferencesForbidden ¶
func NewUpdateOrgPreferencesForbidden() *UpdateOrgPreferencesForbidden
NewUpdateOrgPreferencesForbidden creates a UpdateOrgPreferencesForbidden with default headers values
func (*UpdateOrgPreferencesForbidden) Code ¶
func (o *UpdateOrgPreferencesForbidden) Code() int
Code gets the status code for the update org preferences forbidden response
func (*UpdateOrgPreferencesForbidden) Error ¶
func (o *UpdateOrgPreferencesForbidden) Error() string
func (*UpdateOrgPreferencesForbidden) GetPayload ¶
func (o *UpdateOrgPreferencesForbidden) GetPayload() *models.ErrorResponseBody
func (*UpdateOrgPreferencesForbidden) IsClientError ¶
func (o *UpdateOrgPreferencesForbidden) IsClientError() bool
IsClientError returns true when this update org preferences forbidden response has a 4xx status code
func (*UpdateOrgPreferencesForbidden) IsCode ¶
func (o *UpdateOrgPreferencesForbidden) IsCode(code int) bool
IsCode returns true when this update org preferences forbidden response a status code equal to that given
func (*UpdateOrgPreferencesForbidden) IsRedirect ¶
func (o *UpdateOrgPreferencesForbidden) IsRedirect() bool
IsRedirect returns true when this update org preferences forbidden response has a 3xx status code
func (*UpdateOrgPreferencesForbidden) IsServerError ¶
func (o *UpdateOrgPreferencesForbidden) IsServerError() bool
IsServerError returns true when this update org preferences forbidden response has a 5xx status code
func (*UpdateOrgPreferencesForbidden) IsSuccess ¶
func (o *UpdateOrgPreferencesForbidden) IsSuccess() bool
IsSuccess returns true when this update org preferences forbidden response has a 2xx status code
func (*UpdateOrgPreferencesForbidden) String ¶
func (o *UpdateOrgPreferencesForbidden) String() string
type UpdateOrgPreferencesInternalServerError ¶
type UpdateOrgPreferencesInternalServerError struct {
Payload *models.ErrorResponseBody
}
UpdateOrgPreferencesInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewUpdateOrgPreferencesInternalServerError ¶
func NewUpdateOrgPreferencesInternalServerError() *UpdateOrgPreferencesInternalServerError
NewUpdateOrgPreferencesInternalServerError creates a UpdateOrgPreferencesInternalServerError with default headers values
func (*UpdateOrgPreferencesInternalServerError) Code ¶
func (o *UpdateOrgPreferencesInternalServerError) Code() int
Code gets the status code for the update org preferences internal server error response
func (*UpdateOrgPreferencesInternalServerError) Error ¶
func (o *UpdateOrgPreferencesInternalServerError) Error() string
func (*UpdateOrgPreferencesInternalServerError) GetPayload ¶
func (o *UpdateOrgPreferencesInternalServerError) GetPayload() *models.ErrorResponseBody
func (*UpdateOrgPreferencesInternalServerError) IsClientError ¶
func (o *UpdateOrgPreferencesInternalServerError) IsClientError() bool
IsClientError returns true when this update org preferences internal server error response has a 4xx status code
func (*UpdateOrgPreferencesInternalServerError) IsCode ¶
func (o *UpdateOrgPreferencesInternalServerError) IsCode(code int) bool
IsCode returns true when this update org preferences internal server error response a status code equal to that given
func (*UpdateOrgPreferencesInternalServerError) IsRedirect ¶
func (o *UpdateOrgPreferencesInternalServerError) IsRedirect() bool
IsRedirect returns true when this update org preferences internal server error response has a 3xx status code
func (*UpdateOrgPreferencesInternalServerError) IsServerError ¶
func (o *UpdateOrgPreferencesInternalServerError) IsServerError() bool
IsServerError returns true when this update org preferences internal server error response has a 5xx status code
func (*UpdateOrgPreferencesInternalServerError) IsSuccess ¶
func (o *UpdateOrgPreferencesInternalServerError) IsSuccess() bool
IsSuccess returns true when this update org preferences internal server error response has a 2xx status code
func (*UpdateOrgPreferencesInternalServerError) String ¶
func (o *UpdateOrgPreferencesInternalServerError) String() string
type UpdateOrgPreferencesOK ¶
type UpdateOrgPreferencesOK struct {
Payload *models.SuccessResponseBody
}
UpdateOrgPreferencesOK describes a response with status code 200, with default header values.
An OKResponse is returned if the request was successful.
func NewUpdateOrgPreferencesOK ¶
func NewUpdateOrgPreferencesOK() *UpdateOrgPreferencesOK
NewUpdateOrgPreferencesOK creates a UpdateOrgPreferencesOK with default headers values
func (*UpdateOrgPreferencesOK) Code ¶
func (o *UpdateOrgPreferencesOK) Code() int
Code gets the status code for the update org preferences Ok response
func (*UpdateOrgPreferencesOK) Error ¶
func (o *UpdateOrgPreferencesOK) Error() string
func (*UpdateOrgPreferencesOK) GetPayload ¶
func (o *UpdateOrgPreferencesOK) GetPayload() *models.SuccessResponseBody
func (*UpdateOrgPreferencesOK) IsClientError ¶
func (o *UpdateOrgPreferencesOK) IsClientError() bool
IsClientError returns true when this update org preferences Ok response has a 4xx status code
func (*UpdateOrgPreferencesOK) IsCode ¶
func (o *UpdateOrgPreferencesOK) IsCode(code int) bool
IsCode returns true when this update org preferences Ok response a status code equal to that given
func (*UpdateOrgPreferencesOK) IsRedirect ¶
func (o *UpdateOrgPreferencesOK) IsRedirect() bool
IsRedirect returns true when this update org preferences Ok response has a 3xx status code
func (*UpdateOrgPreferencesOK) IsServerError ¶
func (o *UpdateOrgPreferencesOK) IsServerError() bool
IsServerError returns true when this update org preferences Ok response has a 5xx status code
func (*UpdateOrgPreferencesOK) IsSuccess ¶
func (o *UpdateOrgPreferencesOK) IsSuccess() bool
IsSuccess returns true when this update org preferences Ok response has a 2xx status code
func (*UpdateOrgPreferencesOK) String ¶
func (o *UpdateOrgPreferencesOK) String() string
type UpdateOrgPreferencesParams ¶
type UpdateOrgPreferencesParams struct { // Body. Body *models.UpdatePrefsCmd Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateOrgPreferencesParams contains all the parameters to send to the API endpoint
for the update org preferences operation. Typically these are written to a http.Request.
func NewUpdateOrgPreferencesParams ¶
func NewUpdateOrgPreferencesParams() *UpdateOrgPreferencesParams
NewUpdateOrgPreferencesParams creates a new UpdateOrgPreferencesParams 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 NewUpdateOrgPreferencesParamsWithContext ¶
func NewUpdateOrgPreferencesParamsWithContext(ctx context.Context) *UpdateOrgPreferencesParams
NewUpdateOrgPreferencesParamsWithContext creates a new UpdateOrgPreferencesParams object with the ability to set a context for a request.
func NewUpdateOrgPreferencesParamsWithHTTPClient ¶
func NewUpdateOrgPreferencesParamsWithHTTPClient(client *http.Client) *UpdateOrgPreferencesParams
NewUpdateOrgPreferencesParamsWithHTTPClient creates a new UpdateOrgPreferencesParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateOrgPreferencesParamsWithTimeout ¶
func NewUpdateOrgPreferencesParamsWithTimeout(timeout time.Duration) *UpdateOrgPreferencesParams
NewUpdateOrgPreferencesParamsWithTimeout creates a new UpdateOrgPreferencesParams object with the ability to set a timeout on a request.
func (*UpdateOrgPreferencesParams) SetBody ¶
func (o *UpdateOrgPreferencesParams) SetBody(body *models.UpdatePrefsCmd)
SetBody adds the body to the update org preferences params
func (*UpdateOrgPreferencesParams) SetContext ¶
func (o *UpdateOrgPreferencesParams) SetContext(ctx context.Context)
SetContext adds the context to the update org preferences params
func (*UpdateOrgPreferencesParams) SetDefaults ¶
func (o *UpdateOrgPreferencesParams) SetDefaults()
SetDefaults hydrates default values in the update org preferences params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateOrgPreferencesParams) SetHTTPClient ¶
func (o *UpdateOrgPreferencesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update org preferences params
func (*UpdateOrgPreferencesParams) SetTimeout ¶
func (o *UpdateOrgPreferencesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update org preferences params
func (*UpdateOrgPreferencesParams) WithBody ¶
func (o *UpdateOrgPreferencesParams) WithBody(body *models.UpdatePrefsCmd) *UpdateOrgPreferencesParams
WithBody adds the body to the update org preferences params
func (*UpdateOrgPreferencesParams) WithContext ¶
func (o *UpdateOrgPreferencesParams) WithContext(ctx context.Context) *UpdateOrgPreferencesParams
WithContext adds the context to the update org preferences params
func (*UpdateOrgPreferencesParams) WithDefaults ¶
func (o *UpdateOrgPreferencesParams) WithDefaults() *UpdateOrgPreferencesParams
WithDefaults hydrates default values in the update org preferences params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateOrgPreferencesParams) WithHTTPClient ¶
func (o *UpdateOrgPreferencesParams) WithHTTPClient(client *http.Client) *UpdateOrgPreferencesParams
WithHTTPClient adds the HTTPClient to the update org preferences params
func (*UpdateOrgPreferencesParams) WithTimeout ¶
func (o *UpdateOrgPreferencesParams) WithTimeout(timeout time.Duration) *UpdateOrgPreferencesParams
WithTimeout adds the timeout to the update org preferences params
func (*UpdateOrgPreferencesParams) WriteToRequest ¶
func (o *UpdateOrgPreferencesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateOrgPreferencesReader ¶
type UpdateOrgPreferencesReader struct {
// contains filtered or unexported fields
}
UpdateOrgPreferencesReader is a Reader for the UpdateOrgPreferences structure.
func (*UpdateOrgPreferencesReader) ReadResponse ¶
func (o *UpdateOrgPreferencesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateOrgPreferencesUnauthorized ¶
type UpdateOrgPreferencesUnauthorized struct {
}UpdateOrgPreferencesUnauthorized describes a response with status code 401, with default header values.
UnauthorizedError is returned when the request is not authenticated.
func NewUpdateOrgPreferencesUnauthorized ¶
func NewUpdateOrgPreferencesUnauthorized() *UpdateOrgPreferencesUnauthorized
NewUpdateOrgPreferencesUnauthorized creates a UpdateOrgPreferencesUnauthorized with default headers values
func (*UpdateOrgPreferencesUnauthorized) Code ¶
func (o *UpdateOrgPreferencesUnauthorized) Code() int
Code gets the status code for the update org preferences unauthorized response
func (*UpdateOrgPreferencesUnauthorized) Error ¶
func (o *UpdateOrgPreferencesUnauthorized) Error() string
func (*UpdateOrgPreferencesUnauthorized) GetPayload ¶
func (o *UpdateOrgPreferencesUnauthorized) GetPayload() *models.ErrorResponseBody
func (*UpdateOrgPreferencesUnauthorized) IsClientError ¶
func (o *UpdateOrgPreferencesUnauthorized) IsClientError() bool
IsClientError returns true when this update org preferences unauthorized response has a 4xx status code
func (*UpdateOrgPreferencesUnauthorized) IsCode ¶
func (o *UpdateOrgPreferencesUnauthorized) IsCode(code int) bool
IsCode returns true when this update org preferences unauthorized response a status code equal to that given
func (*UpdateOrgPreferencesUnauthorized) IsRedirect ¶
func (o *UpdateOrgPreferencesUnauthorized) IsRedirect() bool
IsRedirect returns true when this update org preferences unauthorized response has a 3xx status code
func (*UpdateOrgPreferencesUnauthorized) IsServerError ¶
func (o *UpdateOrgPreferencesUnauthorized) IsServerError() bool
IsServerError returns true when this update org preferences unauthorized response has a 5xx status code
func (*UpdateOrgPreferencesUnauthorized) IsSuccess ¶
func (o *UpdateOrgPreferencesUnauthorized) IsSuccess() bool
IsSuccess returns true when this update org preferences unauthorized response has a 2xx status code
func (*UpdateOrgPreferencesUnauthorized) String ¶
func (o *UpdateOrgPreferencesUnauthorized) String() string