Documentation ¶
Index ¶
- type Client
- 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 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 New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new tenant API client.
func (*Client) GetTenant ¶
func (a *Client) GetTenant(params *GetTenantParams, authInfo runtime.ClientAuthInfoWriter) (*GetTenantOK, error)
GetTenant gets tenant by id
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 GetTenantDefault ¶
type GetTenantDefault struct { Payload *models.HttperrorsHTTPErrorResponse // 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
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
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 UpdateTenantDefault ¶
type UpdateTenantDefault struct { Payload *models.HttperrorsHTTPErrorResponse // 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
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
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 *models.HttperrorsHTTPErrorResponse
}
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
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.