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 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* | [**GetManager**](docs/DefaultApi.md#getmanager) | **Get** /redfish/v1/Managers/{managerId} |
*DefaultApi* | [**GetManagerVirtualMedia**](docs/DefaultApi.md#getmanagervirtualmedia) | **Get** /redfish/v1/Managers/{managerId}/VirtualMedia/{virtualMediaId} | *DefaultApi* | [**GetManagerVirtualMedia**](docs/DefaultApi.md#getmanagervirtualmedia) | **Get** /redfish/v1/Managers/{managerId}/VirtualMedia/{virtualMediaId} |
*DefaultApi* | [**GetRoot**](docs/DefaultApi.md#getroot) | **Get** /redfish/v1 | *DefaultApi* | [**GetRoot**](docs/DefaultApi.md#getroot) | **Get** /redfish/v1 |

View File

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

View File

@ -33,7 +33,7 @@ DefaultApiService
* @param body * @param body
@return RedfishError @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 ( var (
localVarHttpMethod = _nethttp.MethodPost localVarHttpMethod = _nethttp.MethodPost
localVarPostBody interface{} localVarPostBody interface{}

View File

@ -4,7 +4,7 @@ All URIs are relative to *http://localhost*
Method | HTTP request | Description 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} | [**GetManager**](DefaultApi.md#GetManager) | **Get** /redfish/v1/Managers/{managerId} |
[**GetManagerVirtualMedia**](DefaultApi.md#GetManagerVirtualMedia) | **Get** /redfish/v1/Managers/{managerId}/VirtualMedia/{virtualMediaId} | [**GetManagerVirtualMedia**](DefaultApi.md#GetManagerVirtualMedia) | **Get** /redfish/v1/Managers/{managerId}/VirtualMedia/{virtualMediaId} |
[**GetRoot**](DefaultApi.md#GetRoot) | **Get** /redfish/v1 | [**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 ### Required Parameters

View File

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