org_preferences

package
v0.0.0-...-bc38192 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: Apache-2.0 Imports: 11 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(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 (*GetOrgPreferencesForbidden) GetPayload

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

Code gets the status code for the get org preferences internal server error response

func (*GetOrgPreferencesInternalServerError) Error

func (*GetOrgPreferencesInternalServerError) GetPayload

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

IsCode returns true when this get org preferences internal server error response a status code equal to that given

func (*GetOrgPreferencesInternalServerError) IsRedirect

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

IsSuccess returns true when this get org preferences internal server error response has a 2xx status code

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

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

Code gets the status code for the get org preferences unauthorized response

func (*GetOrgPreferencesUnauthorized) Error

func (*GetOrgPreferencesUnauthorized) GetPayload

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

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

Code gets the status code for the patch org preferences bad request response

func (*PatchOrgPreferencesBadRequest) Error

func (*PatchOrgPreferencesBadRequest) GetPayload

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

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

Code gets the status code for the patch org preferences forbidden response

func (*PatchOrgPreferencesForbidden) Error

func (*PatchOrgPreferencesForbidden) GetPayload

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

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

Code gets the status code for the patch org preferences internal server error response

func (*PatchOrgPreferencesInternalServerError) Error

func (*PatchOrgPreferencesInternalServerError) GetPayload

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

IsCode returns true when this patch org preferences internal server error response a status code equal to that given

func (*PatchOrgPreferencesInternalServerError) IsRedirect

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

IsSuccess returns true when this patch org preferences internal server error response has a 2xx status code

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

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

Code gets the status code for the patch org preferences unauthorized response

func (*PatchOrgPreferencesUnauthorized) Error

func (*PatchOrgPreferencesUnauthorized) GetPayload

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

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

Code gets the status code for the update org preferences bad request response

func (*UpdateOrgPreferencesBadRequest) Error

func (*UpdateOrgPreferencesBadRequest) GetPayload

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

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

Code gets the status code for the update org preferences forbidden response

func (*UpdateOrgPreferencesForbidden) Error

func (*UpdateOrgPreferencesForbidden) GetPayload

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

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

Code gets the status code for the update org preferences internal server error response

func (*UpdateOrgPreferencesInternalServerError) Error

func (*UpdateOrgPreferencesInternalServerError) GetPayload

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

IsCode returns true when this update org preferences internal server error response a status code equal to that given

func (*UpdateOrgPreferencesInternalServerError) IsRedirect

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

IsSuccess returns true when this update org preferences internal server error response has a 2xx status code

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

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

Code gets the status code for the update org preferences unauthorized response

func (*UpdateOrgPreferencesUnauthorized) Error

func (*UpdateOrgPreferencesUnauthorized) GetPayload

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

Jump to

Keyboard shortcuts

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