Update package name
This commit is contained in:
parent
c138ca1069
commit
31541d3f17
2
Makefile
2
Makefile
@ -1,7 +1,7 @@
|
|||||||
.PHONY: code-gen
|
.PHONY: code-gen
|
||||||
code-gen:
|
code-gen:
|
||||||
rm -rf redfish_client
|
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
|
.PHONY: deps
|
||||||
deps:
|
deps:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Go API client for openapi
|
# Go API client for client
|
||||||
|
|
||||||
Partial Redfish OAPI specification for a limited 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:
|
Put the package under your project folder and add the following in import:
|
||||||
|
|
||||||
```golang
|
```golang
|
||||||
import "./openapi"
|
import "./client"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Documentation for API Endpoints
|
## Documentation for API Endpoints
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package openapi
|
package client
|
||||||
|
|
||||||
import (
|
import (
|
||||||
_context "context"
|
_context "context"
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package openapi
|
package client
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package openapi
|
package client
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package openapi
|
package client
|
||||||
|
|
||||||
type Boot struct {
|
type Boot struct {
|
||||||
BootSourceOverrideEnabled BootSourceOverrideEnabled `json:"BootSourceOverrideEnabled,omitempty"`
|
BootSourceOverrideEnabled BootSourceOverrideEnabled `json:"BootSourceOverrideEnabled,omitempty"`
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package openapi
|
package client
|
||||||
type BootSource string
|
type BootSource string
|
||||||
|
|
||||||
// List of BootSource
|
// List of BootSource
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package openapi
|
package client
|
||||||
type BootSourceOverrideEnabled string
|
type BootSourceOverrideEnabled string
|
||||||
|
|
||||||
// List of BootSourceOverrideEnabled
|
// List of BootSourceOverrideEnabled
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package openapi
|
package client
|
||||||
|
|
||||||
// A Collection of ComputerSystem resource instances.
|
// A Collection of ComputerSystem resource instances.
|
||||||
type Collection struct {
|
type Collection struct {
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package openapi
|
package client
|
||||||
|
|
||||||
// Root redfish path.
|
// Root redfish path.
|
||||||
type ComputerSystem struct {
|
type ComputerSystem struct {
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package openapi
|
package client
|
||||||
|
|
||||||
type ComputerSystemActions struct {
|
type ComputerSystemActions struct {
|
||||||
ComputerSystemReset ComputerSystemReset `json:"#ComputerSystem.Reset,omitempty"`
|
ComputerSystemReset ComputerSystemReset `json:"#ComputerSystem.Reset,omitempty"`
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package openapi
|
package client
|
||||||
|
|
||||||
type ComputerSystemReset struct {
|
type ComputerSystemReset struct {
|
||||||
// The unique identifier for a resource.
|
// The unique identifier for a resource.
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package openapi
|
package client
|
||||||
type Health string
|
type Health string
|
||||||
|
|
||||||
// List of Health
|
// List of Health
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package openapi
|
package client
|
||||||
|
|
||||||
// A reference to a resource.
|
// A reference to a resource.
|
||||||
type IdRef struct {
|
type IdRef struct {
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package openapi
|
package client
|
||||||
type IndicatorLed string
|
type IndicatorLed string
|
||||||
|
|
||||||
// List of IndicatorLED
|
// List of IndicatorLED
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package openapi
|
package client
|
||||||
|
|
||||||
type Links struct {
|
type Links struct {
|
||||||
Chassis []IdRef `json:"Chassis,omitempty"`
|
Chassis []IdRef `json:"Chassis,omitempty"`
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package openapi
|
package client
|
||||||
|
|
||||||
type MemorySummary struct {
|
type MemorySummary struct {
|
||||||
TotalSystemMemoryGiB float32 `json:"TotalSystemMemoryGiB,omitempty"`
|
TotalSystemMemoryGiB float32 `json:"TotalSystemMemoryGiB,omitempty"`
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package openapi
|
package client
|
||||||
|
|
||||||
type Message struct {
|
type Message struct {
|
||||||
Message string `json:"Message,omitempty"`
|
Message string `json:"Message,omitempty"`
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package openapi
|
package client
|
||||||
type PowerState string
|
type PowerState string
|
||||||
|
|
||||||
// List of PowerState
|
// List of PowerState
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package openapi
|
package client
|
||||||
|
|
||||||
type ProcessorSummary struct {
|
type ProcessorSummary struct {
|
||||||
Count int32 `json:"Count,omitempty"`
|
Count int32 `json:"Count,omitempty"`
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package openapi
|
package client
|
||||||
|
|
||||||
// Contains an error payload from a Redfish Service.
|
// Contains an error payload from a Redfish Service.
|
||||||
type RedfishError struct {
|
type RedfishError struct {
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package openapi
|
package client
|
||||||
|
|
||||||
type RedfishErrorError struct {
|
type RedfishErrorError struct {
|
||||||
MessageExtendedInfo []Message `json:"@Message.ExtendedInfo,omitempty"`
|
MessageExtendedInfo []Message `json:"@Message.ExtendedInfo,omitempty"`
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package openapi
|
package client
|
||||||
|
|
||||||
type ResetRequestBody struct {
|
type ResetRequestBody struct {
|
||||||
ResetType ResetType `json:"ResetType,omitempty"`
|
ResetType ResetType `json:"ResetType,omitempty"`
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package openapi
|
package client
|
||||||
type ResetType string
|
type ResetType string
|
||||||
|
|
||||||
// List of ResetType
|
// List of ResetType
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package openapi
|
package client
|
||||||
|
|
||||||
// Root redfish path.
|
// Root redfish path.
|
||||||
type Root struct {
|
type Root struct {
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package openapi
|
package client
|
||||||
type State string
|
type State string
|
||||||
|
|
||||||
// List of State
|
// List of State
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package openapi
|
package client
|
||||||
|
|
||||||
type Status struct {
|
type Status struct {
|
||||||
Health Health `json:"Health,omitempty"`
|
Health Health `json:"Health,omitempty"`
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package openapi
|
package client
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user