tenants

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2017 License: GPL-3.0 Imports: 10 Imported by: 0

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 tenants API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new tenants API client.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) TenantsList

func (a *Client) TenantsList(params *TenantsListParams, authInfo runtime.ClientAuthInfoWriter) (*TenantsListOK, error)

TenantsList Gets the tenants for your account.

type TenantsListOK

type TenantsListOK struct {
	Payload *models.TenantListResult
}

TenantsListOK handles this case with default header values.

OK - Returns an array of tenants.

func NewTenantsListOK

func NewTenantsListOK() *TenantsListOK

NewTenantsListOK creates a TenantsListOK with default headers values

func (*TenantsListOK) Error

func (o *TenantsListOK) Error() string

type TenantsListParams

type TenantsListParams struct {

	/*APIVersion
	  The API version to use for the operation.

	*/
	APIVersion string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

TenantsListParams contains all the parameters to send to the API endpoint for the tenants list operation typically these are written to a http.Request

func NewTenantsListParams

func NewTenantsListParams() *TenantsListParams

NewTenantsListParams creates a new TenantsListParams object with the default values initialized.

func NewTenantsListParamsWithContext

func NewTenantsListParamsWithContext(ctx context.Context) *TenantsListParams

NewTenantsListParamsWithContext creates a new TenantsListParams object with the default values initialized, and the ability to set a context for a request

func NewTenantsListParamsWithTimeout

func NewTenantsListParamsWithTimeout(timeout time.Duration) *TenantsListParams

NewTenantsListParamsWithTimeout creates a new TenantsListParams object with the default values initialized, and the ability to set a timeout on a request

func (*TenantsListParams) SetAPIVersion

func (o *TenantsListParams) SetAPIVersion(aPIVersion string)

SetAPIVersion adds the apiVersion to the tenants list params

func (*TenantsListParams) SetContext

func (o *TenantsListParams) SetContext(ctx context.Context)

SetContext adds the context to the tenants list params

func (*TenantsListParams) SetTimeout

func (o *TenantsListParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the tenants list params

func (*TenantsListParams) WithAPIVersion

func (o *TenantsListParams) WithAPIVersion(aPIVersion string) *TenantsListParams

WithAPIVersion adds the aPIVersion to the tenants list params

func (*TenantsListParams) WithContext

func (o *TenantsListParams) WithContext(ctx context.Context) *TenantsListParams

WithContext adds the context to the tenants list params

func (*TenantsListParams) WithTimeout

func (o *TenantsListParams) WithTimeout(timeout time.Duration) *TenantsListParams

WithTimeout adds the timeout to the tenants list params

func (*TenantsListParams) WriteToRequest

func (o *TenantsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type TenantsListReader

type TenantsListReader struct {
	// contains filtered or unexported fields
}

TenantsListReader is a Reader for the TenantsList structure.

func (*TenantsListReader) ReadResponse

func (o *TenantsListReader) 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