org

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddOrgUserToCurrentOrgForbidden

type AddOrgUserToCurrentOrgForbidden struct {
	Payload *models.ErrorResponseBody
}

AddOrgUserToCurrentOrgForbidden 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 NewAddOrgUserToCurrentOrgForbidden

func NewAddOrgUserToCurrentOrgForbidden() *AddOrgUserToCurrentOrgForbidden

NewAddOrgUserToCurrentOrgForbidden creates a AddOrgUserToCurrentOrgForbidden with default headers values

func (*AddOrgUserToCurrentOrgForbidden) Error

func (*AddOrgUserToCurrentOrgForbidden) GetPayload

type AddOrgUserToCurrentOrgInternalServerError

type AddOrgUserToCurrentOrgInternalServerError struct {
	Payload *models.ErrorResponseBody
}

AddOrgUserToCurrentOrgInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewAddOrgUserToCurrentOrgInternalServerError

func NewAddOrgUserToCurrentOrgInternalServerError() *AddOrgUserToCurrentOrgInternalServerError

NewAddOrgUserToCurrentOrgInternalServerError creates a AddOrgUserToCurrentOrgInternalServerError with default headers values

func (*AddOrgUserToCurrentOrgInternalServerError) Error

func (*AddOrgUserToCurrentOrgInternalServerError) GetPayload

type AddOrgUserToCurrentOrgOK

type AddOrgUserToCurrentOrgOK struct {
	Payload *models.SuccessResponseBody
}

AddOrgUserToCurrentOrgOK describes a response with status code 200, with default header values.

An OKResponse is returned if the request was successful.

func NewAddOrgUserToCurrentOrgOK

func NewAddOrgUserToCurrentOrgOK() *AddOrgUserToCurrentOrgOK

NewAddOrgUserToCurrentOrgOK creates a AddOrgUserToCurrentOrgOK with default headers values

func (*AddOrgUserToCurrentOrgOK) Error

func (o *AddOrgUserToCurrentOrgOK) Error() string

func (*AddOrgUserToCurrentOrgOK) GetPayload

type AddOrgUserToCurrentOrgParams

type AddOrgUserToCurrentOrgParams struct {

	// Body.
	Body *models.AddOrgUserCommand

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

AddOrgUserToCurrentOrgParams contains all the parameters to send to the API endpoint

for the add org user to current org operation.

Typically these are written to a http.Request.

func NewAddOrgUserToCurrentOrgParams

func NewAddOrgUserToCurrentOrgParams() *AddOrgUserToCurrentOrgParams

NewAddOrgUserToCurrentOrgParams creates a new AddOrgUserToCurrentOrgParams 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 NewAddOrgUserToCurrentOrgParamsWithContext

func NewAddOrgUserToCurrentOrgParamsWithContext(ctx context.Context) *AddOrgUserToCurrentOrgParams

NewAddOrgUserToCurrentOrgParamsWithContext creates a new AddOrgUserToCurrentOrgParams object with the ability to set a context for a request.

func NewAddOrgUserToCurrentOrgParamsWithHTTPClient

func NewAddOrgUserToCurrentOrgParamsWithHTTPClient(client *http.Client) *AddOrgUserToCurrentOrgParams

NewAddOrgUserToCurrentOrgParamsWithHTTPClient creates a new AddOrgUserToCurrentOrgParams object with the ability to set a custom HTTPClient for a request.

func NewAddOrgUserToCurrentOrgParamsWithTimeout

func NewAddOrgUserToCurrentOrgParamsWithTimeout(timeout time.Duration) *AddOrgUserToCurrentOrgParams

NewAddOrgUserToCurrentOrgParamsWithTimeout creates a new AddOrgUserToCurrentOrgParams object with the ability to set a timeout on a request.

func (*AddOrgUserToCurrentOrgParams) SetBody

SetBody adds the body to the add org user to current org params

func (*AddOrgUserToCurrentOrgParams) SetContext

func (o *AddOrgUserToCurrentOrgParams) SetContext(ctx context.Context)

SetContext adds the context to the add org user to current org params

func (*AddOrgUserToCurrentOrgParams) SetDefaults

func (o *AddOrgUserToCurrentOrgParams) SetDefaults()

SetDefaults hydrates default values in the add org user to current org params (not the query body).

All values with no default are reset to their zero value.

func (*AddOrgUserToCurrentOrgParams) SetHTTPClient

func (o *AddOrgUserToCurrentOrgParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the add org user to current org params

func (*AddOrgUserToCurrentOrgParams) SetTimeout

func (o *AddOrgUserToCurrentOrgParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the add org user to current org params

func (*AddOrgUserToCurrentOrgParams) WithBody

WithBody adds the body to the add org user to current org params

func (*AddOrgUserToCurrentOrgParams) WithContext

WithContext adds the context to the add org user to current org params

func (*AddOrgUserToCurrentOrgParams) WithDefaults

WithDefaults hydrates default values in the add org user to current org params (not the query body).

All values with no default are reset to their zero value.

func (*AddOrgUserToCurrentOrgParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the add org user to current org params

func (*AddOrgUserToCurrentOrgParams) WithTimeout

WithTimeout adds the timeout to the add org user to current org params

func (*AddOrgUserToCurrentOrgParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AddOrgUserToCurrentOrgReader

type AddOrgUserToCurrentOrgReader struct {
	// contains filtered or unexported fields
}

AddOrgUserToCurrentOrgReader is a Reader for the AddOrgUserToCurrentOrg structure.

func (*AddOrgUserToCurrentOrgReader) ReadResponse

func (o *AddOrgUserToCurrentOrgReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type AddOrgUserToCurrentOrgUnauthorized

type AddOrgUserToCurrentOrgUnauthorized struct {
	Payload *models.ErrorResponseBody
}

AddOrgUserToCurrentOrgUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewAddOrgUserToCurrentOrgUnauthorized

func NewAddOrgUserToCurrentOrgUnauthorized() *AddOrgUserToCurrentOrgUnauthorized

NewAddOrgUserToCurrentOrgUnauthorized creates a AddOrgUserToCurrentOrgUnauthorized with default headers values

func (*AddOrgUserToCurrentOrgUnauthorized) Error

func (*AddOrgUserToCurrentOrgUnauthorized) GetPayload

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for org API

func (*Client) AddOrgUserToCurrentOrg

func (a *Client) AddOrgUserToCurrentOrg(params *AddOrgUserToCurrentOrgParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddOrgUserToCurrentOrgOK, error)
AddOrgUserToCurrentOrg adds a new user to the current organization

Adds a global user to the current organization.

If you are running Grafana Enterprise and have Fine-grained access control enabled you need to have a permission with action: `org.users:add` with scope `users:*`.

func (*Client) GetCurrentOrg

func (a *Client) GetCurrentOrg(params *GetCurrentOrgParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCurrentOrgOK, error)

GetCurrentOrg gets current organization

func (*Client) GetOrgUsersForCurrentOrg

func (a *Client) GetOrgUsersForCurrentOrg(params *GetOrgUsersForCurrentOrgParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetOrgUsersForCurrentOrgOK, error)
GetOrgUsersForCurrentOrg gets all users within the current organization

Returns all org users within the current organization. Accessible to users with org admin role.

If you are running Grafana Enterprise and have Fine-grained access control enabled you need to have a permission with action: `org.users:read` with scope `users:*`.

func (*Client) GetOrgUsersForCurrentOrgLookup

func (a *Client) GetOrgUsersForCurrentOrgLookup(params *GetOrgUsersForCurrentOrgLookupParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetOrgUsersForCurrentOrgLookupOK, error)
GetOrgUsersForCurrentOrgLookup gets all users within the current organization lookup

Returns all org users within the current organization, but with less detailed information.

Accessible to users with org admin role, admin in any folder or admin of any team. Mainly used by Grafana UI for providing list of users when adding team members and when editing folder/dashboard permissions.

func (*Client) RemoveOrgUserForCurrentOrg

func (a *Client) RemoveOrgUserForCurrentOrg(params *RemoveOrgUserForCurrentOrgParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RemoveOrgUserForCurrentOrgOK, error)
RemoveOrgUserForCurrentOrg deletes user in current organization

If you are running Grafana Enterprise and have Fine-grained access control enabled

you need to have a permission with action: `org.users:remove` with scope `users:*`.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) UpdateCurrentOrg

func (a *Client) UpdateCurrentOrg(params *UpdateCurrentOrgParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateCurrentOrgOK, error)

UpdateCurrentOrg updates current organization

func (*Client) UpdateCurrentOrgAddress

func (a *Client) UpdateCurrentOrgAddress(params *UpdateCurrentOrgAddressParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateCurrentOrgAddressOK, error)

UpdateCurrentOrgAddress updates current organization s address

func (*Client) UpdateOrgUserForCurrentOrg

func (a *Client) UpdateOrgUserForCurrentOrg(params *UpdateOrgUserForCurrentOrgParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateOrgUserForCurrentOrgOK, error)
UpdateOrgUserForCurrentOrg updates the given user

If you are running Grafana Enterprise and have Fine-grained access control enabled

you need to have a permission with action: `org.users.role:update` with scope `users:*`.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	AddOrgUserToCurrentOrg(params *AddOrgUserToCurrentOrgParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddOrgUserToCurrentOrgOK, error)

	GetCurrentOrg(params *GetCurrentOrgParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCurrentOrgOK, error)

	GetOrgUsersForCurrentOrg(params *GetOrgUsersForCurrentOrgParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetOrgUsersForCurrentOrgOK, error)

	GetOrgUsersForCurrentOrgLookup(params *GetOrgUsersForCurrentOrgLookupParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetOrgUsersForCurrentOrgLookupOK, error)

	RemoveOrgUserForCurrentOrg(params *RemoveOrgUserForCurrentOrgParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RemoveOrgUserForCurrentOrgOK, error)

	UpdateCurrentOrg(params *UpdateCurrentOrgParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateCurrentOrgOK, error)

	UpdateCurrentOrgAddress(params *UpdateCurrentOrgAddressParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateCurrentOrgAddressOK, error)

	UpdateOrgUserForCurrentOrg(params *UpdateOrgUserForCurrentOrgParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateOrgUserForCurrentOrgOK, 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 API client.

type GetCurrentOrgForbidden

type GetCurrentOrgForbidden struct {
	Payload *models.ErrorResponseBody
}

GetCurrentOrgForbidden 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 NewGetCurrentOrgForbidden

func NewGetCurrentOrgForbidden() *GetCurrentOrgForbidden

NewGetCurrentOrgForbidden creates a GetCurrentOrgForbidden with default headers values

func (*GetCurrentOrgForbidden) Error

func (o *GetCurrentOrgForbidden) Error() string

func (*GetCurrentOrgForbidden) GetPayload

type GetCurrentOrgInternalServerError

type GetCurrentOrgInternalServerError struct {
	Payload *models.ErrorResponseBody
}

GetCurrentOrgInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewGetCurrentOrgInternalServerError

func NewGetCurrentOrgInternalServerError() *GetCurrentOrgInternalServerError

NewGetCurrentOrgInternalServerError creates a GetCurrentOrgInternalServerError with default headers values

func (*GetCurrentOrgInternalServerError) Error

func (*GetCurrentOrgInternalServerError) GetPayload

type GetCurrentOrgOK

type GetCurrentOrgOK struct {
	Payload *models.OrgDetailsDTO
}

GetCurrentOrgOK describes a response with status code 200, with default header values.

(empty)

func NewGetCurrentOrgOK

func NewGetCurrentOrgOK() *GetCurrentOrgOK

NewGetCurrentOrgOK creates a GetCurrentOrgOK with default headers values

func (*GetCurrentOrgOK) Error

func (o *GetCurrentOrgOK) Error() string

func (*GetCurrentOrgOK) GetPayload

func (o *GetCurrentOrgOK) GetPayload() *models.OrgDetailsDTO

type GetCurrentOrgParams

type GetCurrentOrgParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetCurrentOrgParams contains all the parameters to send to the API endpoint

for the get current org operation.

Typically these are written to a http.Request.

func NewGetCurrentOrgParams

func NewGetCurrentOrgParams() *GetCurrentOrgParams

NewGetCurrentOrgParams creates a new GetCurrentOrgParams 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 NewGetCurrentOrgParamsWithContext

func NewGetCurrentOrgParamsWithContext(ctx context.Context) *GetCurrentOrgParams

NewGetCurrentOrgParamsWithContext creates a new GetCurrentOrgParams object with the ability to set a context for a request.

func NewGetCurrentOrgParamsWithHTTPClient

func NewGetCurrentOrgParamsWithHTTPClient(client *http.Client) *GetCurrentOrgParams

NewGetCurrentOrgParamsWithHTTPClient creates a new GetCurrentOrgParams object with the ability to set a custom HTTPClient for a request.

func NewGetCurrentOrgParamsWithTimeout

func NewGetCurrentOrgParamsWithTimeout(timeout time.Duration) *GetCurrentOrgParams

NewGetCurrentOrgParamsWithTimeout creates a new GetCurrentOrgParams object with the ability to set a timeout on a request.

func (*GetCurrentOrgParams) SetContext

func (o *GetCurrentOrgParams) SetContext(ctx context.Context)

SetContext adds the context to the get current org params

func (*GetCurrentOrgParams) SetDefaults

func (o *GetCurrentOrgParams) SetDefaults()

SetDefaults hydrates default values in the get current org params (not the query body).

All values with no default are reset to their zero value.

func (*GetCurrentOrgParams) SetHTTPClient

func (o *GetCurrentOrgParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get current org params

func (*GetCurrentOrgParams) SetTimeout

func (o *GetCurrentOrgParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get current org params

func (*GetCurrentOrgParams) WithContext

WithContext adds the context to the get current org params

func (*GetCurrentOrgParams) WithDefaults

func (o *GetCurrentOrgParams) WithDefaults() *GetCurrentOrgParams

WithDefaults hydrates default values in the get current org params (not the query body).

All values with no default are reset to their zero value.

func (*GetCurrentOrgParams) WithHTTPClient

func (o *GetCurrentOrgParams) WithHTTPClient(client *http.Client) *GetCurrentOrgParams

WithHTTPClient adds the HTTPClient to the get current org params

func (*GetCurrentOrgParams) WithTimeout

func (o *GetCurrentOrgParams) WithTimeout(timeout time.Duration) *GetCurrentOrgParams

WithTimeout adds the timeout to the get current org params

func (*GetCurrentOrgParams) WriteToRequest

func (o *GetCurrentOrgParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetCurrentOrgReader

type GetCurrentOrgReader struct {
	// contains filtered or unexported fields
}

GetCurrentOrgReader is a Reader for the GetCurrentOrg structure.

func (*GetCurrentOrgReader) ReadResponse

func (o *GetCurrentOrgReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetCurrentOrgUnauthorized

type GetCurrentOrgUnauthorized struct {
	Payload *models.ErrorResponseBody
}

GetCurrentOrgUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewGetCurrentOrgUnauthorized

func NewGetCurrentOrgUnauthorized() *GetCurrentOrgUnauthorized

NewGetCurrentOrgUnauthorized creates a GetCurrentOrgUnauthorized with default headers values

func (*GetCurrentOrgUnauthorized) Error

func (o *GetCurrentOrgUnauthorized) Error() string

func (*GetCurrentOrgUnauthorized) GetPayload

type GetOrgUsersForCurrentOrgForbidden

type GetOrgUsersForCurrentOrgForbidden struct {
	Payload *models.ErrorResponseBody
}

GetOrgUsersForCurrentOrgForbidden 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 NewGetOrgUsersForCurrentOrgForbidden

func NewGetOrgUsersForCurrentOrgForbidden() *GetOrgUsersForCurrentOrgForbidden

NewGetOrgUsersForCurrentOrgForbidden creates a GetOrgUsersForCurrentOrgForbidden with default headers values

func (*GetOrgUsersForCurrentOrgForbidden) Error

func (*GetOrgUsersForCurrentOrgForbidden) GetPayload

type GetOrgUsersForCurrentOrgInternalServerError

type GetOrgUsersForCurrentOrgInternalServerError struct {
	Payload *models.ErrorResponseBody
}

GetOrgUsersForCurrentOrgInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewGetOrgUsersForCurrentOrgInternalServerError

func NewGetOrgUsersForCurrentOrgInternalServerError() *GetOrgUsersForCurrentOrgInternalServerError

NewGetOrgUsersForCurrentOrgInternalServerError creates a GetOrgUsersForCurrentOrgInternalServerError with default headers values

func (*GetOrgUsersForCurrentOrgInternalServerError) Error

func (*GetOrgUsersForCurrentOrgInternalServerError) GetPayload

type GetOrgUsersForCurrentOrgLookupForbidden

type GetOrgUsersForCurrentOrgLookupForbidden struct {
	Payload *models.ErrorResponseBody
}

GetOrgUsersForCurrentOrgLookupForbidden 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 NewGetOrgUsersForCurrentOrgLookupForbidden

func NewGetOrgUsersForCurrentOrgLookupForbidden() *GetOrgUsersForCurrentOrgLookupForbidden

NewGetOrgUsersForCurrentOrgLookupForbidden creates a GetOrgUsersForCurrentOrgLookupForbidden with default headers values

func (*GetOrgUsersForCurrentOrgLookupForbidden) Error

func (*GetOrgUsersForCurrentOrgLookupForbidden) GetPayload

type GetOrgUsersForCurrentOrgLookupInternalServerError

type GetOrgUsersForCurrentOrgLookupInternalServerError struct {
	Payload *models.ErrorResponseBody
}

GetOrgUsersForCurrentOrgLookupInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewGetOrgUsersForCurrentOrgLookupInternalServerError

func NewGetOrgUsersForCurrentOrgLookupInternalServerError() *GetOrgUsersForCurrentOrgLookupInternalServerError

NewGetOrgUsersForCurrentOrgLookupInternalServerError creates a GetOrgUsersForCurrentOrgLookupInternalServerError with default headers values

func (*GetOrgUsersForCurrentOrgLookupInternalServerError) Error

func (*GetOrgUsersForCurrentOrgLookupInternalServerError) GetPayload

type GetOrgUsersForCurrentOrgLookupOK

type GetOrgUsersForCurrentOrgLookupOK struct {
	Payload []*models.UserLookupDTO
}

GetOrgUsersForCurrentOrgLookupOK describes a response with status code 200, with default header values.

(empty)

func NewGetOrgUsersForCurrentOrgLookupOK

func NewGetOrgUsersForCurrentOrgLookupOK() *GetOrgUsersForCurrentOrgLookupOK

NewGetOrgUsersForCurrentOrgLookupOK creates a GetOrgUsersForCurrentOrgLookupOK with default headers values

func (*GetOrgUsersForCurrentOrgLookupOK) Error

func (*GetOrgUsersForCurrentOrgLookupOK) GetPayload

type GetOrgUsersForCurrentOrgLookupParams

type GetOrgUsersForCurrentOrgLookupParams struct {

	// Limit.
	//
	// Format: int64
	Limit *int64

	// Query.
	Query *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetOrgUsersForCurrentOrgLookupParams contains all the parameters to send to the API endpoint

for the get org users for current org lookup operation.

Typically these are written to a http.Request.

func NewGetOrgUsersForCurrentOrgLookupParams

func NewGetOrgUsersForCurrentOrgLookupParams() *GetOrgUsersForCurrentOrgLookupParams

NewGetOrgUsersForCurrentOrgLookupParams creates a new GetOrgUsersForCurrentOrgLookupParams 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 NewGetOrgUsersForCurrentOrgLookupParamsWithContext

func NewGetOrgUsersForCurrentOrgLookupParamsWithContext(ctx context.Context) *GetOrgUsersForCurrentOrgLookupParams

NewGetOrgUsersForCurrentOrgLookupParamsWithContext creates a new GetOrgUsersForCurrentOrgLookupParams object with the ability to set a context for a request.

func NewGetOrgUsersForCurrentOrgLookupParamsWithHTTPClient

func NewGetOrgUsersForCurrentOrgLookupParamsWithHTTPClient(client *http.Client) *GetOrgUsersForCurrentOrgLookupParams

NewGetOrgUsersForCurrentOrgLookupParamsWithHTTPClient creates a new GetOrgUsersForCurrentOrgLookupParams object with the ability to set a custom HTTPClient for a request.

func NewGetOrgUsersForCurrentOrgLookupParamsWithTimeout

func NewGetOrgUsersForCurrentOrgLookupParamsWithTimeout(timeout time.Duration) *GetOrgUsersForCurrentOrgLookupParams

NewGetOrgUsersForCurrentOrgLookupParamsWithTimeout creates a new GetOrgUsersForCurrentOrgLookupParams object with the ability to set a timeout on a request.

func (*GetOrgUsersForCurrentOrgLookupParams) SetContext

SetContext adds the context to the get org users for current org lookup params

func (*GetOrgUsersForCurrentOrgLookupParams) SetDefaults

func (o *GetOrgUsersForCurrentOrgLookupParams) SetDefaults()

SetDefaults hydrates default values in the get org users for current org lookup params (not the query body).

All values with no default are reset to their zero value.

func (*GetOrgUsersForCurrentOrgLookupParams) SetHTTPClient

func (o *GetOrgUsersForCurrentOrgLookupParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get org users for current org lookup params

func (*GetOrgUsersForCurrentOrgLookupParams) SetLimit

func (o *GetOrgUsersForCurrentOrgLookupParams) SetLimit(limit *int64)

SetLimit adds the limit to the get org users for current org lookup params

func (*GetOrgUsersForCurrentOrgLookupParams) SetQuery

func (o *GetOrgUsersForCurrentOrgLookupParams) SetQuery(query *string)

SetQuery adds the query to the get org users for current org lookup params

func (*GetOrgUsersForCurrentOrgLookupParams) SetTimeout

func (o *GetOrgUsersForCurrentOrgLookupParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get org users for current org lookup params

func (*GetOrgUsersForCurrentOrgLookupParams) WithContext

WithContext adds the context to the get org users for current org lookup params

func (*GetOrgUsersForCurrentOrgLookupParams) WithDefaults

WithDefaults hydrates default values in the get org users for current org lookup params (not the query body).

All values with no default are reset to their zero value.

func (*GetOrgUsersForCurrentOrgLookupParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get org users for current org lookup params

func (*GetOrgUsersForCurrentOrgLookupParams) WithLimit

WithLimit adds the limit to the get org users for current org lookup params

func (*GetOrgUsersForCurrentOrgLookupParams) WithQuery

WithQuery adds the query to the get org users for current org lookup params

func (*GetOrgUsersForCurrentOrgLookupParams) WithTimeout

WithTimeout adds the timeout to the get org users for current org lookup params

func (*GetOrgUsersForCurrentOrgLookupParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetOrgUsersForCurrentOrgLookupReader

type GetOrgUsersForCurrentOrgLookupReader struct {
	// contains filtered or unexported fields
}

GetOrgUsersForCurrentOrgLookupReader is a Reader for the GetOrgUsersForCurrentOrgLookup structure.

func (*GetOrgUsersForCurrentOrgLookupReader) ReadResponse

func (o *GetOrgUsersForCurrentOrgLookupReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetOrgUsersForCurrentOrgLookupUnauthorized

type GetOrgUsersForCurrentOrgLookupUnauthorized struct {
	Payload *models.ErrorResponseBody
}

GetOrgUsersForCurrentOrgLookupUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewGetOrgUsersForCurrentOrgLookupUnauthorized

func NewGetOrgUsersForCurrentOrgLookupUnauthorized() *GetOrgUsersForCurrentOrgLookupUnauthorized

NewGetOrgUsersForCurrentOrgLookupUnauthorized creates a GetOrgUsersForCurrentOrgLookupUnauthorized with default headers values

func (*GetOrgUsersForCurrentOrgLookupUnauthorized) Error

func (*GetOrgUsersForCurrentOrgLookupUnauthorized) GetPayload

type GetOrgUsersForCurrentOrgOK

type GetOrgUsersForCurrentOrgOK struct {
	Payload []*models.OrgUserDTO
}

GetOrgUsersForCurrentOrgOK describes a response with status code 200, with default header values.

(empty)

func NewGetOrgUsersForCurrentOrgOK

func NewGetOrgUsersForCurrentOrgOK() *GetOrgUsersForCurrentOrgOK

NewGetOrgUsersForCurrentOrgOK creates a GetOrgUsersForCurrentOrgOK with default headers values

func (*GetOrgUsersForCurrentOrgOK) Error

func (*GetOrgUsersForCurrentOrgOK) GetPayload

func (o *GetOrgUsersForCurrentOrgOK) GetPayload() []*models.OrgUserDTO

type GetOrgUsersForCurrentOrgParams

type GetOrgUsersForCurrentOrgParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetOrgUsersForCurrentOrgParams contains all the parameters to send to the API endpoint

for the get org users for current org operation.

Typically these are written to a http.Request.

func NewGetOrgUsersForCurrentOrgParams

func NewGetOrgUsersForCurrentOrgParams() *GetOrgUsersForCurrentOrgParams

NewGetOrgUsersForCurrentOrgParams creates a new GetOrgUsersForCurrentOrgParams 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 NewGetOrgUsersForCurrentOrgParamsWithContext

func NewGetOrgUsersForCurrentOrgParamsWithContext(ctx context.Context) *GetOrgUsersForCurrentOrgParams

NewGetOrgUsersForCurrentOrgParamsWithContext creates a new GetOrgUsersForCurrentOrgParams object with the ability to set a context for a request.

func NewGetOrgUsersForCurrentOrgParamsWithHTTPClient

func NewGetOrgUsersForCurrentOrgParamsWithHTTPClient(client *http.Client) *GetOrgUsersForCurrentOrgParams

NewGetOrgUsersForCurrentOrgParamsWithHTTPClient creates a new GetOrgUsersForCurrentOrgParams object with the ability to set a custom HTTPClient for a request.

func NewGetOrgUsersForCurrentOrgParamsWithTimeout

func NewGetOrgUsersForCurrentOrgParamsWithTimeout(timeout time.Duration) *GetOrgUsersForCurrentOrgParams

NewGetOrgUsersForCurrentOrgParamsWithTimeout creates a new GetOrgUsersForCurrentOrgParams object with the ability to set a timeout on a request.

func (*GetOrgUsersForCurrentOrgParams) SetContext

func (o *GetOrgUsersForCurrentOrgParams) SetContext(ctx context.Context)

SetContext adds the context to the get org users for current org params

func (*GetOrgUsersForCurrentOrgParams) SetDefaults

func (o *GetOrgUsersForCurrentOrgParams) SetDefaults()

SetDefaults hydrates default values in the get org users for current org params (not the query body).

All values with no default are reset to their zero value.

func (*GetOrgUsersForCurrentOrgParams) SetHTTPClient

func (o *GetOrgUsersForCurrentOrgParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get org users for current org params

func (*GetOrgUsersForCurrentOrgParams) SetTimeout

func (o *GetOrgUsersForCurrentOrgParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get org users for current org params

func (*GetOrgUsersForCurrentOrgParams) WithContext

WithContext adds the context to the get org users for current org params

func (*GetOrgUsersForCurrentOrgParams) WithDefaults

WithDefaults hydrates default values in the get org users for current org params (not the query body).

All values with no default are reset to their zero value.

func (*GetOrgUsersForCurrentOrgParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get org users for current org params

func (*GetOrgUsersForCurrentOrgParams) WithTimeout

WithTimeout adds the timeout to the get org users for current org params

func (*GetOrgUsersForCurrentOrgParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetOrgUsersForCurrentOrgReader

type GetOrgUsersForCurrentOrgReader struct {
	// contains filtered or unexported fields
}

GetOrgUsersForCurrentOrgReader is a Reader for the GetOrgUsersForCurrentOrg structure.

func (*GetOrgUsersForCurrentOrgReader) ReadResponse

func (o *GetOrgUsersForCurrentOrgReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetOrgUsersForCurrentOrgUnauthorized

type GetOrgUsersForCurrentOrgUnauthorized struct {
	Payload *models.ErrorResponseBody
}

GetOrgUsersForCurrentOrgUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewGetOrgUsersForCurrentOrgUnauthorized

func NewGetOrgUsersForCurrentOrgUnauthorized() *GetOrgUsersForCurrentOrgUnauthorized

NewGetOrgUsersForCurrentOrgUnauthorized creates a GetOrgUsersForCurrentOrgUnauthorized with default headers values

func (*GetOrgUsersForCurrentOrgUnauthorized) Error

func (*GetOrgUsersForCurrentOrgUnauthorized) GetPayload

type RemoveOrgUserForCurrentOrgBadRequest

type RemoveOrgUserForCurrentOrgBadRequest struct {
	Payload *models.ErrorResponseBody
}

RemoveOrgUserForCurrentOrgBadRequest 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 NewRemoveOrgUserForCurrentOrgBadRequest

func NewRemoveOrgUserForCurrentOrgBadRequest() *RemoveOrgUserForCurrentOrgBadRequest

NewRemoveOrgUserForCurrentOrgBadRequest creates a RemoveOrgUserForCurrentOrgBadRequest with default headers values

func (*RemoveOrgUserForCurrentOrgBadRequest) Error

func (*RemoveOrgUserForCurrentOrgBadRequest) GetPayload

type RemoveOrgUserForCurrentOrgForbidden

type RemoveOrgUserForCurrentOrgForbidden struct {
	Payload *models.ErrorResponseBody
}

RemoveOrgUserForCurrentOrgForbidden 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 NewRemoveOrgUserForCurrentOrgForbidden

func NewRemoveOrgUserForCurrentOrgForbidden() *RemoveOrgUserForCurrentOrgForbidden

NewRemoveOrgUserForCurrentOrgForbidden creates a RemoveOrgUserForCurrentOrgForbidden with default headers values

func (*RemoveOrgUserForCurrentOrgForbidden) Error

func (*RemoveOrgUserForCurrentOrgForbidden) GetPayload

type RemoveOrgUserForCurrentOrgInternalServerError

type RemoveOrgUserForCurrentOrgInternalServerError struct {
	Payload *models.ErrorResponseBody
}

RemoveOrgUserForCurrentOrgInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewRemoveOrgUserForCurrentOrgInternalServerError

func NewRemoveOrgUserForCurrentOrgInternalServerError() *RemoveOrgUserForCurrentOrgInternalServerError

NewRemoveOrgUserForCurrentOrgInternalServerError creates a RemoveOrgUserForCurrentOrgInternalServerError with default headers values

func (*RemoveOrgUserForCurrentOrgInternalServerError) Error

func (*RemoveOrgUserForCurrentOrgInternalServerError) GetPayload

type RemoveOrgUserForCurrentOrgOK

type RemoveOrgUserForCurrentOrgOK struct {
	Payload *models.SuccessResponseBody
}

RemoveOrgUserForCurrentOrgOK describes a response with status code 200, with default header values.

An OKResponse is returned if the request was successful.

func NewRemoveOrgUserForCurrentOrgOK

func NewRemoveOrgUserForCurrentOrgOK() *RemoveOrgUserForCurrentOrgOK

NewRemoveOrgUserForCurrentOrgOK creates a RemoveOrgUserForCurrentOrgOK with default headers values

func (*RemoveOrgUserForCurrentOrgOK) Error

func (*RemoveOrgUserForCurrentOrgOK) GetPayload

type RemoveOrgUserForCurrentOrgParams

type RemoveOrgUserForCurrentOrgParams struct {

	// UserID.
	//
	// Format: int64
	UserID int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

RemoveOrgUserForCurrentOrgParams contains all the parameters to send to the API endpoint

for the remove org user for current org operation.

Typically these are written to a http.Request.

func NewRemoveOrgUserForCurrentOrgParams

func NewRemoveOrgUserForCurrentOrgParams() *RemoveOrgUserForCurrentOrgParams

NewRemoveOrgUserForCurrentOrgParams creates a new RemoveOrgUserForCurrentOrgParams 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 NewRemoveOrgUserForCurrentOrgParamsWithContext

func NewRemoveOrgUserForCurrentOrgParamsWithContext(ctx context.Context) *RemoveOrgUserForCurrentOrgParams

NewRemoveOrgUserForCurrentOrgParamsWithContext creates a new RemoveOrgUserForCurrentOrgParams object with the ability to set a context for a request.

func NewRemoveOrgUserForCurrentOrgParamsWithHTTPClient

func NewRemoveOrgUserForCurrentOrgParamsWithHTTPClient(client *http.Client) *RemoveOrgUserForCurrentOrgParams

NewRemoveOrgUserForCurrentOrgParamsWithHTTPClient creates a new RemoveOrgUserForCurrentOrgParams object with the ability to set a custom HTTPClient for a request.

func NewRemoveOrgUserForCurrentOrgParamsWithTimeout

func NewRemoveOrgUserForCurrentOrgParamsWithTimeout(timeout time.Duration) *RemoveOrgUserForCurrentOrgParams

NewRemoveOrgUserForCurrentOrgParamsWithTimeout creates a new RemoveOrgUserForCurrentOrgParams object with the ability to set a timeout on a request.

func (*RemoveOrgUserForCurrentOrgParams) SetContext

SetContext adds the context to the remove org user for current org params

func (*RemoveOrgUserForCurrentOrgParams) SetDefaults

func (o *RemoveOrgUserForCurrentOrgParams) SetDefaults()

SetDefaults hydrates default values in the remove org user for current org params (not the query body).

All values with no default are reset to their zero value.

func (*RemoveOrgUserForCurrentOrgParams) SetHTTPClient

func (o *RemoveOrgUserForCurrentOrgParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the remove org user for current org params

func (*RemoveOrgUserForCurrentOrgParams) SetTimeout

func (o *RemoveOrgUserForCurrentOrgParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the remove org user for current org params

func (*RemoveOrgUserForCurrentOrgParams) SetUserID

func (o *RemoveOrgUserForCurrentOrgParams) SetUserID(userID int64)

SetUserID adds the userId to the remove org user for current org params

func (*RemoveOrgUserForCurrentOrgParams) WithContext

WithContext adds the context to the remove org user for current org params

func (*RemoveOrgUserForCurrentOrgParams) WithDefaults

WithDefaults hydrates default values in the remove org user for current org params (not the query body).

All values with no default are reset to their zero value.

func (*RemoveOrgUserForCurrentOrgParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the remove org user for current org params

func (*RemoveOrgUserForCurrentOrgParams) WithTimeout

WithTimeout adds the timeout to the remove org user for current org params

func (*RemoveOrgUserForCurrentOrgParams) WithUserID

WithUserID adds the userID to the remove org user for current org params

func (*RemoveOrgUserForCurrentOrgParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RemoveOrgUserForCurrentOrgReader

type RemoveOrgUserForCurrentOrgReader struct {
	// contains filtered or unexported fields
}

RemoveOrgUserForCurrentOrgReader is a Reader for the RemoveOrgUserForCurrentOrg structure.

func (*RemoveOrgUserForCurrentOrgReader) ReadResponse

func (o *RemoveOrgUserForCurrentOrgReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type RemoveOrgUserForCurrentOrgUnauthorized

type RemoveOrgUserForCurrentOrgUnauthorized struct {
	Payload *models.ErrorResponseBody
}

RemoveOrgUserForCurrentOrgUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewRemoveOrgUserForCurrentOrgUnauthorized

func NewRemoveOrgUserForCurrentOrgUnauthorized() *RemoveOrgUserForCurrentOrgUnauthorized

NewRemoveOrgUserForCurrentOrgUnauthorized creates a RemoveOrgUserForCurrentOrgUnauthorized with default headers values

func (*RemoveOrgUserForCurrentOrgUnauthorized) Error

func (*RemoveOrgUserForCurrentOrgUnauthorized) GetPayload

type UpdateCurrentOrgAddressBadRequest

type UpdateCurrentOrgAddressBadRequest struct {
	Payload *models.ErrorResponseBody
}

UpdateCurrentOrgAddressBadRequest 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 NewUpdateCurrentOrgAddressBadRequest

func NewUpdateCurrentOrgAddressBadRequest() *UpdateCurrentOrgAddressBadRequest

NewUpdateCurrentOrgAddressBadRequest creates a UpdateCurrentOrgAddressBadRequest with default headers values

func (*UpdateCurrentOrgAddressBadRequest) Error

func (*UpdateCurrentOrgAddressBadRequest) GetPayload

type UpdateCurrentOrgAddressForbidden

type UpdateCurrentOrgAddressForbidden struct {
	Payload *models.ErrorResponseBody
}

UpdateCurrentOrgAddressForbidden 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 NewUpdateCurrentOrgAddressForbidden

func NewUpdateCurrentOrgAddressForbidden() *UpdateCurrentOrgAddressForbidden

NewUpdateCurrentOrgAddressForbidden creates a UpdateCurrentOrgAddressForbidden with default headers values

func (*UpdateCurrentOrgAddressForbidden) Error

func (*UpdateCurrentOrgAddressForbidden) GetPayload

type UpdateCurrentOrgAddressInternalServerError

type UpdateCurrentOrgAddressInternalServerError struct {
	Payload *models.ErrorResponseBody
}

UpdateCurrentOrgAddressInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewUpdateCurrentOrgAddressInternalServerError

func NewUpdateCurrentOrgAddressInternalServerError() *UpdateCurrentOrgAddressInternalServerError

NewUpdateCurrentOrgAddressInternalServerError creates a UpdateCurrentOrgAddressInternalServerError with default headers values

func (*UpdateCurrentOrgAddressInternalServerError) Error

func (*UpdateCurrentOrgAddressInternalServerError) GetPayload

type UpdateCurrentOrgAddressOK

type UpdateCurrentOrgAddressOK struct {
	Payload *models.SuccessResponseBody
}

UpdateCurrentOrgAddressOK describes a response with status code 200, with default header values.

An OKResponse is returned if the request was successful.

func NewUpdateCurrentOrgAddressOK

func NewUpdateCurrentOrgAddressOK() *UpdateCurrentOrgAddressOK

NewUpdateCurrentOrgAddressOK creates a UpdateCurrentOrgAddressOK with default headers values

func (*UpdateCurrentOrgAddressOK) Error

func (o *UpdateCurrentOrgAddressOK) Error() string

func (*UpdateCurrentOrgAddressOK) GetPayload

type UpdateCurrentOrgAddressParams

type UpdateCurrentOrgAddressParams struct {

	// Body.
	Body *models.UpdateOrgAddressForm

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UpdateCurrentOrgAddressParams contains all the parameters to send to the API endpoint

for the update current org address operation.

Typically these are written to a http.Request.

func NewUpdateCurrentOrgAddressParams

func NewUpdateCurrentOrgAddressParams() *UpdateCurrentOrgAddressParams

NewUpdateCurrentOrgAddressParams creates a new UpdateCurrentOrgAddressParams 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 NewUpdateCurrentOrgAddressParamsWithContext

func NewUpdateCurrentOrgAddressParamsWithContext(ctx context.Context) *UpdateCurrentOrgAddressParams

NewUpdateCurrentOrgAddressParamsWithContext creates a new UpdateCurrentOrgAddressParams object with the ability to set a context for a request.

func NewUpdateCurrentOrgAddressParamsWithHTTPClient

func NewUpdateCurrentOrgAddressParamsWithHTTPClient(client *http.Client) *UpdateCurrentOrgAddressParams

NewUpdateCurrentOrgAddressParamsWithHTTPClient creates a new UpdateCurrentOrgAddressParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateCurrentOrgAddressParamsWithTimeout

func NewUpdateCurrentOrgAddressParamsWithTimeout(timeout time.Duration) *UpdateCurrentOrgAddressParams

NewUpdateCurrentOrgAddressParamsWithTimeout creates a new UpdateCurrentOrgAddressParams object with the ability to set a timeout on a request.

func (*UpdateCurrentOrgAddressParams) SetBody

SetBody adds the body to the update current org address params

func (*UpdateCurrentOrgAddressParams) SetContext

func (o *UpdateCurrentOrgAddressParams) SetContext(ctx context.Context)

SetContext adds the context to the update current org address params

func (*UpdateCurrentOrgAddressParams) SetDefaults

func (o *UpdateCurrentOrgAddressParams) SetDefaults()

SetDefaults hydrates default values in the update current org address params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateCurrentOrgAddressParams) SetHTTPClient

func (o *UpdateCurrentOrgAddressParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the update current org address params

func (*UpdateCurrentOrgAddressParams) SetTimeout

func (o *UpdateCurrentOrgAddressParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the update current org address params

func (*UpdateCurrentOrgAddressParams) WithBody

WithBody adds the body to the update current org address params

func (*UpdateCurrentOrgAddressParams) WithContext

WithContext adds the context to the update current org address params

func (*UpdateCurrentOrgAddressParams) WithDefaults

WithDefaults hydrates default values in the update current org address params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateCurrentOrgAddressParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update current org address params

func (*UpdateCurrentOrgAddressParams) WithTimeout

WithTimeout adds the timeout to the update current org address params

func (*UpdateCurrentOrgAddressParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateCurrentOrgAddressReader

type UpdateCurrentOrgAddressReader struct {
	// contains filtered or unexported fields
}

UpdateCurrentOrgAddressReader is a Reader for the UpdateCurrentOrgAddress structure.

func (*UpdateCurrentOrgAddressReader) ReadResponse

func (o *UpdateCurrentOrgAddressReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UpdateCurrentOrgAddressUnauthorized

type UpdateCurrentOrgAddressUnauthorized struct {
	Payload *models.ErrorResponseBody
}

UpdateCurrentOrgAddressUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewUpdateCurrentOrgAddressUnauthorized

func NewUpdateCurrentOrgAddressUnauthorized() *UpdateCurrentOrgAddressUnauthorized

NewUpdateCurrentOrgAddressUnauthorized creates a UpdateCurrentOrgAddressUnauthorized with default headers values

func (*UpdateCurrentOrgAddressUnauthorized) Error

func (*UpdateCurrentOrgAddressUnauthorized) GetPayload

type UpdateCurrentOrgBadRequest

type UpdateCurrentOrgBadRequest struct {
	Payload *models.ErrorResponseBody
}

UpdateCurrentOrgBadRequest 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 NewUpdateCurrentOrgBadRequest

func NewUpdateCurrentOrgBadRequest() *UpdateCurrentOrgBadRequest

NewUpdateCurrentOrgBadRequest creates a UpdateCurrentOrgBadRequest with default headers values

func (*UpdateCurrentOrgBadRequest) Error

func (*UpdateCurrentOrgBadRequest) GetPayload

type UpdateCurrentOrgForbidden

type UpdateCurrentOrgForbidden struct {
	Payload *models.ErrorResponseBody
}

UpdateCurrentOrgForbidden 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 NewUpdateCurrentOrgForbidden

func NewUpdateCurrentOrgForbidden() *UpdateCurrentOrgForbidden

NewUpdateCurrentOrgForbidden creates a UpdateCurrentOrgForbidden with default headers values

func (*UpdateCurrentOrgForbidden) Error

func (o *UpdateCurrentOrgForbidden) Error() string

func (*UpdateCurrentOrgForbidden) GetPayload

type UpdateCurrentOrgInternalServerError

type UpdateCurrentOrgInternalServerError struct {
	Payload *models.ErrorResponseBody
}

UpdateCurrentOrgInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewUpdateCurrentOrgInternalServerError

func NewUpdateCurrentOrgInternalServerError() *UpdateCurrentOrgInternalServerError

NewUpdateCurrentOrgInternalServerError creates a UpdateCurrentOrgInternalServerError with default headers values

func (*UpdateCurrentOrgInternalServerError) Error

func (*UpdateCurrentOrgInternalServerError) GetPayload

type UpdateCurrentOrgOK

type UpdateCurrentOrgOK struct {
	Payload *models.SuccessResponseBody
}

UpdateCurrentOrgOK describes a response with status code 200, with default header values.

An OKResponse is returned if the request was successful.

func NewUpdateCurrentOrgOK

func NewUpdateCurrentOrgOK() *UpdateCurrentOrgOK

NewUpdateCurrentOrgOK creates a UpdateCurrentOrgOK with default headers values

func (*UpdateCurrentOrgOK) Error

func (o *UpdateCurrentOrgOK) Error() string

func (*UpdateCurrentOrgOK) GetPayload

type UpdateCurrentOrgParams

type UpdateCurrentOrgParams struct {

	// Body.
	Body *models.UpdateOrgForm

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UpdateCurrentOrgParams contains all the parameters to send to the API endpoint

for the update current org operation.

Typically these are written to a http.Request.

func NewUpdateCurrentOrgParams

func NewUpdateCurrentOrgParams() *UpdateCurrentOrgParams

NewUpdateCurrentOrgParams creates a new UpdateCurrentOrgParams 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 NewUpdateCurrentOrgParamsWithContext

func NewUpdateCurrentOrgParamsWithContext(ctx context.Context) *UpdateCurrentOrgParams

NewUpdateCurrentOrgParamsWithContext creates a new UpdateCurrentOrgParams object with the ability to set a context for a request.

func NewUpdateCurrentOrgParamsWithHTTPClient

func NewUpdateCurrentOrgParamsWithHTTPClient(client *http.Client) *UpdateCurrentOrgParams

NewUpdateCurrentOrgParamsWithHTTPClient creates a new UpdateCurrentOrgParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateCurrentOrgParamsWithTimeout

func NewUpdateCurrentOrgParamsWithTimeout(timeout time.Duration) *UpdateCurrentOrgParams

NewUpdateCurrentOrgParamsWithTimeout creates a new UpdateCurrentOrgParams object with the ability to set a timeout on a request.

func (*UpdateCurrentOrgParams) SetBody

func (o *UpdateCurrentOrgParams) SetBody(body *models.UpdateOrgForm)

SetBody adds the body to the update current org params

func (*UpdateCurrentOrgParams) SetContext

func (o *UpdateCurrentOrgParams) SetContext(ctx context.Context)

SetContext adds the context to the update current org params

func (*UpdateCurrentOrgParams) SetDefaults

func (o *UpdateCurrentOrgParams) SetDefaults()

SetDefaults hydrates default values in the update current org params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateCurrentOrgParams) SetHTTPClient

func (o *UpdateCurrentOrgParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the update current org params

func (*UpdateCurrentOrgParams) SetTimeout

func (o *UpdateCurrentOrgParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the update current org params

func (*UpdateCurrentOrgParams) WithBody

WithBody adds the body to the update current org params

func (*UpdateCurrentOrgParams) WithContext

WithContext adds the context to the update current org params

func (*UpdateCurrentOrgParams) WithDefaults

WithDefaults hydrates default values in the update current org params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateCurrentOrgParams) WithHTTPClient

func (o *UpdateCurrentOrgParams) WithHTTPClient(client *http.Client) *UpdateCurrentOrgParams

WithHTTPClient adds the HTTPClient to the update current org params

func (*UpdateCurrentOrgParams) WithTimeout

WithTimeout adds the timeout to the update current org params

func (*UpdateCurrentOrgParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateCurrentOrgReader

type UpdateCurrentOrgReader struct {
	// contains filtered or unexported fields
}

UpdateCurrentOrgReader is a Reader for the UpdateCurrentOrg structure.

func (*UpdateCurrentOrgReader) ReadResponse

func (o *UpdateCurrentOrgReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UpdateCurrentOrgUnauthorized

type UpdateCurrentOrgUnauthorized struct {
	Payload *models.ErrorResponseBody
}

UpdateCurrentOrgUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewUpdateCurrentOrgUnauthorized

func NewUpdateCurrentOrgUnauthorized() *UpdateCurrentOrgUnauthorized

NewUpdateCurrentOrgUnauthorized creates a UpdateCurrentOrgUnauthorized with default headers values

func (*UpdateCurrentOrgUnauthorized) Error

func (*UpdateCurrentOrgUnauthorized) GetPayload

type UpdateOrgUserForCurrentOrgBadRequest

type UpdateOrgUserForCurrentOrgBadRequest struct {
	Payload *models.ErrorResponseBody
}

UpdateOrgUserForCurrentOrgBadRequest 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 NewUpdateOrgUserForCurrentOrgBadRequest

func NewUpdateOrgUserForCurrentOrgBadRequest() *UpdateOrgUserForCurrentOrgBadRequest

NewUpdateOrgUserForCurrentOrgBadRequest creates a UpdateOrgUserForCurrentOrgBadRequest with default headers values

func (*UpdateOrgUserForCurrentOrgBadRequest) Error

func (*UpdateOrgUserForCurrentOrgBadRequest) GetPayload

type UpdateOrgUserForCurrentOrgForbidden

type UpdateOrgUserForCurrentOrgForbidden struct {
	Payload *models.ErrorResponseBody
}

UpdateOrgUserForCurrentOrgForbidden 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 NewUpdateOrgUserForCurrentOrgForbidden

func NewUpdateOrgUserForCurrentOrgForbidden() *UpdateOrgUserForCurrentOrgForbidden

NewUpdateOrgUserForCurrentOrgForbidden creates a UpdateOrgUserForCurrentOrgForbidden with default headers values

func (*UpdateOrgUserForCurrentOrgForbidden) Error

func (*UpdateOrgUserForCurrentOrgForbidden) GetPayload

type UpdateOrgUserForCurrentOrgInternalServerError

type UpdateOrgUserForCurrentOrgInternalServerError struct {
	Payload *models.ErrorResponseBody
}

UpdateOrgUserForCurrentOrgInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewUpdateOrgUserForCurrentOrgInternalServerError

func NewUpdateOrgUserForCurrentOrgInternalServerError() *UpdateOrgUserForCurrentOrgInternalServerError

NewUpdateOrgUserForCurrentOrgInternalServerError creates a UpdateOrgUserForCurrentOrgInternalServerError with default headers values

func (*UpdateOrgUserForCurrentOrgInternalServerError) Error

func (*UpdateOrgUserForCurrentOrgInternalServerError) GetPayload

type UpdateOrgUserForCurrentOrgOK

type UpdateOrgUserForCurrentOrgOK struct {
	Payload *models.SuccessResponseBody
}

UpdateOrgUserForCurrentOrgOK describes a response with status code 200, with default header values.

An OKResponse is returned if the request was successful.

func NewUpdateOrgUserForCurrentOrgOK

func NewUpdateOrgUserForCurrentOrgOK() *UpdateOrgUserForCurrentOrgOK

NewUpdateOrgUserForCurrentOrgOK creates a UpdateOrgUserForCurrentOrgOK with default headers values

func (*UpdateOrgUserForCurrentOrgOK) Error

func (*UpdateOrgUserForCurrentOrgOK) GetPayload

type UpdateOrgUserForCurrentOrgParams

type UpdateOrgUserForCurrentOrgParams struct {

	// Body.
	Body *models.UpdateOrgUserCommand

	// UserID.
	//
	// Format: int64
	UserID int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UpdateOrgUserForCurrentOrgParams contains all the parameters to send to the API endpoint

for the update org user for current org operation.

Typically these are written to a http.Request.

func NewUpdateOrgUserForCurrentOrgParams

func NewUpdateOrgUserForCurrentOrgParams() *UpdateOrgUserForCurrentOrgParams

NewUpdateOrgUserForCurrentOrgParams creates a new UpdateOrgUserForCurrentOrgParams 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 NewUpdateOrgUserForCurrentOrgParamsWithContext

func NewUpdateOrgUserForCurrentOrgParamsWithContext(ctx context.Context) *UpdateOrgUserForCurrentOrgParams

NewUpdateOrgUserForCurrentOrgParamsWithContext creates a new UpdateOrgUserForCurrentOrgParams object with the ability to set a context for a request.

func NewUpdateOrgUserForCurrentOrgParamsWithHTTPClient

func NewUpdateOrgUserForCurrentOrgParamsWithHTTPClient(client *http.Client) *UpdateOrgUserForCurrentOrgParams

NewUpdateOrgUserForCurrentOrgParamsWithHTTPClient creates a new UpdateOrgUserForCurrentOrgParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateOrgUserForCurrentOrgParamsWithTimeout

func NewUpdateOrgUserForCurrentOrgParamsWithTimeout(timeout time.Duration) *UpdateOrgUserForCurrentOrgParams

NewUpdateOrgUserForCurrentOrgParamsWithTimeout creates a new UpdateOrgUserForCurrentOrgParams object with the ability to set a timeout on a request.

func (*UpdateOrgUserForCurrentOrgParams) SetBody

SetBody adds the body to the update org user for current org params

func (*UpdateOrgUserForCurrentOrgParams) SetContext

SetContext adds the context to the update org user for current org params

func (*UpdateOrgUserForCurrentOrgParams) SetDefaults

func (o *UpdateOrgUserForCurrentOrgParams) SetDefaults()

SetDefaults hydrates default values in the update org user for current org params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateOrgUserForCurrentOrgParams) SetHTTPClient

func (o *UpdateOrgUserForCurrentOrgParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the update org user for current org params

func (*UpdateOrgUserForCurrentOrgParams) SetTimeout

func (o *UpdateOrgUserForCurrentOrgParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the update org user for current org params

func (*UpdateOrgUserForCurrentOrgParams) SetUserID

func (o *UpdateOrgUserForCurrentOrgParams) SetUserID(userID int64)

SetUserID adds the userId to the update org user for current org params

func (*UpdateOrgUserForCurrentOrgParams) WithBody

WithBody adds the body to the update org user for current org params

func (*UpdateOrgUserForCurrentOrgParams) WithContext

WithContext adds the context to the update org user for current org params

func (*UpdateOrgUserForCurrentOrgParams) WithDefaults

WithDefaults hydrates default values in the update org user for current org params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateOrgUserForCurrentOrgParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update org user for current org params

func (*UpdateOrgUserForCurrentOrgParams) WithTimeout

WithTimeout adds the timeout to the update org user for current org params

func (*UpdateOrgUserForCurrentOrgParams) WithUserID

WithUserID adds the userID to the update org user for current org params

func (*UpdateOrgUserForCurrentOrgParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateOrgUserForCurrentOrgReader

type UpdateOrgUserForCurrentOrgReader struct {
	// contains filtered or unexported fields
}

UpdateOrgUserForCurrentOrgReader is a Reader for the UpdateOrgUserForCurrentOrg structure.

func (*UpdateOrgUserForCurrentOrgReader) ReadResponse

func (o *UpdateOrgUserForCurrentOrgReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UpdateOrgUserForCurrentOrgUnauthorized

type UpdateOrgUserForCurrentOrgUnauthorized struct {
	Payload *models.ErrorResponseBody
}

UpdateOrgUserForCurrentOrgUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewUpdateOrgUserForCurrentOrgUnauthorized

func NewUpdateOrgUserForCurrentOrgUnauthorized() *UpdateOrgUserForCurrentOrgUnauthorized

NewUpdateOrgUserForCurrentOrgUnauthorized creates a UpdateOrgUserForCurrentOrgUnauthorized with default headers values

func (*UpdateOrgUserForCurrentOrgUnauthorized) Error

func (*UpdateOrgUserForCurrentOrgUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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