tenant

package
v0.18.21 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: MIT Imports: 11 Imported by: 2

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 tenant API

func (*Client) FindTenants added in v0.18.16

func (a *Client) FindTenants(params *FindTenantsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FindTenantsOK, error)

FindTenants finds tenants by multiple criteria

func (*Client) GetTenant

func (a *Client) GetTenant(params *GetTenantParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTenantOK, error)

GetTenant gets tenant by id

func (*Client) ListTenants added in v0.8.7

func (a *Client) ListTenants(params *ListTenantsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListTenantsOK, error)

ListTenants gets a tenant list

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateTenant

func (a *Client) UpdateTenant(params *UpdateTenantParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateTenantOK, error)

UpdateTenant updates a tenant optimistic lock error can occur

type ClientOption added in v0.15.4

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService added in v0.9.1

type ClientService interface {
	FindTenants(params *FindTenantsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FindTenantsOK, error)

	GetTenant(params *GetTenantParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTenantOK, error)

	ListTenants(params *ListTenantsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListTenantsOK, error)

	UpdateTenant(params *UpdateTenantParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateTenantOK, 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 tenant API client.

type FindTenantsDefault added in v0.18.16

type FindTenantsDefault struct {
	Payload *httperrors.HTTPErrorResponse
	// contains filtered or unexported fields
}
FindTenantsDefault describes a response with status code -1, with default header values.

Error

func NewFindTenantsDefault added in v0.18.16

func NewFindTenantsDefault(code int) *FindTenantsDefault

NewFindTenantsDefault creates a FindTenantsDefault with default headers values

func (*FindTenantsDefault) Code added in v0.18.16

func (o *FindTenantsDefault) Code() int

Code gets the status code for the find tenants default response

func (*FindTenantsDefault) Error added in v0.18.16

func (o *FindTenantsDefault) Error() string

func (*FindTenantsDefault) GetPayload added in v0.18.16

type FindTenantsOK added in v0.18.16

type FindTenantsOK struct {
	Payload []*models.V1TenantResponse
}
FindTenantsOK describes a response with status code 200, with default header values.

OK

func NewFindTenantsOK added in v0.18.16

func NewFindTenantsOK() *FindTenantsOK

NewFindTenantsOK creates a FindTenantsOK with default headers values

func (*FindTenantsOK) Error added in v0.18.16

func (o *FindTenantsOK) Error() string

func (*FindTenantsOK) GetPayload added in v0.18.16

func (o *FindTenantsOK) GetPayload() []*models.V1TenantResponse

type FindTenantsParams added in v0.18.16

type FindTenantsParams struct {

	// Body.
	Body *models.V1TenantFindRequest

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

FindTenantsParams contains all the parameters to send to the API endpoint

for the find tenants operation.

Typically these are written to a http.Request.

func NewFindTenantsParams added in v0.18.16

func NewFindTenantsParams() *FindTenantsParams

NewFindTenantsParams creates a new FindTenantsParams 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 NewFindTenantsParamsWithContext added in v0.18.16

func NewFindTenantsParamsWithContext(ctx context.Context) *FindTenantsParams

NewFindTenantsParamsWithContext creates a new FindTenantsParams object with the ability to set a context for a request.

func NewFindTenantsParamsWithHTTPClient added in v0.18.16

func NewFindTenantsParamsWithHTTPClient(client *http.Client) *FindTenantsParams

NewFindTenantsParamsWithHTTPClient creates a new FindTenantsParams object with the ability to set a custom HTTPClient for a request.

func NewFindTenantsParamsWithTimeout added in v0.18.16

func NewFindTenantsParamsWithTimeout(timeout time.Duration) *FindTenantsParams

NewFindTenantsParamsWithTimeout creates a new FindTenantsParams object with the ability to set a timeout on a request.

func (*FindTenantsParams) SetBody added in v0.18.16

func (o *FindTenantsParams) SetBody(body *models.V1TenantFindRequest)

SetBody adds the body to the find tenants params

func (*FindTenantsParams) SetContext added in v0.18.16

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

SetContext adds the context to the find tenants params

func (*FindTenantsParams) SetDefaults added in v0.18.16

func (o *FindTenantsParams) SetDefaults()

SetDefaults hydrates default values in the find tenants params (not the query body).

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

func (*FindTenantsParams) SetHTTPClient added in v0.18.16

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

SetHTTPClient adds the HTTPClient to the find tenants params

func (*FindTenantsParams) SetTimeout added in v0.18.16

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

SetTimeout adds the timeout to the find tenants params

func (*FindTenantsParams) WithBody added in v0.18.16

WithBody adds the body to the find tenants params

func (*FindTenantsParams) WithContext added in v0.18.16

func (o *FindTenantsParams) WithContext(ctx context.Context) *FindTenantsParams

WithContext adds the context to the find tenants params

func (*FindTenantsParams) WithDefaults added in v0.18.16

func (o *FindTenantsParams) WithDefaults() *FindTenantsParams

WithDefaults hydrates default values in the find tenants params (not the query body).

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

func (*FindTenantsParams) WithHTTPClient added in v0.18.16

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

WithHTTPClient adds the HTTPClient to the find tenants params

func (*FindTenantsParams) WithTimeout added in v0.18.16

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

WithTimeout adds the timeout to the find tenants params

func (*FindTenantsParams) WriteToRequest added in v0.18.16

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

WriteToRequest writes these params to a swagger request

type FindTenantsReader added in v0.18.16

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

FindTenantsReader is a Reader for the FindTenants structure.

func (*FindTenantsReader) ReadResponse added in v0.18.16

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

ReadResponse reads a server response into the received o.

type GetTenantDefault

type GetTenantDefault struct {
	Payload *httperrors.HTTPErrorResponse
	// contains filtered or unexported fields
}
GetTenantDefault describes a response with status code -1, with default header values.

Error

func NewGetTenantDefault

func NewGetTenantDefault(code int) *GetTenantDefault

NewGetTenantDefault creates a GetTenantDefault with default headers values

func (*GetTenantDefault) Code

func (o *GetTenantDefault) Code() int

Code gets the status code for the get tenant default response

func (*GetTenantDefault) Error

func (o *GetTenantDefault) Error() string

func (*GetTenantDefault) GetPayload added in v0.9.1

type GetTenantOK

type GetTenantOK struct {
	Payload *models.V1TenantResponse
}
GetTenantOK describes a response with status code 200, with default header values.

OK

func NewGetTenantOK

func NewGetTenantOK() *GetTenantOK

NewGetTenantOK creates a GetTenantOK with default headers values

func (*GetTenantOK) Error

func (o *GetTenantOK) Error() string

func (*GetTenantOK) GetPayload added in v0.9.1

func (o *GetTenantOK) GetPayload() *models.V1TenantResponse

type GetTenantParams

type GetTenantParams struct {

	/* ID.

	   identifier of the tenant
	*/
	ID string

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

GetTenantParams contains all the parameters to send to the API endpoint

for the get tenant operation.

Typically these are written to a http.Request.

func NewGetTenantParams

func NewGetTenantParams() *GetTenantParams

NewGetTenantParams creates a new GetTenantParams 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 NewGetTenantParamsWithContext

func NewGetTenantParamsWithContext(ctx context.Context) *GetTenantParams

NewGetTenantParamsWithContext creates a new GetTenantParams object with the ability to set a context for a request.

func NewGetTenantParamsWithHTTPClient

func NewGetTenantParamsWithHTTPClient(client *http.Client) *GetTenantParams

NewGetTenantParamsWithHTTPClient creates a new GetTenantParams object with the ability to set a custom HTTPClient for a request.

func NewGetTenantParamsWithTimeout

func NewGetTenantParamsWithTimeout(timeout time.Duration) *GetTenantParams

NewGetTenantParamsWithTimeout creates a new GetTenantParams object with the ability to set a timeout on a request.

func (*GetTenantParams) SetContext

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

SetContext adds the context to the get tenant params

func (*GetTenantParams) SetDefaults added in v0.12.0

func (o *GetTenantParams) SetDefaults()

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

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

func (*GetTenantParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get tenant params

func (*GetTenantParams) SetID

func (o *GetTenantParams) SetID(id string)

SetID adds the id to the get tenant params

func (*GetTenantParams) SetTimeout

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

SetTimeout adds the timeout to the get tenant params

func (*GetTenantParams) WithContext

func (o *GetTenantParams) WithContext(ctx context.Context) *GetTenantParams

WithContext adds the context to the get tenant params

func (*GetTenantParams) WithDefaults added in v0.12.0

func (o *GetTenantParams) WithDefaults() *GetTenantParams

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

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

func (*GetTenantParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get tenant params

func (*GetTenantParams) WithID

func (o *GetTenantParams) WithID(id string) *GetTenantParams

WithID adds the id to the get tenant params

func (*GetTenantParams) WithTimeout

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

WithTimeout adds the timeout to the get tenant params

func (*GetTenantParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetTenantReader

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

GetTenantReader is a Reader for the GetTenant structure.

func (*GetTenantReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListTenantsDefault added in v0.8.7

type ListTenantsDefault struct {
	Payload *httperrors.HTTPErrorResponse
	// contains filtered or unexported fields
}
ListTenantsDefault describes a response with status code -1, with default header values.

Error

func NewListTenantsDefault added in v0.8.7

func NewListTenantsDefault(code int) *ListTenantsDefault

NewListTenantsDefault creates a ListTenantsDefault with default headers values

func (*ListTenantsDefault) Code added in v0.8.7

func (o *ListTenantsDefault) Code() int

Code gets the status code for the list tenants default response

func (*ListTenantsDefault) Error added in v0.8.7

func (o *ListTenantsDefault) Error() string

func (*ListTenantsDefault) GetPayload added in v0.9.1

type ListTenantsOK added in v0.8.7

type ListTenantsOK struct {
	Payload []*models.V1TenantResponse
}
ListTenantsOK describes a response with status code 200, with default header values.

OK

func NewListTenantsOK added in v0.8.7

func NewListTenantsOK() *ListTenantsOK

NewListTenantsOK creates a ListTenantsOK with default headers values

func (*ListTenantsOK) Error added in v0.8.7

func (o *ListTenantsOK) Error() string

func (*ListTenantsOK) GetPayload added in v0.9.1

func (o *ListTenantsOK) GetPayload() []*models.V1TenantResponse

type ListTenantsParams added in v0.8.7

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

ListTenantsParams contains all the parameters to send to the API endpoint

for the list tenants operation.

Typically these are written to a http.Request.

func NewListTenantsParams added in v0.8.7

func NewListTenantsParams() *ListTenantsParams

NewListTenantsParams creates a new ListTenantsParams 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 NewListTenantsParamsWithContext added in v0.8.7

func NewListTenantsParamsWithContext(ctx context.Context) *ListTenantsParams

NewListTenantsParamsWithContext creates a new ListTenantsParams object with the ability to set a context for a request.

func NewListTenantsParamsWithHTTPClient added in v0.8.7

func NewListTenantsParamsWithHTTPClient(client *http.Client) *ListTenantsParams

NewListTenantsParamsWithHTTPClient creates a new ListTenantsParams object with the ability to set a custom HTTPClient for a request.

func NewListTenantsParamsWithTimeout added in v0.8.7

func NewListTenantsParamsWithTimeout(timeout time.Duration) *ListTenantsParams

NewListTenantsParamsWithTimeout creates a new ListTenantsParams object with the ability to set a timeout on a request.

func (*ListTenantsParams) SetContext added in v0.8.7

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

SetContext adds the context to the list tenants params

func (*ListTenantsParams) SetDefaults added in v0.12.0

func (o *ListTenantsParams) SetDefaults()

SetDefaults hydrates default values in the list tenants params (not the query body).

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

func (*ListTenantsParams) SetHTTPClient added in v0.8.7

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

SetHTTPClient adds the HTTPClient to the list tenants params

func (*ListTenantsParams) SetTimeout added in v0.8.7

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

SetTimeout adds the timeout to the list tenants params

func (*ListTenantsParams) WithContext added in v0.8.7

func (o *ListTenantsParams) WithContext(ctx context.Context) *ListTenantsParams

WithContext adds the context to the list tenants params

func (*ListTenantsParams) WithDefaults added in v0.12.0

func (o *ListTenantsParams) WithDefaults() *ListTenantsParams

WithDefaults hydrates default values in the list tenants params (not the query body).

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

func (*ListTenantsParams) WithHTTPClient added in v0.8.7

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

WithHTTPClient adds the HTTPClient to the list tenants params

func (*ListTenantsParams) WithTimeout added in v0.8.7

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

WithTimeout adds the timeout to the list tenants params

func (*ListTenantsParams) WriteToRequest added in v0.8.7

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

WriteToRequest writes these params to a swagger request

type ListTenantsReader added in v0.8.7

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

ListTenantsReader is a Reader for the ListTenants structure.

func (*ListTenantsReader) ReadResponse added in v0.8.7

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

ReadResponse reads a server response into the received o.

type UpdateTenantDefault

type UpdateTenantDefault struct {
	Payload *httperrors.HTTPErrorResponse
	// contains filtered or unexported fields
}
UpdateTenantDefault describes a response with status code -1, with default header values.

Error

func NewUpdateTenantDefault

func NewUpdateTenantDefault(code int) *UpdateTenantDefault

NewUpdateTenantDefault creates a UpdateTenantDefault with default headers values

func (*UpdateTenantDefault) Code

func (o *UpdateTenantDefault) Code() int

Code gets the status code for the update tenant default response

func (*UpdateTenantDefault) Error

func (o *UpdateTenantDefault) Error() string

func (*UpdateTenantDefault) GetPayload added in v0.9.1

type UpdateTenantOK

type UpdateTenantOK struct {
	Payload *models.V1TenantResponse
}
UpdateTenantOK describes a response with status code 200, with default header values.

Updated

func NewUpdateTenantOK

func NewUpdateTenantOK() *UpdateTenantOK

NewUpdateTenantOK creates a UpdateTenantOK with default headers values

func (*UpdateTenantOK) Error

func (o *UpdateTenantOK) Error() string

func (*UpdateTenantOK) GetPayload added in v0.9.1

func (o *UpdateTenantOK) GetPayload() *models.V1TenantResponse

type UpdateTenantParams

type UpdateTenantParams struct {

	// Body.
	Body *models.V1TenantUpdateRequest

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

UpdateTenantParams contains all the parameters to send to the API endpoint

for the update tenant operation.

Typically these are written to a http.Request.

func NewUpdateTenantParams

func NewUpdateTenantParams() *UpdateTenantParams

NewUpdateTenantParams creates a new UpdateTenantParams 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 NewUpdateTenantParamsWithContext

func NewUpdateTenantParamsWithContext(ctx context.Context) *UpdateTenantParams

NewUpdateTenantParamsWithContext creates a new UpdateTenantParams object with the ability to set a context for a request.

func NewUpdateTenantParamsWithHTTPClient

func NewUpdateTenantParamsWithHTTPClient(client *http.Client) *UpdateTenantParams

NewUpdateTenantParamsWithHTTPClient creates a new UpdateTenantParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateTenantParamsWithTimeout

func NewUpdateTenantParamsWithTimeout(timeout time.Duration) *UpdateTenantParams

NewUpdateTenantParamsWithTimeout creates a new UpdateTenantParams object with the ability to set a timeout on a request.

func (*UpdateTenantParams) SetBody

SetBody adds the body to the update tenant params

func (*UpdateTenantParams) SetContext

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

SetContext adds the context to the update tenant params

func (*UpdateTenantParams) SetDefaults added in v0.12.0

func (o *UpdateTenantParams) SetDefaults()

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

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

func (*UpdateTenantParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update tenant params

func (*UpdateTenantParams) SetTimeout

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

SetTimeout adds the timeout to the update tenant params

func (*UpdateTenantParams) WithBody

WithBody adds the body to the update tenant params

func (*UpdateTenantParams) WithContext

WithContext adds the context to the update tenant params

func (*UpdateTenantParams) WithDefaults added in v0.12.0

func (o *UpdateTenantParams) WithDefaults() *UpdateTenantParams

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

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

func (*UpdateTenantParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update tenant params

func (*UpdateTenantParams) WithTimeout

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

WithTimeout adds the timeout to the update tenant params

func (*UpdateTenantParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateTenantPreconditionFailed

type UpdateTenantPreconditionFailed struct {
	Payload *httperrors.HTTPErrorResponse
}
UpdateTenantPreconditionFailed describes a response with status code 412, with default header values.

OptimisticLock

func NewUpdateTenantPreconditionFailed

func NewUpdateTenantPreconditionFailed() *UpdateTenantPreconditionFailed

NewUpdateTenantPreconditionFailed creates a UpdateTenantPreconditionFailed with default headers values

func (*UpdateTenantPreconditionFailed) Error

func (*UpdateTenantPreconditionFailed) GetPayload added in v0.9.1

type UpdateTenantReader

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

UpdateTenantReader is a Reader for the UpdateTenant structure.

func (*UpdateTenantReader) ReadResponse

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