tenant

package
v0.15.7 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 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) GetTenant

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

GetTenant gets tenant by id

func (*Client) ListTenants

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

ListTenants gets all tenants

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetTenant(params *GetTenantParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTenantOK, error)

	ListTenants(params *ListTenantsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListTenantsOK, 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 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

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

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

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

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

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

func NewListTenantsDefault(code int) *ListTenantsDefault

NewListTenantsDefault creates a ListTenantsDefault with default headers values

func (*ListTenantsDefault) Code

func (o *ListTenantsDefault) Code() int

Code gets the status code for the list tenants default response

func (*ListTenantsDefault) Error

func (o *ListTenantsDefault) Error() string

func (*ListTenantsDefault) GetPayload

type ListTenantsOK

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

OK

func NewListTenantsOK

func NewListTenantsOK() *ListTenantsOK

NewListTenantsOK creates a ListTenantsOK with default headers values

func (*ListTenantsOK) Error

func (o *ListTenantsOK) Error() string

func (*ListTenantsOK) GetPayload

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

type ListTenantsParams

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

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

func NewListTenantsParamsWithContext(ctx context.Context) *ListTenantsParams

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

func NewListTenantsParamsWithHTTPClient

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

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

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

SetContext adds the context to the list tenants params

func (*ListTenantsParams) SetDefaults

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

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

SetHTTPClient adds the HTTPClient to the list tenants params

func (*ListTenantsParams) SetTimeout

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

SetTimeout adds the timeout to the list tenants params

func (*ListTenantsParams) WithContext

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

WithContext adds the context to the list tenants params

func (*ListTenantsParams) WithDefaults

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

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

WithHTTPClient adds the HTTPClient to the list tenants params

func (*ListTenantsParams) WithTimeout

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

WithTimeout adds the timeout to the list tenants params

func (*ListTenantsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListTenantsReader

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

ListTenantsReader is a Reader for the ListTenants structure.

func (*ListTenantsReader) ReadResponse

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