recipes

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: 8 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 recipes API

func New

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

New creates a new recipes API client.

func (*Client) DeleteRecipesAccountName

func (a *Client) DeleteRecipesAccountName(params *DeleteRecipesAccountNameParams) error

DeleteRecipesAccountName deletes public owned or private recipe by name

Recipes are basically script extensions to a cluster that run on a set of nodes before or after the Ambari cluster installation.

func (*Client) DeleteRecipesID

func (a *Client) DeleteRecipesID(params *DeleteRecipesIDParams) error

DeleteRecipesID deletes recipe by id

Recipes are basically script extensions to a cluster that run on a set of nodes before or after the Ambari cluster installation.

func (*Client) DeleteRecipesUserName

func (a *Client) DeleteRecipesUserName(params *DeleteRecipesUserNameParams) error

DeleteRecipesUserName deletes private recipe by name

Recipes are basically script extensions to a cluster that run on a set of nodes before or after the Ambari cluster installation.

func (*Client) GetRecipesAccount

func (a *Client) GetRecipesAccount(params *GetRecipesAccountParams) (*GetRecipesAccountOK, error)

GetRecipesAccount retrieves public and private owned recipes

Recipes are basically script extensions to a cluster that run on a set of nodes before or after the Ambari cluster installation.

func (*Client) GetRecipesAccountName

func (a *Client) GetRecipesAccountName(params *GetRecipesAccountNameParams) (*GetRecipesAccountNameOK, error)

GetRecipesAccountName retrieves a public or private owned recipe by name

Recipes are basically script extensions to a cluster that run on a set of nodes before or after the Ambari cluster installation.

func (*Client) GetRecipesID

func (a *Client) GetRecipesID(params *GetRecipesIDParams) (*GetRecipesIDOK, error)

GetRecipesID retrieves recipe by id

Recipes are basically script extensions to a cluster that run on a set of nodes before or after the Ambari cluster installation.

func (*Client) GetRecipesUser

func (a *Client) GetRecipesUser(params *GetRecipesUserParams) (*GetRecipesUserOK, error)

GetRecipesUser retrieves private recipes

Recipes are basically script extensions to a cluster that run on a set of nodes before or after the Ambari cluster installation.

func (*Client) GetRecipesUserName

func (a *Client) GetRecipesUserName(params *GetRecipesUserNameParams) (*GetRecipesUserNameOK, error)

GetRecipesUserName retrieves a private recipe by name

Recipes are basically script extensions to a cluster that run on a set of nodes before or after the Ambari cluster installation.

func (*Client) PostRecipesAccount

func (a *Client) PostRecipesAccount(params *PostRecipesAccountParams) (*PostRecipesAccountOK, error)

PostRecipesAccount creates recipe as public resource

Recipes are basically script extensions to a cluster that run on a set of nodes before or after the Ambari cluster installation.

func (*Client) PostRecipesUser

func (a *Client) PostRecipesUser(params *PostRecipesUserParams) (*PostRecipesUserOK, error)

PostRecipesUser creates recipe as private resource

Recipes are basically script extensions to a cluster that run on a set of nodes before or after the Ambari cluster installation.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type DeleteRecipesAccountNameDefault

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

DeleteRecipesAccountNameDefault handles this case with default header values.

successful operation

func NewDeleteRecipesAccountNameDefault

func NewDeleteRecipesAccountNameDefault(code int) *DeleteRecipesAccountNameDefault

NewDeleteRecipesAccountNameDefault creates a DeleteRecipesAccountNameDefault with default headers values

func (*DeleteRecipesAccountNameDefault) Code

Code gets the status code for the delete recipes account name default response

func (*DeleteRecipesAccountNameDefault) Error

type DeleteRecipesAccountNameParams

type DeleteRecipesAccountNameParams struct {

	/*Name*/
	Name string
}

DeleteRecipesAccountNameParams contains all the parameters to send to the API endpoint for the delete recipes account name operation typically these are written to a http.Request

func NewDeleteRecipesAccountNameParams

func NewDeleteRecipesAccountNameParams() *DeleteRecipesAccountNameParams

NewDeleteRecipesAccountNameParams creates a new DeleteRecipesAccountNameParams object with the default values initialized.

func (*DeleteRecipesAccountNameParams) WithName

WithName adds the name to the delete recipes account name params

func (*DeleteRecipesAccountNameParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteRecipesAccountNameReader

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

DeleteRecipesAccountNameReader is a Reader for the DeleteRecipesAccountName structure.

func (*DeleteRecipesAccountNameReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type DeleteRecipesIDDefault

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

DeleteRecipesIDDefault handles this case with default header values.

successful operation

func NewDeleteRecipesIDDefault

func NewDeleteRecipesIDDefault(code int) *DeleteRecipesIDDefault

NewDeleteRecipesIDDefault creates a DeleteRecipesIDDefault with default headers values

func (*DeleteRecipesIDDefault) Code

func (o *DeleteRecipesIDDefault) Code() int

Code gets the status code for the delete recipes ID default response

func (*DeleteRecipesIDDefault) Error

func (o *DeleteRecipesIDDefault) Error() string

type DeleteRecipesIDParams

type DeleteRecipesIDParams struct {

	/*ID*/
	ID int64
}

DeleteRecipesIDParams contains all the parameters to send to the API endpoint for the delete recipes ID operation typically these are written to a http.Request

func NewDeleteRecipesIDParams

func NewDeleteRecipesIDParams() *DeleteRecipesIDParams

NewDeleteRecipesIDParams creates a new DeleteRecipesIDParams object with the default values initialized.

func (*DeleteRecipesIDParams) WithID

WithID adds the id to the delete recipes ID params

func (*DeleteRecipesIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteRecipesIDReader

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

DeleteRecipesIDReader is a Reader for the DeleteRecipesID structure.

func (*DeleteRecipesIDReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type DeleteRecipesUserNameDefault

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

DeleteRecipesUserNameDefault handles this case with default header values.

successful operation

func NewDeleteRecipesUserNameDefault

func NewDeleteRecipesUserNameDefault(code int) *DeleteRecipesUserNameDefault

NewDeleteRecipesUserNameDefault creates a DeleteRecipesUserNameDefault with default headers values

func (*DeleteRecipesUserNameDefault) Code

Code gets the status code for the delete recipes user name default response

func (*DeleteRecipesUserNameDefault) Error

type DeleteRecipesUserNameParams

type DeleteRecipesUserNameParams struct {

	/*Name*/
	Name string
}

DeleteRecipesUserNameParams contains all the parameters to send to the API endpoint for the delete recipes user name operation typically these are written to a http.Request

func NewDeleteRecipesUserNameParams

func NewDeleteRecipesUserNameParams() *DeleteRecipesUserNameParams

NewDeleteRecipesUserNameParams creates a new DeleteRecipesUserNameParams object with the default values initialized.

func (*DeleteRecipesUserNameParams) WithName

WithName adds the name to the delete recipes user name params

func (*DeleteRecipesUserNameParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteRecipesUserNameReader

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

DeleteRecipesUserNameReader is a Reader for the DeleteRecipesUserName structure.

func (*DeleteRecipesUserNameReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type GetRecipesAccountNameOK

type GetRecipesAccountNameOK struct {
	Payload *models.RecipeResponse
}

GetRecipesAccountNameOK handles this case with default header values.

successful operation

func NewGetRecipesAccountNameOK

func NewGetRecipesAccountNameOK() *GetRecipesAccountNameOK

NewGetRecipesAccountNameOK creates a GetRecipesAccountNameOK with default headers values

func (*GetRecipesAccountNameOK) Error

func (o *GetRecipesAccountNameOK) Error() string

type GetRecipesAccountNameParams

type GetRecipesAccountNameParams struct {

	/*Name*/
	Name string
}

GetRecipesAccountNameParams contains all the parameters to send to the API endpoint for the get recipes account name operation typically these are written to a http.Request

func NewGetRecipesAccountNameParams

func NewGetRecipesAccountNameParams() *GetRecipesAccountNameParams

NewGetRecipesAccountNameParams creates a new GetRecipesAccountNameParams object with the default values initialized.

func (*GetRecipesAccountNameParams) WithName

WithName adds the name to the get recipes account name params

func (*GetRecipesAccountNameParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetRecipesAccountNameReader

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

GetRecipesAccountNameReader is a Reader for the GetRecipesAccountName structure.

func (*GetRecipesAccountNameReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type GetRecipesAccountOK

type GetRecipesAccountOK struct {
	Payload []*models.RecipeResponse
}

GetRecipesAccountOK handles this case with default header values.

successful operation

func NewGetRecipesAccountOK

func NewGetRecipesAccountOK() *GetRecipesAccountOK

NewGetRecipesAccountOK creates a GetRecipesAccountOK with default headers values

func (*GetRecipesAccountOK) Error

func (o *GetRecipesAccountOK) Error() string

type GetRecipesAccountParams

type GetRecipesAccountParams struct {
}

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

func NewGetRecipesAccountParams

func NewGetRecipesAccountParams() *GetRecipesAccountParams

NewGetRecipesAccountParams creates a new GetRecipesAccountParams object with the default values initialized.

func (*GetRecipesAccountParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetRecipesAccountReader

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

GetRecipesAccountReader is a Reader for the GetRecipesAccount structure.

func (*GetRecipesAccountReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type GetRecipesIDOK

type GetRecipesIDOK struct {
	Payload *models.RecipeResponse
}

GetRecipesIDOK handles this case with default header values.

successful operation

func NewGetRecipesIDOK

func NewGetRecipesIDOK() *GetRecipesIDOK

NewGetRecipesIDOK creates a GetRecipesIDOK with default headers values

func (*GetRecipesIDOK) Error

func (o *GetRecipesIDOK) Error() string

type GetRecipesIDParams

type GetRecipesIDParams struct {

	/*ID*/
	ID int64
}

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

func NewGetRecipesIDParams

func NewGetRecipesIDParams() *GetRecipesIDParams

NewGetRecipesIDParams creates a new GetRecipesIDParams object with the default values initialized.

func (*GetRecipesIDParams) WithID

WithID adds the id to the get recipes ID params

func (*GetRecipesIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetRecipesIDReader

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

GetRecipesIDReader is a Reader for the GetRecipesID structure.

func (*GetRecipesIDReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type GetRecipesUserNameOK

type GetRecipesUserNameOK struct {
	Payload *models.RecipeResponse
}

GetRecipesUserNameOK handles this case with default header values.

successful operation

func NewGetRecipesUserNameOK

func NewGetRecipesUserNameOK() *GetRecipesUserNameOK

NewGetRecipesUserNameOK creates a GetRecipesUserNameOK with default headers values

func (*GetRecipesUserNameOK) Error

func (o *GetRecipesUserNameOK) Error() string

type GetRecipesUserNameParams

type GetRecipesUserNameParams struct {

	/*Name*/
	Name string
}

GetRecipesUserNameParams contains all the parameters to send to the API endpoint for the get recipes user name operation typically these are written to a http.Request

func NewGetRecipesUserNameParams

func NewGetRecipesUserNameParams() *GetRecipesUserNameParams

NewGetRecipesUserNameParams creates a new GetRecipesUserNameParams object with the default values initialized.

func (*GetRecipesUserNameParams) WithName

WithName adds the name to the get recipes user name params

func (*GetRecipesUserNameParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetRecipesUserNameReader

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

GetRecipesUserNameReader is a Reader for the GetRecipesUserName structure.

func (*GetRecipesUserNameReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type GetRecipesUserOK

type GetRecipesUserOK struct {
	Payload []*models.RecipeResponse
}

GetRecipesUserOK handles this case with default header values.

successful operation

func NewGetRecipesUserOK

func NewGetRecipesUserOK() *GetRecipesUserOK

NewGetRecipesUserOK creates a GetRecipesUserOK with default headers values

func (*GetRecipesUserOK) Error

func (o *GetRecipesUserOK) Error() string

type GetRecipesUserParams

type GetRecipesUserParams struct {
}

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

func NewGetRecipesUserParams

func NewGetRecipesUserParams() *GetRecipesUserParams

NewGetRecipesUserParams creates a new GetRecipesUserParams object with the default values initialized.

func (*GetRecipesUserParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetRecipesUserReader

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

GetRecipesUserReader is a Reader for the GetRecipesUser structure.

func (*GetRecipesUserReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type PostRecipesAccountOK

type PostRecipesAccountOK struct {
	Payload *models.ID
}

PostRecipesAccountOK handles this case with default header values.

successful operation

func NewPostRecipesAccountOK

func NewPostRecipesAccountOK() *PostRecipesAccountOK

NewPostRecipesAccountOK creates a PostRecipesAccountOK with default headers values

func (*PostRecipesAccountOK) Error

func (o *PostRecipesAccountOK) Error() string

type PostRecipesAccountParams

type PostRecipesAccountParams struct {

	/*Body*/
	Body *models.RecipeRequest
}

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

func NewPostRecipesAccountParams

func NewPostRecipesAccountParams() *PostRecipesAccountParams

NewPostRecipesAccountParams creates a new PostRecipesAccountParams object with the default values initialized.

func (*PostRecipesAccountParams) WithBody

WithBody adds the body to the post recipes account params

func (*PostRecipesAccountParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostRecipesAccountReader

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

PostRecipesAccountReader is a Reader for the PostRecipesAccount structure.

func (*PostRecipesAccountReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type PostRecipesUserOK

type PostRecipesUserOK struct {
	Payload *models.ID
}

PostRecipesUserOK handles this case with default header values.

successful operation

func NewPostRecipesUserOK

func NewPostRecipesUserOK() *PostRecipesUserOK

NewPostRecipesUserOK creates a PostRecipesUserOK with default headers values

func (*PostRecipesUserOK) Error

func (o *PostRecipesUserOK) Error() string

type PostRecipesUserParams

type PostRecipesUserParams struct {

	/*Body*/
	Body *models.RecipeRequest
}

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

func NewPostRecipesUserParams

func NewPostRecipesUserParams() *PostRecipesUserParams

NewPostRecipesUserParams creates a new PostRecipesUserParams object with the default values initialized.

func (*PostRecipesUserParams) WithBody

WithBody adds the body to the post recipes user params

func (*PostRecipesUserParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostRecipesUserReader

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

PostRecipesUserReader is a Reader for the PostRecipesUser structure.

func (*PostRecipesUserReader) ReadResponse

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