v1topologies

package
v2.7.0-dev.94+incompat... Latest Latest
Warning

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

Go to latest
Published: May 3, 2018 License: Apache-2.0, BSD-2-Clause Imports: 11 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 v1topologies API

func New

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

New creates a new v1topologies API client.

func (*Client) DeleteTopology

func (a *Client) DeleteTopology(params *DeleteTopologyParams) error

DeleteTopology deletes topology by id

A topology gives system administrators an easy way to associate compute nodes with data centers and racks.

func (*Client) GetPublicsTopology

func (a *Client) GetPublicsTopology(params *GetPublicsTopologyParams) (*GetPublicsTopologyOK, error)

GetPublicsTopology retrieves topoligies

A topology gives system administrators an easy way to associate compute nodes with data centers and racks.

func (*Client) GetTopology

func (a *Client) GetTopology(params *GetTopologyParams) (*GetTopologyOK, error)

GetTopology retrieves topology by id

A template gives developers and systems administrators an easy way to create and manage a collection of cloud infrastructure related resources, maintaining and updating them in an orderly and predictable fashion. Templates are cloud specific - and on top of the infrastructural setup they collect the information such as the used machine images, the datacenter location, instance types, and can capture and control region-specific infrastructure variations. We support heterogenous clusters - this one Hadoop cluster can be built by combining different templates.

func (*Client) PostPublicTopology

func (a *Client) PostPublicTopology(params *PostPublicTopologyParams) (*PostPublicTopologyOK, error)

PostPublicTopology creates topology as public resource

A topology gives system administrators an easy way to associate compute nodes with data centers and racks.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type DeleteTopologyDefault

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

DeleteTopologyDefault handles this case with default header values.

successful operation

func NewDeleteTopologyDefault

func NewDeleteTopologyDefault(code int) *DeleteTopologyDefault

NewDeleteTopologyDefault creates a DeleteTopologyDefault with default headers values

func (*DeleteTopologyDefault) Code

func (o *DeleteTopologyDefault) Code() int

Code gets the status code for the delete topology default response

func (*DeleteTopologyDefault) Error

func (o *DeleteTopologyDefault) Error() string

type DeleteTopologyParams

type DeleteTopologyParams struct {

	/*Forced*/
	Forced *bool
	/*ID*/
	ID int64

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

DeleteTopologyParams contains all the parameters to send to the API endpoint for the delete topology operation typically these are written to a http.Request

func NewDeleteTopologyParams

func NewDeleteTopologyParams() *DeleteTopologyParams

NewDeleteTopologyParams creates a new DeleteTopologyParams object with the default values initialized.

func NewDeleteTopologyParamsWithContext

func NewDeleteTopologyParamsWithContext(ctx context.Context) *DeleteTopologyParams

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

func NewDeleteTopologyParamsWithHTTPClient

func NewDeleteTopologyParamsWithHTTPClient(client *http.Client) *DeleteTopologyParams

NewDeleteTopologyParamsWithHTTPClient creates a new DeleteTopologyParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteTopologyParamsWithTimeout

func NewDeleteTopologyParamsWithTimeout(timeout time.Duration) *DeleteTopologyParams

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

func (*DeleteTopologyParams) SetContext

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

SetContext adds the context to the delete topology params

func (*DeleteTopologyParams) SetForced

func (o *DeleteTopologyParams) SetForced(forced *bool)

SetForced adds the forced to the delete topology params

func (*DeleteTopologyParams) SetHTTPClient

func (o *DeleteTopologyParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete topology params

func (*DeleteTopologyParams) SetID

func (o *DeleteTopologyParams) SetID(id int64)

SetID adds the id to the delete topology params

func (*DeleteTopologyParams) SetTimeout

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

SetTimeout adds the timeout to the delete topology params

func (*DeleteTopologyParams) WithContext

WithContext adds the context to the delete topology params

func (*DeleteTopologyParams) WithForced

func (o *DeleteTopologyParams) WithForced(forced *bool) *DeleteTopologyParams

WithForced adds the forced to the delete topology params

func (*DeleteTopologyParams) WithHTTPClient

func (o *DeleteTopologyParams) WithHTTPClient(client *http.Client) *DeleteTopologyParams

WithHTTPClient adds the HTTPClient to the delete topology params

func (*DeleteTopologyParams) WithID

WithID adds the id to the delete topology params

func (*DeleteTopologyParams) WithTimeout

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

WithTimeout adds the timeout to the delete topology params

func (*DeleteTopologyParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteTopologyReader

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

DeleteTopologyReader is a Reader for the DeleteTopology structure.

func (*DeleteTopologyReader) ReadResponse

func (o *DeleteTopologyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetPublicsTopologyOK

type GetPublicsTopologyOK struct {
	Payload []*models_cloudbreak.TopologyResponse
}

GetPublicsTopologyOK handles this case with default header values.

successful operation

func NewGetPublicsTopologyOK

func NewGetPublicsTopologyOK() *GetPublicsTopologyOK

NewGetPublicsTopologyOK creates a GetPublicsTopologyOK with default headers values

func (*GetPublicsTopologyOK) Error

func (o *GetPublicsTopologyOK) Error() string

type GetPublicsTopologyParams

type GetPublicsTopologyParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

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

func NewGetPublicsTopologyParams

func NewGetPublicsTopologyParams() *GetPublicsTopologyParams

NewGetPublicsTopologyParams creates a new GetPublicsTopologyParams object with the default values initialized.

func NewGetPublicsTopologyParamsWithContext

func NewGetPublicsTopologyParamsWithContext(ctx context.Context) *GetPublicsTopologyParams

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

func NewGetPublicsTopologyParamsWithHTTPClient

func NewGetPublicsTopologyParamsWithHTTPClient(client *http.Client) *GetPublicsTopologyParams

NewGetPublicsTopologyParamsWithHTTPClient creates a new GetPublicsTopologyParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetPublicsTopologyParamsWithTimeout

func NewGetPublicsTopologyParamsWithTimeout(timeout time.Duration) *GetPublicsTopologyParams

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

func (*GetPublicsTopologyParams) SetContext

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

SetContext adds the context to the get publics topology params

func (*GetPublicsTopologyParams) SetHTTPClient

func (o *GetPublicsTopologyParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get publics topology params

func (*GetPublicsTopologyParams) SetTimeout

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

SetTimeout adds the timeout to the get publics topology params

func (*GetPublicsTopologyParams) WithContext

WithContext adds the context to the get publics topology params

func (*GetPublicsTopologyParams) WithHTTPClient

func (o *GetPublicsTopologyParams) WithHTTPClient(client *http.Client) *GetPublicsTopologyParams

WithHTTPClient adds the HTTPClient to the get publics topology params

func (*GetPublicsTopologyParams) WithTimeout

WithTimeout adds the timeout to the get publics topology params

func (*GetPublicsTopologyParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetPublicsTopologyReader

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

GetPublicsTopologyReader is a Reader for the GetPublicsTopology structure.

func (*GetPublicsTopologyReader) ReadResponse

func (o *GetPublicsTopologyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetTopologyOK

type GetTopologyOK struct {
	Payload *models_cloudbreak.TopologyResponse
}

GetTopologyOK handles this case with default header values.

successful operation

func NewGetTopologyOK

func NewGetTopologyOK() *GetTopologyOK

NewGetTopologyOK creates a GetTopologyOK with default headers values

func (*GetTopologyOK) Error

func (o *GetTopologyOK) Error() string

type GetTopologyParams

type GetTopologyParams struct {

	/*ID*/
	ID int64

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

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

func NewGetTopologyParams

func NewGetTopologyParams() *GetTopologyParams

NewGetTopologyParams creates a new GetTopologyParams object with the default values initialized.

func NewGetTopologyParamsWithContext

func NewGetTopologyParamsWithContext(ctx context.Context) *GetTopologyParams

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

func NewGetTopologyParamsWithHTTPClient

func NewGetTopologyParamsWithHTTPClient(client *http.Client) *GetTopologyParams

NewGetTopologyParamsWithHTTPClient creates a new GetTopologyParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetTopologyParamsWithTimeout

func NewGetTopologyParamsWithTimeout(timeout time.Duration) *GetTopologyParams

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

func (*GetTopologyParams) SetContext

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

SetContext adds the context to the get topology params

func (*GetTopologyParams) SetHTTPClient

func (o *GetTopologyParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get topology params

func (*GetTopologyParams) SetID

func (o *GetTopologyParams) SetID(id int64)

SetID adds the id to the get topology params

func (*GetTopologyParams) SetTimeout

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

SetTimeout adds the timeout to the get topology params

func (*GetTopologyParams) WithContext

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

WithContext adds the context to the get topology params

func (*GetTopologyParams) WithHTTPClient

func (o *GetTopologyParams) WithHTTPClient(client *http.Client) *GetTopologyParams

WithHTTPClient adds the HTTPClient to the get topology params

func (*GetTopologyParams) WithID

func (o *GetTopologyParams) WithID(id int64) *GetTopologyParams

WithID adds the id to the get topology params

func (*GetTopologyParams) WithTimeout

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

WithTimeout adds the timeout to the get topology params

func (*GetTopologyParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetTopologyReader

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

GetTopologyReader is a Reader for the GetTopology structure.

func (*GetTopologyReader) ReadResponse

func (o *GetTopologyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PostPublicTopologyOK

type PostPublicTopologyOK struct {
	Payload *models_cloudbreak.TopologyResponse
}

PostPublicTopologyOK handles this case with default header values.

successful operation

func NewPostPublicTopologyOK

func NewPostPublicTopologyOK() *PostPublicTopologyOK

NewPostPublicTopologyOK creates a PostPublicTopologyOK with default headers values

func (*PostPublicTopologyOK) Error

func (o *PostPublicTopologyOK) Error() string

type PostPublicTopologyParams

type PostPublicTopologyParams struct {

	/*Body*/
	Body *models_cloudbreak.TopologyRequest

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

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

func NewPostPublicTopologyParams

func NewPostPublicTopologyParams() *PostPublicTopologyParams

NewPostPublicTopologyParams creates a new PostPublicTopologyParams object with the default values initialized.

func NewPostPublicTopologyParamsWithContext

func NewPostPublicTopologyParamsWithContext(ctx context.Context) *PostPublicTopologyParams

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

func NewPostPublicTopologyParamsWithHTTPClient

func NewPostPublicTopologyParamsWithHTTPClient(client *http.Client) *PostPublicTopologyParams

NewPostPublicTopologyParamsWithHTTPClient creates a new PostPublicTopologyParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPostPublicTopologyParamsWithTimeout

func NewPostPublicTopologyParamsWithTimeout(timeout time.Duration) *PostPublicTopologyParams

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

func (*PostPublicTopologyParams) SetBody

SetBody adds the body to the post public topology params

func (*PostPublicTopologyParams) SetContext

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

SetContext adds the context to the post public topology params

func (*PostPublicTopologyParams) SetHTTPClient

func (o *PostPublicTopologyParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the post public topology params

func (*PostPublicTopologyParams) SetTimeout

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

SetTimeout adds the timeout to the post public topology params

func (*PostPublicTopologyParams) WithBody

WithBody adds the body to the post public topology params

func (*PostPublicTopologyParams) WithContext

WithContext adds the context to the post public topology params

func (*PostPublicTopologyParams) WithHTTPClient

func (o *PostPublicTopologyParams) WithHTTPClient(client *http.Client) *PostPublicTopologyParams

WithHTTPClient adds the HTTPClient to the post public topology params

func (*PostPublicTopologyParams) WithTimeout

WithTimeout adds the timeout to the post public topology params

func (*PostPublicTopologyParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostPublicTopologyReader

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

PostPublicTopologyReader is a Reader for the PostPublicTopology structure.

func (*PostPublicTopologyReader) ReadResponse

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