Fix eject media request object

This commit is contained in:
Kanwar Saad Bin Liaqat 2019-09-09 16:08:02 +03:00
parent 332d1a830a
commit 0cebb54909
No known key found for this signature in database
GPG Key ID: F5189DC439490C63
5 changed files with 17 additions and 11 deletions

View File

@ -32,7 +32,7 @@ All URIs are relative to *http://localhost*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*DefaultApi* | [**EjctVirtualMedia**](docs/DefaultApi.md#ejctvirtualmedia) | **Post** /redfish/v1/Managers/{managerId}/VirtualMedia/{virtualMediaId}/Actions/VirtualMedia.EjectMedia |
*DefaultApi* | [**EjectVirtualMedia**](docs/DefaultApi.md#ejectvirtualmedia) | **Post** /redfish/v1/Managers/{managerId}/VirtualMedia/{virtualMediaId}/Actions/VirtualMedia.EjectMedia |
*DefaultApi* | [**GetManager**](docs/DefaultApi.md#getmanager) | **Get** /redfish/v1/Managers/{managerId} |
*DefaultApi* | [**GetManagerVirtualMedia**](docs/DefaultApi.md#getmanagervirtualmedia) | **Get** /redfish/v1/Managers/{managerId}/VirtualMedia/{virtualMediaId} |
*DefaultApi* | [**GetRoot**](docs/DefaultApi.md#getroot) | **Get** /redfish/v1 |

View File

@ -249,7 +249,7 @@ paths:
description: Error condition
/redfish/v1/Managers/{managerId}/VirtualMedia/{virtualMediaId}/Actions/VirtualMedia.EjectMedia:
post:
operationId: ejct_virtual_media
operationId: eject_virtual_media
parameters:
- description: ID of resource
explode: false
@ -271,8 +271,7 @@ paths:
content:
application/json:
schema:
properties: {}
type: object
$ref: '#/components/schemas/EjectMediaRequestBody'
required: true
responses:
200:
@ -1104,6 +1103,10 @@ components:
required:
- Image
type: object
EjectMediaRequestBody:
additionalProperties: false
properties: {}
type: object
RedfishError_error:
example:
'@Message.ExtendedInfo':

View File

@ -33,7 +33,7 @@ DefaultApiService
* @param body
@return RedfishError
*/
func (a *DefaultApiService) EjctVirtualMedia(ctx _context.Context, managerId string, virtualMediaId string, body map[string]interface{}) (RedfishError, *_nethttp.Response, error) {
func (a *DefaultApiService) EjectVirtualMedia(ctx _context.Context, managerId string, virtualMediaId string, body map[string]interface{}) (RedfishError, *_nethttp.Response, error) {
var (
localVarHttpMethod = _nethttp.MethodPost
localVarPostBody interface{}

View File

@ -4,7 +4,7 @@ All URIs are relative to *http://localhost*
Method | HTTP request | Description
------------- | ------------- | -------------
[**EjctVirtualMedia**](DefaultApi.md#EjctVirtualMedia) | **Post** /redfish/v1/Managers/{managerId}/VirtualMedia/{virtualMediaId}/Actions/VirtualMedia.EjectMedia |
[**EjectVirtualMedia**](DefaultApi.md#EjectVirtualMedia) | **Post** /redfish/v1/Managers/{managerId}/VirtualMedia/{virtualMediaId}/Actions/VirtualMedia.EjectMedia |
[**GetManager**](DefaultApi.md#GetManager) | **Get** /redfish/v1/Managers/{managerId} |
[**GetManagerVirtualMedia**](DefaultApi.md#GetManagerVirtualMedia) | **Get** /redfish/v1/Managers/{managerId}/VirtualMedia/{virtualMediaId} |
[**GetRoot**](DefaultApi.md#GetRoot) | **Get** /redfish/v1 |
@ -18,9 +18,9 @@ Method | HTTP request | Description
## EjctVirtualMedia
## EjectVirtualMedia
> RedfishError EjctVirtualMedia(ctx, managerId, virtualMediaId, body)
> RedfishError EjectVirtualMedia(ctx, managerId, virtualMediaId, body)
### Required Parameters

View File

@ -599,6 +599,10 @@ components:
required:
- Image
type: object
EjectMediaRequestBody:
additionalProperties: false
properties: {}
type: object
paths:
/redfish/v1:
get:
@ -821,13 +825,12 @@ paths:
type: string
/redfish/v1/Managers/{managerId}/VirtualMedia/{virtualMediaId}/Actions/VirtualMedia.EjectMedia:
post:
operationId: ejct_virtual_media
operationId: eject_virtual_media
requestBody:
content:
application/json:
schema:
type: object
properties: {}
$ref: '#/components/schemas/EjectMediaRequestBody'
required: true
responses:
'200':