Documentation ¶
Index ¶
- type Client
- func (a *Client) GetTenant(params *GetTenantParams, authInfo runtime.ClientAuthInfoWriter) (*GetTenantOK, error)
- func (a *Client) ListTenants(params *ListTenantsParams, authInfo runtime.ClientAuthInfoWriter) (*ListTenantsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateTenant(params *UpdateTenantParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateTenantOK, error)
- type ClientService
- type GetTenantDefault
- type GetTenantOK
- type GetTenantParams
- func (o *GetTenantParams) SetContext(ctx context.Context)
- func (o *GetTenantParams) SetHTTPClient(client *http.Client)
- func (o *GetTenantParams) SetID(id string)
- func (o *GetTenantParams) SetTimeout(timeout time.Duration)
- func (o *GetTenantParams) WithContext(ctx context.Context) *GetTenantParams
- func (o *GetTenantParams) WithHTTPClient(client *http.Client) *GetTenantParams
- func (o *GetTenantParams) WithID(id string) *GetTenantParams
- func (o *GetTenantParams) WithTimeout(timeout time.Duration) *GetTenantParams
- func (o *GetTenantParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetTenantReader
- type ListTenantsDefault
- type ListTenantsOK
- type ListTenantsParams
- func (o *ListTenantsParams) SetContext(ctx context.Context)
- func (o *ListTenantsParams) SetHTTPClient(client *http.Client)
- func (o *ListTenantsParams) SetTimeout(timeout time.Duration)
- func (o *ListTenantsParams) WithContext(ctx context.Context) *ListTenantsParams
- func (o *ListTenantsParams) WithHTTPClient(client *http.Client) *ListTenantsParams
- func (o *ListTenantsParams) WithTimeout(timeout time.Duration) *ListTenantsParams
- func (o *ListTenantsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListTenantsReader
- type UpdateTenantDefault
- type UpdateTenantOK
- type UpdateTenantParams
- func (o *UpdateTenantParams) SetBody(body *models.V1TenantUpdateRequest)
- func (o *UpdateTenantParams) SetContext(ctx context.Context)
- func (o *UpdateTenantParams) SetHTTPClient(client *http.Client)
- func (o *UpdateTenantParams) SetTimeout(timeout time.Duration)
- func (o *UpdateTenantParams) WithBody(body *models.V1TenantUpdateRequest) *UpdateTenantParams
- func (o *UpdateTenantParams) WithContext(ctx context.Context) *UpdateTenantParams
- func (o *UpdateTenantParams) WithHTTPClient(client *http.Client) *UpdateTenantParams
- func (o *UpdateTenantParams) WithTimeout(timeout time.Duration) *UpdateTenantParams
- func (o *UpdateTenantParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateTenantPreconditionFailed
- type UpdateTenantReader
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) (*GetTenantOK, error)
GetTenant gets tenant by id
func (*Client) ListTenants ¶ added in v0.8.7
func (a *Client) ListTenants(params *ListTenantsParams, authInfo runtime.ClientAuthInfoWriter) (*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) (*UpdateTenantOK, error)
UpdateTenant updates a tenant optimistic lock error can occur
type ClientService ¶ added in v0.9.1
type ClientService interface { GetTenant(params *GetTenantParams, authInfo runtime.ClientAuthInfoWriter) (*GetTenantOK, error) ListTenants(params *ListTenantsParams, authInfo runtime.ClientAuthInfoWriter) (*ListTenantsOK, error) UpdateTenant(params *UpdateTenantParams, authInfo runtime.ClientAuthInfoWriter) (*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 GetTenantDefault ¶
type GetTenantDefault struct { Payload *httperrors.HTTPErrorResponse // contains filtered or unexported fields }
GetTenantDefault handles this case 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
func (o *GetTenantDefault) GetPayload() *httperrors.HTTPErrorResponse
type GetTenantOK ¶
type GetTenantOK struct {
Payload *models.V1TenantResponse
}
GetTenantOK handles this case 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 values initialized.
func NewGetTenantParamsWithContext ¶
func NewGetTenantParamsWithContext(ctx context.Context) *GetTenantParams
NewGetTenantParamsWithContext creates a new GetTenantParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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
func (o *ListTenantsDefault) GetPayload() *httperrors.HTTPErrorResponse
type ListTenantsOK ¶ added in v0.8.7
type ListTenantsOK struct {
Payload []*models.V1TenantResponse
}
ListTenantsOK handles this case 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 values initialized.
func NewListTenantsParamsWithContext ¶ added in v0.8.7
func NewListTenantsParamsWithContext(ctx context.Context) *ListTenantsParams
NewListTenantsParamsWithContext creates a new ListTenantsParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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
func (o *UpdateTenantDefault) GetPayload() *httperrors.HTTPErrorResponse
type UpdateTenantOK ¶
type UpdateTenantOK struct {
Payload *models.V1TenantResponse
}
UpdateTenantOK handles this case 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 values initialized.
func NewUpdateTenantParamsWithContext ¶
func NewUpdateTenantParamsWithContext(ctx context.Context) *UpdateTenantParams
NewUpdateTenantParamsWithContext creates a new UpdateTenantParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and the ability to set a timeout on a request
func (*UpdateTenantParams) SetBody ¶
func (o *UpdateTenantParams) SetBody(body *models.V1TenantUpdateRequest)
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) 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 ¶
func (o *UpdateTenantParams) WithBody(body *models.V1TenantUpdateRequest) *UpdateTenantParams
WithBody adds the body to the update tenant params
func (*UpdateTenantParams) WithContext ¶
func (o *UpdateTenantParams) WithContext(ctx context.Context) *UpdateTenantParams
WithContext adds the context to the update tenant params
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 handles this case with default header values.
OptimisticLock
func NewUpdateTenantPreconditionFailed ¶
func NewUpdateTenantPreconditionFailed() *UpdateTenantPreconditionFailed
NewUpdateTenantPreconditionFailed creates a UpdateTenantPreconditionFailed with default headers values
func (*UpdateTenantPreconditionFailed) Error ¶
func (o *UpdateTenantPreconditionFailed) Error() string
func (*UpdateTenantPreconditionFailed) GetPayload ¶ added in v0.9.1
func (o *UpdateTenantPreconditionFailed) GetPayload() *httperrors.HTTPErrorResponse
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.