tenant

package
v0.21.3 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 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) 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

func (*GetTenantDefault) IsClientError added in v0.19.3

func (o *GetTenantDefault) IsClientError() bool

IsClientError returns true when this get tenant default response has a 4xx status code

func (*GetTenantDefault) IsCode added in v0.19.3

func (o *GetTenantDefault) IsCode(code int) bool

IsCode returns true when this get tenant default response a status code equal to that given

func (*GetTenantDefault) IsRedirect added in v0.19.3

func (o *GetTenantDefault) IsRedirect() bool

IsRedirect returns true when this get tenant default response has a 3xx status code

func (*GetTenantDefault) IsServerError added in v0.19.3

func (o *GetTenantDefault) IsServerError() bool

IsServerError returns true when this get tenant default response has a 5xx status code

func (*GetTenantDefault) IsSuccess added in v0.19.3

func (o *GetTenantDefault) IsSuccess() bool

IsSuccess returns true when this get tenant default response has a 2xx status code

func (*GetTenantDefault) String added in v0.19.3

func (o *GetTenantDefault) String() string

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

func (*GetTenantOK) IsClientError added in v0.19.3

func (o *GetTenantOK) IsClientError() bool

IsClientError returns true when this get tenant o k response has a 4xx status code

func (*GetTenantOK) IsCode added in v0.19.3

func (o *GetTenantOK) IsCode(code int) bool

IsCode returns true when this get tenant o k response a status code equal to that given

func (*GetTenantOK) IsRedirect added in v0.19.3

func (o *GetTenantOK) IsRedirect() bool

IsRedirect returns true when this get tenant o k response has a 3xx status code

func (*GetTenantOK) IsServerError added in v0.19.3

func (o *GetTenantOK) IsServerError() bool

IsServerError returns true when this get tenant o k response has a 5xx status code

func (*GetTenantOK) IsSuccess added in v0.19.3

func (o *GetTenantOK) IsSuccess() bool

IsSuccess returns true when this get tenant o k response has a 2xx status code

func (*GetTenantOK) String added in v0.19.3

func (o *GetTenantOK) String() string

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

func (*ListTenantsDefault) IsClientError added in v0.19.3

func (o *ListTenantsDefault) IsClientError() bool

IsClientError returns true when this list tenants default response has a 4xx status code

func (*ListTenantsDefault) IsCode added in v0.19.3

func (o *ListTenantsDefault) IsCode(code int) bool

IsCode returns true when this list tenants default response a status code equal to that given

func (*ListTenantsDefault) IsRedirect added in v0.19.3

func (o *ListTenantsDefault) IsRedirect() bool

IsRedirect returns true when this list tenants default response has a 3xx status code

func (*ListTenantsDefault) IsServerError added in v0.19.3

func (o *ListTenantsDefault) IsServerError() bool

IsServerError returns true when this list tenants default response has a 5xx status code

func (*ListTenantsDefault) IsSuccess added in v0.19.3

func (o *ListTenantsDefault) IsSuccess() bool

IsSuccess returns true when this list tenants default response has a 2xx status code

func (*ListTenantsDefault) String added in v0.19.3

func (o *ListTenantsDefault) String() string

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

func (*ListTenantsOK) IsClientError added in v0.19.3

func (o *ListTenantsOK) IsClientError() bool

IsClientError returns true when this list tenants o k response has a 4xx status code

func (*ListTenantsOK) IsCode added in v0.19.3

func (o *ListTenantsOK) IsCode(code int) bool

IsCode returns true when this list tenants o k response a status code equal to that given

func (*ListTenantsOK) IsRedirect added in v0.19.3

func (o *ListTenantsOK) IsRedirect() bool

IsRedirect returns true when this list tenants o k response has a 3xx status code

func (*ListTenantsOK) IsServerError added in v0.19.3

func (o *ListTenantsOK) IsServerError() bool

IsServerError returns true when this list tenants o k response has a 5xx status code

func (*ListTenantsOK) IsSuccess added in v0.19.3

func (o *ListTenantsOK) IsSuccess() bool

IsSuccess returns true when this list tenants o k response has a 2xx status code

func (*ListTenantsOK) String added in v0.19.3

func (o *ListTenantsOK) String() string

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