fabric_compute

package
v0.2.19 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: Apache-2.0 Imports: 10 Imported by: 1

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 fabric compute API

func (*Client) GetFabricCompute

func (a *Client) GetFabricCompute(params *GetFabricComputeParams) (*GetFabricComputeOK, error)

GetFabricCompute gets fabric compute

Get fabric compute with a given id

func (*Client) GetFabricComputes

func (a *Client) GetFabricComputes(params *GetFabricComputesParams) (*GetFabricComputesOK, error)

GetFabricComputes gets fabric computes

Get all fabric computes.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateFabricCompute

func (a *Client) UpdateFabricCompute(params *UpdateFabricComputeParams) (*UpdateFabricComputeOK, error)

UpdateFabricCompute updates fabric compute

Update fabric compute. Only tag updates are supported.

type ClientService added in v0.2.18

type ClientService interface {
	GetFabricCompute(params *GetFabricComputeParams) (*GetFabricComputeOK, error)

	GetFabricComputes(params *GetFabricComputesParams) (*GetFabricComputesOK, error)

	UpdateFabricCompute(params *UpdateFabricComputeParams) (*UpdateFabricComputeOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

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

New creates a new fabric compute API client.

type GetFabricComputeForbidden

type GetFabricComputeForbidden struct {
}

GetFabricComputeForbidden handles this case with default header values.

Forbidden

func NewGetFabricComputeForbidden

func NewGetFabricComputeForbidden() *GetFabricComputeForbidden

NewGetFabricComputeForbidden creates a GetFabricComputeForbidden with default headers values

func (*GetFabricComputeForbidden) Error

func (o *GetFabricComputeForbidden) Error() string

type GetFabricComputeNotFound

type GetFabricComputeNotFound struct {
	Payload *models.Error
}

GetFabricComputeNotFound handles this case with default header values.

Not Found

func NewGetFabricComputeNotFound

func NewGetFabricComputeNotFound() *GetFabricComputeNotFound

NewGetFabricComputeNotFound creates a GetFabricComputeNotFound with default headers values

func (*GetFabricComputeNotFound) Error

func (o *GetFabricComputeNotFound) Error() string

func (*GetFabricComputeNotFound) GetPayload added in v0.2.9

func (o *GetFabricComputeNotFound) GetPayload() *models.Error

type GetFabricComputeOK

type GetFabricComputeOK struct {
	Payload *models.FabricCompute
}

GetFabricComputeOK handles this case with default header values.

successful operation

func NewGetFabricComputeOK

func NewGetFabricComputeOK() *GetFabricComputeOK

NewGetFabricComputeOK creates a GetFabricComputeOK with default headers values

func (*GetFabricComputeOK) Error

func (o *GetFabricComputeOK) Error() string

func (*GetFabricComputeOK) GetPayload

func (o *GetFabricComputeOK) GetPayload() *models.FabricCompute

type GetFabricComputeParams

type GetFabricComputeParams struct {

	/*APIVersion
	  The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about

	*/
	APIVersion *string
	/*ID
	  The ID of the fabric compute.

	*/
	ID string

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

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

func NewGetFabricComputeParams

func NewGetFabricComputeParams() *GetFabricComputeParams

NewGetFabricComputeParams creates a new GetFabricComputeParams object with the default values initialized.

func NewGetFabricComputeParamsWithContext

func NewGetFabricComputeParamsWithContext(ctx context.Context) *GetFabricComputeParams

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

func NewGetFabricComputeParamsWithHTTPClient

func NewGetFabricComputeParamsWithHTTPClient(client *http.Client) *GetFabricComputeParams

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

func NewGetFabricComputeParamsWithTimeout

func NewGetFabricComputeParamsWithTimeout(timeout time.Duration) *GetFabricComputeParams

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

func (*GetFabricComputeParams) SetAPIVersion

func (o *GetFabricComputeParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the get fabric compute params

func (*GetFabricComputeParams) SetContext

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

SetContext adds the context to the get fabric compute params

func (*GetFabricComputeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get fabric compute params

func (*GetFabricComputeParams) SetID

func (o *GetFabricComputeParams) SetID(id string)

SetID adds the id to the get fabric compute params

func (*GetFabricComputeParams) SetTimeout

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

SetTimeout adds the timeout to the get fabric compute params

func (*GetFabricComputeParams) WithAPIVersion

func (o *GetFabricComputeParams) WithAPIVersion(aPIVersion *string) *GetFabricComputeParams

WithAPIVersion adds the aPIVersion to the get fabric compute params

func (*GetFabricComputeParams) WithContext

WithContext adds the context to the get fabric compute params

func (*GetFabricComputeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get fabric compute params

func (*GetFabricComputeParams) WithID

WithID adds the id to the get fabric compute params

func (*GetFabricComputeParams) WithTimeout

WithTimeout adds the timeout to the get fabric compute params

func (*GetFabricComputeParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetFabricComputeReader

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

GetFabricComputeReader is a Reader for the GetFabricCompute structure.

func (*GetFabricComputeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetFabricComputesForbidden

type GetFabricComputesForbidden struct {
}

GetFabricComputesForbidden handles this case with default header values.

Forbidden

func NewGetFabricComputesForbidden

func NewGetFabricComputesForbidden() *GetFabricComputesForbidden

NewGetFabricComputesForbidden creates a GetFabricComputesForbidden with default headers values

func (*GetFabricComputesForbidden) Error

type GetFabricComputesOK

type GetFabricComputesOK struct {
	Payload *models.FabricComputeResult
}

GetFabricComputesOK handles this case with default header values.

successful operation

func NewGetFabricComputesOK

func NewGetFabricComputesOK() *GetFabricComputesOK

NewGetFabricComputesOK creates a GetFabricComputesOK with default headers values

func (*GetFabricComputesOK) Error

func (o *GetFabricComputesOK) Error() string

func (*GetFabricComputesOK) GetPayload

type GetFabricComputesParams

type GetFabricComputesParams struct {

	/*DollarFilter
	  Add a filter to return limited results

	*/
	DollarFilter *string
	/*APIVersion
	  The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about

	*/
	APIVersion *string

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

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

func NewGetFabricComputesParams

func NewGetFabricComputesParams() *GetFabricComputesParams

NewGetFabricComputesParams creates a new GetFabricComputesParams object with the default values initialized.

func NewGetFabricComputesParamsWithContext

func NewGetFabricComputesParamsWithContext(ctx context.Context) *GetFabricComputesParams

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

func NewGetFabricComputesParamsWithHTTPClient

func NewGetFabricComputesParamsWithHTTPClient(client *http.Client) *GetFabricComputesParams

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

func NewGetFabricComputesParamsWithTimeout

func NewGetFabricComputesParamsWithTimeout(timeout time.Duration) *GetFabricComputesParams

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

func (*GetFabricComputesParams) SetAPIVersion

func (o *GetFabricComputesParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the get fabric computes params

func (*GetFabricComputesParams) SetContext

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

SetContext adds the context to the get fabric computes params

func (*GetFabricComputesParams) SetDollarFilter added in v0.2.13

func (o *GetFabricComputesParams) SetDollarFilter(dollarFilter *string)

SetDollarFilter adds the dollarFilter to the get fabric computes params

func (*GetFabricComputesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get fabric computes params

func (*GetFabricComputesParams) SetTimeout

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

SetTimeout adds the timeout to the get fabric computes params

func (*GetFabricComputesParams) WithAPIVersion

func (o *GetFabricComputesParams) WithAPIVersion(aPIVersion *string) *GetFabricComputesParams

WithAPIVersion adds the aPIVersion to the get fabric computes params

func (*GetFabricComputesParams) WithContext

WithContext adds the context to the get fabric computes params

func (*GetFabricComputesParams) WithDollarFilter added in v0.2.13

func (o *GetFabricComputesParams) WithDollarFilter(dollarFilter *string) *GetFabricComputesParams

WithDollarFilter adds the dollarFilter to the get fabric computes params

func (*GetFabricComputesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get fabric computes params

func (*GetFabricComputesParams) WithTimeout

WithTimeout adds the timeout to the get fabric computes params

func (*GetFabricComputesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetFabricComputesReader

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

GetFabricComputesReader is a Reader for the GetFabricComputes structure.

func (*GetFabricComputesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateFabricComputeForbidden

type UpdateFabricComputeForbidden struct {
}

UpdateFabricComputeForbidden handles this case with default header values.

Forbidden

func NewUpdateFabricComputeForbidden

func NewUpdateFabricComputeForbidden() *UpdateFabricComputeForbidden

NewUpdateFabricComputeForbidden creates a UpdateFabricComputeForbidden with default headers values

func (*UpdateFabricComputeForbidden) Error

type UpdateFabricComputeNotFound

type UpdateFabricComputeNotFound struct {
	Payload *models.Error
}

UpdateFabricComputeNotFound handles this case with default header values.

Not Found

func NewUpdateFabricComputeNotFound

func NewUpdateFabricComputeNotFound() *UpdateFabricComputeNotFound

NewUpdateFabricComputeNotFound creates a UpdateFabricComputeNotFound with default headers values

func (*UpdateFabricComputeNotFound) Error

func (*UpdateFabricComputeNotFound) GetPayload added in v0.2.9

func (o *UpdateFabricComputeNotFound) GetPayload() *models.Error

type UpdateFabricComputeOK

type UpdateFabricComputeOK struct {
	Payload *models.FabricCompute
}

UpdateFabricComputeOK handles this case with default header values.

successful operation

func NewUpdateFabricComputeOK

func NewUpdateFabricComputeOK() *UpdateFabricComputeOK

NewUpdateFabricComputeOK creates a UpdateFabricComputeOK with default headers values

func (*UpdateFabricComputeOK) Error

func (o *UpdateFabricComputeOK) Error() string

func (*UpdateFabricComputeOK) GetPayload

func (o *UpdateFabricComputeOK) GetPayload() *models.FabricCompute

type UpdateFabricComputeParams

type UpdateFabricComputeParams struct {

	/*APIVersion
	  The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about

	*/
	APIVersion *string
	/*Body
	  Fabric Compute Specification

	*/
	Body *models.FabricComputeSpecification
	/*ID
	  The ID of the Fabric Compute.

	*/
	ID string

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

UpdateFabricComputeParams contains all the parameters to send to the API endpoint for the update fabric compute operation typically these are written to a http.Request

func NewUpdateFabricComputeParams

func NewUpdateFabricComputeParams() *UpdateFabricComputeParams

NewUpdateFabricComputeParams creates a new UpdateFabricComputeParams object with the default values initialized.

func NewUpdateFabricComputeParamsWithContext

func NewUpdateFabricComputeParamsWithContext(ctx context.Context) *UpdateFabricComputeParams

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

func NewUpdateFabricComputeParamsWithHTTPClient

func NewUpdateFabricComputeParamsWithHTTPClient(client *http.Client) *UpdateFabricComputeParams

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

func NewUpdateFabricComputeParamsWithTimeout

func NewUpdateFabricComputeParamsWithTimeout(timeout time.Duration) *UpdateFabricComputeParams

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

func (*UpdateFabricComputeParams) SetAPIVersion

func (o *UpdateFabricComputeParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the update fabric compute params

func (*UpdateFabricComputeParams) SetBody

SetBody adds the body to the update fabric compute params

func (*UpdateFabricComputeParams) SetContext

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

SetContext adds the context to the update fabric compute params

func (*UpdateFabricComputeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update fabric compute params

func (*UpdateFabricComputeParams) SetID

func (o *UpdateFabricComputeParams) SetID(id string)

SetID adds the id to the update fabric compute params

func (*UpdateFabricComputeParams) SetTimeout

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

SetTimeout adds the timeout to the update fabric compute params

func (*UpdateFabricComputeParams) WithAPIVersion

func (o *UpdateFabricComputeParams) WithAPIVersion(aPIVersion *string) *UpdateFabricComputeParams

WithAPIVersion adds the aPIVersion to the update fabric compute params

func (*UpdateFabricComputeParams) WithBody

WithBody adds the body to the update fabric compute params

func (*UpdateFabricComputeParams) WithContext

WithContext adds the context to the update fabric compute params

func (*UpdateFabricComputeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update fabric compute params

func (*UpdateFabricComputeParams) WithID

WithID adds the id to the update fabric compute params

func (*UpdateFabricComputeParams) WithTimeout

WithTimeout adds the timeout to the update fabric compute params

func (*UpdateFabricComputeParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateFabricComputeReader

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

UpdateFabricComputeReader is a Reader for the UpdateFabricCompute structure.

func (*UpdateFabricComputeReader) ReadResponse

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