users

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2016 License: Apache-2.0 Imports: 7 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 users API

func New

func New(transport client.Transport, formats strfmt.Registry) *Client

New creates a new users API client.

func (*Client) EvictUserDetails

func (a *Client) EvictUserDetails(params *EvictUserDetailsParams) (*EvictUserDetailsOK, error)

EvictUserDetails removes user from cache by username

Users can be invited under an account by the administrator, and all resources (e.g. resources, networks, blueprints, credentials, clusters) can be shared across account users

func (*Client) HasResources

func (a *Client) HasResources(params *HasResourcesParams) (*HasResourcesOK, error)

HasResources checks that account user has any resources

Users can be invited under an account by the administrator, and all resources (e.g. resources, networks, blueprints, credentials, clusters) can be shared across account users

func (*Client) SetTransport

func (a *Client) SetTransport(transport client.Transport)

SetTransport changes the transport on the client

type EvictUserDetailsOK

type EvictUserDetailsOK struct {
	Payload string
}

EvictUserDetailsOK handles this case with default header values.

successful operation

func NewEvictUserDetailsOK

func NewEvictUserDetailsOK() *EvictUserDetailsOK

NewEvictUserDetailsOK creates a EvictUserDetailsOK with default headers values

func (*EvictUserDetailsOK) Error

func (o *EvictUserDetailsOK) Error() string

type EvictUserDetailsParams

type EvictUserDetailsParams struct {

	/*Body*/
	Body *models.User
	/*ID*/
	ID string
}

EvictUserDetailsParams contains all the parameters to send to the API endpoint for the evict user details operation typically these are written to a http.Request

func NewEvictUserDetailsParams

func NewEvictUserDetailsParams() *EvictUserDetailsParams

NewEvictUserDetailsParams creates a new EvictUserDetailsParams object with the default values initialized.

func (*EvictUserDetailsParams) WithBody

WithBody adds the body to the evict user details params

func (*EvictUserDetailsParams) WithID

WithID adds the id to the evict user details params

func (*EvictUserDetailsParams) WriteToRequest

func (o *EvictUserDetailsParams) WriteToRequest(r client.Request, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type EvictUserDetailsReader

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

EvictUserDetailsReader is a Reader for the EvictUserDetails structure.

func (*EvictUserDetailsReader) ReadResponse

func (o *EvictUserDetailsReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

ReadResponse reads a server response into the recieved o.

type HasResourcesOK

type HasResourcesOK struct {
	Payload bool
}

HasResourcesOK handles this case with default header values.

successful operation

func NewHasResourcesOK

func NewHasResourcesOK() *HasResourcesOK

NewHasResourcesOK creates a HasResourcesOK with default headers values

func (*HasResourcesOK) Error

func (o *HasResourcesOK) Error() string

type HasResourcesParams

type HasResourcesParams struct {

	/*ID*/
	ID string
}

HasResourcesParams contains all the parameters to send to the API endpoint for the has resources operation typically these are written to a http.Request

func NewHasResourcesParams

func NewHasResourcesParams() *HasResourcesParams

NewHasResourcesParams creates a new HasResourcesParams object with the default values initialized.

func (*HasResourcesParams) WithID

WithID adds the id to the has resources params

func (*HasResourcesParams) WriteToRequest

func (o *HasResourcesParams) WriteToRequest(r client.Request, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type HasResourcesReader

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

HasResourcesReader is a Reader for the HasResources structure.

func (*HasResourcesReader) ReadResponse

func (o *HasResourcesReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

ReadResponse reads a server response into the recieved o.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL