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)
- type ClientOption
- type ClientService
- 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
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 (o *GetTenantDefault) GetPayload() *httperrors.HTTPErrorResponse
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) Code ¶ added in v0.22.1
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 ¶
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 (o *ListTenantsDefault) GetPayload() *httperrors.HTTPErrorResponse
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) Code ¶ added in v0.22.1
func (o *ListTenantsOK) Code() int
Code gets the status code for the list tenants o k response
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.