fabric_compute

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: Apache-2.0 Imports: 11 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, opts ...ClientOption) (*GetFabricComputeOK, error)

GetFabricCompute gets fabric compute

Get fabric compute with a given id

func (*Client) GetFabricComputes

func (a *Client) GetFabricComputes(params *GetFabricComputesParams, opts ...ClientOption) (*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, opts ...ClientOption) (*UpdateFabricComputeOK, error)

UpdateFabricCompute updates fabric compute

Update fabric compute. Only tag updates are supported.

type ClientOption added in v0.2.20

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService added in v0.2.18

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

	GetFabricComputes(params *GetFabricComputesParams, opts ...ClientOption) (*GetFabricComputesOK, error)

	UpdateFabricCompute(params *UpdateFabricComputeParams, opts ...ClientOption) (*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 {
	Payload *models.ServiceErrorResponse
}
GetFabricComputeForbidden describes a response with status code 403, 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

func (*GetFabricComputeForbidden) GetPayload added in v0.2.20

type GetFabricComputeNotFound

type GetFabricComputeNotFound struct {
	Payload *models.Error
}
GetFabricComputeNotFound describes a response with status code 404, 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 describes a response with status code 200, 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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetFabricComputeParamsWithContext

func NewGetFabricComputeParamsWithContext(ctx context.Context) *GetFabricComputeParams

NewGetFabricComputeParamsWithContext creates a new GetFabricComputeParams object with 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 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 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) SetDefaults added in v0.2.20

func (o *GetFabricComputeParams) SetDefaults()

SetDefaults hydrates default values in the get fabric compute params (not the query body).

All values with no default are reset to their zero value.

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) WithDefaults added in v0.2.20

WithDefaults hydrates default values in the get fabric compute params (not the query body).

All values with no default are reset to their zero value.

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 {
	Payload *models.ServiceErrorResponse
}
GetFabricComputesForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetFabricComputesForbidden

func NewGetFabricComputesForbidden() *GetFabricComputesForbidden

NewGetFabricComputesForbidden creates a GetFabricComputesForbidden with default headers values

func (*GetFabricComputesForbidden) Error

func (*GetFabricComputesForbidden) GetPayload added in v0.2.20

type GetFabricComputesOK

type GetFabricComputesOK struct {
	Payload *models.FabricComputeResult
}
GetFabricComputesOK describes a response with status code 200, 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 {

	/* DollarCount.

	   Flag which when specified shows the total number of records. If the collection has a filter it shows the number of records matching the filter.
	*/
	DollarCount *bool

	/* DollarFilter.

	   Filter the results by a specified predicate expression. Operators: eq, ne, and, or.
	*/
	DollarFilter *string

	/* DollarSkip.

	   Number of records you want to skip.
	*/
	DollarSkip *int64

	/* DollarTop.

	   Number of records you want to get.
	*/
	DollarTop *int64

	/* 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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetFabricComputesParamsWithContext

func NewGetFabricComputesParamsWithContext(ctx context.Context) *GetFabricComputesParams

NewGetFabricComputesParamsWithContext creates a new GetFabricComputesParams object with 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 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 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) SetDefaults added in v0.2.20

func (o *GetFabricComputesParams) SetDefaults()

SetDefaults hydrates default values in the get fabric computes params (not the query body).

All values with no default are reset to their zero value.

func (*GetFabricComputesParams) SetDollarCount added in v0.2.20

func (o *GetFabricComputesParams) SetDollarCount(dollarCount *bool)

SetDollarCount adds the dollarCount 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) SetDollarSkip added in v0.2.20

func (o *GetFabricComputesParams) SetDollarSkip(dollarSkip *int64)

SetDollarSkip adds the dollarSkip to the get fabric computes params

func (*GetFabricComputesParams) SetDollarTop added in v0.2.20

func (o *GetFabricComputesParams) SetDollarTop(dollarTop *int64)

SetDollarTop adds the dollarTop 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) WithDefaults added in v0.2.20

WithDefaults hydrates default values in the get fabric computes params (not the query body).

All values with no default are reset to their zero value.

func (*GetFabricComputesParams) WithDollarCount added in v0.2.20

func (o *GetFabricComputesParams) WithDollarCount(dollarCount *bool) *GetFabricComputesParams

WithDollarCount adds the dollarCount 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) WithDollarSkip added in v0.2.20

func (o *GetFabricComputesParams) WithDollarSkip(dollarSkip *int64) *GetFabricComputesParams

WithDollarSkip adds the dollarSkip to the get fabric computes params

func (*GetFabricComputesParams) WithDollarTop added in v0.2.20

func (o *GetFabricComputesParams) WithDollarTop(dollarTop *int64) *GetFabricComputesParams

WithDollarTop adds the dollarTop 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 {
	Payload *models.ServiceErrorResponse
}
UpdateFabricComputeForbidden describes a response with status code 403, with default header values.

Forbidden

func NewUpdateFabricComputeForbidden

func NewUpdateFabricComputeForbidden() *UpdateFabricComputeForbidden

NewUpdateFabricComputeForbidden creates a UpdateFabricComputeForbidden with default headers values

func (*UpdateFabricComputeForbidden) Error

func (*UpdateFabricComputeForbidden) GetPayload added in v0.2.20

type UpdateFabricComputeNotFound

type UpdateFabricComputeNotFound struct {
	Payload *models.Error
}
UpdateFabricComputeNotFound describes a response with status code 404, 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 describes a response with status code 200, 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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewUpdateFabricComputeParamsWithContext

func NewUpdateFabricComputeParamsWithContext(ctx context.Context) *UpdateFabricComputeParams

NewUpdateFabricComputeParamsWithContext creates a new UpdateFabricComputeParams object with 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 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 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) SetDefaults added in v0.2.20

func (o *UpdateFabricComputeParams) SetDefaults()

SetDefaults hydrates default values in the update fabric compute params (not the query body).

All values with no default are reset to their zero value.

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) WithDefaults added in v0.2.20

WithDefaults hydrates default values in the update fabric compute params (not the query body).

All values with no default are reset to their zero value.

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