Update package name

This commit is contained in:
Kanwar Saad Bin Liaqat 2019-09-09 00:20:08 +03:00
parent c138ca1069
commit 31541d3f17
No known key found for this signature in database
GPG Key ID: F5189DC439490C63
28 changed files with 29 additions and 29 deletions

View File

@ -1,7 +1,7 @@
.PHONY: code-gen
code-gen:
rm -rf redfish_client
openapi-generator generate -i ./spec/openapi.yaml -g go -o client/
openapi-generator generate -i ./spec/openapi.yaml -g go --package-name "client" -o client/
.PHONY: deps
deps:

View File

@ -1,4 +1,4 @@
# Go API client for openapi
# Go API client for client
Partial Redfish OAPI specification for a limited client
@ -23,7 +23,7 @@ go get github.com/antihax/optional
Put the package under your project folder and add the following in import:
```golang
import "./openapi"
import "./client"
```
## Documentation for API Endpoints

View File

@ -7,7 +7,7 @@
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package openapi
package client
import (
_context "context"

View File

@ -7,7 +7,7 @@
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package openapi
package client
import (
"bytes"

View File

@ -7,7 +7,7 @@
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package openapi
package client
import (
"net/http"

View File

@ -7,7 +7,7 @@
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package openapi
package client
type Boot struct {
BootSourceOverrideEnabled BootSourceOverrideEnabled `json:"BootSourceOverrideEnabled,omitempty"`

View File

@ -7,7 +7,7 @@
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package openapi
package client
type BootSource string
// List of BootSource

View File

@ -7,7 +7,7 @@
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package openapi
package client
type BootSourceOverrideEnabled string
// List of BootSourceOverrideEnabled

View File

@ -7,7 +7,7 @@
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package openapi
package client
// A Collection of ComputerSystem resource instances.
type Collection struct {

View File

@ -7,7 +7,7 @@
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package openapi
package client
// Root redfish path.
type ComputerSystem struct {

View File

@ -7,7 +7,7 @@
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package openapi
package client
type ComputerSystemActions struct {
ComputerSystemReset ComputerSystemReset `json:"#ComputerSystem.Reset,omitempty"`

View File

@ -7,7 +7,7 @@
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package openapi
package client
type ComputerSystemReset struct {
// The unique identifier for a resource.

View File

@ -7,7 +7,7 @@
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package openapi
package client
type Health string
// List of Health

View File

@ -7,7 +7,7 @@
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package openapi
package client
// A reference to a resource.
type IdRef struct {

View File

@ -7,7 +7,7 @@
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package openapi
package client
type IndicatorLed string
// List of IndicatorLED

View File

@ -7,7 +7,7 @@
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package openapi
package client
type Links struct {
Chassis []IdRef `json:"Chassis,omitempty"`

View File

@ -7,7 +7,7 @@
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package openapi
package client
type MemorySummary struct {
TotalSystemMemoryGiB float32 `json:"TotalSystemMemoryGiB,omitempty"`

View File

@ -7,7 +7,7 @@
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package openapi
package client
type Message struct {
Message string `json:"Message,omitempty"`

View File

@ -7,7 +7,7 @@
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package openapi
package client
type PowerState string
// List of PowerState

View File

@ -7,7 +7,7 @@
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package openapi
package client
type ProcessorSummary struct {
Count int32 `json:"Count,omitempty"`

View File

@ -7,7 +7,7 @@
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package openapi
package client
// Contains an error payload from a Redfish Service.
type RedfishError struct {

View File

@ -7,7 +7,7 @@
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package openapi
package client
type RedfishErrorError struct {
MessageExtendedInfo []Message `json:"@Message.ExtendedInfo,omitempty"`

View File

@ -7,7 +7,7 @@
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package openapi
package client
type ResetRequestBody struct {
ResetType ResetType `json:"ResetType,omitempty"`

View File

@ -7,7 +7,7 @@
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package openapi
package client
type ResetType string
// List of ResetType

View File

@ -7,7 +7,7 @@
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package openapi
package client
// Root redfish path.
type Root struct {

View File

@ -7,7 +7,7 @@
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package openapi
package client
type State string
// List of State

View File

@ -7,7 +7,7 @@
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package openapi
package client
type Status struct {
Health Health `json:"Health,omitempty"`

View File

@ -7,7 +7,7 @@
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package openapi
package client
import (
"net/http"