accountpreferences

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

func New

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

New creates a new accountpreferences API client.

func (*Client) Get

func (a *Client) Get(params *GetParams) (*GetOK, error)

Get retrieves account preferences for admin user

Account related preferences that could be managed by the account admins and different restrictions could be added to Cloudbreak resources.

func (*Client) Post

func (a *Client) Post(params *PostParams) error

Post posts account preferences of admin user

Account related preferences that could be managed by the account admins and different restrictions could be added to Cloudbreak resources.

func (*Client) Put

func (a *Client) Put(params *PutParams) error

Put updates account preferences of admin user

Account related preferences that could be managed by the account admins and different restrictions could be added to Cloudbreak resources.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) Validate

func (a *Client) Validate(params *ValidateParams) error

Validate validates account preferences of all stacks

Account related preferences that could be managed by the account admins and different restrictions could be added to Cloudbreak resources.

type GetOK

type GetOK struct {
	Payload *models.AccountPreferences
}

GetOK handles this case with default header values.

successful operation

func NewGetOK

func NewGetOK() *GetOK

NewGetOK creates a GetOK with default headers values

func (*GetOK) Error

func (o *GetOK) Error() string

type GetParams

type GetParams struct {
}

GetParams contains all the parameters to send to the API endpoint for the get operation typically these are written to a http.Request

func NewGetParams

func NewGetParams() *GetParams

NewGetParams creates a new GetParams object with the default values initialized.

func (*GetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetReader

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

GetReader is a Reader for the Get structure.

func (*GetReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type PostDefault

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

PostDefault handles this case with default header values.

successful operation

func NewPostDefault

func NewPostDefault(code int) *PostDefault

NewPostDefault creates a PostDefault with default headers values

func (*PostDefault) Code

func (o *PostDefault) Code() int

Code gets the status code for the post default response

func (*PostDefault) Error

func (o *PostDefault) Error() string

type PostParams

type PostParams struct {

	/*Body*/
	Body *models.AccountPreferences
}

PostParams contains all the parameters to send to the API endpoint for the post operation typically these are written to a http.Request

func NewPostParams

func NewPostParams() *PostParams

NewPostParams creates a new PostParams object with the default values initialized.

func (*PostParams) WithBody

func (o *PostParams) WithBody(body *models.AccountPreferences) *PostParams

WithBody adds the body to the post params

func (*PostParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostReader

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

PostReader is a Reader for the Post structure.

func (*PostReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type PutDefault

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

PutDefault handles this case with default header values.

successful operation

func NewPutDefault

func NewPutDefault(code int) *PutDefault

NewPutDefault creates a PutDefault with default headers values

func (*PutDefault) Code

func (o *PutDefault) Code() int

Code gets the status code for the put default response

func (*PutDefault) Error

func (o *PutDefault) Error() string

type PutParams

type PutParams struct {

	/*Body*/
	Body *models.AccountPreferences
}

PutParams contains all the parameters to send to the API endpoint for the put operation typically these are written to a http.Request

func NewPutParams

func NewPutParams() *PutParams

NewPutParams creates a new PutParams object with the default values initialized.

func (*PutParams) WithBody

func (o *PutParams) WithBody(body *models.AccountPreferences) *PutParams

WithBody adds the body to the put params

func (*PutParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PutReader

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

PutReader is a Reader for the Put structure.

func (*PutReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type ValidateDefault

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

ValidateDefault handles this case with default header values.

successful operation

func NewValidateDefault

func NewValidateDefault(code int) *ValidateDefault

NewValidateDefault creates a ValidateDefault with default headers values

func (*ValidateDefault) Code

func (o *ValidateDefault) Code() int

Code gets the status code for the validate default response

func (*ValidateDefault) Error

func (o *ValidateDefault) Error() string

type ValidateParams

type ValidateParams struct {
}

ValidateParams contains all the parameters to send to the API endpoint for the validate operation typically these are written to a http.Request

func NewValidateParams

func NewValidateParams() *ValidateParams

NewValidateParams creates a new ValidateParams object with the default values initialized.

func (*ValidateParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ValidateReader

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

ValidateReader is a Reader for the Validate structure.

func (*ValidateReader) ReadResponse

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