Documentation ¶
Index ¶
- type Client
- func (a *Client) FindTenants(params *FindTenantsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*FindTenantsOK, error)
- 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 ClientOption
- type ClientService
- type FindTenantsDefault
- func (o *FindTenantsDefault) Code() int
- func (o *FindTenantsDefault) Error() string
- func (o *FindTenantsDefault) GetPayload() *httperrors.HTTPErrorResponse
- func (o *FindTenantsDefault) IsClientError() bool
- func (o *FindTenantsDefault) IsCode(code int) bool
- func (o *FindTenantsDefault) IsRedirect() bool
- func (o *FindTenantsDefault) IsServerError() bool
- func (o *FindTenantsDefault) IsSuccess() bool
- func (o *FindTenantsDefault) String() string
- type FindTenantsOK
- func (o *FindTenantsOK) Code() int
- func (o *FindTenantsOK) Error() string
- func (o *FindTenantsOK) GetPayload() []*models.V1TenantResponse
- func (o *FindTenantsOK) IsClientError() bool
- func (o *FindTenantsOK) IsCode(code int) bool
- func (o *FindTenantsOK) IsRedirect() bool
- func (o *FindTenantsOK) IsServerError() bool
- func (o *FindTenantsOK) IsSuccess() bool
- func (o *FindTenantsOK) String() string
- type FindTenantsParams
- func (o *FindTenantsParams) SetBody(body *models.V1TenantFindRequest)
- func (o *FindTenantsParams) SetContext(ctx context.Context)
- func (o *FindTenantsParams) SetDefaults()
- func (o *FindTenantsParams) SetHTTPClient(client *http.Client)
- func (o *FindTenantsParams) SetTimeout(timeout time.Duration)
- func (o *FindTenantsParams) WithBody(body *models.V1TenantFindRequest) *FindTenantsParams
- func (o *FindTenantsParams) WithContext(ctx context.Context) *FindTenantsParams
- func (o *FindTenantsParams) WithDefaults() *FindTenantsParams
- func (o *FindTenantsParams) WithHTTPClient(client *http.Client) *FindTenantsParams
- func (o *FindTenantsParams) WithTimeout(timeout time.Duration) *FindTenantsParams
- func (o *FindTenantsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type FindTenantsReader
- type GetTenantDefault
- func (o *GetTenantDefault) Code() int
- func (o *GetTenantDefault) Error() string
- func (o *GetTenantDefault) GetPayload() *httperrors.HTTPErrorResponse
- func (o *GetTenantDefault) IsClientError() bool
- func (o *GetTenantDefault) IsCode(code int) bool
- func (o *GetTenantDefault) IsRedirect() bool
- func (o *GetTenantDefault) IsServerError() bool
- func (o *GetTenantDefault) IsSuccess() bool
- func (o *GetTenantDefault) String() string
- type GetTenantOK
- func (o *GetTenantOK) Code() int
- func (o *GetTenantOK) Error() string
- func (o *GetTenantOK) GetPayload() *models.V1TenantResponse
- func (o *GetTenantOK) IsClientError() bool
- func (o *GetTenantOK) IsCode(code int) bool
- func (o *GetTenantOK) IsRedirect() bool
- func (o *GetTenantOK) IsServerError() bool
- func (o *GetTenantOK) IsSuccess() bool
- func (o *GetTenantOK) String() string
- type GetTenantParams
- func (o *GetTenantParams) SetContext(ctx context.Context)
- func (o *GetTenantParams) SetDefaults()
- 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) WithDefaults() *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
- func (o *ListTenantsDefault) Code() int
- func (o *ListTenantsDefault) Error() string
- func (o *ListTenantsDefault) GetPayload() *httperrors.HTTPErrorResponse
- func (o *ListTenantsDefault) IsClientError() bool
- func (o *ListTenantsDefault) IsCode(code int) bool
- func (o *ListTenantsDefault) IsRedirect() bool
- func (o *ListTenantsDefault) IsServerError() bool
- func (o *ListTenantsDefault) IsSuccess() bool
- func (o *ListTenantsDefault) String() string
- type ListTenantsOK
- func (o *ListTenantsOK) Code() int
- func (o *ListTenantsOK) Error() string
- func (o *ListTenantsOK) GetPayload() []*models.V1TenantResponse
- func (o *ListTenantsOK) IsClientError() bool
- func (o *ListTenantsOK) IsCode(code int) bool
- func (o *ListTenantsOK) IsRedirect() bool
- func (o *ListTenantsOK) IsServerError() bool
- func (o *ListTenantsOK) IsSuccess() bool
- func (o *ListTenantsOK) String() string
- type ListTenantsParams
- func (o *ListTenantsParams) SetContext(ctx context.Context)
- func (o *ListTenantsParams) SetDefaults()
- 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) WithDefaults() *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
- func (o *UpdateTenantDefault) Code() int
- func (o *UpdateTenantDefault) Error() string
- func (o *UpdateTenantDefault) GetPayload() *httperrors.HTTPErrorResponse
- func (o *UpdateTenantDefault) IsClientError() bool
- func (o *UpdateTenantDefault) IsCode(code int) bool
- func (o *UpdateTenantDefault) IsRedirect() bool
- func (o *UpdateTenantDefault) IsServerError() bool
- func (o *UpdateTenantDefault) IsSuccess() bool
- func (o *UpdateTenantDefault) String() string
- type UpdateTenantOK
- func (o *UpdateTenantOK) Code() int
- func (o *UpdateTenantOK) Error() string
- func (o *UpdateTenantOK) GetPayload() *models.V1TenantResponse
- func (o *UpdateTenantOK) IsClientError() bool
- func (o *UpdateTenantOK) IsCode(code int) bool
- func (o *UpdateTenantOK) IsRedirect() bool
- func (o *UpdateTenantOK) IsServerError() bool
- func (o *UpdateTenantOK) IsSuccess() bool
- func (o *UpdateTenantOK) String() string
- type UpdateTenantParams
- func (o *UpdateTenantParams) SetBody(body *models.V1TenantUpdateRequest)
- func (o *UpdateTenantParams) SetContext(ctx context.Context)
- func (o *UpdateTenantParams) SetDefaults()
- 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) WithDefaults() *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
- func (o *UpdateTenantPreconditionFailed) Code() int
- func (o *UpdateTenantPreconditionFailed) Error() string
- func (o *UpdateTenantPreconditionFailed) GetPayload() *httperrors.HTTPErrorResponse
- func (o *UpdateTenantPreconditionFailed) IsClientError() bool
- func (o *UpdateTenantPreconditionFailed) IsCode(code int) bool
- func (o *UpdateTenantPreconditionFailed) IsRedirect() bool
- func (o *UpdateTenantPreconditionFailed) IsServerError() bool
- func (o *UpdateTenantPreconditionFailed) IsSuccess() bool
- func (o *UpdateTenantPreconditionFailed) String() string
- 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) 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 may be used to customize the behavior of 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.
func NewClientWithBasicAuth ¶ added in v0.26.8
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new tenant API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶ added in v0.26.8
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new tenant API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.
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
func (o *FindTenantsDefault) GetPayload() *httperrors.HTTPErrorResponse
func (*FindTenantsDefault) IsClientError ¶ added in v0.19.0
func (o *FindTenantsDefault) IsClientError() bool
IsClientError returns true when this find tenants default response has a 4xx status code
func (*FindTenantsDefault) IsCode ¶ added in v0.19.0
func (o *FindTenantsDefault) IsCode(code int) bool
IsCode returns true when this find tenants default response a status code equal to that given
func (*FindTenantsDefault) IsRedirect ¶ added in v0.19.0
func (o *FindTenantsDefault) IsRedirect() bool
IsRedirect returns true when this find tenants default response has a 3xx status code
func (*FindTenantsDefault) IsServerError ¶ added in v0.19.0
func (o *FindTenantsDefault) IsServerError() bool
IsServerError returns true when this find tenants default response has a 5xx status code
func (*FindTenantsDefault) IsSuccess ¶ added in v0.19.0
func (o *FindTenantsDefault) IsSuccess() bool
IsSuccess returns true when this find tenants default response has a 2xx status code
func (*FindTenantsDefault) String ¶ added in v0.19.0
func (o *FindTenantsDefault) String() string
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) Code ¶ added in v0.20.11
func (o *FindTenantsOK) Code() int
Code gets the status code for the find tenants o k response
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
func (*FindTenantsOK) IsClientError ¶ added in v0.19.0
func (o *FindTenantsOK) IsClientError() bool
IsClientError returns true when this find tenants o k response has a 4xx status code
func (*FindTenantsOK) IsCode ¶ added in v0.19.0
func (o *FindTenantsOK) IsCode(code int) bool
IsCode returns true when this find tenants o k response a status code equal to that given
func (*FindTenantsOK) IsRedirect ¶ added in v0.19.0
func (o *FindTenantsOK) IsRedirect() bool
IsRedirect returns true when this find tenants o k response has a 3xx status code
func (*FindTenantsOK) IsServerError ¶ added in v0.19.0
func (o *FindTenantsOK) IsServerError() bool
IsServerError returns true when this find tenants o k response has a 5xx status code
func (*FindTenantsOK) IsSuccess ¶ added in v0.19.0
func (o *FindTenantsOK) IsSuccess() bool
IsSuccess returns true when this find tenants o k response has a 2xx status code
func (*FindTenantsOK) String ¶ added in v0.19.0
func (o *FindTenantsOK) String() string
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
func (o *FindTenantsParams) WithBody(body *models.V1TenantFindRequest) *FindTenantsParams
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
func (o *GetTenantDefault) GetPayload() *httperrors.HTTPErrorResponse
func (*GetTenantDefault) IsClientError ¶ added in v0.19.0
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.0
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.0
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.0
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.0
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.0
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) Code ¶ added in v0.20.11
func (o *GetTenantOK) Code() int
Code gets the status code for the get tenant o k response
func (*GetTenantOK) Error ¶
func (o *GetTenantOK) Error() string
func (*GetTenantOK) GetPayload ¶ added in v0.9.1
func (o *GetTenantOK) GetPayload() *models.V1TenantResponse
func (*GetTenantOK) IsClientError ¶ added in v0.19.0
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.0
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.0
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.0
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.0
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.0
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 ¶ 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
func (o *ListTenantsDefault) GetPayload() *httperrors.HTTPErrorResponse
func (*ListTenantsDefault) IsClientError ¶ added in v0.19.0
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.0
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.0
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.0
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.0
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.0
func (o *ListTenantsDefault) String() string
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) Code ¶ added in v0.20.11
func (o *ListTenantsOK) Code() int
Code gets the status code for the list tenants o k response
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
func (*ListTenantsOK) IsClientError ¶ added in v0.19.0
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.0
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.0
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.0
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.0
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.0
func (o *ListTenantsOK) String() string
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
func (o *UpdateTenantDefault) GetPayload() *httperrors.HTTPErrorResponse
func (*UpdateTenantDefault) IsClientError ¶ added in v0.19.0
func (o *UpdateTenantDefault) IsClientError() bool
IsClientError returns true when this update tenant default response has a 4xx status code
func (*UpdateTenantDefault) IsCode ¶ added in v0.19.0
func (o *UpdateTenantDefault) IsCode(code int) bool
IsCode returns true when this update tenant default response a status code equal to that given
func (*UpdateTenantDefault) IsRedirect ¶ added in v0.19.0
func (o *UpdateTenantDefault) IsRedirect() bool
IsRedirect returns true when this update tenant default response has a 3xx status code
func (*UpdateTenantDefault) IsServerError ¶ added in v0.19.0
func (o *UpdateTenantDefault) IsServerError() bool
IsServerError returns true when this update tenant default response has a 5xx status code
func (*UpdateTenantDefault) IsSuccess ¶ added in v0.19.0
func (o *UpdateTenantDefault) IsSuccess() bool
IsSuccess returns true when this update tenant default response has a 2xx status code
func (*UpdateTenantDefault) String ¶ added in v0.19.0
func (o *UpdateTenantDefault) String() string
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) Code ¶ added in v0.20.11
func (o *UpdateTenantOK) Code() int
Code gets the status code for the update tenant o k response
func (*UpdateTenantOK) Error ¶
func (o *UpdateTenantOK) Error() string
func (*UpdateTenantOK) GetPayload ¶ added in v0.9.1
func (o *UpdateTenantOK) GetPayload() *models.V1TenantResponse
func (*UpdateTenantOK) IsClientError ¶ added in v0.19.0
func (o *UpdateTenantOK) IsClientError() bool
IsClientError returns true when this update tenant o k response has a 4xx status code
func (*UpdateTenantOK) IsCode ¶ added in v0.19.0
func (o *UpdateTenantOK) IsCode(code int) bool
IsCode returns true when this update tenant o k response a status code equal to that given
func (*UpdateTenantOK) IsRedirect ¶ added in v0.19.0
func (o *UpdateTenantOK) IsRedirect() bool
IsRedirect returns true when this update tenant o k response has a 3xx status code
func (*UpdateTenantOK) IsServerError ¶ added in v0.19.0
func (o *UpdateTenantOK) IsServerError() bool
IsServerError returns true when this update tenant o k response has a 5xx status code
func (*UpdateTenantOK) IsSuccess ¶ added in v0.19.0
func (o *UpdateTenantOK) IsSuccess() bool
IsSuccess returns true when this update tenant o k response has a 2xx status code
func (*UpdateTenantOK) String ¶ added in v0.19.0
func (o *UpdateTenantOK) String() 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 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 ¶
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) 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 ¶
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) 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) Code ¶ added in v0.20.11
func (o *UpdateTenantPreconditionFailed) Code() int
Code gets the status code for the update tenant precondition failed response
func (*UpdateTenantPreconditionFailed) Error ¶
func (o *UpdateTenantPreconditionFailed) Error() string
func (*UpdateTenantPreconditionFailed) GetPayload ¶ added in v0.9.1
func (o *UpdateTenantPreconditionFailed) GetPayload() *httperrors.HTTPErrorResponse
func (*UpdateTenantPreconditionFailed) IsClientError ¶ added in v0.19.0
func (o *UpdateTenantPreconditionFailed) IsClientError() bool
IsClientError returns true when this update tenant precondition failed response has a 4xx status code
func (*UpdateTenantPreconditionFailed) IsCode ¶ added in v0.19.0
func (o *UpdateTenantPreconditionFailed) IsCode(code int) bool
IsCode returns true when this update tenant precondition failed response a status code equal to that given
func (*UpdateTenantPreconditionFailed) IsRedirect ¶ added in v0.19.0
func (o *UpdateTenantPreconditionFailed) IsRedirect() bool
IsRedirect returns true when this update tenant precondition failed response has a 3xx status code
func (*UpdateTenantPreconditionFailed) IsServerError ¶ added in v0.19.0
func (o *UpdateTenantPreconditionFailed) IsServerError() bool
IsServerError returns true when this update tenant precondition failed response has a 5xx status code
func (*UpdateTenantPreconditionFailed) IsSuccess ¶ added in v0.19.0
func (o *UpdateTenantPreconditionFailed) IsSuccess() bool
IsSuccess returns true when this update tenant precondition failed response has a 2xx status code
func (*UpdateTenantPreconditionFailed) String ¶ added in v0.19.0
func (o *UpdateTenantPreconditionFailed) String() 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.