2020-10-13 11:17:37 -04:00
/ *
* 3 DS OUTSCALE API
*
* Welcome to the 3 DS OUTSCALE ' s API documentation . < br / > < br / > The 3 DS OUTSCALE API enables you to manage your resources in the 3 DS OUTSCALE Cloud . This documentation describes the different actions available along with code examples . < br / > < br / > Note that the 3 DS OUTSCALE Cloud is compatible with Amazon Web Services ( AWS ) APIs , but some resources have different names in AWS than in the 3 DS OUTSCALE API . You can find a list of the differences [ here ] ( https : //wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).<br /><br /> You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface.
*
2021-04-20 11:18:45 -04:00
* API version : 1.8
2020-10-13 11:17:37 -04:00
* Contact : support @ outscale . com
* Generated by : OpenAPI Generator ( https : //openapi-generator.tech)
* /
package osc
import (
_context "context"
2021-04-20 11:18:45 -04:00
"github.com/antihax/optional"
2020-10-13 11:17:37 -04:00
_ioutil "io/ioutil"
_nethttp "net/http"
_neturl "net/url"
)
// Linger please
var (
_ _context . Context
)
// AccessKeyApiService AccessKeyApi service
type AccessKeyApiService service
// CreateAccessKeyOpts Optional parameters for the method 'CreateAccessKey'
type CreateAccessKeyOpts struct {
2021-04-20 11:18:45 -04:00
CreateAccessKeyRequest optional . Interface
2020-10-13 11:17:37 -04:00
}
/ *
CreateAccessKey Method for CreateAccessKey
* @ param ctx _context . Context - for authentication , logging , cancellation , deadlines , tracing , etc . Passed from http . Request or context . Background ( ) .
* @ param optional nil or * CreateAccessKeyOpts - Optional Parameters :
2021-04-20 11:18:45 -04:00
* @ param "CreateAccessKeyRequest" ( optional . Interface of CreateAccessKeyRequest ) -
2020-10-13 11:17:37 -04:00
@ return CreateAccessKeyResponse
* /
func ( a * AccessKeyApiService ) CreateAccessKey ( ctx _context . Context , localVarOptionals * CreateAccessKeyOpts ) ( CreateAccessKeyResponse , * _nethttp . Response , error ) {
var (
localVarHTTPMethod = _nethttp . MethodPost
localVarPostBody interface { }
localVarFormFileName string
localVarFileName string
localVarFileBytes [ ] byte
localVarReturnValue CreateAccessKeyResponse
)
// create path and map variables
localVarPath := a . client . cfg . BasePath + "/CreateAccessKey"
localVarHeaderParams := make ( map [ string ] string )
localVarQueryParams := _neturl . Values { }
localVarFormParams := _neturl . Values { }
// to determine the Content-Type header
localVarHTTPContentTypes := [ ] string { "application/json" }
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType ( localVarHTTPContentTypes )
if localVarHTTPContentType != "" {
localVarHeaderParams [ "Content-Type" ] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := [ ] string { "application/json" }
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept ( localVarHTTPHeaderAccepts )
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams [ "Accept" ] = localVarHTTPHeaderAccept
}
// body params
if localVarOptionals != nil && localVarOptionals . CreateAccessKeyRequest . IsSet ( ) {
localVarOptionalCreateAccessKeyRequest , localVarOptionalCreateAccessKeyRequestok := localVarOptionals . CreateAccessKeyRequest . Value ( ) . ( CreateAccessKeyRequest )
if ! localVarOptionalCreateAccessKeyRequestok {
return localVarReturnValue , nil , reportError ( "createAccessKeyRequest should be CreateAccessKeyRequest" )
}
localVarPostBody = & localVarOptionalCreateAccessKeyRequest
}
if ctx != nil {
// API Key Authentication
if auth , ok := ctx . Value ( ContextAPIKey ) . ( APIKey ) ; ok {
var key string
if auth . Prefix != "" {
key = auth . Prefix + " " + auth . Key
} else {
key = auth . Key
}
localVarHeaderParams [ "Authorization" ] = key
}
}
r , err := a . client . prepareRequest ( ctx , localVarPath , localVarHTTPMethod , localVarPostBody , localVarHeaderParams , localVarQueryParams , localVarFormParams , localVarFormFileName , localVarFileName , localVarFileBytes )
if err != nil {
return localVarReturnValue , nil , err
}
localVarHTTPResponse , err := a . client . callAPI ( r )
if err != nil || localVarHTTPResponse == nil {
return localVarReturnValue , localVarHTTPResponse , err
}
localVarBody , err := _ioutil . ReadAll ( localVarHTTPResponse . Body )
localVarHTTPResponse . Body . Close ( )
if err != nil {
return localVarReturnValue , localVarHTTPResponse , err
}
if localVarHTTPResponse . StatusCode >= 300 {
newErr := GenericOpenAPIError {
body : localVarBody ,
error : localVarHTTPResponse . Status ,
}
if localVarHTTPResponse . StatusCode == 200 {
var v CreateAccessKeyResponse
err = a . client . decode ( & v , localVarBody , localVarHTTPResponse . Header . Get ( "Content-Type" ) )
if err != nil {
newErr . error = err . Error ( )
return localVarReturnValue , localVarHTTPResponse , newErr
}
newErr . model = v
}
return localVarReturnValue , localVarHTTPResponse , newErr
}
err = a . client . decode ( & localVarReturnValue , localVarBody , localVarHTTPResponse . Header . Get ( "Content-Type" ) )
if err != nil {
newErr := GenericOpenAPIError {
body : localVarBody ,
error : err . Error ( ) ,
}
return localVarReturnValue , localVarHTTPResponse , newErr
}
return localVarReturnValue , localVarHTTPResponse , nil
}
// DeleteAccessKeyOpts Optional parameters for the method 'DeleteAccessKey'
type DeleteAccessKeyOpts struct {
2021-04-20 11:18:45 -04:00
DeleteAccessKeyRequest optional . Interface
2020-10-13 11:17:37 -04:00
}
/ *
DeleteAccessKey Method for DeleteAccessKey
* @ param ctx _context . Context - for authentication , logging , cancellation , deadlines , tracing , etc . Passed from http . Request or context . Background ( ) .
* @ param optional nil or * DeleteAccessKeyOpts - Optional Parameters :
2021-04-20 11:18:45 -04:00
* @ param "DeleteAccessKeyRequest" ( optional . Interface of DeleteAccessKeyRequest ) -
2020-10-13 11:17:37 -04:00
@ return DeleteAccessKeyResponse
* /
func ( a * AccessKeyApiService ) DeleteAccessKey ( ctx _context . Context , localVarOptionals * DeleteAccessKeyOpts ) ( DeleteAccessKeyResponse , * _nethttp . Response , error ) {
var (
localVarHTTPMethod = _nethttp . MethodPost
localVarPostBody interface { }
localVarFormFileName string
localVarFileName string
localVarFileBytes [ ] byte
localVarReturnValue DeleteAccessKeyResponse
)
// create path and map variables
localVarPath := a . client . cfg . BasePath + "/DeleteAccessKey"
localVarHeaderParams := make ( map [ string ] string )
localVarQueryParams := _neturl . Values { }
localVarFormParams := _neturl . Values { }
// to determine the Content-Type header
localVarHTTPContentTypes := [ ] string { "application/json" }
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType ( localVarHTTPContentTypes )
if localVarHTTPContentType != "" {
localVarHeaderParams [ "Content-Type" ] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := [ ] string { "application/json" }
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept ( localVarHTTPHeaderAccepts )
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams [ "Accept" ] = localVarHTTPHeaderAccept
}
// body params
if localVarOptionals != nil && localVarOptionals . DeleteAccessKeyRequest . IsSet ( ) {
localVarOptionalDeleteAccessKeyRequest , localVarOptionalDeleteAccessKeyRequestok := localVarOptionals . DeleteAccessKeyRequest . Value ( ) . ( DeleteAccessKeyRequest )
if ! localVarOptionalDeleteAccessKeyRequestok {
return localVarReturnValue , nil , reportError ( "deleteAccessKeyRequest should be DeleteAccessKeyRequest" )
}
localVarPostBody = & localVarOptionalDeleteAccessKeyRequest
}
if ctx != nil {
// API Key Authentication
if auth , ok := ctx . Value ( ContextAPIKey ) . ( APIKey ) ; ok {
var key string
if auth . Prefix != "" {
key = auth . Prefix + " " + auth . Key
} else {
key = auth . Key
}
localVarHeaderParams [ "Authorization" ] = key
}
}
r , err := a . client . prepareRequest ( ctx , localVarPath , localVarHTTPMethod , localVarPostBody , localVarHeaderParams , localVarQueryParams , localVarFormParams , localVarFormFileName , localVarFileName , localVarFileBytes )
if err != nil {
return localVarReturnValue , nil , err
}
localVarHTTPResponse , err := a . client . callAPI ( r )
if err != nil || localVarHTTPResponse == nil {
return localVarReturnValue , localVarHTTPResponse , err
}
localVarBody , err := _ioutil . ReadAll ( localVarHTTPResponse . Body )
localVarHTTPResponse . Body . Close ( )
if err != nil {
return localVarReturnValue , localVarHTTPResponse , err
}
if localVarHTTPResponse . StatusCode >= 300 {
newErr := GenericOpenAPIError {
body : localVarBody ,
error : localVarHTTPResponse . Status ,
}
if localVarHTTPResponse . StatusCode == 200 {
var v DeleteAccessKeyResponse
err = a . client . decode ( & v , localVarBody , localVarHTTPResponse . Header . Get ( "Content-Type" ) )
if err != nil {
newErr . error = err . Error ( )
return localVarReturnValue , localVarHTTPResponse , newErr
}
newErr . model = v
}
return localVarReturnValue , localVarHTTPResponse , newErr
}
err = a . client . decode ( & localVarReturnValue , localVarBody , localVarHTTPResponse . Header . Get ( "Content-Type" ) )
if err != nil {
newErr := GenericOpenAPIError {
body : localVarBody ,
error : err . Error ( ) ,
}
return localVarReturnValue , localVarHTTPResponse , newErr
}
return localVarReturnValue , localVarHTTPResponse , nil
}
// ReadAccessKeysOpts Optional parameters for the method 'ReadAccessKeys'
type ReadAccessKeysOpts struct {
2021-04-20 11:18:45 -04:00
ReadAccessKeysRequest optional . Interface
2020-10-13 11:17:37 -04:00
}
/ *
ReadAccessKeys Method for ReadAccessKeys
* @ param ctx _context . Context - for authentication , logging , cancellation , deadlines , tracing , etc . Passed from http . Request or context . Background ( ) .
* @ param optional nil or * ReadAccessKeysOpts - Optional Parameters :
2021-04-20 11:18:45 -04:00
* @ param "ReadAccessKeysRequest" ( optional . Interface of ReadAccessKeysRequest ) -
2020-10-13 11:17:37 -04:00
@ return ReadAccessKeysResponse
* /
func ( a * AccessKeyApiService ) ReadAccessKeys ( ctx _context . Context , localVarOptionals * ReadAccessKeysOpts ) ( ReadAccessKeysResponse , * _nethttp . Response , error ) {
var (
localVarHTTPMethod = _nethttp . MethodPost
localVarPostBody interface { }
localVarFormFileName string
localVarFileName string
localVarFileBytes [ ] byte
localVarReturnValue ReadAccessKeysResponse
)
// create path and map variables
localVarPath := a . client . cfg . BasePath + "/ReadAccessKeys"
localVarHeaderParams := make ( map [ string ] string )
localVarQueryParams := _neturl . Values { }
localVarFormParams := _neturl . Values { }
// to determine the Content-Type header
localVarHTTPContentTypes := [ ] string { "application/json" }
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType ( localVarHTTPContentTypes )
if localVarHTTPContentType != "" {
localVarHeaderParams [ "Content-Type" ] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := [ ] string { "application/json" }
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept ( localVarHTTPHeaderAccepts )
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams [ "Accept" ] = localVarHTTPHeaderAccept
}
// body params
if localVarOptionals != nil && localVarOptionals . ReadAccessKeysRequest . IsSet ( ) {
localVarOptionalReadAccessKeysRequest , localVarOptionalReadAccessKeysRequestok := localVarOptionals . ReadAccessKeysRequest . Value ( ) . ( ReadAccessKeysRequest )
if ! localVarOptionalReadAccessKeysRequestok {
return localVarReturnValue , nil , reportError ( "readAccessKeysRequest should be ReadAccessKeysRequest" )
}
localVarPostBody = & localVarOptionalReadAccessKeysRequest
}
if ctx != nil {
// API Key Authentication
if auth , ok := ctx . Value ( ContextAPIKey ) . ( APIKey ) ; ok {
var key string
if auth . Prefix != "" {
key = auth . Prefix + " " + auth . Key
} else {
key = auth . Key
}
localVarHeaderParams [ "Authorization" ] = key
}
}
r , err := a . client . prepareRequest ( ctx , localVarPath , localVarHTTPMethod , localVarPostBody , localVarHeaderParams , localVarQueryParams , localVarFormParams , localVarFormFileName , localVarFileName , localVarFileBytes )
if err != nil {
return localVarReturnValue , nil , err
}
localVarHTTPResponse , err := a . client . callAPI ( r )
if err != nil || localVarHTTPResponse == nil {
return localVarReturnValue , localVarHTTPResponse , err
}
localVarBody , err := _ioutil . ReadAll ( localVarHTTPResponse . Body )
localVarHTTPResponse . Body . Close ( )
if err != nil {
return localVarReturnValue , localVarHTTPResponse , err
}
if localVarHTTPResponse . StatusCode >= 300 {
newErr := GenericOpenAPIError {
body : localVarBody ,
error : localVarHTTPResponse . Status ,
}
if localVarHTTPResponse . StatusCode == 200 {
var v ReadAccessKeysResponse
err = a . client . decode ( & v , localVarBody , localVarHTTPResponse . Header . Get ( "Content-Type" ) )
if err != nil {
newErr . error = err . Error ( )
return localVarReturnValue , localVarHTTPResponse , newErr
}
newErr . model = v
}
return localVarReturnValue , localVarHTTPResponse , newErr
}
err = a . client . decode ( & localVarReturnValue , localVarBody , localVarHTTPResponse . Header . Get ( "Content-Type" ) )
if err != nil {
newErr := GenericOpenAPIError {
body : localVarBody ,
error : err . Error ( ) ,
}
return localVarReturnValue , localVarHTTPResponse , newErr
}
return localVarReturnValue , localVarHTTPResponse , nil
}
// ReadSecretAccessKeyOpts Optional parameters for the method 'ReadSecretAccessKey'
type ReadSecretAccessKeyOpts struct {
2021-04-20 11:18:45 -04:00
ReadSecretAccessKeyRequest optional . Interface
2020-10-13 11:17:37 -04:00
}
/ *
ReadSecretAccessKey Method for ReadSecretAccessKey
* @ param ctx _context . Context - for authentication , logging , cancellation , deadlines , tracing , etc . Passed from http . Request or context . Background ( ) .
* @ param optional nil or * ReadSecretAccessKeyOpts - Optional Parameters :
2021-04-20 11:18:45 -04:00
* @ param "ReadSecretAccessKeyRequest" ( optional . Interface of ReadSecretAccessKeyRequest ) -
2020-10-13 11:17:37 -04:00
@ return ReadSecretAccessKeyResponse
* /
func ( a * AccessKeyApiService ) ReadSecretAccessKey ( ctx _context . Context , localVarOptionals * ReadSecretAccessKeyOpts ) ( ReadSecretAccessKeyResponse , * _nethttp . Response , error ) {
var (
localVarHTTPMethod = _nethttp . MethodPost
localVarPostBody interface { }
localVarFormFileName string
localVarFileName string
localVarFileBytes [ ] byte
localVarReturnValue ReadSecretAccessKeyResponse
)
// create path and map variables
localVarPath := a . client . cfg . BasePath + "/ReadSecretAccessKey"
localVarHeaderParams := make ( map [ string ] string )
localVarQueryParams := _neturl . Values { }
localVarFormParams := _neturl . Values { }
// to determine the Content-Type header
localVarHTTPContentTypes := [ ] string { "application/json" }
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType ( localVarHTTPContentTypes )
if localVarHTTPContentType != "" {
localVarHeaderParams [ "Content-Type" ] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := [ ] string { "application/json" }
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept ( localVarHTTPHeaderAccepts )
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams [ "Accept" ] = localVarHTTPHeaderAccept
}
// body params
if localVarOptionals != nil && localVarOptionals . ReadSecretAccessKeyRequest . IsSet ( ) {
localVarOptionalReadSecretAccessKeyRequest , localVarOptionalReadSecretAccessKeyRequestok := localVarOptionals . ReadSecretAccessKeyRequest . Value ( ) . ( ReadSecretAccessKeyRequest )
if ! localVarOptionalReadSecretAccessKeyRequestok {
return localVarReturnValue , nil , reportError ( "readSecretAccessKeyRequest should be ReadSecretAccessKeyRequest" )
}
localVarPostBody = & localVarOptionalReadSecretAccessKeyRequest
}
if ctx != nil {
// API Key Authentication
if auth , ok := ctx . Value ( ContextAPIKey ) . ( APIKey ) ; ok {
var key string
if auth . Prefix != "" {
key = auth . Prefix + " " + auth . Key
} else {
key = auth . Key
}
localVarHeaderParams [ "Authorization" ] = key
}
}
r , err := a . client . prepareRequest ( ctx , localVarPath , localVarHTTPMethod , localVarPostBody , localVarHeaderParams , localVarQueryParams , localVarFormParams , localVarFormFileName , localVarFileName , localVarFileBytes )
if err != nil {
return localVarReturnValue , nil , err
}
localVarHTTPResponse , err := a . client . callAPI ( r )
if err != nil || localVarHTTPResponse == nil {
return localVarReturnValue , localVarHTTPResponse , err
}
localVarBody , err := _ioutil . ReadAll ( localVarHTTPResponse . Body )
localVarHTTPResponse . Body . Close ( )
if err != nil {
return localVarReturnValue , localVarHTTPResponse , err
}
if localVarHTTPResponse . StatusCode >= 300 {
newErr := GenericOpenAPIError {
body : localVarBody ,
error : localVarHTTPResponse . Status ,
}
if localVarHTTPResponse . StatusCode == 200 {
var v ReadSecretAccessKeyResponse
err = a . client . decode ( & v , localVarBody , localVarHTTPResponse . Header . Get ( "Content-Type" ) )
if err != nil {
newErr . error = err . Error ( )
return localVarReturnValue , localVarHTTPResponse , newErr
}
newErr . model = v
}
return localVarReturnValue , localVarHTTPResponse , newErr
}
err = a . client . decode ( & localVarReturnValue , localVarBody , localVarHTTPResponse . Header . Get ( "Content-Type" ) )
if err != nil {
newErr := GenericOpenAPIError {
body : localVarBody ,
error : err . Error ( ) ,
}
return localVarReturnValue , localVarHTTPResponse , newErr
}
return localVarReturnValue , localVarHTTPResponse , nil
}
// UpdateAccessKeyOpts Optional parameters for the method 'UpdateAccessKey'
type UpdateAccessKeyOpts struct {
2021-04-20 11:18:45 -04:00
UpdateAccessKeyRequest optional . Interface
2020-10-13 11:17:37 -04:00
}
/ *
UpdateAccessKey Method for UpdateAccessKey
* @ param ctx _context . Context - for authentication , logging , cancellation , deadlines , tracing , etc . Passed from http . Request or context . Background ( ) .
* @ param optional nil or * UpdateAccessKeyOpts - Optional Parameters :
2021-04-20 11:18:45 -04:00
* @ param "UpdateAccessKeyRequest" ( optional . Interface of UpdateAccessKeyRequest ) -
2020-10-13 11:17:37 -04:00
@ return UpdateAccessKeyResponse
* /
func ( a * AccessKeyApiService ) UpdateAccessKey ( ctx _context . Context , localVarOptionals * UpdateAccessKeyOpts ) ( UpdateAccessKeyResponse , * _nethttp . Response , error ) {
var (
localVarHTTPMethod = _nethttp . MethodPost
localVarPostBody interface { }
localVarFormFileName string
localVarFileName string
localVarFileBytes [ ] byte
localVarReturnValue UpdateAccessKeyResponse
)
// create path and map variables
localVarPath := a . client . cfg . BasePath + "/UpdateAccessKey"
localVarHeaderParams := make ( map [ string ] string )
localVarQueryParams := _neturl . Values { }
localVarFormParams := _neturl . Values { }
// to determine the Content-Type header
localVarHTTPContentTypes := [ ] string { "application/json" }
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType ( localVarHTTPContentTypes )
if localVarHTTPContentType != "" {
localVarHeaderParams [ "Content-Type" ] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := [ ] string { "application/json" }
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept ( localVarHTTPHeaderAccepts )
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams [ "Accept" ] = localVarHTTPHeaderAccept
}
// body params
if localVarOptionals != nil && localVarOptionals . UpdateAccessKeyRequest . IsSet ( ) {
localVarOptionalUpdateAccessKeyRequest , localVarOptionalUpdateAccessKeyRequestok := localVarOptionals . UpdateAccessKeyRequest . Value ( ) . ( UpdateAccessKeyRequest )
if ! localVarOptionalUpdateAccessKeyRequestok {
return localVarReturnValue , nil , reportError ( "updateAccessKeyRequest should be UpdateAccessKeyRequest" )
}
localVarPostBody = & localVarOptionalUpdateAccessKeyRequest
}
if ctx != nil {
// API Key Authentication
if auth , ok := ctx . Value ( ContextAPIKey ) . ( APIKey ) ; ok {
var key string
if auth . Prefix != "" {
key = auth . Prefix + " " + auth . Key
} else {
key = auth . Key
}
localVarHeaderParams [ "Authorization" ] = key
}
}
r , err := a . client . prepareRequest ( ctx , localVarPath , localVarHTTPMethod , localVarPostBody , localVarHeaderParams , localVarQueryParams , localVarFormParams , localVarFormFileName , localVarFileName , localVarFileBytes )
if err != nil {
return localVarReturnValue , nil , err
}
localVarHTTPResponse , err := a . client . callAPI ( r )
if err != nil || localVarHTTPResponse == nil {
return localVarReturnValue , localVarHTTPResponse , err
}
localVarBody , err := _ioutil . ReadAll ( localVarHTTPResponse . Body )
localVarHTTPResponse . Body . Close ( )
if err != nil {
return localVarReturnValue , localVarHTTPResponse , err
}
if localVarHTTPResponse . StatusCode >= 300 {
newErr := GenericOpenAPIError {
body : localVarBody ,
error : localVarHTTPResponse . Status ,
}
if localVarHTTPResponse . StatusCode == 200 {
var v UpdateAccessKeyResponse
err = a . client . decode ( & v , localVarBody , localVarHTTPResponse . Header . Get ( "Content-Type" ) )
if err != nil {
newErr . error = err . Error ( )
return localVarReturnValue , localVarHTTPResponse , newErr
}
newErr . model = v
}
return localVarReturnValue , localVarHTTPResponse , newErr
}
err = a . client . decode ( & localVarReturnValue , localVarBody , localVarHTTPResponse . Header . Get ( "Content-Type" ) )
if err != nil {
newErr := GenericOpenAPIError {
body : localVarBody ,
error : err . Error ( ) ,
}
return localVarReturnValue , localVarHTTPResponse , newErr
}
return localVarReturnValue , localVarHTTPResponse , nil
}