org_preferences

package
v0.0.0-...-d4d7cce Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 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 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 (*GetOrgPreferencesForbidden) GetPayload

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 (*GetOrgPreferencesInternalServerError) GetPayload

type GetOrgPreferencesOK

type GetOrgPreferencesOK struct {
	Payload *models.Spec
}

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

WithContext adds the context to the get org preferences params

func (*GetOrgPreferencesParams) WithDefaults

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

WithTimeout adds the timeout to the get org preferences params

func (*GetOrgPreferencesParams) WriteToRequest

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 {
	Payload *models.ErrorResponseBody
}

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 (*GetOrgPreferencesUnauthorized) GetPayload

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 (*PatchOrgPreferencesBadRequest) GetPayload

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 (*PatchOrgPreferencesForbidden) GetPayload

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 (*PatchOrgPreferencesInternalServerError) GetPayload

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

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

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

WithBody adds the body to the patch org preferences params

func (*PatchOrgPreferencesParams) WithContext

WithContext adds the context to the patch org preferences params

func (*PatchOrgPreferencesParams) WithDefaults

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

WithTimeout adds the timeout to the patch org preferences params

func (*PatchOrgPreferencesParams) WriteToRequest

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 {
	Payload *models.ErrorResponseBody
}

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 (*PatchOrgPreferencesUnauthorized) GetPayload

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 (*UpdateOrgPreferencesBadRequest) GetPayload

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 (*UpdateOrgPreferencesForbidden) GetPayload

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 (*UpdateOrgPreferencesInternalServerError) GetPayload

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

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

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

WithBody adds the body to the update org preferences params

func (*UpdateOrgPreferencesParams) WithContext

WithContext adds the context to the update org preferences params

func (*UpdateOrgPreferencesParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the update org preferences params

func (*UpdateOrgPreferencesParams) WithTimeout

WithTimeout adds the timeout to the update org preferences params

func (*UpdateOrgPreferencesParams) WriteToRequest

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 {
	Payload *models.ErrorResponseBody
}

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 (*UpdateOrgPreferencesUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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