v1constraints

package
v2.7.3-rc.45+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 24, 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 v1constraints API

func New

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

New creates a new v1constraints API client.

func (*Client) DeleteConstraint

func (a *Client) DeleteConstraint(params *DeleteConstraintParams) error

DeleteConstraint deletes constraint template by id

A constraint template tells Cloudbreak the resource constraints (cpu, memory, disk) of the Ambari containers that will be deployed to the cluster. A constraint template must be created onenvironments where there is no one-to-one mapping between containers and nodes, like YARN.

func (*Client) DeletePrivateConstraint

func (a *Client) DeletePrivateConstraint(params *DeletePrivateConstraintParams) error

DeletePrivateConstraint deletes private constraint template by name

A constraint template tells Cloudbreak the resource constraints (cpu, memory, disk) of the Ambari containers that will be deployed to the cluster. A constraint template must be created onenvironments where there is no one-to-one mapping between containers and nodes, like YARN.

func (*Client) DeletePublicConstraint

func (a *Client) DeletePublicConstraint(params *DeletePublicConstraintParams) error

DeletePublicConstraint deletes public owned or private constraint template by name

A constraint template tells Cloudbreak the resource constraints (cpu, memory, disk) of the Ambari containers that will be deployed to the cluster. A constraint template must be created onenvironments where there is no one-to-one mapping between containers and nodes, like YARN.

func (*Client) GetConstraint

func (a *Client) GetConstraint(params *GetConstraintParams) (*GetConstraintOK, error)

GetConstraint retrieves constraint template by id

A constraint template tells Cloudbreak the resource constraints (cpu, memory, disk) of the Ambari containers that will be deployed to the cluster. A constraint template must be created onenvironments where there is no one-to-one mapping between containers and nodes, like YARN.

func (*Client) GetPrivateConstraint

func (a *Client) GetPrivateConstraint(params *GetPrivateConstraintParams) (*GetPrivateConstraintOK, error)

GetPrivateConstraint retrieves a private constraint template by name

A constraint template tells Cloudbreak the resource constraints (cpu, memory, disk) of the Ambari containers that will be deployed to the cluster. A constraint template must be created onenvironments where there is no one-to-one mapping between containers and nodes, like YARN.

func (*Client) GetPrivatesConstraint

func (a *Client) GetPrivatesConstraint(params *GetPrivatesConstraintParams) (*GetPrivatesConstraintOK, error)

GetPrivatesConstraint retrieves private constraint templates

A constraint template tells Cloudbreak the resource constraints (cpu, memory, disk) of the Ambari containers that will be deployed to the cluster. A constraint template must be created onenvironments where there is no one-to-one mapping between containers and nodes, like YARN.

func (*Client) GetPublicConstraint

func (a *Client) GetPublicConstraint(params *GetPublicConstraintParams) (*GetPublicConstraintOK, error)

GetPublicConstraint retrieves a public or private owned constraint template by name

A constraint template tells Cloudbreak the resource constraints (cpu, memory, disk) of the Ambari containers that will be deployed to the cluster. A constraint template must be created onenvironments where there is no one-to-one mapping between containers and nodes, like YARN.

func (*Client) GetPublicsConstraint

func (a *Client) GetPublicsConstraint(params *GetPublicsConstraintParams) (*GetPublicsConstraintOK, error)

GetPublicsConstraint retrieves public and private owned constraint templates

A constraint template tells Cloudbreak the resource constraints (cpu, memory, disk) of the Ambari containers that will be deployed to the cluster. A constraint template must be created onenvironments where there is no one-to-one mapping between containers and nodes, like YARN.

func (*Client) PostPrivateConstraint

func (a *Client) PostPrivateConstraint(params *PostPrivateConstraintParams) (*PostPrivateConstraintOK, error)

PostPrivateConstraint creates constraint template as private resource

A constraint template tells Cloudbreak the resource constraints (cpu, memory, disk) of the Ambari containers that will be deployed to the cluster. A constraint template must be created onenvironments where there is no one-to-one mapping between containers and nodes, like YARN.

func (*Client) PostPublicConstraint

func (a *Client) PostPublicConstraint(params *PostPublicConstraintParams) (*PostPublicConstraintOK, error)

PostPublicConstraint creates constraint template as public resource

A constraint template tells Cloudbreak the resource constraints (cpu, memory, disk) of the Ambari containers that will be deployed to the cluster. A constraint template must be created onenvironments where there is no one-to-one mapping between containers and nodes, like YARN.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type DeleteConstraintDefault

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

DeleteConstraintDefault handles this case with default header values.

successful operation

func NewDeleteConstraintDefault

func NewDeleteConstraintDefault(code int) *DeleteConstraintDefault

NewDeleteConstraintDefault creates a DeleteConstraintDefault with default headers values

func (*DeleteConstraintDefault) Code

func (o *DeleteConstraintDefault) Code() int

Code gets the status code for the delete constraint default response

func (*DeleteConstraintDefault) Error

func (o *DeleteConstraintDefault) Error() string

type DeleteConstraintParams

type DeleteConstraintParams struct {

	/*ID*/
	ID int64

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

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

func NewDeleteConstraintParams

func NewDeleteConstraintParams() *DeleteConstraintParams

NewDeleteConstraintParams creates a new DeleteConstraintParams object with the default values initialized.

func NewDeleteConstraintParamsWithContext

func NewDeleteConstraintParamsWithContext(ctx context.Context) *DeleteConstraintParams

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

func NewDeleteConstraintParamsWithHTTPClient

func NewDeleteConstraintParamsWithHTTPClient(client *http.Client) *DeleteConstraintParams

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

func NewDeleteConstraintParamsWithTimeout

func NewDeleteConstraintParamsWithTimeout(timeout time.Duration) *DeleteConstraintParams

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

func (*DeleteConstraintParams) SetContext

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

SetContext adds the context to the delete constraint params

func (*DeleteConstraintParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete constraint params

func (*DeleteConstraintParams) SetID

func (o *DeleteConstraintParams) SetID(id int64)

SetID adds the id to the delete constraint params

func (*DeleteConstraintParams) SetTimeout

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

SetTimeout adds the timeout to the delete constraint params

func (*DeleteConstraintParams) WithContext

WithContext adds the context to the delete constraint params

func (*DeleteConstraintParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete constraint params

func (*DeleteConstraintParams) WithID

WithID adds the id to the delete constraint params

func (*DeleteConstraintParams) WithTimeout

WithTimeout adds the timeout to the delete constraint params

func (*DeleteConstraintParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteConstraintReader

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

DeleteConstraintReader is a Reader for the DeleteConstraint structure.

func (*DeleteConstraintReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeletePrivateConstraintDefault

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

DeletePrivateConstraintDefault handles this case with default header values.

successful operation

func NewDeletePrivateConstraintDefault

func NewDeletePrivateConstraintDefault(code int) *DeletePrivateConstraintDefault

NewDeletePrivateConstraintDefault creates a DeletePrivateConstraintDefault with default headers values

func (*DeletePrivateConstraintDefault) Code

Code gets the status code for the delete private constraint default response

func (*DeletePrivateConstraintDefault) Error

type DeletePrivateConstraintParams

type DeletePrivateConstraintParams struct {

	/*Name*/
	Name string

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

DeletePrivateConstraintParams contains all the parameters to send to the API endpoint for the delete private constraint operation typically these are written to a http.Request

func NewDeletePrivateConstraintParams

func NewDeletePrivateConstraintParams() *DeletePrivateConstraintParams

NewDeletePrivateConstraintParams creates a new DeletePrivateConstraintParams object with the default values initialized.

func NewDeletePrivateConstraintParamsWithContext

func NewDeletePrivateConstraintParamsWithContext(ctx context.Context) *DeletePrivateConstraintParams

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

func NewDeletePrivateConstraintParamsWithHTTPClient

func NewDeletePrivateConstraintParamsWithHTTPClient(client *http.Client) *DeletePrivateConstraintParams

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

func NewDeletePrivateConstraintParamsWithTimeout

func NewDeletePrivateConstraintParamsWithTimeout(timeout time.Duration) *DeletePrivateConstraintParams

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

func (*DeletePrivateConstraintParams) SetContext

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

SetContext adds the context to the delete private constraint params

func (*DeletePrivateConstraintParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete private constraint params

func (*DeletePrivateConstraintParams) SetName

func (o *DeletePrivateConstraintParams) SetName(name string)

SetName adds the name to the delete private constraint params

func (*DeletePrivateConstraintParams) SetTimeout

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

SetTimeout adds the timeout to the delete private constraint params

func (*DeletePrivateConstraintParams) WithContext

WithContext adds the context to the delete private constraint params

func (*DeletePrivateConstraintParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete private constraint params

func (*DeletePrivateConstraintParams) WithName

WithName adds the name to the delete private constraint params

func (*DeletePrivateConstraintParams) WithTimeout

WithTimeout adds the timeout to the delete private constraint params

func (*DeletePrivateConstraintParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeletePrivateConstraintReader

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

DeletePrivateConstraintReader is a Reader for the DeletePrivateConstraint structure.

func (*DeletePrivateConstraintReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeletePublicConstraintDefault

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

DeletePublicConstraintDefault handles this case with default header values.

successful operation

func NewDeletePublicConstraintDefault

func NewDeletePublicConstraintDefault(code int) *DeletePublicConstraintDefault

NewDeletePublicConstraintDefault creates a DeletePublicConstraintDefault with default headers values

func (*DeletePublicConstraintDefault) Code

Code gets the status code for the delete public constraint default response

func (*DeletePublicConstraintDefault) Error

type DeletePublicConstraintParams

type DeletePublicConstraintParams struct {

	/*Name*/
	Name string

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

DeletePublicConstraintParams contains all the parameters to send to the API endpoint for the delete public constraint operation typically these are written to a http.Request

func NewDeletePublicConstraintParams

func NewDeletePublicConstraintParams() *DeletePublicConstraintParams

NewDeletePublicConstraintParams creates a new DeletePublicConstraintParams object with the default values initialized.

func NewDeletePublicConstraintParamsWithContext

func NewDeletePublicConstraintParamsWithContext(ctx context.Context) *DeletePublicConstraintParams

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

func NewDeletePublicConstraintParamsWithHTTPClient

func NewDeletePublicConstraintParamsWithHTTPClient(client *http.Client) *DeletePublicConstraintParams

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

func NewDeletePublicConstraintParamsWithTimeout

func NewDeletePublicConstraintParamsWithTimeout(timeout time.Duration) *DeletePublicConstraintParams

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

func (*DeletePublicConstraintParams) SetContext

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

SetContext adds the context to the delete public constraint params

func (*DeletePublicConstraintParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete public constraint params

func (*DeletePublicConstraintParams) SetName

func (o *DeletePublicConstraintParams) SetName(name string)

SetName adds the name to the delete public constraint params

func (*DeletePublicConstraintParams) SetTimeout

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

SetTimeout adds the timeout to the delete public constraint params

func (*DeletePublicConstraintParams) WithContext

WithContext adds the context to the delete public constraint params

func (*DeletePublicConstraintParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete public constraint params

func (*DeletePublicConstraintParams) WithName

WithName adds the name to the delete public constraint params

func (*DeletePublicConstraintParams) WithTimeout

WithTimeout adds the timeout to the delete public constraint params

func (*DeletePublicConstraintParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeletePublicConstraintReader

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

DeletePublicConstraintReader is a Reader for the DeletePublicConstraint structure.

func (*DeletePublicConstraintReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetConstraintOK

type GetConstraintOK struct {
	Payload *models_cloudbreak.ConstraintTemplateResponse
}

GetConstraintOK handles this case with default header values.

successful operation

func NewGetConstraintOK

func NewGetConstraintOK() *GetConstraintOK

NewGetConstraintOK creates a GetConstraintOK with default headers values

func (*GetConstraintOK) Error

func (o *GetConstraintOK) Error() string

type GetConstraintParams

type GetConstraintParams struct {

	/*ID*/
	ID int64

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

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

func NewGetConstraintParams

func NewGetConstraintParams() *GetConstraintParams

NewGetConstraintParams creates a new GetConstraintParams object with the default values initialized.

func NewGetConstraintParamsWithContext

func NewGetConstraintParamsWithContext(ctx context.Context) *GetConstraintParams

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

func NewGetConstraintParamsWithHTTPClient

func NewGetConstraintParamsWithHTTPClient(client *http.Client) *GetConstraintParams

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

func NewGetConstraintParamsWithTimeout

func NewGetConstraintParamsWithTimeout(timeout time.Duration) *GetConstraintParams

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

func (*GetConstraintParams) SetContext

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

SetContext adds the context to the get constraint params

func (*GetConstraintParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get constraint params

func (*GetConstraintParams) SetID

func (o *GetConstraintParams) SetID(id int64)

SetID adds the id to the get constraint params

func (*GetConstraintParams) SetTimeout

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

SetTimeout adds the timeout to the get constraint params

func (*GetConstraintParams) WithContext

WithContext adds the context to the get constraint params

func (*GetConstraintParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get constraint params

func (*GetConstraintParams) WithID

WithID adds the id to the get constraint params

func (*GetConstraintParams) WithTimeout

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

WithTimeout adds the timeout to the get constraint params

func (*GetConstraintParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetConstraintReader

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

GetConstraintReader is a Reader for the GetConstraint structure.

func (*GetConstraintReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetPrivateConstraintOK

type GetPrivateConstraintOK struct {
	Payload *models_cloudbreak.ConstraintTemplateResponse
}

GetPrivateConstraintOK handles this case with default header values.

successful operation

func NewGetPrivateConstraintOK

func NewGetPrivateConstraintOK() *GetPrivateConstraintOK

NewGetPrivateConstraintOK creates a GetPrivateConstraintOK with default headers values

func (*GetPrivateConstraintOK) Error

func (o *GetPrivateConstraintOK) Error() string

type GetPrivateConstraintParams

type GetPrivateConstraintParams struct {

	/*Name*/
	Name string

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

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

func NewGetPrivateConstraintParams

func NewGetPrivateConstraintParams() *GetPrivateConstraintParams

NewGetPrivateConstraintParams creates a new GetPrivateConstraintParams object with the default values initialized.

func NewGetPrivateConstraintParamsWithContext

func NewGetPrivateConstraintParamsWithContext(ctx context.Context) *GetPrivateConstraintParams

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

func NewGetPrivateConstraintParamsWithHTTPClient

func NewGetPrivateConstraintParamsWithHTTPClient(client *http.Client) *GetPrivateConstraintParams

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

func NewGetPrivateConstraintParamsWithTimeout

func NewGetPrivateConstraintParamsWithTimeout(timeout time.Duration) *GetPrivateConstraintParams

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

func (*GetPrivateConstraintParams) SetContext

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

SetContext adds the context to the get private constraint params

func (*GetPrivateConstraintParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get private constraint params

func (*GetPrivateConstraintParams) SetName

func (o *GetPrivateConstraintParams) SetName(name string)

SetName adds the name to the get private constraint params

func (*GetPrivateConstraintParams) SetTimeout

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

SetTimeout adds the timeout to the get private constraint params

func (*GetPrivateConstraintParams) WithContext

WithContext adds the context to the get private constraint params

func (*GetPrivateConstraintParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get private constraint params

func (*GetPrivateConstraintParams) WithName

WithName adds the name to the get private constraint params

func (*GetPrivateConstraintParams) WithTimeout

WithTimeout adds the timeout to the get private constraint params

func (*GetPrivateConstraintParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetPrivateConstraintReader

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

GetPrivateConstraintReader is a Reader for the GetPrivateConstraint structure.

func (*GetPrivateConstraintReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetPrivatesConstraintOK

type GetPrivatesConstraintOK struct {
	Payload []*models_cloudbreak.ConstraintTemplateResponse
}

GetPrivatesConstraintOK handles this case with default header values.

successful operation

func NewGetPrivatesConstraintOK

func NewGetPrivatesConstraintOK() *GetPrivatesConstraintOK

NewGetPrivatesConstraintOK creates a GetPrivatesConstraintOK with default headers values

func (*GetPrivatesConstraintOK) Error

func (o *GetPrivatesConstraintOK) Error() string

type GetPrivatesConstraintParams

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

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

func NewGetPrivatesConstraintParams

func NewGetPrivatesConstraintParams() *GetPrivatesConstraintParams

NewGetPrivatesConstraintParams creates a new GetPrivatesConstraintParams object with the default values initialized.

func NewGetPrivatesConstraintParamsWithContext

func NewGetPrivatesConstraintParamsWithContext(ctx context.Context) *GetPrivatesConstraintParams

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

func NewGetPrivatesConstraintParamsWithHTTPClient

func NewGetPrivatesConstraintParamsWithHTTPClient(client *http.Client) *GetPrivatesConstraintParams

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

func NewGetPrivatesConstraintParamsWithTimeout

func NewGetPrivatesConstraintParamsWithTimeout(timeout time.Duration) *GetPrivatesConstraintParams

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

func (*GetPrivatesConstraintParams) SetContext

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

SetContext adds the context to the get privates constraint params

func (*GetPrivatesConstraintParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get privates constraint params

func (*GetPrivatesConstraintParams) SetTimeout

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

SetTimeout adds the timeout to the get privates constraint params

func (*GetPrivatesConstraintParams) WithContext

WithContext adds the context to the get privates constraint params

func (*GetPrivatesConstraintParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get privates constraint params

func (*GetPrivatesConstraintParams) WithTimeout

WithTimeout adds the timeout to the get privates constraint params

func (*GetPrivatesConstraintParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetPrivatesConstraintReader

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

GetPrivatesConstraintReader is a Reader for the GetPrivatesConstraint structure.

func (*GetPrivatesConstraintReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetPublicConstraintOK

type GetPublicConstraintOK struct {
	Payload *models_cloudbreak.ConstraintTemplateResponse
}

GetPublicConstraintOK handles this case with default header values.

successful operation

func NewGetPublicConstraintOK

func NewGetPublicConstraintOK() *GetPublicConstraintOK

NewGetPublicConstraintOK creates a GetPublicConstraintOK with default headers values

func (*GetPublicConstraintOK) Error

func (o *GetPublicConstraintOK) Error() string

type GetPublicConstraintParams

type GetPublicConstraintParams struct {

	/*Name*/
	Name string

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

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

func NewGetPublicConstraintParams

func NewGetPublicConstraintParams() *GetPublicConstraintParams

NewGetPublicConstraintParams creates a new GetPublicConstraintParams object with the default values initialized.

func NewGetPublicConstraintParamsWithContext

func NewGetPublicConstraintParamsWithContext(ctx context.Context) *GetPublicConstraintParams

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

func NewGetPublicConstraintParamsWithHTTPClient

func NewGetPublicConstraintParamsWithHTTPClient(client *http.Client) *GetPublicConstraintParams

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

func NewGetPublicConstraintParamsWithTimeout

func NewGetPublicConstraintParamsWithTimeout(timeout time.Duration) *GetPublicConstraintParams

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

func (*GetPublicConstraintParams) SetContext

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

SetContext adds the context to the get public constraint params

func (*GetPublicConstraintParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get public constraint params

func (*GetPublicConstraintParams) SetName

func (o *GetPublicConstraintParams) SetName(name string)

SetName adds the name to the get public constraint params

func (*GetPublicConstraintParams) SetTimeout

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

SetTimeout adds the timeout to the get public constraint params

func (*GetPublicConstraintParams) WithContext

WithContext adds the context to the get public constraint params

func (*GetPublicConstraintParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get public constraint params

func (*GetPublicConstraintParams) WithName

WithName adds the name to the get public constraint params

func (*GetPublicConstraintParams) WithTimeout

WithTimeout adds the timeout to the get public constraint params

func (*GetPublicConstraintParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetPublicConstraintReader

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

GetPublicConstraintReader is a Reader for the GetPublicConstraint structure.

func (*GetPublicConstraintReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetPublicsConstraintOK

type GetPublicsConstraintOK struct {
	Payload []*models_cloudbreak.ConstraintTemplateResponse
}

GetPublicsConstraintOK handles this case with default header values.

successful operation

func NewGetPublicsConstraintOK

func NewGetPublicsConstraintOK() *GetPublicsConstraintOK

NewGetPublicsConstraintOK creates a GetPublicsConstraintOK with default headers values

func (*GetPublicsConstraintOK) Error

func (o *GetPublicsConstraintOK) Error() string

type GetPublicsConstraintParams

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

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

func NewGetPublicsConstraintParams

func NewGetPublicsConstraintParams() *GetPublicsConstraintParams

NewGetPublicsConstraintParams creates a new GetPublicsConstraintParams object with the default values initialized.

func NewGetPublicsConstraintParamsWithContext

func NewGetPublicsConstraintParamsWithContext(ctx context.Context) *GetPublicsConstraintParams

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

func NewGetPublicsConstraintParamsWithHTTPClient

func NewGetPublicsConstraintParamsWithHTTPClient(client *http.Client) *GetPublicsConstraintParams

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

func NewGetPublicsConstraintParamsWithTimeout

func NewGetPublicsConstraintParamsWithTimeout(timeout time.Duration) *GetPublicsConstraintParams

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

func (*GetPublicsConstraintParams) SetContext

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

SetContext adds the context to the get publics constraint params

func (*GetPublicsConstraintParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get publics constraint params

func (*GetPublicsConstraintParams) SetTimeout

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

SetTimeout adds the timeout to the get publics constraint params

func (*GetPublicsConstraintParams) WithContext

WithContext adds the context to the get publics constraint params

func (*GetPublicsConstraintParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get publics constraint params

func (*GetPublicsConstraintParams) WithTimeout

WithTimeout adds the timeout to the get publics constraint params

func (*GetPublicsConstraintParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetPublicsConstraintReader

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

GetPublicsConstraintReader is a Reader for the GetPublicsConstraint structure.

func (*GetPublicsConstraintReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostPrivateConstraintOK

type PostPrivateConstraintOK struct {
	Payload *models_cloudbreak.ConstraintTemplateResponse
}

PostPrivateConstraintOK handles this case with default header values.

successful operation

func NewPostPrivateConstraintOK

func NewPostPrivateConstraintOK() *PostPrivateConstraintOK

NewPostPrivateConstraintOK creates a PostPrivateConstraintOK with default headers values

func (*PostPrivateConstraintOK) Error

func (o *PostPrivateConstraintOK) Error() string

type PostPrivateConstraintParams

type PostPrivateConstraintParams struct {

	/*Body*/
	Body *models_cloudbreak.ConstraintTemplateRequest

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

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

func NewPostPrivateConstraintParams

func NewPostPrivateConstraintParams() *PostPrivateConstraintParams

NewPostPrivateConstraintParams creates a new PostPrivateConstraintParams object with the default values initialized.

func NewPostPrivateConstraintParamsWithContext

func NewPostPrivateConstraintParamsWithContext(ctx context.Context) *PostPrivateConstraintParams

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

func NewPostPrivateConstraintParamsWithHTTPClient

func NewPostPrivateConstraintParamsWithHTTPClient(client *http.Client) *PostPrivateConstraintParams

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

func NewPostPrivateConstraintParamsWithTimeout

func NewPostPrivateConstraintParamsWithTimeout(timeout time.Duration) *PostPrivateConstraintParams

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

func (*PostPrivateConstraintParams) SetBody

SetBody adds the body to the post private constraint params

func (*PostPrivateConstraintParams) SetContext

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

SetContext adds the context to the post private constraint params

func (*PostPrivateConstraintParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post private constraint params

func (*PostPrivateConstraintParams) SetTimeout

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

SetTimeout adds the timeout to the post private constraint params

func (*PostPrivateConstraintParams) WithBody

WithBody adds the body to the post private constraint params

func (*PostPrivateConstraintParams) WithContext

WithContext adds the context to the post private constraint params

func (*PostPrivateConstraintParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post private constraint params

func (*PostPrivateConstraintParams) WithTimeout

WithTimeout adds the timeout to the post private constraint params

func (*PostPrivateConstraintParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostPrivateConstraintReader

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

PostPrivateConstraintReader is a Reader for the PostPrivateConstraint structure.

func (*PostPrivateConstraintReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostPublicConstraintOK

type PostPublicConstraintOK struct {
	Payload *models_cloudbreak.ConstraintTemplateResponse
}

PostPublicConstraintOK handles this case with default header values.

successful operation

func NewPostPublicConstraintOK

func NewPostPublicConstraintOK() *PostPublicConstraintOK

NewPostPublicConstraintOK creates a PostPublicConstraintOK with default headers values

func (*PostPublicConstraintOK) Error

func (o *PostPublicConstraintOK) Error() string

type PostPublicConstraintParams

type PostPublicConstraintParams struct {

	/*Body*/
	Body *models_cloudbreak.ConstraintTemplateRequest

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

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

func NewPostPublicConstraintParams

func NewPostPublicConstraintParams() *PostPublicConstraintParams

NewPostPublicConstraintParams creates a new PostPublicConstraintParams object with the default values initialized.

func NewPostPublicConstraintParamsWithContext

func NewPostPublicConstraintParamsWithContext(ctx context.Context) *PostPublicConstraintParams

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

func NewPostPublicConstraintParamsWithHTTPClient

func NewPostPublicConstraintParamsWithHTTPClient(client *http.Client) *PostPublicConstraintParams

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

func NewPostPublicConstraintParamsWithTimeout

func NewPostPublicConstraintParamsWithTimeout(timeout time.Duration) *PostPublicConstraintParams

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

func (*PostPublicConstraintParams) SetBody

SetBody adds the body to the post public constraint params

func (*PostPublicConstraintParams) SetContext

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

SetContext adds the context to the post public constraint params

func (*PostPublicConstraintParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post public constraint params

func (*PostPublicConstraintParams) SetTimeout

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

SetTimeout adds the timeout to the post public constraint params

func (*PostPublicConstraintParams) WithBody

WithBody adds the body to the post public constraint params

func (*PostPublicConstraintParams) WithContext

WithContext adds the context to the post public constraint params

func (*PostPublicConstraintParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post public constraint params

func (*PostPublicConstraintParams) WithTimeout

WithTimeout adds the timeout to the post public constraint params

func (*PostPublicConstraintParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostPublicConstraintReader

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

PostPublicConstraintReader is a Reader for the PostPublicConstraint structure.

func (*PostPublicConstraintReader) ReadResponse

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