user_info

package
v0.47.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: MIT Imports: 15 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 user info API

func (*Client) GetUserInfoStatus deprecated

func (a *Client) GetUserInfoStatus(params *GetUserInfoStatusParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserInfoStatusOK, error)

Deprecated: 2022-08-10 - Use GetUserInfoStatusShort instead.

GetUserInfoStatus get user info cache status Get user info cache last updated time per namespace. The query parameter namespaces can be a list of namespace separated by comma. If query parameter namespaces is empty, user info cache status for all available namespaces will be returned. Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:*:LEGAL", action=2 (READ)

func (*Client) GetUserInfoStatusShort added in v0.8.0

func (a *Client) GetUserInfoStatusShort(params *GetUserInfoStatusParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserInfoStatusOK, error)

GetUserInfoStatusShort get user info cache status Get user info cache last updated time per namespace. The query parameter namespaces can be a list of namespace separated by comma. If query parameter namespaces is empty, user info cache status for all available namespaces will be returned. Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:*:LEGAL", action=2 (READ)

func (*Client) InvalidateUserInfoCache deprecated

Deprecated: 2022-08-10 - Use InvalidateUserInfoCacheShort instead.

InvalidateUserInfoCache invalidate user info cache

Important: GOING TO DEPRECATE

Invalidate user info cache in agreement service. Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:*:LEGAL", action=8 (DELETE)

func (*Client) InvalidateUserInfoCacheShort added in v0.8.0

func (a *Client) InvalidateUserInfoCacheShort(params *InvalidateUserInfoCacheParams, authInfo runtime.ClientAuthInfoWriter) (*InvalidateUserInfoCacheNoContent, error)

InvalidateUserInfoCacheShort invalidate user info cache

Important: GOING TO DEPRECATE

Invalidate user info cache in agreement service. Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:*:LEGAL", action=8 (DELETE)

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) SyncUserInfo deprecated

func (a *Client) SyncUserInfo(params *SyncUserInfoParams, authInfo runtime.ClientAuthInfoWriter) (*SyncUserInfoOK, error)

Deprecated: 2022-08-10 - Use SyncUserInfoShort instead.

SyncUserInfo sync user info with iam service

Important: GOING TO DEPRECATE

Sync user info cache in agreement service with iam service. Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:*:LEGAL", action=4 (UPDATE)

func (*Client) SyncUserInfoShort added in v0.8.0

func (a *Client) SyncUserInfoShort(params *SyncUserInfoParams, authInfo runtime.ClientAuthInfoWriter) (*SyncUserInfoOK, error)

SyncUserInfoShort sync user info with iam service

Important: GOING TO DEPRECATE

Sync user info cache in agreement service with iam service. Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:*:LEGAL", action=4 (UPDATE)

type ClientService

type ClientService interface {
	GetUserInfoStatus(params *GetUserInfoStatusParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserInfoStatusOK, error)
	GetUserInfoStatusShort(params *GetUserInfoStatusParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserInfoStatusOK, error)
	SyncUserInfo(params *SyncUserInfoParams, authInfo runtime.ClientAuthInfoWriter) (*SyncUserInfoOK, error)
	SyncUserInfoShort(params *SyncUserInfoParams, authInfo runtime.ClientAuthInfoWriter) (*SyncUserInfoOK, error)
	InvalidateUserInfoCache(params *InvalidateUserInfoCacheParams, authInfo runtime.ClientAuthInfoWriter) (*InvalidateUserInfoCacheNoContent, error)
	InvalidateUserInfoCacheShort(params *InvalidateUserInfoCacheParams, authInfo runtime.ClientAuthInfoWriter) (*InvalidateUserInfoCacheNoContent, 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 user info API client.

type GetUserInfoStatusOK

type GetUserInfoStatusOK struct {
	Payload []*legalclientmodels.RetrieveUserInfoCacheStatusResponse
}

GetUserInfoStatusOK handles this case with default header values.

successful operation

func NewGetUserInfoStatusOK

func NewGetUserInfoStatusOK() *GetUserInfoStatusOK

NewGetUserInfoStatusOK creates a GetUserInfoStatusOK with default headers values

func (*GetUserInfoStatusOK) Error

func (o *GetUserInfoStatusOK) Error() string

func (*GetUserInfoStatusOK) GetPayload

func (*GetUserInfoStatusOK) ToJSONString added in v0.25.0

func (o *GetUserInfoStatusOK) ToJSONString() string

type GetUserInfoStatusParams

type GetUserInfoStatusParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespaces*/
	Namespaces *string

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

GetUserInfoStatusParams contains all the parameters to send to the API endpoint for the get user info status operation typically these are written to a http.Request

func NewGetUserInfoStatusParams

func NewGetUserInfoStatusParams() *GetUserInfoStatusParams

NewGetUserInfoStatusParams creates a new GetUserInfoStatusParams object with the default values initialized.

func NewGetUserInfoStatusParamsWithContext

func NewGetUserInfoStatusParamsWithContext(ctx context.Context) *GetUserInfoStatusParams

NewGetUserInfoStatusParamsWithContext creates a new GetUserInfoStatusParams object with the default values initialized, and the ability to set a context for a request

func NewGetUserInfoStatusParamsWithHTTPClient

func NewGetUserInfoStatusParamsWithHTTPClient(client *http.Client) *GetUserInfoStatusParams

NewGetUserInfoStatusParamsWithHTTPClient creates a new GetUserInfoStatusParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetUserInfoStatusParamsWithTimeout

func NewGetUserInfoStatusParamsWithTimeout(timeout time.Duration) *GetUserInfoStatusParams

NewGetUserInfoStatusParamsWithTimeout creates a new GetUserInfoStatusParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetUserInfoStatusParams) SetAuthInfoWriter added in v0.17.0

func (o *GetUserInfoStatusParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the get user info status params

func (*GetUserInfoStatusParams) SetContext

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

SetContext adds the context to the get user info status params

func (*GetUserInfoStatusParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get user info status params

func (*GetUserInfoStatusParams) SetHTTPClientTransport added in v0.19.0

func (o *GetUserInfoStatusParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the get user info status params

func (*GetUserInfoStatusParams) SetNamespaces

func (o *GetUserInfoStatusParams) SetNamespaces(namespaces *string)

SetNamespaces adds the namespaces to the get user info status params

func (*GetUserInfoStatusParams) SetTimeout

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

SetTimeout adds the timeout to the get user info status params

func (*GetUserInfoStatusParams) WithContext

WithContext adds the context to the get user info status params

func (*GetUserInfoStatusParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get user info status params

func (*GetUserInfoStatusParams) WithNamespaces

func (o *GetUserInfoStatusParams) WithNamespaces(namespaces *string) *GetUserInfoStatusParams

WithNamespaces adds the namespaces to the get user info status params

func (*GetUserInfoStatusParams) WithTimeout

WithTimeout adds the timeout to the get user info status params

func (*GetUserInfoStatusParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetUserInfoStatusReader

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

GetUserInfoStatusReader is a Reader for the GetUserInfoStatus structure.

func (*GetUserInfoStatusReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type InvalidateUserInfoCacheNoContent

type InvalidateUserInfoCacheNoContent struct {
}

InvalidateUserInfoCacheNoContent handles this case with default header values.

Successful operation

func NewInvalidateUserInfoCacheNoContent

func NewInvalidateUserInfoCacheNoContent() *InvalidateUserInfoCacheNoContent

NewInvalidateUserInfoCacheNoContent creates a InvalidateUserInfoCacheNoContent with default headers values

func (*InvalidateUserInfoCacheNoContent) Error

type InvalidateUserInfoCacheParams

type InvalidateUserInfoCacheParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace
	  If null or empty, will invalidate all namespaces

	*/
	Namespace *string

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

InvalidateUserInfoCacheParams contains all the parameters to send to the API endpoint for the invalidate user info cache operation typically these are written to a http.Request

func NewInvalidateUserInfoCacheParams

func NewInvalidateUserInfoCacheParams() *InvalidateUserInfoCacheParams

NewInvalidateUserInfoCacheParams creates a new InvalidateUserInfoCacheParams object with the default values initialized.

func NewInvalidateUserInfoCacheParamsWithContext

func NewInvalidateUserInfoCacheParamsWithContext(ctx context.Context) *InvalidateUserInfoCacheParams

NewInvalidateUserInfoCacheParamsWithContext creates a new InvalidateUserInfoCacheParams object with the default values initialized, and the ability to set a context for a request

func NewInvalidateUserInfoCacheParamsWithHTTPClient

func NewInvalidateUserInfoCacheParamsWithHTTPClient(client *http.Client) *InvalidateUserInfoCacheParams

NewInvalidateUserInfoCacheParamsWithHTTPClient creates a new InvalidateUserInfoCacheParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewInvalidateUserInfoCacheParamsWithTimeout

func NewInvalidateUserInfoCacheParamsWithTimeout(timeout time.Duration) *InvalidateUserInfoCacheParams

NewInvalidateUserInfoCacheParamsWithTimeout creates a new InvalidateUserInfoCacheParams object with the default values initialized, and the ability to set a timeout on a request

func (*InvalidateUserInfoCacheParams) SetAuthInfoWriter added in v0.17.0

func (o *InvalidateUserInfoCacheParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the invalidate user info cache params

func (*InvalidateUserInfoCacheParams) SetContext

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

SetContext adds the context to the invalidate user info cache params

func (*InvalidateUserInfoCacheParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the invalidate user info cache params

func (*InvalidateUserInfoCacheParams) SetHTTPClientTransport added in v0.19.0

func (o *InvalidateUserInfoCacheParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the invalidate user info cache params

func (*InvalidateUserInfoCacheParams) SetNamespace

func (o *InvalidateUserInfoCacheParams) SetNamespace(namespace *string)

SetNamespace adds the namespace to the invalidate user info cache params

func (*InvalidateUserInfoCacheParams) SetTimeout

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

SetTimeout adds the timeout to the invalidate user info cache params

func (*InvalidateUserInfoCacheParams) WithContext

WithContext adds the context to the invalidate user info cache params

func (*InvalidateUserInfoCacheParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the invalidate user info cache params

func (*InvalidateUserInfoCacheParams) WithNamespace

WithNamespace adds the namespace to the invalidate user info cache params

func (*InvalidateUserInfoCacheParams) WithTimeout

WithTimeout adds the timeout to the invalidate user info cache params

func (*InvalidateUserInfoCacheParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type InvalidateUserInfoCacheReader

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

InvalidateUserInfoCacheReader is a Reader for the InvalidateUserInfoCache structure.

func (*InvalidateUserInfoCacheReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SyncUserInfoOK

type SyncUserInfoOK struct {
}

SyncUserInfoOK handles this case with default header values.

Successful operation

func NewSyncUserInfoOK

func NewSyncUserInfoOK() *SyncUserInfoOK

NewSyncUserInfoOK creates a SyncUserInfoOK with default headers values

func (*SyncUserInfoOK) Error

func (o *SyncUserInfoOK) Error() string

type SyncUserInfoParams

type SyncUserInfoParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string

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

SyncUserInfoParams contains all the parameters to send to the API endpoint for the sync user info operation typically these are written to a http.Request

func NewSyncUserInfoParams

func NewSyncUserInfoParams() *SyncUserInfoParams

NewSyncUserInfoParams creates a new SyncUserInfoParams object with the default values initialized.

func NewSyncUserInfoParamsWithContext

func NewSyncUserInfoParamsWithContext(ctx context.Context) *SyncUserInfoParams

NewSyncUserInfoParamsWithContext creates a new SyncUserInfoParams object with the default values initialized, and the ability to set a context for a request

func NewSyncUserInfoParamsWithHTTPClient

func NewSyncUserInfoParamsWithHTTPClient(client *http.Client) *SyncUserInfoParams

NewSyncUserInfoParamsWithHTTPClient creates a new SyncUserInfoParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewSyncUserInfoParamsWithTimeout

func NewSyncUserInfoParamsWithTimeout(timeout time.Duration) *SyncUserInfoParams

NewSyncUserInfoParamsWithTimeout creates a new SyncUserInfoParams object with the default values initialized, and the ability to set a timeout on a request

func (*SyncUserInfoParams) SetAuthInfoWriter added in v0.17.0

func (o *SyncUserInfoParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the sync user info params

func (*SyncUserInfoParams) SetContext

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

SetContext adds the context to the sync user info params

func (*SyncUserInfoParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the sync user info params

func (*SyncUserInfoParams) SetHTTPClientTransport added in v0.19.0

func (o *SyncUserInfoParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the sync user info params

func (*SyncUserInfoParams) SetNamespace

func (o *SyncUserInfoParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the sync user info params

func (*SyncUserInfoParams) SetTimeout

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

SetTimeout adds the timeout to the sync user info params

func (*SyncUserInfoParams) WithContext

WithContext adds the context to the sync user info params

func (*SyncUserInfoParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the sync user info params

func (*SyncUserInfoParams) WithNamespace

func (o *SyncUserInfoParams) WithNamespace(namespace string) *SyncUserInfoParams

WithNamespace adds the namespace to the sync user info params

func (*SyncUserInfoParams) WithTimeout

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

WithTimeout adds the timeout to the sync user info params

func (*SyncUserInfoParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SyncUserInfoReader

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

SyncUserInfoReader is a Reader for the SyncUserInfo structure.

func (*SyncUserInfoReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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