Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type InternalV1PowervsInstancesGetForbidden
- func (o *InternalV1PowervsInstancesGetForbidden) Code() int
- func (o *InternalV1PowervsInstancesGetForbidden) Error() string
- func (o *InternalV1PowervsInstancesGetForbidden) GetPayload() *models.Error
- func (o *InternalV1PowervsInstancesGetForbidden) IsClientError() bool
- func (o *InternalV1PowervsInstancesGetForbidden) IsCode(code int) bool
- func (o *InternalV1PowervsInstancesGetForbidden) IsRedirect() bool
- func (o *InternalV1PowervsInstancesGetForbidden) IsServerError() bool
- func (o *InternalV1PowervsInstancesGetForbidden) IsSuccess() bool
- func (o *InternalV1PowervsInstancesGetForbidden) String() string
- type InternalV1PowervsInstancesGetInternalServerError
- func (o *InternalV1PowervsInstancesGetInternalServerError) Code() int
- func (o *InternalV1PowervsInstancesGetInternalServerError) Error() string
- func (o *InternalV1PowervsInstancesGetInternalServerError) GetPayload() *models.Error
- func (o *InternalV1PowervsInstancesGetInternalServerError) IsClientError() bool
- func (o *InternalV1PowervsInstancesGetInternalServerError) IsCode(code int) bool
- func (o *InternalV1PowervsInstancesGetInternalServerError) IsRedirect() bool
- func (o *InternalV1PowervsInstancesGetInternalServerError) IsServerError() bool
- func (o *InternalV1PowervsInstancesGetInternalServerError) IsSuccess() bool
- func (o *InternalV1PowervsInstancesGetInternalServerError) String() string
- type InternalV1PowervsInstancesGetOK
- func (o *InternalV1PowervsInstancesGetOK) Code() int
- func (o *InternalV1PowervsInstancesGetOK) Error() string
- func (o *InternalV1PowervsInstancesGetOK) GetPayload() *models.PowerVSInstances
- func (o *InternalV1PowervsInstancesGetOK) IsClientError() bool
- func (o *InternalV1PowervsInstancesGetOK) IsCode(code int) bool
- func (o *InternalV1PowervsInstancesGetOK) IsRedirect() bool
- func (o *InternalV1PowervsInstancesGetOK) IsServerError() bool
- func (o *InternalV1PowervsInstancesGetOK) IsSuccess() bool
- func (o *InternalV1PowervsInstancesGetOK) String() string
- type InternalV1PowervsInstancesGetParams
- func NewInternalV1PowervsInstancesGetParams() *InternalV1PowervsInstancesGetParams
- func NewInternalV1PowervsInstancesGetParamsWithContext(ctx context.Context) *InternalV1PowervsInstancesGetParams
- func NewInternalV1PowervsInstancesGetParamsWithHTTPClient(client *http.Client) *InternalV1PowervsInstancesGetParams
- func NewInternalV1PowervsInstancesGetParamsWithTimeout(timeout time.Duration) *InternalV1PowervsInstancesGetParams
- func (o *InternalV1PowervsInstancesGetParams) SetContext(ctx context.Context)
- func (o *InternalV1PowervsInstancesGetParams) SetDefaults()
- func (o *InternalV1PowervsInstancesGetParams) SetHTTPClient(client *http.Client)
- func (o *InternalV1PowervsInstancesGetParams) SetPowervsLocation(powervsLocation *string)
- func (o *InternalV1PowervsInstancesGetParams) SetTimeout(timeout time.Duration)
- func (o *InternalV1PowervsInstancesGetParams) WithContext(ctx context.Context) *InternalV1PowervsInstancesGetParams
- func (o *InternalV1PowervsInstancesGetParams) WithDefaults() *InternalV1PowervsInstancesGetParams
- func (o *InternalV1PowervsInstancesGetParams) WithHTTPClient(client *http.Client) *InternalV1PowervsInstancesGetParams
- func (o *InternalV1PowervsInstancesGetParams) WithPowervsLocation(powervsLocation *string) *InternalV1PowervsInstancesGetParams
- func (o *InternalV1PowervsInstancesGetParams) WithTimeout(timeout time.Duration) *InternalV1PowervsInstancesGetParams
- func (o *InternalV1PowervsInstancesGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type InternalV1PowervsInstancesGetReader
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 is the option for 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.
type InternalV1PowervsInstancesGetForbidden ¶
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
func (o *InternalV1PowervsInstancesGetForbidden) Code() int
Code gets the status code for the internal v1 powervs instances get forbidden response
func (*InternalV1PowervsInstancesGetForbidden) Error ¶
func (o *InternalV1PowervsInstancesGetForbidden) Error() string
func (*InternalV1PowervsInstancesGetForbidden) GetPayload ¶
func (o *InternalV1PowervsInstancesGetForbidden) GetPayload() *models.Error
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
func (o *InternalV1PowervsInstancesGetForbidden) IsCode(code int) bool
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
func (o *InternalV1PowervsInstancesGetForbidden) IsRedirect() bool
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
func (o *InternalV1PowervsInstancesGetForbidden) IsSuccess() bool
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
func (o *InternalV1PowervsInstancesGetForbidden) String() string
type InternalV1PowervsInstancesGetInternalServerError ¶
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
func (o *InternalV1PowervsInstancesGetInternalServerError) Code() int
Code gets the status code for the internal v1 powervs instances get internal server error response
func (*InternalV1PowervsInstancesGetInternalServerError) Error ¶
func (o *InternalV1PowervsInstancesGetInternalServerError) Error() string
func (*InternalV1PowervsInstancesGetInternalServerError) GetPayload ¶
func (o *InternalV1PowervsInstancesGetInternalServerError) GetPayload() *models.Error
func (*InternalV1PowervsInstancesGetInternalServerError) IsClientError ¶ added in v1.2.2
func (o *InternalV1PowervsInstancesGetInternalServerError) IsClientError() bool
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
func (o *InternalV1PowervsInstancesGetInternalServerError) IsCode(code int) bool
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
func (o *InternalV1PowervsInstancesGetInternalServerError) IsRedirect() bool
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
func (o *InternalV1PowervsInstancesGetInternalServerError) IsServerError() bool
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
func (o *InternalV1PowervsInstancesGetInternalServerError) IsSuccess() bool
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
func (o *InternalV1PowervsInstancesGetInternalServerError) String() string
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
func (o *InternalV1PowervsInstancesGetOK) Code() int
Code gets the status code for the internal v1 powervs instances get o k response
func (*InternalV1PowervsInstancesGetOK) Error ¶
func (o *InternalV1PowervsInstancesGetOK) Error() string
func (*InternalV1PowervsInstancesGetOK) GetPayload ¶
func (o *InternalV1PowervsInstancesGetOK) GetPayload() *models.PowerVSInstances
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
func (o *InternalV1PowervsInstancesGetOK) String() string
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 ¶
func (o *InternalV1PowervsInstancesGetParams) SetContext(ctx context.Context)
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 ¶
func (o *InternalV1PowervsInstancesGetParams) WithContext(ctx context.Context) *InternalV1PowervsInstancesGetParams
WithContext adds the context to the internal v1 powervs instances get params
func (*InternalV1PowervsInstancesGetParams) WithDefaults ¶
func (o *InternalV1PowervsInstancesGetParams) WithDefaults() *InternalV1PowervsInstancesGetParams
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 ¶
func (o *InternalV1PowervsInstancesGetParams) WithHTTPClient(client *http.Client) *InternalV1PowervsInstancesGetParams
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 ¶
func (o *InternalV1PowervsInstancesGetParams) WithTimeout(timeout time.Duration) *InternalV1PowervsInstancesGetParams
WithTimeout adds the timeout to the internal v1 powervs instances get params
func (*InternalV1PowervsInstancesGetParams) WriteToRequest ¶
func (o *InternalV1PowervsInstancesGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.