Documentation ¶
Index ¶
- type Client
- func (a *Client) GetFabricCompute(params *GetFabricComputeParams) (*GetFabricComputeOK, error)
- func (a *Client) GetFabricComputes(params *GetFabricComputesParams) (*GetFabricComputesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateFabricCompute(params *UpdateFabricComputeParams) (*UpdateFabricComputeOK, error)
- type ClientService
- type GetFabricComputeForbidden
- type GetFabricComputeNotFound
- type GetFabricComputeOK
- type GetFabricComputeParams
- func NewGetFabricComputeParams() *GetFabricComputeParams
- func NewGetFabricComputeParamsWithContext(ctx context.Context) *GetFabricComputeParams
- func NewGetFabricComputeParamsWithHTTPClient(client *http.Client) *GetFabricComputeParams
- func NewGetFabricComputeParamsWithTimeout(timeout time.Duration) *GetFabricComputeParams
- func (o *GetFabricComputeParams) SetAPIVersion(aPIVersion *string)
- func (o *GetFabricComputeParams) SetContext(ctx context.Context)
- func (o *GetFabricComputeParams) SetHTTPClient(client *http.Client)
- func (o *GetFabricComputeParams) SetID(id string)
- func (o *GetFabricComputeParams) SetTimeout(timeout time.Duration)
- func (o *GetFabricComputeParams) WithAPIVersion(aPIVersion *string) *GetFabricComputeParams
- func (o *GetFabricComputeParams) WithContext(ctx context.Context) *GetFabricComputeParams
- func (o *GetFabricComputeParams) WithHTTPClient(client *http.Client) *GetFabricComputeParams
- func (o *GetFabricComputeParams) WithID(id string) *GetFabricComputeParams
- func (o *GetFabricComputeParams) WithTimeout(timeout time.Duration) *GetFabricComputeParams
- func (o *GetFabricComputeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetFabricComputeReader
- type GetFabricComputesForbidden
- type GetFabricComputesOK
- type GetFabricComputesParams
- func NewGetFabricComputesParams() *GetFabricComputesParams
- func NewGetFabricComputesParamsWithContext(ctx context.Context) *GetFabricComputesParams
- func NewGetFabricComputesParamsWithHTTPClient(client *http.Client) *GetFabricComputesParams
- func NewGetFabricComputesParamsWithTimeout(timeout time.Duration) *GetFabricComputesParams
- func (o *GetFabricComputesParams) SetAPIVersion(aPIVersion *string)
- func (o *GetFabricComputesParams) SetContext(ctx context.Context)
- func (o *GetFabricComputesParams) SetDollarFilter(dollarFilter *string)
- func (o *GetFabricComputesParams) SetHTTPClient(client *http.Client)
- func (o *GetFabricComputesParams) SetTimeout(timeout time.Duration)
- func (o *GetFabricComputesParams) WithAPIVersion(aPIVersion *string) *GetFabricComputesParams
- func (o *GetFabricComputesParams) WithContext(ctx context.Context) *GetFabricComputesParams
- func (o *GetFabricComputesParams) WithDollarFilter(dollarFilter *string) *GetFabricComputesParams
- func (o *GetFabricComputesParams) WithHTTPClient(client *http.Client) *GetFabricComputesParams
- func (o *GetFabricComputesParams) WithTimeout(timeout time.Duration) *GetFabricComputesParams
- func (o *GetFabricComputesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetFabricComputesReader
- type UpdateFabricComputeForbidden
- type UpdateFabricComputeNotFound
- type UpdateFabricComputeOK
- type UpdateFabricComputeParams
- func NewUpdateFabricComputeParams() *UpdateFabricComputeParams
- func NewUpdateFabricComputeParamsWithContext(ctx context.Context) *UpdateFabricComputeParams
- func NewUpdateFabricComputeParamsWithHTTPClient(client *http.Client) *UpdateFabricComputeParams
- func NewUpdateFabricComputeParamsWithTimeout(timeout time.Duration) *UpdateFabricComputeParams
- func (o *UpdateFabricComputeParams) SetAPIVersion(aPIVersion *string)
- func (o *UpdateFabricComputeParams) SetBody(body *models.FabricComputeSpecification)
- func (o *UpdateFabricComputeParams) SetContext(ctx context.Context)
- func (o *UpdateFabricComputeParams) SetHTTPClient(client *http.Client)
- func (o *UpdateFabricComputeParams) SetID(id string)
- func (o *UpdateFabricComputeParams) SetTimeout(timeout time.Duration)
- func (o *UpdateFabricComputeParams) WithAPIVersion(aPIVersion *string) *UpdateFabricComputeParams
- func (o *UpdateFabricComputeParams) WithBody(body *models.FabricComputeSpecification) *UpdateFabricComputeParams
- func (o *UpdateFabricComputeParams) WithContext(ctx context.Context) *UpdateFabricComputeParams
- func (o *UpdateFabricComputeParams) WithHTTPClient(client *http.Client) *UpdateFabricComputeParams
- func (o *UpdateFabricComputeParams) WithID(id string) *UpdateFabricComputeParams
- func (o *UpdateFabricComputeParams) WithTimeout(timeout time.Duration) *UpdateFabricComputeParams
- func (o *UpdateFabricComputeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateFabricComputeReader
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 ¶
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 ¶
func (o *GetFabricComputeParams) WithContext(ctx context.Context) *GetFabricComputeParams
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 ¶
func (o *GetFabricComputeParams) WithID(id string) *GetFabricComputeParams
WithID adds the id to the get fabric compute params
func (*GetFabricComputeParams) WithTimeout ¶
func (o *GetFabricComputeParams) WithTimeout(timeout time.Duration) *GetFabricComputeParams
WithTimeout adds the timeout to the get fabric compute params
func (*GetFabricComputeParams) WriteToRequest ¶
func (o *GetFabricComputeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *GetFabricComputesForbidden) Error() string
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 ¶
func (o *GetFabricComputesOK) GetPayload() *models.FabricComputeResult
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 ¶
func (o *GetFabricComputesParams) WithContext(ctx context.Context) *GetFabricComputesParams
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 ¶
func (o *GetFabricComputesParams) WithTimeout(timeout time.Duration) *GetFabricComputesParams
WithTimeout adds the timeout to the get fabric computes params
func (*GetFabricComputesParams) WriteToRequest ¶
func (o *GetFabricComputesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *UpdateFabricComputeForbidden) Error() string
type UpdateFabricComputeNotFound ¶
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 (o *UpdateFabricComputeNotFound) Error() string
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 ¶
func (o *UpdateFabricComputeParams) SetBody(body *models.FabricComputeSpecification)
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 ¶
func (o *UpdateFabricComputeParams) WithBody(body *models.FabricComputeSpecification) *UpdateFabricComputeParams
WithBody adds the body to the update fabric compute params
func (*UpdateFabricComputeParams) WithContext ¶
func (o *UpdateFabricComputeParams) WithContext(ctx context.Context) *UpdateFabricComputeParams
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 ¶
func (o *UpdateFabricComputeParams) WithID(id string) *UpdateFabricComputeParams
WithID adds the id to the update fabric compute params
func (*UpdateFabricComputeParams) WithTimeout ¶
func (o *UpdateFabricComputeParams) WithTimeout(timeout time.Duration) *UpdateFabricComputeParams
WithTimeout adds the timeout to the update fabric compute params
func (*UpdateFabricComputeParams) WriteToRequest ¶
func (o *UpdateFabricComputeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.