internal_power_v_s_instances

package
v1.8.0-beta3 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 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 internal power v s instances API

func (*Client) InternalV1PowervsInstancesGet

func (a *Client) InternalV1PowervsInstancesGet(params *InternalV1PowervsInstancesGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*InternalV1PowervsInstancesGetOK, error)

InternalV1PowervsInstancesGet gets list of power v s cloud instances

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption may be used to customize the behavior of Client methods.

type ClientService

type ClientService interface {
	InternalV1PowervsInstancesGet(params *InternalV1PowervsInstancesGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*InternalV1PowervsInstancesGetOK, 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 internal power v s instances API client.

func NewClientWithBasicAuth added in v1.7.0

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new internal power v s instances API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken added in v1.7.0

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new internal power v s instances API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type InternalV1PowervsInstancesGetForbidden

type InternalV1PowervsInstancesGetForbidden struct {
	Payload *models.Error
}

InternalV1PowervsInstancesGetForbidden describes a response with status code 403, with default header values.

Forbidden

func NewInternalV1PowervsInstancesGetForbidden

func NewInternalV1PowervsInstancesGetForbidden() *InternalV1PowervsInstancesGetForbidden

NewInternalV1PowervsInstancesGetForbidden creates a InternalV1PowervsInstancesGetForbidden with default headers values

func (*InternalV1PowervsInstancesGetForbidden) Code added in v1.2.4

Code gets the status code for the internal v1 powervs instances get forbidden response

func (*InternalV1PowervsInstancesGetForbidden) Error

func (*InternalV1PowervsInstancesGetForbidden) GetPayload

func (*InternalV1PowervsInstancesGetForbidden) IsClientError added in v1.2.2

func (o *InternalV1PowervsInstancesGetForbidden) IsClientError() bool

IsClientError returns true when this internal v1 powervs instances get forbidden response has a 4xx status code

func (*InternalV1PowervsInstancesGetForbidden) IsCode added in v1.2.2

IsCode returns true when this internal v1 powervs instances get forbidden response a status code equal to that given

func (*InternalV1PowervsInstancesGetForbidden) IsRedirect added in v1.2.2

IsRedirect returns true when this internal v1 powervs instances get forbidden response has a 3xx status code

func (*InternalV1PowervsInstancesGetForbidden) IsServerError added in v1.2.2

func (o *InternalV1PowervsInstancesGetForbidden) IsServerError() bool

IsServerError returns true when this internal v1 powervs instances get forbidden response has a 5xx status code

func (*InternalV1PowervsInstancesGetForbidden) IsSuccess added in v1.2.2

IsSuccess returns true when this internal v1 powervs instances get forbidden response has a 2xx status code

func (*InternalV1PowervsInstancesGetForbidden) String added in v1.2.2

type InternalV1PowervsInstancesGetInternalServerError

type InternalV1PowervsInstancesGetInternalServerError struct {
	Payload *models.Error
}

InternalV1PowervsInstancesGetInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewInternalV1PowervsInstancesGetInternalServerError

func NewInternalV1PowervsInstancesGetInternalServerError() *InternalV1PowervsInstancesGetInternalServerError

NewInternalV1PowervsInstancesGetInternalServerError creates a InternalV1PowervsInstancesGetInternalServerError with default headers values

func (*InternalV1PowervsInstancesGetInternalServerError) Code added in v1.2.4

Code gets the status code for the internal v1 powervs instances get internal server error response

func (*InternalV1PowervsInstancesGetInternalServerError) Error

func (*InternalV1PowervsInstancesGetInternalServerError) GetPayload

func (*InternalV1PowervsInstancesGetInternalServerError) IsClientError added in v1.2.2

IsClientError returns true when this internal v1 powervs instances get internal server error response has a 4xx status code

func (*InternalV1PowervsInstancesGetInternalServerError) IsCode added in v1.2.2

IsCode returns true when this internal v1 powervs instances get internal server error response a status code equal to that given

func (*InternalV1PowervsInstancesGetInternalServerError) IsRedirect added in v1.2.2

IsRedirect returns true when this internal v1 powervs instances get internal server error response has a 3xx status code

func (*InternalV1PowervsInstancesGetInternalServerError) IsServerError added in v1.2.2

IsServerError returns true when this internal v1 powervs instances get internal server error response has a 5xx status code

func (*InternalV1PowervsInstancesGetInternalServerError) IsSuccess added in v1.2.2

IsSuccess returns true when this internal v1 powervs instances get internal server error response has a 2xx status code

func (*InternalV1PowervsInstancesGetInternalServerError) String added in v1.2.2

type InternalV1PowervsInstancesGetOK

type InternalV1PowervsInstancesGetOK struct {
	Payload *models.PowerVSInstances
}

InternalV1PowervsInstancesGetOK describes a response with status code 200, with default header values.

OK

func NewInternalV1PowervsInstancesGetOK

func NewInternalV1PowervsInstancesGetOK() *InternalV1PowervsInstancesGetOK

NewInternalV1PowervsInstancesGetOK creates a InternalV1PowervsInstancesGetOK with default headers values

func (*InternalV1PowervsInstancesGetOK) Code added in v1.2.4

Code gets the status code for the internal v1 powervs instances get o k response

func (*InternalV1PowervsInstancesGetOK) Error

func (*InternalV1PowervsInstancesGetOK) GetPayload

func (*InternalV1PowervsInstancesGetOK) IsClientError added in v1.2.2

func (o *InternalV1PowervsInstancesGetOK) IsClientError() bool

IsClientError returns true when this internal v1 powervs instances get o k response has a 4xx status code

func (*InternalV1PowervsInstancesGetOK) IsCode added in v1.2.2

func (o *InternalV1PowervsInstancesGetOK) IsCode(code int) bool

IsCode returns true when this internal v1 powervs instances get o k response a status code equal to that given

func (*InternalV1PowervsInstancesGetOK) IsRedirect added in v1.2.2

func (o *InternalV1PowervsInstancesGetOK) IsRedirect() bool

IsRedirect returns true when this internal v1 powervs instances get o k response has a 3xx status code

func (*InternalV1PowervsInstancesGetOK) IsServerError added in v1.2.2

func (o *InternalV1PowervsInstancesGetOK) IsServerError() bool

IsServerError returns true when this internal v1 powervs instances get o k response has a 5xx status code

func (*InternalV1PowervsInstancesGetOK) IsSuccess added in v1.2.2

func (o *InternalV1PowervsInstancesGetOK) IsSuccess() bool

IsSuccess returns true when this internal v1 powervs instances get o k response has a 2xx status code

func (*InternalV1PowervsInstancesGetOK) String added in v1.2.2

type InternalV1PowervsInstancesGetParams

type InternalV1PowervsInstancesGetParams struct {

	/* PowervsLocation.

	   The PowerVS Location
	*/
	PowervsLocation *string

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

InternalV1PowervsInstancesGetParams contains all the parameters to send to the API endpoint

for the internal v1 powervs instances get operation.

Typically these are written to a http.Request.

func NewInternalV1PowervsInstancesGetParams

func NewInternalV1PowervsInstancesGetParams() *InternalV1PowervsInstancesGetParams

NewInternalV1PowervsInstancesGetParams creates a new InternalV1PowervsInstancesGetParams 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 NewInternalV1PowervsInstancesGetParamsWithContext

func NewInternalV1PowervsInstancesGetParamsWithContext(ctx context.Context) *InternalV1PowervsInstancesGetParams

NewInternalV1PowervsInstancesGetParamsWithContext creates a new InternalV1PowervsInstancesGetParams object with the ability to set a context for a request.

func NewInternalV1PowervsInstancesGetParamsWithHTTPClient

func NewInternalV1PowervsInstancesGetParamsWithHTTPClient(client *http.Client) *InternalV1PowervsInstancesGetParams

NewInternalV1PowervsInstancesGetParamsWithHTTPClient creates a new InternalV1PowervsInstancesGetParams object with the ability to set a custom HTTPClient for a request.

func NewInternalV1PowervsInstancesGetParamsWithTimeout

func NewInternalV1PowervsInstancesGetParamsWithTimeout(timeout time.Duration) *InternalV1PowervsInstancesGetParams

NewInternalV1PowervsInstancesGetParamsWithTimeout creates a new InternalV1PowervsInstancesGetParams object with the ability to set a timeout on a request.

func (*InternalV1PowervsInstancesGetParams) SetContext

SetContext adds the context to the internal v1 powervs instances get params

func (*InternalV1PowervsInstancesGetParams) SetDefaults

func (o *InternalV1PowervsInstancesGetParams) SetDefaults()

SetDefaults hydrates default values in the internal v1 powervs instances get params (not the query body).

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

func (*InternalV1PowervsInstancesGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the internal v1 powervs instances get params

func (*InternalV1PowervsInstancesGetParams) SetPowervsLocation

func (o *InternalV1PowervsInstancesGetParams) SetPowervsLocation(powervsLocation *string)

SetPowervsLocation adds the powervsLocation to the internal v1 powervs instances get params

func (*InternalV1PowervsInstancesGetParams) SetTimeout

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

SetTimeout adds the timeout to the internal v1 powervs instances get params

func (*InternalV1PowervsInstancesGetParams) WithContext

WithContext adds the context to the internal v1 powervs instances get params

func (*InternalV1PowervsInstancesGetParams) WithDefaults

WithDefaults hydrates default values in the internal v1 powervs instances get params (not the query body).

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

func (*InternalV1PowervsInstancesGetParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the internal v1 powervs instances get params

func (*InternalV1PowervsInstancesGetParams) WithPowervsLocation

func (o *InternalV1PowervsInstancesGetParams) WithPowervsLocation(powervsLocation *string) *InternalV1PowervsInstancesGetParams

WithPowervsLocation adds the powervsLocation to the internal v1 powervs instances get params

func (*InternalV1PowervsInstancesGetParams) WithTimeout

WithTimeout adds the timeout to the internal v1 powervs instances get params

func (*InternalV1PowervsInstancesGetParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type InternalV1PowervsInstancesGetReader

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

InternalV1PowervsInstancesGetReader is a Reader for the InternalV1PowervsInstancesGet structure.

func (*InternalV1PowervsInstancesGetReader) ReadResponse

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