Documentation ¶
Index ¶
- type Client
- func (a *Client) GetOrgPreferences(params *GetOrgPreferencesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetOrgPreferencesOK, error)
- func (a *Client) PatchOrgPreferences(params *PatchOrgPreferencesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PatchOrgPreferencesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateOrgPreferences(params *UpdateOrgPreferencesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateOrgPreferencesOK, error)
- type ClientOption
- type ClientService
- type GetOrgPreferencesForbidden
- type GetOrgPreferencesInternalServerError
- type GetOrgPreferencesOK
- 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
- type PatchOrgPreferencesBadRequest
- type PatchOrgPreferencesForbidden
- type PatchOrgPreferencesInternalServerError
- type PatchOrgPreferencesOK
- 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
- type UpdateOrgPreferencesBadRequest
- type UpdateOrgPreferencesForbidden
- type UpdateOrgPreferencesInternalServerError
- type UpdateOrgPreferencesOK
- 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
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(params *GetOrgPreferencesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetOrgPreferencesOK, error)
GetOrgPreferences gets current org prefs
func (*Client) PatchOrgPreferences ¶
func (a *Client) PatchOrgPreferences(params *PatchOrgPreferencesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchOrgPreferencesOK, error)
PatchOrgPreferences patches current org prefs
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateOrgPreferences ¶
func (a *Client) UpdateOrgPreferences(params *UpdateOrgPreferencesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateOrgPreferencesOK, error)
UpdateOrgPreferences updates current org prefs
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { GetOrgPreferences(params *GetOrgPreferencesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetOrgPreferencesOK, error) PatchOrgPreferences(params *PatchOrgPreferencesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchOrgPreferencesOK, error) UpdateOrgPreferences(params *UpdateOrgPreferencesParams, authInfo runtime.ClientAuthInfoWriter, 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) Error ¶
func (o *GetOrgPreferencesForbidden) Error() string
func (*GetOrgPreferencesForbidden) GetPayload ¶
func (o *GetOrgPreferencesForbidden) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *GetOrgPreferencesInternalServerError) Error() string
func (*GetOrgPreferencesInternalServerError) GetPayload ¶
func (o *GetOrgPreferencesInternalServerError) GetPayload() *models.ErrorResponseBody
type GetOrgPreferencesOK ¶
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) Error ¶
func (o *GetOrgPreferencesOK) Error() string
func (*GetOrgPreferencesOK) GetPayload ¶
func (o *GetOrgPreferencesOK) GetPayload() *models.Spec
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) Error ¶
func (o *GetOrgPreferencesUnauthorized) Error() string
func (*GetOrgPreferencesUnauthorized) GetPayload ¶
func (o *GetOrgPreferencesUnauthorized) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *PatchOrgPreferencesBadRequest) Error() string
func (*PatchOrgPreferencesBadRequest) GetPayload ¶
func (o *PatchOrgPreferencesBadRequest) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *PatchOrgPreferencesForbidden) Error() string
func (*PatchOrgPreferencesForbidden) GetPayload ¶
func (o *PatchOrgPreferencesForbidden) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *PatchOrgPreferencesInternalServerError) Error() string
func (*PatchOrgPreferencesInternalServerError) GetPayload ¶
func (o *PatchOrgPreferencesInternalServerError) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *PatchOrgPreferencesOK) Error() string
func (*PatchOrgPreferencesOK) GetPayload ¶
func (o *PatchOrgPreferencesOK) GetPayload() *models.SuccessResponseBody
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) Error ¶
func (o *PatchOrgPreferencesUnauthorized) Error() string
func (*PatchOrgPreferencesUnauthorized) GetPayload ¶
func (o *PatchOrgPreferencesUnauthorized) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *UpdateOrgPreferencesBadRequest) Error() string
func (*UpdateOrgPreferencesBadRequest) GetPayload ¶
func (o *UpdateOrgPreferencesBadRequest) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *UpdateOrgPreferencesForbidden) Error() string
func (*UpdateOrgPreferencesForbidden) GetPayload ¶
func (o *UpdateOrgPreferencesForbidden) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *UpdateOrgPreferencesInternalServerError) Error() string
func (*UpdateOrgPreferencesInternalServerError) GetPayload ¶
func (o *UpdateOrgPreferencesInternalServerError) GetPayload() *models.ErrorResponseBody
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) Error ¶
func (o *UpdateOrgPreferencesOK) Error() string
func (*UpdateOrgPreferencesOK) GetPayload ¶
func (o *UpdateOrgPreferencesOK) GetPayload() *models.SuccessResponseBody
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) Error ¶
func (o *UpdateOrgPreferencesUnauthorized) Error() string
func (*UpdateOrgPreferencesUnauthorized) GetPayload ¶
func (o *UpdateOrgPreferencesUnauthorized) GetPayload() *models.ErrorResponseBody