Upgrade openapi generator to v5.1.0
Upgraded openapi generator version to 5.1.0 for the support of nullable values for optional fields; Added missing "Disabled" enum value to the BootSourceOverrideEnabled model in the openapi schema. Signed-off-by: James Gu <james.gu@att.com> Change-Id: Ia3e0b018be13079d2085ef61ed2e797bcfd25fd7
This commit is contained in:
parent
c8df18b526
commit
c442eb5bcb
2
Makefile
2
Makefile
@ -9,7 +9,7 @@ code-gen:
|
||||
.PHONY: code-gen-docker
|
||||
code-gen-docker:
|
||||
rm -rf client
|
||||
docker run --rm -v ${PWD}:/local openapitools/openapi-generator-cli:v4.2.2 generate \
|
||||
docker run --rm -v ${PWD}:/local openapitools/openapi-generator-cli:v5.1.0 generate \
|
||||
-i /local/spec/openapi.yaml \
|
||||
-g go \
|
||||
--package-name "client" \
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -7,12 +7,14 @@ import (
|
||||
client "opendev.org/airship/go-redfish/client"
|
||||
)
|
||||
|
||||
//go:generate mockery -name=RedfishAPI -output ./mocks
|
||||
//go:generate mockery --name=RedfishAPI --output ./mocks
|
||||
type RedfishAPI interface {
|
||||
CreateVirtualDisk(context.Context,
|
||||
string,
|
||||
string,
|
||||
client.CreateVirtualDiskRequestBody,
|
||||
) client.ApiCreateVirtualDiskRequest
|
||||
|
||||
CreateVirtualDiskExecute(client.ApiCreateVirtualDiskRequest,
|
||||
) (client.RedfishError,
|
||||
*http.Response,
|
||||
error,
|
||||
@ -21,6 +23,9 @@ type RedfishAPI interface {
|
||||
DeleteVirtualdisk(context.Context,
|
||||
string,
|
||||
string,
|
||||
) client.ApiDeleteVirtualdiskRequest
|
||||
|
||||
DeleteVirtualdiskExecute(client.ApiDeleteVirtualdiskRequest,
|
||||
) (*http.Response,
|
||||
error,
|
||||
)
|
||||
@ -28,27 +33,37 @@ type RedfishAPI interface {
|
||||
EjectVirtualMedia(context.Context,
|
||||
string,
|
||||
string,
|
||||
map[string]interface{},
|
||||
) client.ApiEjectVirtualMediaRequest
|
||||
|
||||
EjectVirtualMediaExecute(client.ApiEjectVirtualMediaRequest,
|
||||
) (client.RedfishError,
|
||||
*http.Response,
|
||||
error,
|
||||
)
|
||||
|
||||
FirmwareInventory(context.Context,
|
||||
) (client.Collection,
|
||||
) client.ApiFirmwareInventoryRequest
|
||||
|
||||
FirmwareInventoryDownloadImage(context.Context,
|
||||
) client.ApiFirmwareInventoryDownloadImageRequest
|
||||
|
||||
FirmwareInventoryDownloadImageExecute(client.ApiFirmwareInventoryDownloadImageRequest,
|
||||
) (client.RedfishError,
|
||||
*http.Response,
|
||||
error,
|
||||
)
|
||||
|
||||
FirmwareInventoryDownloadImage(context.Context,
|
||||
*client.FirmwareInventoryDownloadImageOpts,
|
||||
) (client.RedfishError,
|
||||
FirmwareInventoryExecute(client.ApiFirmwareInventoryRequest,
|
||||
) (client.Collection,
|
||||
*http.Response,
|
||||
error,
|
||||
)
|
||||
|
||||
GetManager(context.Context,
|
||||
string,
|
||||
) client.ApiGetManagerRequest
|
||||
|
||||
GetManagerExecute(client.ApiGetManagerRequest,
|
||||
) (client.Manager,
|
||||
*http.Response,
|
||||
error,
|
||||
@ -57,12 +72,18 @@ type RedfishAPI interface {
|
||||
GetManagerVirtualMedia(context.Context,
|
||||
string,
|
||||
string,
|
||||
) client.ApiGetManagerVirtualMediaRequest
|
||||
|
||||
GetManagerVirtualMediaExecute(client.ApiGetManagerVirtualMediaRequest,
|
||||
) (client.VirtualMedia,
|
||||
*http.Response,
|
||||
error,
|
||||
)
|
||||
|
||||
GetRoot(context.Context,
|
||||
) client.ApiGetRootRequest
|
||||
|
||||
GetRootExecute(client.ApiGetRootRequest,
|
||||
) (client.Root,
|
||||
*http.Response,
|
||||
error,
|
||||
@ -70,6 +91,9 @@ type RedfishAPI interface {
|
||||
|
||||
GetSoftwareInventory(context.Context,
|
||||
string,
|
||||
) client.ApiGetSoftwareInventoryRequest
|
||||
|
||||
GetSoftwareInventoryExecute(client.ApiGetSoftwareInventoryRequest,
|
||||
) (client.SoftwareInventory,
|
||||
*http.Response,
|
||||
error,
|
||||
@ -77,6 +101,9 @@ type RedfishAPI interface {
|
||||
|
||||
GetSystem(context.Context,
|
||||
string,
|
||||
) client.ApiGetSystemRequest
|
||||
|
||||
GetSystemExecute(client.ApiGetSystemRequest,
|
||||
) (client.ComputerSystem,
|
||||
*http.Response,
|
||||
error,
|
||||
@ -84,12 +111,18 @@ type RedfishAPI interface {
|
||||
|
||||
GetTask(context.Context,
|
||||
string,
|
||||
) client.ApiGetTaskRequest
|
||||
|
||||
GetTaskExecute(client.ApiGetTaskRequest,
|
||||
) (client.Task,
|
||||
*http.Response,
|
||||
error,
|
||||
)
|
||||
|
||||
GetTaskList(context.Context,
|
||||
) client.ApiGetTaskListRequest
|
||||
|
||||
GetTaskListExecute(client.ApiGetTaskListRequest,
|
||||
) (client.Collection,
|
||||
*http.Response,
|
||||
error,
|
||||
@ -98,6 +131,9 @@ type RedfishAPI interface {
|
||||
GetVolumes(context.Context,
|
||||
string,
|
||||
string,
|
||||
) client.ApiGetVolumesRequest
|
||||
|
||||
GetVolumesExecute(client.ApiGetVolumesRequest,
|
||||
) (client.Collection,
|
||||
*http.Response,
|
||||
error,
|
||||
@ -106,7 +142,9 @@ type RedfishAPI interface {
|
||||
InsertVirtualMedia(context.Context,
|
||||
string,
|
||||
string,
|
||||
client.InsertMediaRequestBody,
|
||||
) client.ApiInsertVirtualMediaRequest
|
||||
|
||||
InsertVirtualMediaExecute(client.ApiInsertVirtualMediaRequest,
|
||||
) (client.RedfishError,
|
||||
*http.Response,
|
||||
error,
|
||||
@ -114,18 +152,27 @@ type RedfishAPI interface {
|
||||
|
||||
ListManagerVirtualMedia(context.Context,
|
||||
string,
|
||||
) client.ApiListManagerVirtualMediaRequest
|
||||
|
||||
ListManagerVirtualMediaExecute(client.ApiListManagerVirtualMediaRequest,
|
||||
) (client.Collection,
|
||||
*http.Response,
|
||||
error,
|
||||
)
|
||||
|
||||
ListManagers(context.Context,
|
||||
) client.ApiListManagersRequest
|
||||
|
||||
ListManagersExecute(client.ApiListManagersRequest,
|
||||
) (client.Collection,
|
||||
*http.Response,
|
||||
error,
|
||||
)
|
||||
|
||||
ListSystems(context.Context,
|
||||
) client.ApiListSystemsRequest
|
||||
|
||||
ListSystemsExecute(client.ApiListSystemsRequest,
|
||||
) (client.Collection,
|
||||
*http.Response,
|
||||
error,
|
||||
@ -133,7 +180,9 @@ type RedfishAPI interface {
|
||||
|
||||
ResetSystem(context.Context,
|
||||
string,
|
||||
client.ResetRequestBody,
|
||||
) client.ApiResetSystemRequest
|
||||
|
||||
ResetSystemExecute(client.ApiResetSystemRequest,
|
||||
) (client.RedfishError,
|
||||
*http.Response,
|
||||
error,
|
||||
@ -141,20 +190,27 @@ type RedfishAPI interface {
|
||||
|
||||
SetSystem(context.Context,
|
||||
string,
|
||||
client.ComputerSystem,
|
||||
) client.ApiSetSystemRequest
|
||||
|
||||
SetSystemExecute(client.ApiSetSystemRequest,
|
||||
) (client.ComputerSystem,
|
||||
*http.Response,
|
||||
error,
|
||||
)
|
||||
|
||||
UpdateService(context.Context,
|
||||
) client.ApiUpdateServiceRequest
|
||||
|
||||
UpdateServiceExecute(client.ApiUpdateServiceRequest,
|
||||
) (client.UpdateService,
|
||||
*http.Response,
|
||||
error,
|
||||
)
|
||||
|
||||
UpdateServiceSimpleUpdate(context.Context,
|
||||
client.SimpleUpdateRequestBody,
|
||||
) client.ApiUpdateServiceSimpleUpdateRequest
|
||||
|
||||
UpdateServiceSimpleUpdateExecute(client.ApiUpdateServiceSimpleUpdateRequest,
|
||||
) (client.RedfishError,
|
||||
*http.Response,
|
||||
error,
|
||||
|
@ -19,7 +19,7 @@ import (
|
||||
client "opendev.org/airship/go-redfish/client"
|
||||
)
|
||||
|
||||
//go:generate mockery -name=RedfishAPI -output ./mocks
|
||||
//go:generate mockery --name=RedfishAPI --output ./mocks
|
||||
type RedfishAPI interface {
|
||||
`
|
||||
|
||||
|
100
client/.openapi-generator/FILES
Normal file
100
client/.openapi-generator/FILES
Normal file
@ -0,0 +1,100 @@
|
||||
.gitignore
|
||||
.openapi-generator-ignore
|
||||
.travis.yml
|
||||
README.md
|
||||
api/openapi.yaml
|
||||
api_default.go
|
||||
client.go
|
||||
configuration.go
|
||||
docs/Boot.md
|
||||
docs/BootSource.md
|
||||
docs/BootSourceOverrideEnabled.md
|
||||
docs/Collection.md
|
||||
docs/ComputerSystem.md
|
||||
docs/ComputerSystemActions.md
|
||||
docs/ComputerSystemReset.md
|
||||
docs/ConnectedVia.md
|
||||
docs/CreateVirtualDiskRequestBody.md
|
||||
docs/DefaultApi.md
|
||||
docs/FirmwareInventory.md
|
||||
docs/Health.md
|
||||
docs/IdRef.md
|
||||
docs/IndicatorLED.md
|
||||
docs/InlineObject.md
|
||||
docs/InsertMediaRequestBody.md
|
||||
docs/Manager.md
|
||||
docs/ManagerLinks.md
|
||||
docs/ManagerType.md
|
||||
docs/MemorySummary.md
|
||||
docs/Message.md
|
||||
docs/Payload.md
|
||||
docs/PowerState.md
|
||||
docs/ProcessorSummary.md
|
||||
docs/RedfishError.md
|
||||
docs/RedfishErrorError.md
|
||||
docs/ResetRequestBody.md
|
||||
docs/ResetType.md
|
||||
docs/Root.md
|
||||
docs/SimpleUpdateRequestBody.md
|
||||
docs/SoftwareInventory.md
|
||||
docs/State.md
|
||||
docs/Status.md
|
||||
docs/SystemLinks.md
|
||||
docs/Task.md
|
||||
docs/TaskState.md
|
||||
docs/TransferMethod.md
|
||||
docs/TransferProtocolType.md
|
||||
docs/UpdateService.md
|
||||
docs/UpdateServiceActions.md
|
||||
docs/VirtualMedia.md
|
||||
docs/VirtualMediaActions.md
|
||||
docs/VirtualMediaActionsVirtualMediaEjectMedia.md
|
||||
docs/VolumeType.md
|
||||
git_push.sh
|
||||
go.mod
|
||||
go.sum
|
||||
model_boot.go
|
||||
model_boot_source.go
|
||||
model_boot_source_override_enabled.go
|
||||
model_collection.go
|
||||
model_computer_system.go
|
||||
model_computer_system_actions.go
|
||||
model_computer_system_reset.go
|
||||
model_connected_via.go
|
||||
model_create_virtual_disk_request_body.go
|
||||
model_firmware_inventory.go
|
||||
model_health.go
|
||||
model_id_ref.go
|
||||
model_indicator_led.go
|
||||
model_inline_object.go
|
||||
model_insert_media_request_body.go
|
||||
model_manager.go
|
||||
model_manager_links.go
|
||||
model_manager_type.go
|
||||
model_memory_summary.go
|
||||
model_message.go
|
||||
model_payload.go
|
||||
model_power_state.go
|
||||
model_processor_summary.go
|
||||
model_redfish_error.go
|
||||
model_redfish_error_error.go
|
||||
model_reset_request_body.go
|
||||
model_reset_type.go
|
||||
model_root.go
|
||||
model_simple_update_request_body.go
|
||||
model_software_inventory.go
|
||||
model_state.go
|
||||
model_status.go
|
||||
model_system_links.go
|
||||
model_task.go
|
||||
model_task_state.go
|
||||
model_transfer_method.go
|
||||
model_transfer_protocol_type.go
|
||||
model_update_service.go
|
||||
model_update_service_actions.go
|
||||
model_virtual_media.go
|
||||
model_virtual_media_actions.go
|
||||
model_virtual_media_actions__virtual_media_eject_media.go
|
||||
model_volume_type.go
|
||||
response.go
|
||||
utils.go
|
@ -1 +1 @@
|
||||
4.2.2
|
||||
5.1.0
|
@ -17,13 +17,59 @@ Install the following dependencies:
|
||||
go get github.com/stretchr/testify/assert
|
||||
go get golang.org/x/oauth2
|
||||
go get golang.org/x/net/context
|
||||
go get github.com/antihax/optional
|
||||
```
|
||||
|
||||
Put the package under your project folder and add the following in import:
|
||||
|
||||
```golang
|
||||
import "./client"
|
||||
import sw "./client"
|
||||
```
|
||||
|
||||
To use a proxy, set the environment variable `HTTP_PROXY`:
|
||||
|
||||
```golang
|
||||
os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")
|
||||
```
|
||||
|
||||
## Configuration of Server URL
|
||||
|
||||
Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification.
|
||||
|
||||
### Select Server Configuration
|
||||
|
||||
For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`.
|
||||
|
||||
```golang
|
||||
ctx := context.WithValue(context.Background(), sw.ContextServerIndex, 1)
|
||||
```
|
||||
|
||||
### Templated Server URL
|
||||
|
||||
Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`.
|
||||
|
||||
```golang
|
||||
ctx := context.WithValue(context.Background(), sw.ContextServerVariables, map[string]string{
|
||||
"basePath": "v2",
|
||||
})
|
||||
```
|
||||
|
||||
Note, enum values are always validated and all unused variables are silently ignored.
|
||||
|
||||
### URLs Configuration per Operation
|
||||
|
||||
Each operation can use different server URL defined using `OperationServers` map in the `Configuration`.
|
||||
An operation is uniquely identifield by `"{classname}Service.{nickname}"` string.
|
||||
Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps.
|
||||
|
||||
```
|
||||
ctx := context.WithValue(context.Background(), sw.ContextOperationServerIndices, map[string]int{
|
||||
"{classname}Service.{nickname}": 2,
|
||||
})
|
||||
ctx = context.WithValue(context.Background(), sw.ContextOperationServerVariables, map[string]map[string]string{
|
||||
"{classname}Service.{nickname}": {
|
||||
"port": "8443",
|
||||
},
|
||||
})
|
||||
```
|
||||
|
||||
## Documentation for API Endpoints
|
||||
@ -69,7 +115,7 @@ Class | Method | HTTP request | Description
|
||||
- [FirmwareInventory](docs/FirmwareInventory.md)
|
||||
- [Health](docs/Health.md)
|
||||
- [IdRef](docs/IdRef.md)
|
||||
- [IndicatorLed](docs/IndicatorLed.md)
|
||||
- [IndicatorLED](docs/IndicatorLED.md)
|
||||
- [InlineObject](docs/InlineObject.md)
|
||||
- [InsertMediaRequestBody](docs/InsertMediaRequestBody.md)
|
||||
- [Manager](docs/Manager.md)
|
||||
@ -107,6 +153,22 @@ Class | Method | HTTP request | Description
|
||||
Endpoints do not require authorization.
|
||||
|
||||
|
||||
## Documentation for Utility Methods
|
||||
|
||||
Due to the fact that model structure members are all pointers, this package contains
|
||||
a number of utility functions to easily obtain pointers to values of basic types.
|
||||
Each of these functions takes a value of the given basic type and returns a pointer to it:
|
||||
|
||||
* `PtrBool`
|
||||
* `PtrInt`
|
||||
* `PtrInt32`
|
||||
* `PtrInt64`
|
||||
* `PtrFloat`
|
||||
* `PtrFloat32`
|
||||
* `PtrFloat64`
|
||||
* `PtrString`
|
||||
* `PtrTime`
|
||||
|
||||
## Author
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@ paths:
|
||||
get:
|
||||
operationId: get_root
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
@ -20,7 +20,7 @@ paths:
|
||||
get:
|
||||
operationId: list_systems
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
@ -39,7 +39,7 @@ paths:
|
||||
type: string
|
||||
style: simple
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
@ -69,13 +69,13 @@ paths:
|
||||
$ref: '#/components/schemas/ComputerSystem'
|
||||
required: true
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/ComputerSystem'
|
||||
description: ComputerSystem Properties set successfully
|
||||
204:
|
||||
"204":
|
||||
description: Success, but no response data
|
||||
default:
|
||||
content:
|
||||
@ -101,13 +101,13 @@ paths:
|
||||
$ref: '#/components/schemas/ResetRequestBody'
|
||||
required: true
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/RedfishError'
|
||||
description: Success with response
|
||||
204:
|
||||
"204":
|
||||
description: Success, but no response data
|
||||
default:
|
||||
content:
|
||||
@ -119,7 +119,7 @@ paths:
|
||||
get:
|
||||
operationId: list_managers
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
@ -138,7 +138,7 @@ paths:
|
||||
type: string
|
||||
style: simple
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
@ -163,7 +163,7 @@ paths:
|
||||
type: string
|
||||
style: simple
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
@ -196,7 +196,7 @@ paths:
|
||||
type: string
|
||||
style: simple
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
@ -235,7 +235,7 @@ paths:
|
||||
$ref: '#/components/schemas/InsertMediaRequestBody'
|
||||
required: true
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
@ -274,7 +274,7 @@ paths:
|
||||
$ref: '#/components/schemas/EjectMediaRequestBody'
|
||||
required: true
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
@ -290,7 +290,7 @@ paths:
|
||||
get:
|
||||
operationId: Update_Service
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
@ -312,7 +312,7 @@ paths:
|
||||
$ref: '#/components/schemas/SimpleUpdateRequestBody'
|
||||
required: true
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
@ -337,7 +337,7 @@ paths:
|
||||
type: string
|
||||
style: simple
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
@ -353,7 +353,7 @@ paths:
|
||||
get:
|
||||
operationId: Firmware_Inventory
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
@ -377,7 +377,7 @@ paths:
|
||||
type: object
|
||||
required: true
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
@ -393,7 +393,7 @@ paths:
|
||||
get:
|
||||
operationId: get_task_list
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
@ -412,7 +412,7 @@ paths:
|
||||
type: string
|
||||
style: simple
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
@ -445,7 +445,7 @@ paths:
|
||||
type: string
|
||||
style: simple
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
@ -483,7 +483,7 @@ paths:
|
||||
$ref: '#/components/schemas/CreateVirtualDiskRequestBody'
|
||||
required: true
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
@ -517,7 +517,7 @@ paths:
|
||||
type: string
|
||||
style: simple
|
||||
responses:
|
||||
200:
|
||||
"200":
|
||||
description: Delete virtual Disk
|
||||
default:
|
||||
content:
|
||||
@ -556,6 +556,7 @@ components:
|
||||
enum:
|
||||
- Once
|
||||
- Continuous
|
||||
- Disabled
|
||||
type: string
|
||||
State:
|
||||
enum:
|
||||
@ -579,14 +580,14 @@ components:
|
||||
type: string
|
||||
PowerState:
|
||||
enum:
|
||||
- On
|
||||
- Off
|
||||
- "On"
|
||||
- "Off"
|
||||
- PoweringOn
|
||||
- PoweringOff
|
||||
type: string
|
||||
ResetType:
|
||||
enum:
|
||||
- On
|
||||
- "On"
|
||||
- ForceOff
|
||||
- GracefulShutdown
|
||||
- GracefulRestart
|
||||
@ -601,7 +602,7 @@ components:
|
||||
- Unknown
|
||||
- Lit
|
||||
- Blinking
|
||||
- Off
|
||||
- "Off"
|
||||
type: string
|
||||
ManagerType:
|
||||
enum:
|
||||
@ -1110,10 +1111,6 @@ components:
|
||||
$ref: '#/components/schemas/SystemLinks'
|
||||
Actions:
|
||||
$ref: '#/components/schemas/ComputerSystem_Actions'
|
||||
required:
|
||||
- '@odata.id'
|
||||
- '@odata.type'
|
||||
- Name
|
||||
type: object
|
||||
Manager:
|
||||
additionalProperties: false
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -4,9 +4,10 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
@ -156,7 +157,6 @@ func parameterToJson(obj interface{}) (string, error) {
|
||||
return string(jsonBuf), err
|
||||
}
|
||||
|
||||
|
||||
// callAPI do the request.
|
||||
func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) {
|
||||
if c.cfg.Debug {
|
||||
@ -179,15 +179,9 @@ func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) {
|
||||
}
|
||||
log.Printf("\n%s\n", string(dump))
|
||||
}
|
||||
|
||||
return resp, err
|
||||
}
|
||||
|
||||
// ChangeBasePath changes base path to allow switching to mocks
|
||||
func (c *APIClient) ChangeBasePath(path string) {
|
||||
c.cfg.BasePath = path
|
||||
}
|
||||
|
||||
// Allow modification of underlying config for alternate implementations and testing
|
||||
// Caution: modifying the configuration while live can cause data races and potentially unwanted behavior
|
||||
func (c *APIClient) GetConfig() *Configuration {
|
||||
@ -348,12 +342,12 @@ func (c *APIClient) prepareRequest(
|
||||
if auth, ok := ctx.Value(ContextAccessToken).(string); ok {
|
||||
localVarRequest.Header.Add("Authorization", "Bearer "+auth)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
for header, value := range c.cfg.DefaultHeader {
|
||||
localVarRequest.Header.Add(header, value)
|
||||
}
|
||||
|
||||
return localVarRequest, nil
|
||||
}
|
||||
|
||||
@ -372,7 +366,15 @@ func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err err
|
||||
return nil
|
||||
}
|
||||
if jsonCheck.MatchString(contentType) {
|
||||
if err = json.Unmarshal(b, v); err != nil {
|
||||
if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas
|
||||
if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined
|
||||
if err = unmarshalObj.UnmarshalJSON(b); err != nil {
|
||||
return err
|
||||
}
|
||||
} else {
|
||||
return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined")
|
||||
}
|
||||
} else if err = json.Unmarshal(b, v); err != nil { // simple model
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
@ -410,6 +412,8 @@ func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err e
|
||||
|
||||
if reader, ok := body.(io.Reader); ok {
|
||||
_, err = bodyBuf.ReadFrom(reader)
|
||||
} else if fp, ok := body.(**os.File); ok {
|
||||
_, err = bodyBuf.ReadFrom(*fp)
|
||||
} else if b, ok := body.([]byte); ok {
|
||||
_, err = bodyBuf.Write(b)
|
||||
} else if s, ok := body.(string); ok {
|
||||
|
@ -4,13 +4,17 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// contextKeys are used to identify the type of value in the context.
|
||||
@ -33,8 +37,23 @@ var (
|
||||
// ContextAccessToken takes a string oauth2 access token as authentication for the request.
|
||||
ContextAccessToken = contextKey("accesstoken")
|
||||
|
||||
// ContextAPIKey takes an APIKey as authentication for the request
|
||||
ContextAPIKey = contextKey("apikey")
|
||||
// ContextAPIKeys takes a string apikey as authentication for the request
|
||||
ContextAPIKeys = contextKey("apiKeys")
|
||||
|
||||
// ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request.
|
||||
ContextHttpSignatureAuth = contextKey("httpsignature")
|
||||
|
||||
// ContextServerIndex uses a server configuration from the index.
|
||||
ContextServerIndex = contextKey("serverIndex")
|
||||
|
||||
// ContextOperationServerIndices uses a server configuration from the index mapping.
|
||||
ContextOperationServerIndices = contextKey("serverOperationIndices")
|
||||
|
||||
// ContextServerVariables overrides a server configuration variables.
|
||||
ContextServerVariables = contextKey("serverVariables")
|
||||
|
||||
// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
|
||||
ContextOperationServerVariables = contextKey("serverOperationVariables")
|
||||
)
|
||||
|
||||
// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth
|
||||
@ -49,24 +68,49 @@ type APIKey struct {
|
||||
Prefix string
|
||||
}
|
||||
|
||||
// ServerVariable stores the information about a server variable
|
||||
type ServerVariable struct {
|
||||
Description string
|
||||
DefaultValue string
|
||||
EnumValues []string
|
||||
}
|
||||
|
||||
// ServerConfiguration stores the information about a server
|
||||
type ServerConfiguration struct {
|
||||
URL string
|
||||
Description string
|
||||
Variables map[string]ServerVariable
|
||||
}
|
||||
|
||||
// ServerConfigurations stores multiple ServerConfiguration items
|
||||
type ServerConfigurations []ServerConfiguration
|
||||
|
||||
// Configuration stores the configuration of the API client
|
||||
type Configuration struct {
|
||||
BasePath string `json:"basePath,omitempty"`
|
||||
Host string `json:"host,omitempty"`
|
||||
Scheme string `json:"scheme,omitempty"`
|
||||
DefaultHeader map[string]string `json:"defaultHeader,omitempty"`
|
||||
UserAgent string `json:"userAgent,omitempty"`
|
||||
Debug bool `json:"debug,omitempty"`
|
||||
Servers ServerConfigurations
|
||||
OperationServers map[string]ServerConfigurations
|
||||
HTTPClient *http.Client
|
||||
}
|
||||
|
||||
// NewConfiguration returns a new Configuration object
|
||||
func NewConfiguration() *Configuration {
|
||||
cfg := &Configuration{
|
||||
BasePath: "http://localhost",
|
||||
DefaultHeader: make(map[string]string),
|
||||
UserAgent: "OpenAPI-Generator/1.0.0/go",
|
||||
Debug: false,
|
||||
Servers: ServerConfigurations{
|
||||
{
|
||||
URL: "",
|
||||
Description: "No description provided",
|
||||
},
|
||||
},
|
||||
OperationServers: map[string]ServerConfigurations{
|
||||
},
|
||||
}
|
||||
return cfg
|
||||
}
|
||||
@ -75,3 +119,112 @@ func NewConfiguration() *Configuration {
|
||||
func (c *Configuration) AddDefaultHeader(key string, value string) {
|
||||
c.DefaultHeader[key] = value
|
||||
}
|
||||
|
||||
// URL formats template on a index using given variables
|
||||
func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) {
|
||||
if index < 0 || len(sc) <= index {
|
||||
return "", fmt.Errorf("Index %v out of range %v", index, len(sc)-1)
|
||||
}
|
||||
server := sc[index]
|
||||
url := server.URL
|
||||
|
||||
// go through variables and replace placeholders
|
||||
for name, variable := range server.Variables {
|
||||
if value, ok := variables[name]; ok {
|
||||
found := bool(len(variable.EnumValues) == 0)
|
||||
for _, enumValue := range variable.EnumValues {
|
||||
if value == enumValue {
|
||||
found = true
|
||||
}
|
||||
}
|
||||
if !found {
|
||||
return "", fmt.Errorf("The variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues)
|
||||
}
|
||||
url = strings.Replace(url, "{"+name+"}", value, -1)
|
||||
} else {
|
||||
url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1)
|
||||
}
|
||||
}
|
||||
return url, nil
|
||||
}
|
||||
|
||||
// ServerURL returns URL based on server settings
|
||||
func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) {
|
||||
return c.Servers.URL(index, variables)
|
||||
}
|
||||
|
||||
func getServerIndex(ctx context.Context) (int, error) {
|
||||
si := ctx.Value(ContextServerIndex)
|
||||
if si != nil {
|
||||
if index, ok := si.(int); ok {
|
||||
return index, nil
|
||||
}
|
||||
return 0, reportError("Invalid type %T should be int", si)
|
||||
}
|
||||
return 0, nil
|
||||
}
|
||||
|
||||
func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) {
|
||||
osi := ctx.Value(ContextOperationServerIndices)
|
||||
if osi != nil {
|
||||
if operationIndices, ok := osi.(map[string]int); !ok {
|
||||
return 0, reportError("Invalid type %T should be map[string]int", osi)
|
||||
} else {
|
||||
index, ok := operationIndices[endpoint]
|
||||
if ok {
|
||||
return index, nil
|
||||
}
|
||||
}
|
||||
}
|
||||
return getServerIndex(ctx)
|
||||
}
|
||||
|
||||
func getServerVariables(ctx context.Context) (map[string]string, error) {
|
||||
sv := ctx.Value(ContextServerVariables)
|
||||
if sv != nil {
|
||||
if variables, ok := sv.(map[string]string); ok {
|
||||
return variables, nil
|
||||
}
|
||||
return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv)
|
||||
}
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) {
|
||||
osv := ctx.Value(ContextOperationServerVariables)
|
||||
if osv != nil {
|
||||
if operationVariables, ok := osv.(map[string]map[string]string); !ok {
|
||||
return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv)
|
||||
} else {
|
||||
variables, ok := operationVariables[endpoint]
|
||||
if ok {
|
||||
return variables, nil
|
||||
}
|
||||
}
|
||||
}
|
||||
return getServerVariables(ctx)
|
||||
}
|
||||
|
||||
// ServerURLWithContext returns a new server URL given an endpoint
|
||||
func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) {
|
||||
sc, ok := c.OperationServers[endpoint]
|
||||
if !ok {
|
||||
sc = c.Servers
|
||||
}
|
||||
|
||||
if ctx == nil {
|
||||
return sc.URL(0, nil)
|
||||
}
|
||||
|
||||
index, err := getServerOperationIndex(ctx, endpoint)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
variables, err := getServerOperationVariables(ctx, endpoint)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
return sc.URL(index, variables)
|
||||
}
|
||||
|
@ -4,9 +4,104 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**BootSourceOverrideEnabled** | [**BootSourceOverrideEnabled**](BootSourceOverrideEnabled.md) | | [optional]
|
||||
**BootSourceOverrideTarget** | [**BootSource**](BootSource.md) | | [optional]
|
||||
**BootSourceOverrideTargetRedfishAllowableValues** | [**[]BootSource**](BootSource.md) | | [optional]
|
||||
**BootSourceOverrideEnabled** | Pointer to [**BootSourceOverrideEnabled**](BootSourceOverrideEnabled.md) | | [optional]
|
||||
**BootSourceOverrideTarget** | Pointer to [**BootSource**](BootSource.md) | | [optional]
|
||||
**BootSourceOverrideTargetRedfishAllowableValues** | Pointer to [**[]BootSource**](BootSource.md) | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewBoot
|
||||
|
||||
`func NewBoot() *Boot`
|
||||
|
||||
NewBoot instantiates a new Boot object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewBootWithDefaults
|
||||
|
||||
`func NewBootWithDefaults() *Boot`
|
||||
|
||||
NewBootWithDefaults instantiates a new Boot object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetBootSourceOverrideEnabled
|
||||
|
||||
`func (o *Boot) GetBootSourceOverrideEnabled() BootSourceOverrideEnabled`
|
||||
|
||||
GetBootSourceOverrideEnabled returns the BootSourceOverrideEnabled field if non-nil, zero value otherwise.
|
||||
|
||||
### GetBootSourceOverrideEnabledOk
|
||||
|
||||
`func (o *Boot) GetBootSourceOverrideEnabledOk() (*BootSourceOverrideEnabled, bool)`
|
||||
|
||||
GetBootSourceOverrideEnabledOk returns a tuple with the BootSourceOverrideEnabled field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetBootSourceOverrideEnabled
|
||||
|
||||
`func (o *Boot) SetBootSourceOverrideEnabled(v BootSourceOverrideEnabled)`
|
||||
|
||||
SetBootSourceOverrideEnabled sets BootSourceOverrideEnabled field to given value.
|
||||
|
||||
### HasBootSourceOverrideEnabled
|
||||
|
||||
`func (o *Boot) HasBootSourceOverrideEnabled() bool`
|
||||
|
||||
HasBootSourceOverrideEnabled returns a boolean if a field has been set.
|
||||
|
||||
### GetBootSourceOverrideTarget
|
||||
|
||||
`func (o *Boot) GetBootSourceOverrideTarget() BootSource`
|
||||
|
||||
GetBootSourceOverrideTarget returns the BootSourceOverrideTarget field if non-nil, zero value otherwise.
|
||||
|
||||
### GetBootSourceOverrideTargetOk
|
||||
|
||||
`func (o *Boot) GetBootSourceOverrideTargetOk() (*BootSource, bool)`
|
||||
|
||||
GetBootSourceOverrideTargetOk returns a tuple with the BootSourceOverrideTarget field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetBootSourceOverrideTarget
|
||||
|
||||
`func (o *Boot) SetBootSourceOverrideTarget(v BootSource)`
|
||||
|
||||
SetBootSourceOverrideTarget sets BootSourceOverrideTarget field to given value.
|
||||
|
||||
### HasBootSourceOverrideTarget
|
||||
|
||||
`func (o *Boot) HasBootSourceOverrideTarget() bool`
|
||||
|
||||
HasBootSourceOverrideTarget returns a boolean if a field has been set.
|
||||
|
||||
### GetBootSourceOverrideTargetRedfishAllowableValues
|
||||
|
||||
`func (o *Boot) GetBootSourceOverrideTargetRedfishAllowableValues() []BootSource`
|
||||
|
||||
GetBootSourceOverrideTargetRedfishAllowableValues returns the BootSourceOverrideTargetRedfishAllowableValues field if non-nil, zero value otherwise.
|
||||
|
||||
### GetBootSourceOverrideTargetRedfishAllowableValuesOk
|
||||
|
||||
`func (o *Boot) GetBootSourceOverrideTargetRedfishAllowableValuesOk() (*[]BootSource, bool)`
|
||||
|
||||
GetBootSourceOverrideTargetRedfishAllowableValuesOk returns a tuple with the BootSourceOverrideTargetRedfishAllowableValues field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetBootSourceOverrideTargetRedfishAllowableValues
|
||||
|
||||
`func (o *Boot) SetBootSourceOverrideTargetRedfishAllowableValues(v []BootSource)`
|
||||
|
||||
SetBootSourceOverrideTargetRedfishAllowableValues sets BootSourceOverrideTargetRedfishAllowableValues field to given value.
|
||||
|
||||
### HasBootSourceOverrideTargetRedfishAllowableValues
|
||||
|
||||
`func (o *Boot) HasBootSourceOverrideTargetRedfishAllowableValues() bool`
|
||||
|
||||
HasBootSourceOverrideTargetRedfishAllowableValues returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -1,9 +1,38 @@
|
||||
# BootSource
|
||||
|
||||
## Properties
|
||||
## Enum
|
||||
|
||||
|
||||
* `NONE` (value: `"None"`)
|
||||
|
||||
* `PXE` (value: `"Pxe"`)
|
||||
|
||||
* `FLOPPY` (value: `"Floppy"`)
|
||||
|
||||
* `CD` (value: `"Cd"`)
|
||||
|
||||
* `USB` (value: `"Usb"`)
|
||||
|
||||
* `HDD` (value: `"Hdd"`)
|
||||
|
||||
* `BIOS_SETUP` (value: `"BiosSetup"`)
|
||||
|
||||
* `UTILITIES` (value: `"Utilities"`)
|
||||
|
||||
* `DIAGS` (value: `"Diags"`)
|
||||
|
||||
* `UEFI_SHELL` (value: `"UefiShell"`)
|
||||
|
||||
* `UEFI_TARGET` (value: `"UefiTarget"`)
|
||||
|
||||
* `SD_CARD` (value: `"SDCard"`)
|
||||
|
||||
* `UEFI_HTTP` (value: `"UefiHttp"`)
|
||||
|
||||
* `REMOTE_DRIVE` (value: `"RemoteDrive"`)
|
||||
|
||||
* `UEFI_BOOT_NEXT` (value: `"UefiBootNext"`)
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -1,9 +1,14 @@
|
||||
# BootSourceOverrideEnabled
|
||||
|
||||
## Properties
|
||||
## Enum
|
||||
|
||||
|
||||
* `ONCE` (value: `"Once"`)
|
||||
|
||||
* `CONTINUOUS` (value: `"Continuous"`)
|
||||
|
||||
* `DISABLED` (value: `"Disabled"`)
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -4,16 +4,251 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**OdataContext** | **string** | context | [optional]
|
||||
**OdataEtag** | **string** | etag | [optional]
|
||||
**OdataContext** | Pointer to **string** | context | [optional]
|
||||
**OdataEtag** | Pointer to **string** | etag | [optional]
|
||||
**OdataId** | **string** | id |
|
||||
**OdataType** | **string** | type |
|
||||
**Description** | Pointer to **string** | description | [optional] [readonly]
|
||||
**Members** | [**[]IdRef**](idRef.md) | Contains the members of this collection. | [readonly]
|
||||
**MembersodataCount** | **int32** | The number of items in a collection. | [optional] [readonly]
|
||||
**MembersodataNextLink** | **string** | The URI to the resource containing the next set of partial members. | [optional] [readonly]
|
||||
**Description** | Pointer to **NullableString** | description | [optional] [readonly]
|
||||
**Members** | [**[]IdRef**](IdRef.md) | Contains the members of this collection. | [readonly]
|
||||
**MembersodataCount** | Pointer to **int32** | The number of items in a collection. | [optional] [readonly]
|
||||
**MembersodataNextLink** | Pointer to **string** | The URI to the resource containing the next set of partial members. | [optional] [readonly]
|
||||
**Name** | **string** | The name of the resource. | [readonly]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewCollection
|
||||
|
||||
`func NewCollection(odataId string, odataType string, members []IdRef, name string, ) *Collection`
|
||||
|
||||
NewCollection instantiates a new Collection object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewCollectionWithDefaults
|
||||
|
||||
`func NewCollectionWithDefaults() *Collection`
|
||||
|
||||
NewCollectionWithDefaults instantiates a new Collection object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetOdataContext
|
||||
|
||||
`func (o *Collection) GetOdataContext() string`
|
||||
|
||||
GetOdataContext returns the OdataContext field if non-nil, zero value otherwise.
|
||||
|
||||
### GetOdataContextOk
|
||||
|
||||
`func (o *Collection) GetOdataContextOk() (*string, bool)`
|
||||
|
||||
GetOdataContextOk returns a tuple with the OdataContext field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetOdataContext
|
||||
|
||||
`func (o *Collection) SetOdataContext(v string)`
|
||||
|
||||
SetOdataContext sets OdataContext field to given value.
|
||||
|
||||
### HasOdataContext
|
||||
|
||||
`func (o *Collection) HasOdataContext() bool`
|
||||
|
||||
HasOdataContext returns a boolean if a field has been set.
|
||||
|
||||
### GetOdataEtag
|
||||
|
||||
`func (o *Collection) GetOdataEtag() string`
|
||||
|
||||
GetOdataEtag returns the OdataEtag field if non-nil, zero value otherwise.
|
||||
|
||||
### GetOdataEtagOk
|
||||
|
||||
`func (o *Collection) GetOdataEtagOk() (*string, bool)`
|
||||
|
||||
GetOdataEtagOk returns a tuple with the OdataEtag field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetOdataEtag
|
||||
|
||||
`func (o *Collection) SetOdataEtag(v string)`
|
||||
|
||||
SetOdataEtag sets OdataEtag field to given value.
|
||||
|
||||
### HasOdataEtag
|
||||
|
||||
`func (o *Collection) HasOdataEtag() bool`
|
||||
|
||||
HasOdataEtag returns a boolean if a field has been set.
|
||||
|
||||
### GetOdataId
|
||||
|
||||
`func (o *Collection) GetOdataId() string`
|
||||
|
||||
GetOdataId returns the OdataId field if non-nil, zero value otherwise.
|
||||
|
||||
### GetOdataIdOk
|
||||
|
||||
`func (o *Collection) GetOdataIdOk() (*string, bool)`
|
||||
|
||||
GetOdataIdOk returns a tuple with the OdataId field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetOdataId
|
||||
|
||||
`func (o *Collection) SetOdataId(v string)`
|
||||
|
||||
SetOdataId sets OdataId field to given value.
|
||||
|
||||
|
||||
### GetOdataType
|
||||
|
||||
`func (o *Collection) GetOdataType() string`
|
||||
|
||||
GetOdataType returns the OdataType field if non-nil, zero value otherwise.
|
||||
|
||||
### GetOdataTypeOk
|
||||
|
||||
`func (o *Collection) GetOdataTypeOk() (*string, bool)`
|
||||
|
||||
GetOdataTypeOk returns a tuple with the OdataType field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetOdataType
|
||||
|
||||
`func (o *Collection) SetOdataType(v string)`
|
||||
|
||||
SetOdataType sets OdataType field to given value.
|
||||
|
||||
|
||||
### GetDescription
|
||||
|
||||
`func (o *Collection) GetDescription() string`
|
||||
|
||||
GetDescription returns the Description field if non-nil, zero value otherwise.
|
||||
|
||||
### GetDescriptionOk
|
||||
|
||||
`func (o *Collection) GetDescriptionOk() (*string, bool)`
|
||||
|
||||
GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetDescription
|
||||
|
||||
`func (o *Collection) SetDescription(v string)`
|
||||
|
||||
SetDescription sets Description field to given value.
|
||||
|
||||
### HasDescription
|
||||
|
||||
`func (o *Collection) HasDescription() bool`
|
||||
|
||||
HasDescription returns a boolean if a field has been set.
|
||||
|
||||
### SetDescriptionNil
|
||||
|
||||
`func (o *Collection) SetDescriptionNil(b bool)`
|
||||
|
||||
SetDescriptionNil sets the value for Description to be an explicit nil
|
||||
|
||||
### UnsetDescription
|
||||
`func (o *Collection) UnsetDescription()`
|
||||
|
||||
UnsetDescription ensures that no value is present for Description, not even an explicit nil
|
||||
### GetMembers
|
||||
|
||||
`func (o *Collection) GetMembers() []IdRef`
|
||||
|
||||
GetMembers returns the Members field if non-nil, zero value otherwise.
|
||||
|
||||
### GetMembersOk
|
||||
|
||||
`func (o *Collection) GetMembersOk() (*[]IdRef, bool)`
|
||||
|
||||
GetMembersOk returns a tuple with the Members field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetMembers
|
||||
|
||||
`func (o *Collection) SetMembers(v []IdRef)`
|
||||
|
||||
SetMembers sets Members field to given value.
|
||||
|
||||
|
||||
### GetMembersodataCount
|
||||
|
||||
`func (o *Collection) GetMembersodataCount() int32`
|
||||
|
||||
GetMembersodataCount returns the MembersodataCount field if non-nil, zero value otherwise.
|
||||
|
||||
### GetMembersodataCountOk
|
||||
|
||||
`func (o *Collection) GetMembersodataCountOk() (*int32, bool)`
|
||||
|
||||
GetMembersodataCountOk returns a tuple with the MembersodataCount field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetMembersodataCount
|
||||
|
||||
`func (o *Collection) SetMembersodataCount(v int32)`
|
||||
|
||||
SetMembersodataCount sets MembersodataCount field to given value.
|
||||
|
||||
### HasMembersodataCount
|
||||
|
||||
`func (o *Collection) HasMembersodataCount() bool`
|
||||
|
||||
HasMembersodataCount returns a boolean if a field has been set.
|
||||
|
||||
### GetMembersodataNextLink
|
||||
|
||||
`func (o *Collection) GetMembersodataNextLink() string`
|
||||
|
||||
GetMembersodataNextLink returns the MembersodataNextLink field if non-nil, zero value otherwise.
|
||||
|
||||
### GetMembersodataNextLinkOk
|
||||
|
||||
`func (o *Collection) GetMembersodataNextLinkOk() (*string, bool)`
|
||||
|
||||
GetMembersodataNextLinkOk returns a tuple with the MembersodataNextLink field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetMembersodataNextLink
|
||||
|
||||
`func (o *Collection) SetMembersodataNextLink(v string)`
|
||||
|
||||
SetMembersodataNextLink sets MembersodataNextLink field to given value.
|
||||
|
||||
### HasMembersodataNextLink
|
||||
|
||||
`func (o *Collection) HasMembersodataNextLink() bool`
|
||||
|
||||
HasMembersodataNextLink returns a boolean if a field has been set.
|
||||
|
||||
### GetName
|
||||
|
||||
`func (o *Collection) GetName() string`
|
||||
|
||||
GetName returns the Name field if non-nil, zero value otherwise.
|
||||
|
||||
### GetNameOk
|
||||
|
||||
`func (o *Collection) GetNameOk() (*string, bool)`
|
||||
|
||||
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetName
|
||||
|
||||
`func (o *Collection) SetName(v string)`
|
||||
|
||||
SetName sets Name field to given value.
|
||||
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
|
@ -4,27 +4,572 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Id** | **string** | The name of the resource. | [optional] [readonly]
|
||||
**Name** | **string** | The name of the resource. | [readonly]
|
||||
**RedfishVersion** | **string** | redfish version | [optional]
|
||||
**UUID** | **string** | | [optional]
|
||||
**OdataType** | **string** | The type of a resource. | [readonly]
|
||||
**OdataId** | **string** | The unique identifier for a resource. | [readonly]
|
||||
**OdataContext** | **string** | The OData description of a payload. | [optional] [readonly]
|
||||
**RedfishCopyright** | **string** | redfish copyright | [optional]
|
||||
**Bios** | [**IdRef**](idRef.md) | | [optional]
|
||||
**Processors** | [**IdRef**](idRef.md) | | [optional]
|
||||
**Memory** | [**IdRef**](idRef.md) | | [optional]
|
||||
**EthernetInterfaces** | [**IdRef**](idRef.md) | | [optional]
|
||||
**SimpleStorage** | [**IdRef**](idRef.md) | | [optional]
|
||||
**PowerState** | [**PowerState**](PowerState.md) | | [optional]
|
||||
**Status** | [**Status**](Status.md) | | [optional]
|
||||
**Boot** | [**Boot**](Boot.md) | | [optional]
|
||||
**ProcessorSummary** | [**ProcessorSummary**](ProcessorSummary.md) | | [optional]
|
||||
**MemorySummary** | [**MemorySummary**](MemorySummary.md) | | [optional]
|
||||
**IndicatorLED** | [**IndicatorLed**](IndicatorLED.md) | | [optional]
|
||||
**Links** | [**SystemLinks**](SystemLinks.md) | | [optional]
|
||||
**Actions** | [**ComputerSystemActions**](ComputerSystem_Actions.md) | | [optional]
|
||||
**Id** | Pointer to **string** | The name of the resource. | [optional] [readonly]
|
||||
**Name** | Pointer to **string** | The name of the resource. | [optional] [readonly]
|
||||
**RedfishVersion** | Pointer to **string** | redfish version | [optional]
|
||||
**UUID** | Pointer to **string** | | [optional]
|
||||
**OdataType** | Pointer to **string** | The type of a resource. | [optional] [readonly]
|
||||
**OdataId** | Pointer to **string** | The unique identifier for a resource. | [optional] [readonly]
|
||||
**OdataContext** | Pointer to **string** | The OData description of a payload. | [optional] [readonly]
|
||||
**RedfishCopyright** | Pointer to **string** | redfish copyright | [optional]
|
||||
**Bios** | Pointer to [**IdRef**](IdRef.md) | | [optional]
|
||||
**Processors** | Pointer to [**IdRef**](IdRef.md) | | [optional]
|
||||
**Memory** | Pointer to [**IdRef**](IdRef.md) | | [optional]
|
||||
**EthernetInterfaces** | Pointer to [**IdRef**](IdRef.md) | | [optional]
|
||||
**SimpleStorage** | Pointer to [**IdRef**](IdRef.md) | | [optional]
|
||||
**PowerState** | Pointer to [**PowerState**](PowerState.md) | | [optional]
|
||||
**Status** | Pointer to [**Status**](Status.md) | | [optional]
|
||||
**Boot** | Pointer to [**Boot**](Boot.md) | | [optional]
|
||||
**ProcessorSummary** | Pointer to [**ProcessorSummary**](ProcessorSummary.md) | | [optional]
|
||||
**MemorySummary** | Pointer to [**MemorySummary**](MemorySummary.md) | | [optional]
|
||||
**IndicatorLED** | Pointer to [**IndicatorLED**](IndicatorLED.md) | | [optional]
|
||||
**Links** | Pointer to [**SystemLinks**](SystemLinks.md) | | [optional]
|
||||
**Actions** | Pointer to [**ComputerSystemActions**](ComputerSystemActions.md) | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewComputerSystem
|
||||
|
||||
`func NewComputerSystem() *ComputerSystem`
|
||||
|
||||
NewComputerSystem instantiates a new ComputerSystem object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewComputerSystemWithDefaults
|
||||
|
||||
`func NewComputerSystemWithDefaults() *ComputerSystem`
|
||||
|
||||
NewComputerSystemWithDefaults instantiates a new ComputerSystem object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetId
|
||||
|
||||
`func (o *ComputerSystem) GetId() string`
|
||||
|
||||
GetId returns the Id field if non-nil, zero value otherwise.
|
||||
|
||||
### GetIdOk
|
||||
|
||||
`func (o *ComputerSystem) GetIdOk() (*string, bool)`
|
||||
|
||||
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetId
|
||||
|
||||
`func (o *ComputerSystem) SetId(v string)`
|
||||
|
||||
SetId sets Id field to given value.
|
||||
|
||||
### HasId
|
||||
|
||||
`func (o *ComputerSystem) HasId() bool`
|
||||
|
||||
HasId returns a boolean if a field has been set.
|
||||
|
||||
### GetName
|
||||
|
||||
`func (o *ComputerSystem) GetName() string`
|
||||
|
||||
GetName returns the Name field if non-nil, zero value otherwise.
|
||||
|
||||
### GetNameOk
|
||||
|
||||
`func (o *ComputerSystem) GetNameOk() (*string, bool)`
|
||||
|
||||
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetName
|
||||
|
||||
`func (o *ComputerSystem) SetName(v string)`
|
||||
|
||||
SetName sets Name field to given value.
|
||||
|
||||
### HasName
|
||||
|
||||
`func (o *ComputerSystem) HasName() bool`
|
||||
|
||||
HasName returns a boolean if a field has been set.
|
||||
|
||||
### GetRedfishVersion
|
||||
|
||||
`func (o *ComputerSystem) GetRedfishVersion() string`
|
||||
|
||||
GetRedfishVersion returns the RedfishVersion field if non-nil, zero value otherwise.
|
||||
|
||||
### GetRedfishVersionOk
|
||||
|
||||
`func (o *ComputerSystem) GetRedfishVersionOk() (*string, bool)`
|
||||
|
||||
GetRedfishVersionOk returns a tuple with the RedfishVersion field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetRedfishVersion
|
||||
|
||||
`func (o *ComputerSystem) SetRedfishVersion(v string)`
|
||||
|
||||
SetRedfishVersion sets RedfishVersion field to given value.
|
||||
|
||||
### HasRedfishVersion
|
||||
|
||||
`func (o *ComputerSystem) HasRedfishVersion() bool`
|
||||
|
||||
HasRedfishVersion returns a boolean if a field has been set.
|
||||
|
||||
### GetUUID
|
||||
|
||||
`func (o *ComputerSystem) GetUUID() string`
|
||||
|
||||
GetUUID returns the UUID field if non-nil, zero value otherwise.
|
||||
|
||||
### GetUUIDOk
|
||||
|
||||
`func (o *ComputerSystem) GetUUIDOk() (*string, bool)`
|
||||
|
||||
GetUUIDOk returns a tuple with the UUID field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetUUID
|
||||
|
||||
`func (o *ComputerSystem) SetUUID(v string)`
|
||||
|
||||
SetUUID sets UUID field to given value.
|
||||
|
||||
### HasUUID
|
||||
|
||||
`func (o *ComputerSystem) HasUUID() bool`
|
||||
|
||||
HasUUID returns a boolean if a field has been set.
|
||||
|
||||
### GetOdataType
|
||||
|
||||
`func (o *ComputerSystem) GetOdataType() string`
|
||||
|
||||
GetOdataType returns the OdataType field if non-nil, zero value otherwise.
|
||||
|
||||
### GetOdataTypeOk
|
||||
|
||||
`func (o *ComputerSystem) GetOdataTypeOk() (*string, bool)`
|
||||
|
||||
GetOdataTypeOk returns a tuple with the OdataType field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetOdataType
|
||||
|
||||
`func (o *ComputerSystem) SetOdataType(v string)`
|
||||
|
||||
SetOdataType sets OdataType field to given value.
|
||||
|
||||
### HasOdataType
|
||||
|
||||
`func (o *ComputerSystem) HasOdataType() bool`
|
||||
|
||||
HasOdataType returns a boolean if a field has been set.
|
||||
|
||||
### GetOdataId
|
||||
|
||||
`func (o *ComputerSystem) GetOdataId() string`
|
||||
|
||||
GetOdataId returns the OdataId field if non-nil, zero value otherwise.
|
||||
|
||||
### GetOdataIdOk
|
||||
|
||||
`func (o *ComputerSystem) GetOdataIdOk() (*string, bool)`
|
||||
|
||||
GetOdataIdOk returns a tuple with the OdataId field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetOdataId
|
||||
|
||||
`func (o *ComputerSystem) SetOdataId(v string)`
|
||||
|
||||
SetOdataId sets OdataId field to given value.
|
||||
|
||||
### HasOdataId
|
||||
|
||||
`func (o *ComputerSystem) HasOdataId() bool`
|
||||
|
||||
HasOdataId returns a boolean if a field has been set.
|
||||
|
||||
### GetOdataContext
|
||||
|
||||
`func (o *ComputerSystem) GetOdataContext() string`
|
||||
|
||||
GetOdataContext returns the OdataContext field if non-nil, zero value otherwise.
|
||||
|
||||
### GetOdataContextOk
|
||||
|
||||
`func (o *ComputerSystem) GetOdataContextOk() (*string, bool)`
|
||||
|
||||
GetOdataContextOk returns a tuple with the OdataContext field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetOdataContext
|
||||
|
||||
`func (o *ComputerSystem) SetOdataContext(v string)`
|
||||
|
||||
SetOdataContext sets OdataContext field to given value.
|
||||
|
||||
### HasOdataContext
|
||||
|
||||
`func (o *ComputerSystem) HasOdataContext() bool`
|
||||
|
||||
HasOdataContext returns a boolean if a field has been set.
|
||||
|
||||
### GetRedfishCopyright
|
||||
|
||||
`func (o *ComputerSystem) GetRedfishCopyright() string`
|
||||
|
||||
GetRedfishCopyright returns the RedfishCopyright field if non-nil, zero value otherwise.
|
||||
|
||||
### GetRedfishCopyrightOk
|
||||
|
||||
`func (o *ComputerSystem) GetRedfishCopyrightOk() (*string, bool)`
|
||||
|
||||
GetRedfishCopyrightOk returns a tuple with the RedfishCopyright field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetRedfishCopyright
|
||||
|
||||
`func (o *ComputerSystem) SetRedfishCopyright(v string)`
|
||||
|
||||
SetRedfishCopyright sets RedfishCopyright field to given value.
|
||||
|
||||
### HasRedfishCopyright
|
||||
|
||||
`func (o *ComputerSystem) HasRedfishCopyright() bool`
|
||||
|
||||
HasRedfishCopyright returns a boolean if a field has been set.
|
||||
|
||||
### GetBios
|
||||
|
||||
`func (o *ComputerSystem) GetBios() IdRef`
|
||||
|
||||
GetBios returns the Bios field if non-nil, zero value otherwise.
|
||||
|
||||
### GetBiosOk
|
||||
|
||||
`func (o *ComputerSystem) GetBiosOk() (*IdRef, bool)`
|
||||
|
||||
GetBiosOk returns a tuple with the Bios field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetBios
|
||||
|
||||
`func (o *ComputerSystem) SetBios(v IdRef)`
|
||||
|
||||
SetBios sets Bios field to given value.
|
||||
|
||||
### HasBios
|
||||
|
||||
`func (o *ComputerSystem) HasBios() bool`
|
||||
|
||||
HasBios returns a boolean if a field has been set.
|
||||
|
||||
### GetProcessors
|
||||
|
||||
`func (o *ComputerSystem) GetProcessors() IdRef`
|
||||
|
||||
GetProcessors returns the Processors field if non-nil, zero value otherwise.
|
||||
|
||||
### GetProcessorsOk
|
||||
|
||||
`func (o *ComputerSystem) GetProcessorsOk() (*IdRef, bool)`
|
||||
|
||||
GetProcessorsOk returns a tuple with the Processors field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetProcessors
|
||||
|
||||
`func (o *ComputerSystem) SetProcessors(v IdRef)`
|
||||
|
||||
SetProcessors sets Processors field to given value.
|
||||
|
||||
### HasProcessors
|
||||
|
||||
`func (o *ComputerSystem) HasProcessors() bool`
|
||||
|
||||
HasProcessors returns a boolean if a field has been set.
|
||||
|
||||
### GetMemory
|
||||
|
||||
`func (o *ComputerSystem) GetMemory() IdRef`
|
||||
|
||||
GetMemory returns the Memory field if non-nil, zero value otherwise.
|
||||
|
||||
### GetMemoryOk
|
||||
|
||||
`func (o *ComputerSystem) GetMemoryOk() (*IdRef, bool)`
|
||||
|
||||
GetMemoryOk returns a tuple with the Memory field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetMemory
|
||||
|
||||
`func (o *ComputerSystem) SetMemory(v IdRef)`
|
||||
|
||||
SetMemory sets Memory field to given value.
|
||||
|
||||
### HasMemory
|
||||
|
||||
`func (o *ComputerSystem) HasMemory() bool`
|
||||
|
||||
HasMemory returns a boolean if a field has been set.
|
||||
|
||||
### GetEthernetInterfaces
|
||||
|
||||
`func (o *ComputerSystem) GetEthernetInterfaces() IdRef`
|
||||
|
||||
GetEthernetInterfaces returns the EthernetInterfaces field if non-nil, zero value otherwise.
|
||||
|
||||
### GetEthernetInterfacesOk
|
||||
|
||||
`func (o *ComputerSystem) GetEthernetInterfacesOk() (*IdRef, bool)`
|
||||
|
||||
GetEthernetInterfacesOk returns a tuple with the EthernetInterfaces field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetEthernetInterfaces
|
||||
|
||||
`func (o *ComputerSystem) SetEthernetInterfaces(v IdRef)`
|
||||
|
||||
SetEthernetInterfaces sets EthernetInterfaces field to given value.
|
||||
|
||||
### HasEthernetInterfaces
|
||||
|
||||
`func (o *ComputerSystem) HasEthernetInterfaces() bool`
|
||||
|
||||
HasEthernetInterfaces returns a boolean if a field has been set.
|
||||
|
||||
### GetSimpleStorage
|
||||
|
||||
`func (o *ComputerSystem) GetSimpleStorage() IdRef`
|
||||
|
||||
GetSimpleStorage returns the SimpleStorage field if non-nil, zero value otherwise.
|
||||
|
||||
### GetSimpleStorageOk
|
||||
|
||||
`func (o *ComputerSystem) GetSimpleStorageOk() (*IdRef, bool)`
|
||||
|
||||
GetSimpleStorageOk returns a tuple with the SimpleStorage field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetSimpleStorage
|
||||
|
||||
`func (o *ComputerSystem) SetSimpleStorage(v IdRef)`
|
||||
|
||||
SetSimpleStorage sets SimpleStorage field to given value.
|
||||
|
||||
### HasSimpleStorage
|
||||
|
||||
`func (o *ComputerSystem) HasSimpleStorage() bool`
|
||||
|
||||
HasSimpleStorage returns a boolean if a field has been set.
|
||||
|
||||
### GetPowerState
|
||||
|
||||
`func (o *ComputerSystem) GetPowerState() PowerState`
|
||||
|
||||
GetPowerState returns the PowerState field if non-nil, zero value otherwise.
|
||||
|
||||
### GetPowerStateOk
|
||||
|
||||
`func (o *ComputerSystem) GetPowerStateOk() (*PowerState, bool)`
|
||||
|
||||
GetPowerStateOk returns a tuple with the PowerState field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetPowerState
|
||||
|
||||
`func (o *ComputerSystem) SetPowerState(v PowerState)`
|
||||
|
||||
SetPowerState sets PowerState field to given value.
|
||||
|
||||
### HasPowerState
|
||||
|
||||
`func (o *ComputerSystem) HasPowerState() bool`
|
||||
|
||||
HasPowerState returns a boolean if a field has been set.
|
||||
|
||||
### GetStatus
|
||||
|
||||
`func (o *ComputerSystem) GetStatus() Status`
|
||||
|
||||
GetStatus returns the Status field if non-nil, zero value otherwise.
|
||||
|
||||
### GetStatusOk
|
||||
|
||||
`func (o *ComputerSystem) GetStatusOk() (*Status, bool)`
|
||||
|
||||
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetStatus
|
||||
|
||||
`func (o *ComputerSystem) SetStatus(v Status)`
|
||||
|
||||
SetStatus sets Status field to given value.
|
||||
|
||||
### HasStatus
|
||||
|
||||
`func (o *ComputerSystem) HasStatus() bool`
|
||||
|
||||
HasStatus returns a boolean if a field has been set.
|
||||
|
||||
### GetBoot
|
||||
|
||||
`func (o *ComputerSystem) GetBoot() Boot`
|
||||
|
||||
GetBoot returns the Boot field if non-nil, zero value otherwise.
|
||||
|
||||
### GetBootOk
|
||||
|
||||
`func (o *ComputerSystem) GetBootOk() (*Boot, bool)`
|
||||
|
||||
GetBootOk returns a tuple with the Boot field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetBoot
|
||||
|
||||
`func (o *ComputerSystem) SetBoot(v Boot)`
|
||||
|
||||
SetBoot sets Boot field to given value.
|
||||
|
||||
### HasBoot
|
||||
|
||||
`func (o *ComputerSystem) HasBoot() bool`
|
||||
|
||||
HasBoot returns a boolean if a field has been set.
|
||||
|
||||
### GetProcessorSummary
|
||||
|
||||
`func (o *ComputerSystem) GetProcessorSummary() ProcessorSummary`
|
||||
|
||||
GetProcessorSummary returns the ProcessorSummary field if non-nil, zero value otherwise.
|
||||
|
||||
### GetProcessorSummaryOk
|
||||
|
||||
`func (o *ComputerSystem) GetProcessorSummaryOk() (*ProcessorSummary, bool)`
|
||||
|
||||
GetProcessorSummaryOk returns a tuple with the ProcessorSummary field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetProcessorSummary
|
||||
|
||||
`func (o *ComputerSystem) SetProcessorSummary(v ProcessorSummary)`
|
||||
|
||||
SetProcessorSummary sets ProcessorSummary field to given value.
|
||||
|
||||
### HasProcessorSummary
|
||||
|
||||
`func (o *ComputerSystem) HasProcessorSummary() bool`
|
||||
|
||||
HasProcessorSummary returns a boolean if a field has been set.
|
||||
|
||||
### GetMemorySummary
|
||||
|
||||
`func (o *ComputerSystem) GetMemorySummary() MemorySummary`
|
||||
|
||||
GetMemorySummary returns the MemorySummary field if non-nil, zero value otherwise.
|
||||
|
||||
### GetMemorySummaryOk
|
||||
|
||||
`func (o *ComputerSystem) GetMemorySummaryOk() (*MemorySummary, bool)`
|
||||
|
||||
GetMemorySummaryOk returns a tuple with the MemorySummary field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetMemorySummary
|
||||
|
||||
`func (o *ComputerSystem) SetMemorySummary(v MemorySummary)`
|
||||
|
||||
SetMemorySummary sets MemorySummary field to given value.
|
||||
|
||||
### HasMemorySummary
|
||||
|
||||
`func (o *ComputerSystem) HasMemorySummary() bool`
|
||||
|
||||
HasMemorySummary returns a boolean if a field has been set.
|
||||
|
||||
### GetIndicatorLED
|
||||
|
||||
`func (o *ComputerSystem) GetIndicatorLED() IndicatorLED`
|
||||
|
||||
GetIndicatorLED returns the IndicatorLED field if non-nil, zero value otherwise.
|
||||
|
||||
### GetIndicatorLEDOk
|
||||
|
||||
`func (o *ComputerSystem) GetIndicatorLEDOk() (*IndicatorLED, bool)`
|
||||
|
||||
GetIndicatorLEDOk returns a tuple with the IndicatorLED field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetIndicatorLED
|
||||
|
||||
`func (o *ComputerSystem) SetIndicatorLED(v IndicatorLED)`
|
||||
|
||||
SetIndicatorLED sets IndicatorLED field to given value.
|
||||
|
||||
### HasIndicatorLED
|
||||
|
||||
`func (o *ComputerSystem) HasIndicatorLED() bool`
|
||||
|
||||
HasIndicatorLED returns a boolean if a field has been set.
|
||||
|
||||
### GetLinks
|
||||
|
||||
`func (o *ComputerSystem) GetLinks() SystemLinks`
|
||||
|
||||
GetLinks returns the Links field if non-nil, zero value otherwise.
|
||||
|
||||
### GetLinksOk
|
||||
|
||||
`func (o *ComputerSystem) GetLinksOk() (*SystemLinks, bool)`
|
||||
|
||||
GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetLinks
|
||||
|
||||
`func (o *ComputerSystem) SetLinks(v SystemLinks)`
|
||||
|
||||
SetLinks sets Links field to given value.
|
||||
|
||||
### HasLinks
|
||||
|
||||
`func (o *ComputerSystem) HasLinks() bool`
|
||||
|
||||
HasLinks returns a boolean if a field has been set.
|
||||
|
||||
### GetActions
|
||||
|
||||
`func (o *ComputerSystem) GetActions() ComputerSystemActions`
|
||||
|
||||
GetActions returns the Actions field if non-nil, zero value otherwise.
|
||||
|
||||
### GetActionsOk
|
||||
|
||||
`func (o *ComputerSystem) GetActionsOk() (*ComputerSystemActions, bool)`
|
||||
|
||||
GetActionsOk returns a tuple with the Actions field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetActions
|
||||
|
||||
`func (o *ComputerSystem) SetActions(v ComputerSystemActions)`
|
||||
|
||||
SetActions sets Actions field to given value.
|
||||
|
||||
### HasActions
|
||||
|
||||
`func (o *ComputerSystem) HasActions() bool`
|
||||
|
||||
HasActions returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -4,7 +4,52 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**ComputerSystemReset** | [**ComputerSystemReset**](ComputerSystemReset.md) | | [optional]
|
||||
**ComputerSystemReset** | Pointer to [**ComputerSystemReset**](ComputerSystemReset.md) | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewComputerSystemActions
|
||||
|
||||
`func NewComputerSystemActions() *ComputerSystemActions`
|
||||
|
||||
NewComputerSystemActions instantiates a new ComputerSystemActions object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewComputerSystemActionsWithDefaults
|
||||
|
||||
`func NewComputerSystemActionsWithDefaults() *ComputerSystemActions`
|
||||
|
||||
NewComputerSystemActionsWithDefaults instantiates a new ComputerSystemActions object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetComputerSystemReset
|
||||
|
||||
`func (o *ComputerSystemActions) GetComputerSystemReset() ComputerSystemReset`
|
||||
|
||||
GetComputerSystemReset returns the ComputerSystemReset field if non-nil, zero value otherwise.
|
||||
|
||||
### GetComputerSystemResetOk
|
||||
|
||||
`func (o *ComputerSystemActions) GetComputerSystemResetOk() (*ComputerSystemReset, bool)`
|
||||
|
||||
GetComputerSystemResetOk returns a tuple with the ComputerSystemReset field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetComputerSystemReset
|
||||
|
||||
`func (o *ComputerSystemActions) SetComputerSystemReset(v ComputerSystemReset)`
|
||||
|
||||
SetComputerSystemReset sets ComputerSystemReset field to given value.
|
||||
|
||||
### HasComputerSystemReset
|
||||
|
||||
`func (o *ComputerSystemActions) HasComputerSystemReset() bool`
|
||||
|
||||
HasComputerSystemReset returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -4,8 +4,78 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Target** | **string** | The unique identifier for a resource. | [optional] [readonly]
|
||||
**ResetTypeRedfishAllowableValues** | [**[]ResetType**](ResetType.md) | | [optional]
|
||||
**Target** | Pointer to **string** | The unique identifier for a resource. | [optional] [readonly]
|
||||
**ResetTypeRedfishAllowableValues** | Pointer to [**[]ResetType**](ResetType.md) | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewComputerSystemReset
|
||||
|
||||
`func NewComputerSystemReset() *ComputerSystemReset`
|
||||
|
||||
NewComputerSystemReset instantiates a new ComputerSystemReset object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewComputerSystemResetWithDefaults
|
||||
|
||||
`func NewComputerSystemResetWithDefaults() *ComputerSystemReset`
|
||||
|
||||
NewComputerSystemResetWithDefaults instantiates a new ComputerSystemReset object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetTarget
|
||||
|
||||
`func (o *ComputerSystemReset) GetTarget() string`
|
||||
|
||||
GetTarget returns the Target field if non-nil, zero value otherwise.
|
||||
|
||||
### GetTargetOk
|
||||
|
||||
`func (o *ComputerSystemReset) GetTargetOk() (*string, bool)`
|
||||
|
||||
GetTargetOk returns a tuple with the Target field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetTarget
|
||||
|
||||
`func (o *ComputerSystemReset) SetTarget(v string)`
|
||||
|
||||
SetTarget sets Target field to given value.
|
||||
|
||||
### HasTarget
|
||||
|
||||
`func (o *ComputerSystemReset) HasTarget() bool`
|
||||
|
||||
HasTarget returns a boolean if a field has been set.
|
||||
|
||||
### GetResetTypeRedfishAllowableValues
|
||||
|
||||
`func (o *ComputerSystemReset) GetResetTypeRedfishAllowableValues() []ResetType`
|
||||
|
||||
GetResetTypeRedfishAllowableValues returns the ResetTypeRedfishAllowableValues field if non-nil, zero value otherwise.
|
||||
|
||||
### GetResetTypeRedfishAllowableValuesOk
|
||||
|
||||
`func (o *ComputerSystemReset) GetResetTypeRedfishAllowableValuesOk() (*[]ResetType, bool)`
|
||||
|
||||
GetResetTypeRedfishAllowableValuesOk returns a tuple with the ResetTypeRedfishAllowableValues field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetResetTypeRedfishAllowableValues
|
||||
|
||||
`func (o *ComputerSystemReset) SetResetTypeRedfishAllowableValues(v []ResetType)`
|
||||
|
||||
SetResetTypeRedfishAllowableValues sets ResetTypeRedfishAllowableValues field to given value.
|
||||
|
||||
### HasResetTypeRedfishAllowableValues
|
||||
|
||||
`func (o *ComputerSystemReset) HasResetTypeRedfishAllowableValues() bool`
|
||||
|
||||
HasResetTypeRedfishAllowableValues returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -1,9 +1,16 @@
|
||||
# ConnectedVia
|
||||
|
||||
## Properties
|
||||
## Enum
|
||||
|
||||
|
||||
* `NOT_CONNECTED` (value: `"NotConnected"`)
|
||||
|
||||
* `URI` (value: `"URI"`)
|
||||
|
||||
* `APPLET` (value: `"Applet"`)
|
||||
|
||||
* `OEM` (value: `"Oem"`)
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -6,7 +6,87 @@ Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**VolumeType** | [**VolumeType**](VolumeType.md) | |
|
||||
**Name** | **string** | |
|
||||
**Drives** | [**[]IdRef**](idRef.md) | |
|
||||
**Drives** | [**[]IdRef**](IdRef.md) | |
|
||||
|
||||
## Methods
|
||||
|
||||
### NewCreateVirtualDiskRequestBody
|
||||
|
||||
`func NewCreateVirtualDiskRequestBody(volumeType VolumeType, name string, drives []IdRef, ) *CreateVirtualDiskRequestBody`
|
||||
|
||||
NewCreateVirtualDiskRequestBody instantiates a new CreateVirtualDiskRequestBody object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewCreateVirtualDiskRequestBodyWithDefaults
|
||||
|
||||
`func NewCreateVirtualDiskRequestBodyWithDefaults() *CreateVirtualDiskRequestBody`
|
||||
|
||||
NewCreateVirtualDiskRequestBodyWithDefaults instantiates a new CreateVirtualDiskRequestBody object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetVolumeType
|
||||
|
||||
`func (o *CreateVirtualDiskRequestBody) GetVolumeType() VolumeType`
|
||||
|
||||
GetVolumeType returns the VolumeType field if non-nil, zero value otherwise.
|
||||
|
||||
### GetVolumeTypeOk
|
||||
|
||||
`func (o *CreateVirtualDiskRequestBody) GetVolumeTypeOk() (*VolumeType, bool)`
|
||||
|
||||
GetVolumeTypeOk returns a tuple with the VolumeType field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetVolumeType
|
||||
|
||||
`func (o *CreateVirtualDiskRequestBody) SetVolumeType(v VolumeType)`
|
||||
|
||||
SetVolumeType sets VolumeType field to given value.
|
||||
|
||||
|
||||
### GetName
|
||||
|
||||
`func (o *CreateVirtualDiskRequestBody) GetName() string`
|
||||
|
||||
GetName returns the Name field if non-nil, zero value otherwise.
|
||||
|
||||
### GetNameOk
|
||||
|
||||
`func (o *CreateVirtualDiskRequestBody) GetNameOk() (*string, bool)`
|
||||
|
||||
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetName
|
||||
|
||||
`func (o *CreateVirtualDiskRequestBody) SetName(v string)`
|
||||
|
||||
SetName sets Name field to given value.
|
||||
|
||||
|
||||
### GetDrives
|
||||
|
||||
`func (o *CreateVirtualDiskRequestBody) GetDrives() []IdRef`
|
||||
|
||||
GetDrives returns the Drives field if non-nil, zero value otherwise.
|
||||
|
||||
### GetDrivesOk
|
||||
|
||||
`func (o *CreateVirtualDiskRequestBody) GetDrivesOk() (*[]IdRef, bool)`
|
||||
|
||||
GetDrivesOk returns a tuple with the Drives field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetDrives
|
||||
|
||||
`func (o *CreateVirtualDiskRequestBody) SetDrives(v []IdRef)`
|
||||
|
||||
SetDrives sets Drives field to given value.
|
||||
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -4,7 +4,52 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**OdataId** | **string** | The unique identifier for a resource. | [optional] [readonly]
|
||||
**OdataId** | Pointer to **string** | The unique identifier for a resource. | [optional] [readonly]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewFirmwareInventory
|
||||
|
||||
`func NewFirmwareInventory() *FirmwareInventory`
|
||||
|
||||
NewFirmwareInventory instantiates a new FirmwareInventory object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewFirmwareInventoryWithDefaults
|
||||
|
||||
`func NewFirmwareInventoryWithDefaults() *FirmwareInventory`
|
||||
|
||||
NewFirmwareInventoryWithDefaults instantiates a new FirmwareInventory object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetOdataId
|
||||
|
||||
`func (o *FirmwareInventory) GetOdataId() string`
|
||||
|
||||
GetOdataId returns the OdataId field if non-nil, zero value otherwise.
|
||||
|
||||
### GetOdataIdOk
|
||||
|
||||
`func (o *FirmwareInventory) GetOdataIdOk() (*string, bool)`
|
||||
|
||||
GetOdataIdOk returns a tuple with the OdataId field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetOdataId
|
||||
|
||||
`func (o *FirmwareInventory) SetOdataId(v string)`
|
||||
|
||||
SetOdataId sets OdataId field to given value.
|
||||
|
||||
### HasOdataId
|
||||
|
||||
`func (o *FirmwareInventory) HasOdataId() bool`
|
||||
|
||||
HasOdataId returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -1,9 +1,14 @@
|
||||
# Health
|
||||
|
||||
## Properties
|
||||
## Enum
|
||||
|
||||
|
||||
* `OK` (value: `"OK"`)
|
||||
|
||||
* `WARNING` (value: `"Warning"`)
|
||||
|
||||
* `CRITICAL` (value: `"Critical"`)
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -4,7 +4,52 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**OdataId** | **string** | The unique identifier for a resource. | [optional] [readonly]
|
||||
**OdataId** | Pointer to **string** | The unique identifier for a resource. | [optional] [readonly]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewIdRef
|
||||
|
||||
`func NewIdRef() *IdRef`
|
||||
|
||||
NewIdRef instantiates a new IdRef object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewIdRefWithDefaults
|
||||
|
||||
`func NewIdRefWithDefaults() *IdRef`
|
||||
|
||||
NewIdRefWithDefaults instantiates a new IdRef object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetOdataId
|
||||
|
||||
`func (o *IdRef) GetOdataId() string`
|
||||
|
||||
GetOdataId returns the OdataId field if non-nil, zero value otherwise.
|
||||
|
||||
### GetOdataIdOk
|
||||
|
||||
`func (o *IdRef) GetOdataIdOk() (*string, bool)`
|
||||
|
||||
GetOdataIdOk returns a tuple with the OdataId field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetOdataId
|
||||
|
||||
`func (o *IdRef) SetOdataId(v string)`
|
||||
|
||||
SetOdataId sets OdataId field to given value.
|
||||
|
||||
### HasOdataId
|
||||
|
||||
`func (o *IdRef) HasOdataId() bool`
|
||||
|
||||
HasOdataId returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -1,9 +1,16 @@
|
||||
# IndicatorLed
|
||||
# IndicatorLED
|
||||
|
||||
## Properties
|
||||
## Enum
|
||||
|
||||
|
||||
* `UNKNOWN` (value: `"Unknown"`)
|
||||
|
||||
* `LIT` (value: `"Lit"`)
|
||||
|
||||
* `BLINKING` (value: `"Blinking"`)
|
||||
|
||||
* `OFF` (value: `"Off"`)
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
@ -4,7 +4,52 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**SoftwareImage** | [***os.File**](*os.File.md) | | [optional]
|
||||
**SoftwareImage** | Pointer to ***os.File** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewInlineObject
|
||||
|
||||
`func NewInlineObject() *InlineObject`
|
||||
|
||||
NewInlineObject instantiates a new InlineObject object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewInlineObjectWithDefaults
|
||||
|
||||
`func NewInlineObjectWithDefaults() *InlineObject`
|
||||
|
||||
NewInlineObjectWithDefaults instantiates a new InlineObject object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetSoftwareImage
|
||||
|
||||
`func (o *InlineObject) GetSoftwareImage() *os.File`
|
||||
|
||||
GetSoftwareImage returns the SoftwareImage field if non-nil, zero value otherwise.
|
||||
|
||||
### GetSoftwareImageOk
|
||||
|
||||
`func (o *InlineObject) GetSoftwareImageOk() (**os.File, bool)`
|
||||
|
||||
GetSoftwareImageOk returns a tuple with the SoftwareImage field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetSoftwareImage
|
||||
|
||||
`func (o *InlineObject) SetSoftwareImage(v *os.File)`
|
||||
|
||||
SetSoftwareImage sets SoftwareImage field to given value.
|
||||
|
||||
### HasSoftwareImage
|
||||
|
||||
`func (o *InlineObject) HasSoftwareImage() bool`
|
||||
|
||||
HasSoftwareImage returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -5,12 +5,202 @@
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Image** | **string** | |
|
||||
**Inserted** | **bool** | | [optional]
|
||||
**Password** | **string** | | [optional]
|
||||
**TransferMethod** | [**TransferMethod**](TransferMethod.md) | | [optional]
|
||||
**TransferProtocolType** | [**TransferProtocolType**](TransferProtocolType.md) | | [optional]
|
||||
**UserName** | **string** | | [optional]
|
||||
**WriteProtected** | **bool** | | [optional]
|
||||
**Inserted** | Pointer to **bool** | | [optional]
|
||||
**Password** | Pointer to **string** | | [optional]
|
||||
**TransferMethod** | Pointer to [**TransferMethod**](TransferMethod.md) | | [optional]
|
||||
**TransferProtocolType** | Pointer to [**TransferProtocolType**](TransferProtocolType.md) | | [optional]
|
||||
**UserName** | Pointer to **string** | | [optional]
|
||||
**WriteProtected** | Pointer to **bool** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewInsertMediaRequestBody
|
||||
|
||||
`func NewInsertMediaRequestBody(image string, ) *InsertMediaRequestBody`
|
||||
|
||||
NewInsertMediaRequestBody instantiates a new InsertMediaRequestBody object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewInsertMediaRequestBodyWithDefaults
|
||||
|
||||
`func NewInsertMediaRequestBodyWithDefaults() *InsertMediaRequestBody`
|
||||
|
||||
NewInsertMediaRequestBodyWithDefaults instantiates a new InsertMediaRequestBody object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetImage
|
||||
|
||||
`func (o *InsertMediaRequestBody) GetImage() string`
|
||||
|
||||
GetImage returns the Image field if non-nil, zero value otherwise.
|
||||
|
||||
### GetImageOk
|
||||
|
||||
`func (o *InsertMediaRequestBody) GetImageOk() (*string, bool)`
|
||||
|
||||
GetImageOk returns a tuple with the Image field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetImage
|
||||
|
||||
`func (o *InsertMediaRequestBody) SetImage(v string)`
|
||||
|
||||
SetImage sets Image field to given value.
|
||||
|
||||
|
||||
### GetInserted
|
||||
|
||||
`func (o *InsertMediaRequestBody) GetInserted() bool`
|
||||
|
||||
GetInserted returns the Inserted field if non-nil, zero value otherwise.
|
||||
|
||||
### GetInsertedOk
|
||||
|
||||
`func (o *InsertMediaRequestBody) GetInsertedOk() (*bool, bool)`
|
||||
|
||||
GetInsertedOk returns a tuple with the Inserted field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetInserted
|
||||
|
||||
`func (o *InsertMediaRequestBody) SetInserted(v bool)`
|
||||
|
||||
SetInserted sets Inserted field to given value.
|
||||
|
||||
### HasInserted
|
||||
|
||||
`func (o *InsertMediaRequestBody) HasInserted() bool`
|
||||
|
||||
HasInserted returns a boolean if a field has been set.
|
||||
|
||||
### GetPassword
|
||||
|
||||
`func (o *InsertMediaRequestBody) GetPassword() string`
|
||||
|
||||
GetPassword returns the Password field if non-nil, zero value otherwise.
|
||||
|
||||
### GetPasswordOk
|
||||
|
||||
`func (o *InsertMediaRequestBody) GetPasswordOk() (*string, bool)`
|
||||
|
||||
GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetPassword
|
||||
|
||||
`func (o *InsertMediaRequestBody) SetPassword(v string)`
|
||||
|
||||
SetPassword sets Password field to given value.
|
||||
|
||||
### HasPassword
|
||||
|
||||
`func (o *InsertMediaRequestBody) HasPassword() bool`
|
||||
|
||||
HasPassword returns a boolean if a field has been set.
|
||||
|
||||
### GetTransferMethod
|
||||
|
||||
`func (o *InsertMediaRequestBody) GetTransferMethod() TransferMethod`
|
||||
|
||||
GetTransferMethod returns the TransferMethod field if non-nil, zero value otherwise.
|
||||
|
||||
### GetTransferMethodOk
|
||||
|
||||
`func (o *InsertMediaRequestBody) GetTransferMethodOk() (*TransferMethod, bool)`
|
||||
|
||||
GetTransferMethodOk returns a tuple with the TransferMethod field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetTransferMethod
|
||||
|
||||
`func (o *InsertMediaRequestBody) SetTransferMethod(v TransferMethod)`
|
||||
|
||||
SetTransferMethod sets TransferMethod field to given value.
|
||||
|
||||
### HasTransferMethod
|
||||
|
||||
`func (o *InsertMediaRequestBody) HasTransferMethod() bool`
|
||||
|
||||
HasTransferMethod returns a boolean if a field has been set.
|
||||
|
||||
### GetTransferProtocolType
|
||||
|
||||
`func (o *InsertMediaRequestBody) GetTransferProtocolType() TransferProtocolType`
|
||||
|
||||
GetTransferProtocolType returns the TransferProtocolType field if non-nil, zero value otherwise.
|
||||
|
||||
### GetTransferProtocolTypeOk
|
||||
|
||||
`func (o *InsertMediaRequestBody) GetTransferProtocolTypeOk() (*TransferProtocolType, bool)`
|
||||
|
||||
GetTransferProtocolTypeOk returns a tuple with the TransferProtocolType field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetTransferProtocolType
|
||||
|
||||
`func (o *InsertMediaRequestBody) SetTransferProtocolType(v TransferProtocolType)`
|
||||
|
||||
SetTransferProtocolType sets TransferProtocolType field to given value.
|
||||
|
||||
### HasTransferProtocolType
|
||||
|
||||
`func (o *InsertMediaRequestBody) HasTransferProtocolType() bool`
|
||||
|
||||
HasTransferProtocolType returns a boolean if a field has been set.
|
||||
|
||||
### GetUserName
|
||||
|
||||
`func (o *InsertMediaRequestBody) GetUserName() string`
|
||||
|
||||
GetUserName returns the UserName field if non-nil, zero value otherwise.
|
||||
|
||||
### GetUserNameOk
|
||||
|
||||
`func (o *InsertMediaRequestBody) GetUserNameOk() (*string, bool)`
|
||||
|
||||
GetUserNameOk returns a tuple with the UserName field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetUserName
|
||||
|
||||
`func (o *InsertMediaRequestBody) SetUserName(v string)`
|
||||
|
||||
SetUserName sets UserName field to given value.
|
||||
|
||||
### HasUserName
|
||||
|
||||
`func (o *InsertMediaRequestBody) HasUserName() bool`
|
||||
|
||||
HasUserName returns a boolean if a field has been set.
|
||||
|
||||
### GetWriteProtected
|
||||
|
||||
`func (o *InsertMediaRequestBody) GetWriteProtected() bool`
|
||||
|
||||
GetWriteProtected returns the WriteProtected field if non-nil, zero value otherwise.
|
||||
|
||||
### GetWriteProtectedOk
|
||||
|
||||
`func (o *InsertMediaRequestBody) GetWriteProtectedOk() (*bool, bool)`
|
||||
|
||||
GetWriteProtectedOk returns a tuple with the WriteProtected field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetWriteProtected
|
||||
|
||||
`func (o *InsertMediaRequestBody) SetWriteProtected(v bool)`
|
||||
|
||||
SetWriteProtected sets WriteProtected field to given value.
|
||||
|
||||
### HasWriteProtected
|
||||
|
||||
`func (o *InsertMediaRequestBody) HasWriteProtected() bool`
|
||||
|
||||
HasWriteProtected returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -4,25 +4,555 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Id** | **string** | The name of the resource. | [optional] [readonly]
|
||||
**Id** | Pointer to **string** | The name of the resource. | [optional] [readonly]
|
||||
**Name** | **string** | The name of the resource. | [readonly]
|
||||
**UUID** | **string** | | [optional]
|
||||
**ServiceEntryPointUUID** | **string** | | [optional]
|
||||
**UUID** | Pointer to **string** | | [optional]
|
||||
**ServiceEntryPointUUID** | Pointer to **string** | | [optional]
|
||||
**OdataType** | **string** | The type of a resource. | [readonly]
|
||||
**OdataId** | **string** | The unique identifier for a resource. | [readonly]
|
||||
**OdataContext** | **string** | The OData description of a payload. | [optional] [readonly]
|
||||
**RedfishCopyright** | **string** | redfish copyright | [optional]
|
||||
**Model** | Pointer to **string** | | [optional] [readonly]
|
||||
**ManagerType** | [**ManagerType**](ManagerType.md) | | [optional]
|
||||
**Status** | [**Status**](Status.md) | | [optional]
|
||||
**DateTime** | Pointer to **string** | | [optional]
|
||||
**DateTimeLocalOffset** | Pointer to **string** | The time offset from UTC that the DateTime property is set to in format: +06:00 . | [optional]
|
||||
**Description** | Pointer to **string** | description | [optional] [readonly]
|
||||
**EthernetInterfaces** | [**IdRef**](idRef.md) | | [optional]
|
||||
**FirmwareVersion** | Pointer to **string** | | [optional] [readonly]
|
||||
**Links** | [**ManagerLinks**](ManagerLinks.md) | | [optional]
|
||||
**PowerState** | [**PowerState**](PowerState.md) | | [optional]
|
||||
**VirtualMedia** | [**IdRef**](idRef.md) | | [optional]
|
||||
**OdataContext** | Pointer to **string** | The OData description of a payload. | [optional] [readonly]
|
||||
**RedfishCopyright** | Pointer to **string** | redfish copyright | [optional]
|
||||
**Model** | Pointer to **NullableString** | | [optional] [readonly]
|
||||
**ManagerType** | Pointer to [**ManagerType**](ManagerType.md) | | [optional]
|
||||
**Status** | Pointer to [**Status**](Status.md) | | [optional]
|
||||
**DateTime** | Pointer to **NullableString** | | [optional]
|
||||
**DateTimeLocalOffset** | Pointer to **NullableString** | The time offset from UTC that the DateTime property is set to in format: +06:00 . | [optional]
|
||||
**Description** | Pointer to **NullableString** | description | [optional] [readonly]
|
||||
**EthernetInterfaces** | Pointer to [**IdRef**](IdRef.md) | | [optional]
|
||||
**FirmwareVersion** | Pointer to **NullableString** | | [optional] [readonly]
|
||||
**Links** | Pointer to [**ManagerLinks**](ManagerLinks.md) | | [optional]
|
||||
**PowerState** | Pointer to [**PowerState**](PowerState.md) | | [optional]
|
||||
**VirtualMedia** | Pointer to [**IdRef**](IdRef.md) | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewManager
|
||||
|
||||
`func NewManager(name string, odataType string, odataId string, ) *Manager`
|
||||
|
||||
NewManager instantiates a new Manager object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewManagerWithDefaults
|
||||
|
||||
`func NewManagerWithDefaults() *Manager`
|
||||
|
||||
NewManagerWithDefaults instantiates a new Manager object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetId
|
||||
|
||||
`func (o *Manager) GetId() string`
|
||||
|
||||
GetId returns the Id field if non-nil, zero value otherwise.
|
||||
|
||||
### GetIdOk
|
||||
|
||||
`func (o *Manager) GetIdOk() (*string, bool)`
|
||||
|
||||
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetId
|
||||
|
||||
`func (o *Manager) SetId(v string)`
|
||||
|
||||
SetId sets Id field to given value.
|
||||
|
||||
### HasId
|
||||
|
||||
`func (o *Manager) HasId() bool`
|
||||
|
||||
HasId returns a boolean if a field has been set.
|
||||
|
||||
### GetName
|
||||
|
||||
`func (o *Manager) GetName() string`
|
||||
|
||||
GetName returns the Name field if non-nil, zero value otherwise.
|
||||
|
||||
### GetNameOk
|
||||
|
||||
`func (o *Manager) GetNameOk() (*string, bool)`
|
||||
|
||||
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetName
|
||||
|
||||
`func (o *Manager) SetName(v string)`
|
||||
|
||||
SetName sets Name field to given value.
|
||||
|
||||
|
||||
### GetUUID
|
||||
|
||||
`func (o *Manager) GetUUID() string`
|
||||
|
||||
GetUUID returns the UUID field if non-nil, zero value otherwise.
|
||||
|
||||
### GetUUIDOk
|
||||
|
||||
`func (o *Manager) GetUUIDOk() (*string, bool)`
|
||||
|
||||
GetUUIDOk returns a tuple with the UUID field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetUUID
|
||||
|
||||
`func (o *Manager) SetUUID(v string)`
|
||||
|
||||
SetUUID sets UUID field to given value.
|
||||
|
||||
### HasUUID
|
||||
|
||||
`func (o *Manager) HasUUID() bool`
|
||||
|
||||
HasUUID returns a boolean if a field has been set.
|
||||
|
||||
### GetServiceEntryPointUUID
|
||||
|
||||
`func (o *Manager) GetServiceEntryPointUUID() string`
|
||||
|
||||
GetServiceEntryPointUUID returns the ServiceEntryPointUUID field if non-nil, zero value otherwise.
|
||||
|
||||
### GetServiceEntryPointUUIDOk
|
||||
|
||||
`func (o *Manager) GetServiceEntryPointUUIDOk() (*string, bool)`
|
||||
|
||||
GetServiceEntryPointUUIDOk returns a tuple with the ServiceEntryPointUUID field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetServiceEntryPointUUID
|
||||
|
||||
`func (o *Manager) SetServiceEntryPointUUID(v string)`
|
||||
|
||||
SetServiceEntryPointUUID sets ServiceEntryPointUUID field to given value.
|
||||
|
||||
### HasServiceEntryPointUUID
|
||||
|
||||
`func (o *Manager) HasServiceEntryPointUUID() bool`
|
||||
|
||||
HasServiceEntryPointUUID returns a boolean if a field has been set.
|
||||
|
||||
### GetOdataType
|
||||
|
||||
`func (o *Manager) GetOdataType() string`
|
||||
|
||||
GetOdataType returns the OdataType field if non-nil, zero value otherwise.
|
||||
|
||||
### GetOdataTypeOk
|
||||
|
||||
`func (o *Manager) GetOdataTypeOk() (*string, bool)`
|
||||
|
||||
GetOdataTypeOk returns a tuple with the OdataType field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetOdataType
|
||||
|
||||
`func (o *Manager) SetOdataType(v string)`
|
||||
|
||||
SetOdataType sets OdataType field to given value.
|
||||
|
||||
|
||||
### GetOdataId
|
||||
|
||||
`func (o *Manager) GetOdataId() string`
|
||||
|
||||
GetOdataId returns the OdataId field if non-nil, zero value otherwise.
|
||||
|
||||
### GetOdataIdOk
|
||||
|
||||
`func (o *Manager) GetOdataIdOk() (*string, bool)`
|
||||
|
||||
GetOdataIdOk returns a tuple with the OdataId field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetOdataId
|
||||
|
||||
`func (o *Manager) SetOdataId(v string)`
|
||||
|
||||
SetOdataId sets OdataId field to given value.
|
||||
|
||||
|
||||
### GetOdataContext
|
||||
|
||||
`func (o *Manager) GetOdataContext() string`
|
||||
|
||||
GetOdataContext returns the OdataContext field if non-nil, zero value otherwise.
|
||||
|
||||
### GetOdataContextOk
|
||||
|
||||
`func (o *Manager) GetOdataContextOk() (*string, bool)`
|
||||
|
||||
GetOdataContextOk returns a tuple with the OdataContext field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetOdataContext
|
||||
|
||||
`func (o *Manager) SetOdataContext(v string)`
|
||||
|
||||
SetOdataContext sets OdataContext field to given value.
|
||||
|
||||
### HasOdataContext
|
||||
|
||||
`func (o *Manager) HasOdataContext() bool`
|
||||
|
||||
HasOdataContext returns a boolean if a field has been set.
|
||||
|
||||
### GetRedfishCopyright
|
||||
|
||||
`func (o *Manager) GetRedfishCopyright() string`
|
||||
|
||||
GetRedfishCopyright returns the RedfishCopyright field if non-nil, zero value otherwise.
|
||||
|
||||
### GetRedfishCopyrightOk
|
||||
|
||||
`func (o *Manager) GetRedfishCopyrightOk() (*string, bool)`
|
||||
|
||||
GetRedfishCopyrightOk returns a tuple with the RedfishCopyright field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetRedfishCopyright
|
||||
|
||||
`func (o *Manager) SetRedfishCopyright(v string)`
|
||||
|
||||
SetRedfishCopyright sets RedfishCopyright field to given value.
|
||||
|
||||
### HasRedfishCopyright
|
||||
|
||||
`func (o *Manager) HasRedfishCopyright() bool`
|
||||
|
||||
HasRedfishCopyright returns a boolean if a field has been set.
|
||||
|
||||
### GetModel
|
||||
|
||||
`func (o *Manager) GetModel() string`
|
||||
|
||||
GetModel returns the Model field if non-nil, zero value otherwise.
|
||||
|
||||
### GetModelOk
|
||||
|
||||
`func (o *Manager) GetModelOk() (*string, bool)`
|
||||
|
||||
GetModelOk returns a tuple with the Model field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetModel
|
||||
|
||||
`func (o *Manager) SetModel(v string)`
|
||||
|
||||
SetModel sets Model field to given value.
|
||||
|
||||
### HasModel
|
||||
|
||||
`func (o *Manager) HasModel() bool`
|
||||
|
||||
HasModel returns a boolean if a field has been set.
|
||||
|
||||
### SetModelNil
|
||||
|
||||
`func (o *Manager) SetModelNil(b bool)`
|
||||
|
||||
SetModelNil sets the value for Model to be an explicit nil
|
||||
|
||||
### UnsetModel
|
||||
`func (o *Manager) UnsetModel()`
|
||||
|
||||
UnsetModel ensures that no value is present for Model, not even an explicit nil
|
||||
### GetManagerType
|
||||
|
||||
`func (o *Manager) GetManagerType() ManagerType`
|
||||
|
||||
GetManagerType returns the ManagerType field if non-nil, zero value otherwise.
|
||||
|
||||
### GetManagerTypeOk
|
||||
|
||||
`func (o *Manager) GetManagerTypeOk() (*ManagerType, bool)`
|
||||
|
||||
GetManagerTypeOk returns a tuple with the ManagerType field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetManagerType
|
||||
|
||||
`func (o *Manager) SetManagerType(v ManagerType)`
|
||||
|
||||
SetManagerType sets ManagerType field to given value.
|
||||
|
||||
### HasManagerType
|
||||
|
||||
`func (o *Manager) HasManagerType() bool`
|
||||
|
||||
HasManagerType returns a boolean if a field has been set.
|
||||
|
||||
### GetStatus
|
||||
|
||||
`func (o *Manager) GetStatus() Status`
|
||||
|
||||
GetStatus returns the Status field if non-nil, zero value otherwise.
|
||||
|
||||
### GetStatusOk
|
||||
|
||||
`func (o *Manager) GetStatusOk() (*Status, bool)`
|
||||
|
||||
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetStatus
|
||||
|
||||
`func (o *Manager) SetStatus(v Status)`
|
||||
|
||||
SetStatus sets Status field to given value.
|
||||
|
||||
### HasStatus
|
||||
|
||||
`func (o *Manager) HasStatus() bool`
|
||||
|
||||
HasStatus returns a boolean if a field has been set.
|
||||
|
||||
### GetDateTime
|
||||
|
||||
`func (o *Manager) GetDateTime() string`
|
||||
|
||||
GetDateTime returns the DateTime field if non-nil, zero value otherwise.
|
||||
|
||||
### GetDateTimeOk
|
||||
|
||||
`func (o *Manager) GetDateTimeOk() (*string, bool)`
|
||||
|
||||
GetDateTimeOk returns a tuple with the DateTime field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetDateTime
|
||||
|
||||
`func (o *Manager) SetDateTime(v string)`
|
||||
|
||||
SetDateTime sets DateTime field to given value.
|
||||
|
||||
### HasDateTime
|
||||
|
||||
`func (o *Manager) HasDateTime() bool`
|
||||
|
||||
HasDateTime returns a boolean if a field has been set.
|
||||
|
||||
### SetDateTimeNil
|
||||
|
||||
`func (o *Manager) SetDateTimeNil(b bool)`
|
||||
|
||||
SetDateTimeNil sets the value for DateTime to be an explicit nil
|
||||
|
||||
### UnsetDateTime
|
||||
`func (o *Manager) UnsetDateTime()`
|
||||
|
||||
UnsetDateTime ensures that no value is present for DateTime, not even an explicit nil
|
||||
### GetDateTimeLocalOffset
|
||||
|
||||
`func (o *Manager) GetDateTimeLocalOffset() string`
|
||||
|
||||
GetDateTimeLocalOffset returns the DateTimeLocalOffset field if non-nil, zero value otherwise.
|
||||
|
||||
### GetDateTimeLocalOffsetOk
|
||||
|
||||
`func (o *Manager) GetDateTimeLocalOffsetOk() (*string, bool)`
|
||||
|
||||
GetDateTimeLocalOffsetOk returns a tuple with the DateTimeLocalOffset field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetDateTimeLocalOffset
|
||||
|
||||
`func (o *Manager) SetDateTimeLocalOffset(v string)`
|
||||
|
||||
SetDateTimeLocalOffset sets DateTimeLocalOffset field to given value.
|
||||
|
||||
### HasDateTimeLocalOffset
|
||||
|
||||
`func (o *Manager) HasDateTimeLocalOffset() bool`
|
||||
|
||||
HasDateTimeLocalOffset returns a boolean if a field has been set.
|
||||
|
||||
### SetDateTimeLocalOffsetNil
|
||||
|
||||
`func (o *Manager) SetDateTimeLocalOffsetNil(b bool)`
|
||||
|
||||
SetDateTimeLocalOffsetNil sets the value for DateTimeLocalOffset to be an explicit nil
|
||||
|
||||
### UnsetDateTimeLocalOffset
|
||||
`func (o *Manager) UnsetDateTimeLocalOffset()`
|
||||
|
||||
UnsetDateTimeLocalOffset ensures that no value is present for DateTimeLocalOffset, not even an explicit nil
|
||||
### GetDescription
|
||||
|
||||
`func (o *Manager) GetDescription() string`
|
||||
|
||||
GetDescription returns the Description field if non-nil, zero value otherwise.
|
||||
|
||||
### GetDescriptionOk
|
||||
|
||||
`func (o *Manager) GetDescriptionOk() (*string, bool)`
|
||||
|
||||
GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetDescription
|
||||
|
||||
`func (o *Manager) SetDescription(v string)`
|
||||
|
||||
SetDescription sets Description field to given value.
|
||||
|
||||
### HasDescription
|
||||
|
||||
`func (o *Manager) HasDescription() bool`
|
||||
|
||||
HasDescription returns a boolean if a field has been set.
|
||||
|
||||
### SetDescriptionNil
|
||||
|
||||
`func (o *Manager) SetDescriptionNil(b bool)`
|
||||
|
||||
SetDescriptionNil sets the value for Description to be an explicit nil
|
||||
|
||||
### UnsetDescription
|
||||
`func (o *Manager) UnsetDescription()`
|
||||
|
||||
UnsetDescription ensures that no value is present for Description, not even an explicit nil
|
||||
### GetEthernetInterfaces
|
||||
|
||||
`func (o *Manager) GetEthernetInterfaces() IdRef`
|
||||
|
||||
GetEthernetInterfaces returns the EthernetInterfaces field if non-nil, zero value otherwise.
|
||||
|
||||
### GetEthernetInterfacesOk
|
||||
|
||||
`func (o *Manager) GetEthernetInterfacesOk() (*IdRef, bool)`
|
||||
|
||||
GetEthernetInterfacesOk returns a tuple with the EthernetInterfaces field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetEthernetInterfaces
|
||||
|
||||
`func (o *Manager) SetEthernetInterfaces(v IdRef)`
|
||||
|
||||
SetEthernetInterfaces sets EthernetInterfaces field to given value.
|
||||
|
||||
### HasEthernetInterfaces
|
||||
|
||||
`func (o *Manager) HasEthernetInterfaces() bool`
|
||||
|
||||
HasEthernetInterfaces returns a boolean if a field has been set.
|
||||
|
||||
### GetFirmwareVersion
|
||||
|
||||
`func (o *Manager) GetFirmwareVersion() string`
|
||||
|
||||
GetFirmwareVersion returns the FirmwareVersion field if non-nil, zero value otherwise.
|
||||
|
||||
### GetFirmwareVersionOk
|
||||
|
||||
`func (o *Manager) GetFirmwareVersionOk() (*string, bool)`
|
||||
|
||||
GetFirmwareVersionOk returns a tuple with the FirmwareVersion field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetFirmwareVersion
|
||||
|
||||
`func (o *Manager) SetFirmwareVersion(v string)`
|
||||
|
||||
SetFirmwareVersion sets FirmwareVersion field to given value.
|
||||
|
||||
### HasFirmwareVersion
|
||||
|
||||
`func (o *Manager) HasFirmwareVersion() bool`
|
||||
|
||||
HasFirmwareVersion returns a boolean if a field has been set.
|
||||
|
||||
### SetFirmwareVersionNil
|
||||
|
||||
`func (o *Manager) SetFirmwareVersionNil(b bool)`
|
||||
|
||||
SetFirmwareVersionNil sets the value for FirmwareVersion to be an explicit nil
|
||||
|
||||
### UnsetFirmwareVersion
|
||||
`func (o *Manager) UnsetFirmwareVersion()`
|
||||
|
||||
UnsetFirmwareVersion ensures that no value is present for FirmwareVersion, not even an explicit nil
|
||||
### GetLinks
|
||||
|
||||
`func (o *Manager) GetLinks() ManagerLinks`
|
||||
|
||||
GetLinks returns the Links field if non-nil, zero value otherwise.
|
||||
|
||||
### GetLinksOk
|
||||
|
||||
`func (o *Manager) GetLinksOk() (*ManagerLinks, bool)`
|
||||
|
||||
GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetLinks
|
||||
|
||||
`func (o *Manager) SetLinks(v ManagerLinks)`
|
||||
|
||||
SetLinks sets Links field to given value.
|
||||
|
||||
### HasLinks
|
||||
|
||||
`func (o *Manager) HasLinks() bool`
|
||||
|
||||
HasLinks returns a boolean if a field has been set.
|
||||
|
||||
### GetPowerState
|
||||
|
||||
`func (o *Manager) GetPowerState() PowerState`
|
||||
|
||||
GetPowerState returns the PowerState field if non-nil, zero value otherwise.
|
||||
|
||||
### GetPowerStateOk
|
||||
|
||||
`func (o *Manager) GetPowerStateOk() (*PowerState, bool)`
|
||||
|
||||
GetPowerStateOk returns a tuple with the PowerState field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetPowerState
|
||||
|
||||
`func (o *Manager) SetPowerState(v PowerState)`
|
||||
|
||||
SetPowerState sets PowerState field to given value.
|
||||
|
||||
### HasPowerState
|
||||
|
||||
`func (o *Manager) HasPowerState() bool`
|
||||
|
||||
HasPowerState returns a boolean if a field has been set.
|
||||
|
||||
### GetVirtualMedia
|
||||
|
||||
`func (o *Manager) GetVirtualMedia() IdRef`
|
||||
|
||||
GetVirtualMedia returns the VirtualMedia field if non-nil, zero value otherwise.
|
||||
|
||||
### GetVirtualMediaOk
|
||||
|
||||
`func (o *Manager) GetVirtualMediaOk() (*IdRef, bool)`
|
||||
|
||||
GetVirtualMediaOk returns a tuple with the VirtualMedia field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetVirtualMedia
|
||||
|
||||
`func (o *Manager) SetVirtualMedia(v IdRef)`
|
||||
|
||||
SetVirtualMedia sets VirtualMedia field to given value.
|
||||
|
||||
### HasVirtualMedia
|
||||
|
||||
`func (o *Manager) HasVirtualMedia() bool`
|
||||
|
||||
HasVirtualMedia returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -4,10 +4,130 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**ManagerForServers** | [**[]IdRef**](idRef.md) | | [optional]
|
||||
**ManagerForChassis** | [**[]IdRef**](idRef.md) | | [optional]
|
||||
**ManagerForSwitches** | [**[]IdRef**](idRef.md) | | [optional]
|
||||
**ManagerInChassis** | [**[]IdRef**](idRef.md) | | [optional]
|
||||
**ManagerForServers** | Pointer to [**[]IdRef**](IdRef.md) | | [optional]
|
||||
**ManagerForChassis** | Pointer to [**[]IdRef**](IdRef.md) | | [optional]
|
||||
**ManagerForSwitches** | Pointer to [**[]IdRef**](IdRef.md) | | [optional]
|
||||
**ManagerInChassis** | Pointer to [**[]IdRef**](IdRef.md) | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewManagerLinks
|
||||
|
||||
`func NewManagerLinks() *ManagerLinks`
|
||||
|
||||
NewManagerLinks instantiates a new ManagerLinks object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewManagerLinksWithDefaults
|
||||
|
||||
`func NewManagerLinksWithDefaults() *ManagerLinks`
|
||||
|
||||
NewManagerLinksWithDefaults instantiates a new ManagerLinks object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetManagerForServers
|
||||
|
||||
`func (o *ManagerLinks) GetManagerForServers() []IdRef`
|
||||
|
||||
GetManagerForServers returns the ManagerForServers field if non-nil, zero value otherwise.
|
||||
|
||||
### GetManagerForServersOk
|
||||
|
||||
`func (o *ManagerLinks) GetManagerForServersOk() (*[]IdRef, bool)`
|
||||
|
||||
GetManagerForServersOk returns a tuple with the ManagerForServers field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetManagerForServers
|
||||
|
||||
`func (o *ManagerLinks) SetManagerForServers(v []IdRef)`
|
||||
|
||||
SetManagerForServers sets ManagerForServers field to given value.
|
||||
|
||||
### HasManagerForServers
|
||||
|
||||
`func (o *ManagerLinks) HasManagerForServers() bool`
|
||||
|
||||
HasManagerForServers returns a boolean if a field has been set.
|
||||
|
||||
### GetManagerForChassis
|
||||
|
||||
`func (o *ManagerLinks) GetManagerForChassis() []IdRef`
|
||||
|
||||
GetManagerForChassis returns the ManagerForChassis field if non-nil, zero value otherwise.
|
||||
|
||||
### GetManagerForChassisOk
|
||||
|
||||
`func (o *ManagerLinks) GetManagerForChassisOk() (*[]IdRef, bool)`
|
||||
|
||||
GetManagerForChassisOk returns a tuple with the ManagerForChassis field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetManagerForChassis
|
||||
|
||||
`func (o *ManagerLinks) SetManagerForChassis(v []IdRef)`
|
||||
|
||||
SetManagerForChassis sets ManagerForChassis field to given value.
|
||||
|
||||
### HasManagerForChassis
|
||||
|
||||
`func (o *ManagerLinks) HasManagerForChassis() bool`
|
||||
|
||||
HasManagerForChassis returns a boolean if a field has been set.
|
||||
|
||||
### GetManagerForSwitches
|
||||
|
||||
`func (o *ManagerLinks) GetManagerForSwitches() []IdRef`
|
||||
|
||||
GetManagerForSwitches returns the ManagerForSwitches field if non-nil, zero value otherwise.
|
||||
|
||||
### GetManagerForSwitchesOk
|
||||
|
||||
`func (o *ManagerLinks) GetManagerForSwitchesOk() (*[]IdRef, bool)`
|
||||
|
||||
GetManagerForSwitchesOk returns a tuple with the ManagerForSwitches field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetManagerForSwitches
|
||||
|
||||
`func (o *ManagerLinks) SetManagerForSwitches(v []IdRef)`
|
||||
|
||||
SetManagerForSwitches sets ManagerForSwitches field to given value.
|
||||
|
||||
### HasManagerForSwitches
|
||||
|
||||
`func (o *ManagerLinks) HasManagerForSwitches() bool`
|
||||
|
||||
HasManagerForSwitches returns a boolean if a field has been set.
|
||||
|
||||
### GetManagerInChassis
|
||||
|
||||
`func (o *ManagerLinks) GetManagerInChassis() []IdRef`
|
||||
|
||||
GetManagerInChassis returns the ManagerInChassis field if non-nil, zero value otherwise.
|
||||
|
||||
### GetManagerInChassisOk
|
||||
|
||||
`func (o *ManagerLinks) GetManagerInChassisOk() (*[]IdRef, bool)`
|
||||
|
||||
GetManagerInChassisOk returns a tuple with the ManagerInChassis field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetManagerInChassis
|
||||
|
||||
`func (o *ManagerLinks) SetManagerInChassis(v []IdRef)`
|
||||
|
||||
SetManagerInChassis sets ManagerInChassis field to given value.
|
||||
|
||||
### HasManagerInChassis
|
||||
|
||||
`func (o *ManagerLinks) HasManagerInChassis() bool`
|
||||
|
||||
HasManagerInChassis returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -1,9 +1,20 @@
|
||||
# ManagerType
|
||||
|
||||
## Properties
|
||||
## Enum
|
||||
|
||||
|
||||
* `MANAGEMENT_CONTROLLER` (value: `"ManagementController"`)
|
||||
|
||||
* `ENCLOSURE_MANAGER` (value: `"EnclosureManager"`)
|
||||
|
||||
* `BMC` (value: `"BMC"`)
|
||||
|
||||
* `RACK_MANAGER` (value: `"RackManager"`)
|
||||
|
||||
* `AUXILIARY_CONTROLLER` (value: `"AuxiliaryController"`)
|
||||
|
||||
* `SERVICE` (value: `"Service"`)
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -4,9 +4,124 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**TotalSystemMemoryGiB** | Pointer to **float32** | | [optional] [readonly]
|
||||
**TotalSystemPersistentMemoryGiB** | Pointer to **float32** | | [optional] [readonly]
|
||||
**Status** | [**Status**](Status.md) | | [optional]
|
||||
**TotalSystemMemoryGiB** | Pointer to **NullableFloat32** | | [optional] [readonly]
|
||||
**TotalSystemPersistentMemoryGiB** | Pointer to **NullableFloat32** | | [optional] [readonly]
|
||||
**Status** | Pointer to [**Status**](Status.md) | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewMemorySummary
|
||||
|
||||
`func NewMemorySummary() *MemorySummary`
|
||||
|
||||
NewMemorySummary instantiates a new MemorySummary object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewMemorySummaryWithDefaults
|
||||
|
||||
`func NewMemorySummaryWithDefaults() *MemorySummary`
|
||||
|
||||
NewMemorySummaryWithDefaults instantiates a new MemorySummary object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetTotalSystemMemoryGiB
|
||||
|
||||
`func (o *MemorySummary) GetTotalSystemMemoryGiB() float32`
|
||||
|
||||
GetTotalSystemMemoryGiB returns the TotalSystemMemoryGiB field if non-nil, zero value otherwise.
|
||||
|
||||
### GetTotalSystemMemoryGiBOk
|
||||
|
||||
`func (o *MemorySummary) GetTotalSystemMemoryGiBOk() (*float32, bool)`
|
||||
|
||||
GetTotalSystemMemoryGiBOk returns a tuple with the TotalSystemMemoryGiB field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetTotalSystemMemoryGiB
|
||||
|
||||
`func (o *MemorySummary) SetTotalSystemMemoryGiB(v float32)`
|
||||
|
||||
SetTotalSystemMemoryGiB sets TotalSystemMemoryGiB field to given value.
|
||||
|
||||
### HasTotalSystemMemoryGiB
|
||||
|
||||
`func (o *MemorySummary) HasTotalSystemMemoryGiB() bool`
|
||||
|
||||
HasTotalSystemMemoryGiB returns a boolean if a field has been set.
|
||||
|
||||
### SetTotalSystemMemoryGiBNil
|
||||
|
||||
`func (o *MemorySummary) SetTotalSystemMemoryGiBNil(b bool)`
|
||||
|
||||
SetTotalSystemMemoryGiBNil sets the value for TotalSystemMemoryGiB to be an explicit nil
|
||||
|
||||
### UnsetTotalSystemMemoryGiB
|
||||
`func (o *MemorySummary) UnsetTotalSystemMemoryGiB()`
|
||||
|
||||
UnsetTotalSystemMemoryGiB ensures that no value is present for TotalSystemMemoryGiB, not even an explicit nil
|
||||
### GetTotalSystemPersistentMemoryGiB
|
||||
|
||||
`func (o *MemorySummary) GetTotalSystemPersistentMemoryGiB() float32`
|
||||
|
||||
GetTotalSystemPersistentMemoryGiB returns the TotalSystemPersistentMemoryGiB field if non-nil, zero value otherwise.
|
||||
|
||||
### GetTotalSystemPersistentMemoryGiBOk
|
||||
|
||||
`func (o *MemorySummary) GetTotalSystemPersistentMemoryGiBOk() (*float32, bool)`
|
||||
|
||||
GetTotalSystemPersistentMemoryGiBOk returns a tuple with the TotalSystemPersistentMemoryGiB field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetTotalSystemPersistentMemoryGiB
|
||||
|
||||
`func (o *MemorySummary) SetTotalSystemPersistentMemoryGiB(v float32)`
|
||||
|
||||
SetTotalSystemPersistentMemoryGiB sets TotalSystemPersistentMemoryGiB field to given value.
|
||||
|
||||
### HasTotalSystemPersistentMemoryGiB
|
||||
|
||||
`func (o *MemorySummary) HasTotalSystemPersistentMemoryGiB() bool`
|
||||
|
||||
HasTotalSystemPersistentMemoryGiB returns a boolean if a field has been set.
|
||||
|
||||
### SetTotalSystemPersistentMemoryGiBNil
|
||||
|
||||
`func (o *MemorySummary) SetTotalSystemPersistentMemoryGiBNil(b bool)`
|
||||
|
||||
SetTotalSystemPersistentMemoryGiBNil sets the value for TotalSystemPersistentMemoryGiB to be an explicit nil
|
||||
|
||||
### UnsetTotalSystemPersistentMemoryGiB
|
||||
`func (o *MemorySummary) UnsetTotalSystemPersistentMemoryGiB()`
|
||||
|
||||
UnsetTotalSystemPersistentMemoryGiB ensures that no value is present for TotalSystemPersistentMemoryGiB, not even an explicit nil
|
||||
### GetStatus
|
||||
|
||||
`func (o *MemorySummary) GetStatus() Status`
|
||||
|
||||
GetStatus returns the Status field if non-nil, zero value otherwise.
|
||||
|
||||
### GetStatusOk
|
||||
|
||||
`func (o *MemorySummary) GetStatusOk() (*Status, bool)`
|
||||
|
||||
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetStatus
|
||||
|
||||
`func (o *MemorySummary) SetStatus(v Status)`
|
||||
|
||||
SetStatus sets Status field to given value.
|
||||
|
||||
### HasStatus
|
||||
|
||||
`func (o *MemorySummary) HasStatus() bool`
|
||||
|
||||
HasStatus returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -4,12 +4,177 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Message** | **string** | | [optional] [readonly]
|
||||
**MessageArgs** | **[]string** | | [optional] [readonly]
|
||||
**Message** | Pointer to **string** | | [optional] [readonly]
|
||||
**MessageArgs** | Pointer to **[]string** | | [optional] [readonly]
|
||||
**MessageId** | **string** | | [readonly]
|
||||
**RelatedProperties** | **[]string** | | [optional] [readonly]
|
||||
**Resolution** | **string** | | [optional] [readonly]
|
||||
**Severity** | **string** | | [optional] [readonly]
|
||||
**RelatedProperties** | Pointer to **[]string** | | [optional] [readonly]
|
||||
**Resolution** | Pointer to **string** | | [optional] [readonly]
|
||||
**Severity** | Pointer to **string** | | [optional] [readonly]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewMessage
|
||||
|
||||
`func NewMessage(messageId string, ) *Message`
|
||||
|
||||
NewMessage instantiates a new Message object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewMessageWithDefaults
|
||||
|
||||
`func NewMessageWithDefaults() *Message`
|
||||
|
||||
NewMessageWithDefaults instantiates a new Message object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetMessage
|
||||
|
||||
`func (o *Message) GetMessage() string`
|
||||
|
||||
GetMessage returns the Message field if non-nil, zero value otherwise.
|
||||
|
||||
### GetMessageOk
|
||||
|
||||
`func (o *Message) GetMessageOk() (*string, bool)`
|
||||
|
||||
GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetMessage
|
||||
|
||||
`func (o *Message) SetMessage(v string)`
|
||||
|
||||
SetMessage sets Message field to given value.
|
||||
|
||||
### HasMessage
|
||||
|
||||
`func (o *Message) HasMessage() bool`
|
||||
|
||||
HasMessage returns a boolean if a field has been set.
|
||||
|
||||
### GetMessageArgs
|
||||
|
||||
`func (o *Message) GetMessageArgs() []string`
|
||||
|
||||
GetMessageArgs returns the MessageArgs field if non-nil, zero value otherwise.
|
||||
|
||||
### GetMessageArgsOk
|
||||
|
||||
`func (o *Message) GetMessageArgsOk() (*[]string, bool)`
|
||||
|
||||
GetMessageArgsOk returns a tuple with the MessageArgs field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetMessageArgs
|
||||
|
||||
`func (o *Message) SetMessageArgs(v []string)`
|
||||
|
||||
SetMessageArgs sets MessageArgs field to given value.
|
||||
|
||||
### HasMessageArgs
|
||||
|
||||
`func (o *Message) HasMessageArgs() bool`
|
||||
|
||||
HasMessageArgs returns a boolean if a field has been set.
|
||||
|
||||
### GetMessageId
|
||||
|
||||
`func (o *Message) GetMessageId() string`
|
||||
|
||||
GetMessageId returns the MessageId field if non-nil, zero value otherwise.
|
||||
|
||||
### GetMessageIdOk
|
||||
|
||||
`func (o *Message) GetMessageIdOk() (*string, bool)`
|
||||
|
||||
GetMessageIdOk returns a tuple with the MessageId field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetMessageId
|
||||
|
||||
`func (o *Message) SetMessageId(v string)`
|
||||
|
||||
SetMessageId sets MessageId field to given value.
|
||||
|
||||
|
||||
### GetRelatedProperties
|
||||
|
||||
`func (o *Message) GetRelatedProperties() []string`
|
||||
|
||||
GetRelatedProperties returns the RelatedProperties field if non-nil, zero value otherwise.
|
||||
|
||||
### GetRelatedPropertiesOk
|
||||
|
||||
`func (o *Message) GetRelatedPropertiesOk() (*[]string, bool)`
|
||||
|
||||
GetRelatedPropertiesOk returns a tuple with the RelatedProperties field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetRelatedProperties
|
||||
|
||||
`func (o *Message) SetRelatedProperties(v []string)`
|
||||
|
||||
SetRelatedProperties sets RelatedProperties field to given value.
|
||||
|
||||
### HasRelatedProperties
|
||||
|
||||
`func (o *Message) HasRelatedProperties() bool`
|
||||
|
||||
HasRelatedProperties returns a boolean if a field has been set.
|
||||
|
||||
### GetResolution
|
||||
|
||||
`func (o *Message) GetResolution() string`
|
||||
|
||||
GetResolution returns the Resolution field if non-nil, zero value otherwise.
|
||||
|
||||
### GetResolutionOk
|
||||
|
||||
`func (o *Message) GetResolutionOk() (*string, bool)`
|
||||
|
||||
GetResolutionOk returns a tuple with the Resolution field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetResolution
|
||||
|
||||
`func (o *Message) SetResolution(v string)`
|
||||
|
||||
SetResolution sets Resolution field to given value.
|
||||
|
||||
### HasResolution
|
||||
|
||||
`func (o *Message) HasResolution() bool`
|
||||
|
||||
HasResolution returns a boolean if a field has been set.
|
||||
|
||||
### GetSeverity
|
||||
|
||||
`func (o *Message) GetSeverity() string`
|
||||
|
||||
GetSeverity returns the Severity field if non-nil, zero value otherwise.
|
||||
|
||||
### GetSeverityOk
|
||||
|
||||
`func (o *Message) GetSeverityOk() (*string, bool)`
|
||||
|
||||
GetSeverityOk returns a tuple with the Severity field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetSeverity
|
||||
|
||||
`func (o *Message) SetSeverity(v string)`
|
||||
|
||||
SetSeverity sets Severity field to given value.
|
||||
|
||||
### HasSeverity
|
||||
|
||||
`func (o *Message) HasSeverity() bool`
|
||||
|
||||
HasSeverity returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -4,10 +4,130 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**HttpHeaders** | **[]string** | This represents the HTTP headers used in the operation of this Task. | [optional] [readonly]
|
||||
**HttpOperation** | **string** | The HTTP operation to perform to execute this Task. | [optional] [readonly]
|
||||
**JsonBody** | **string** | This property contains the JSON payload to use in the execution of this Task. | [optional] [readonly]
|
||||
**TargetUri** | **string** | The URI of the target for this task. | [optional] [readonly]
|
||||
**HttpHeaders** | Pointer to **[]string** | This represents the HTTP headers used in the operation of this Task. | [optional] [readonly]
|
||||
**HttpOperation** | Pointer to **string** | The HTTP operation to perform to execute this Task. | [optional] [readonly]
|
||||
**JsonBody** | Pointer to **string** | This property contains the JSON payload to use in the execution of this Task. | [optional] [readonly]
|
||||
**TargetUri** | Pointer to **string** | The URI of the target for this task. | [optional] [readonly]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewPayload
|
||||
|
||||
`func NewPayload() *Payload`
|
||||
|
||||
NewPayload instantiates a new Payload object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewPayloadWithDefaults
|
||||
|
||||
`func NewPayloadWithDefaults() *Payload`
|
||||
|
||||
NewPayloadWithDefaults instantiates a new Payload object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetHttpHeaders
|
||||
|
||||
`func (o *Payload) GetHttpHeaders() []string`
|
||||
|
||||
GetHttpHeaders returns the HttpHeaders field if non-nil, zero value otherwise.
|
||||
|
||||
### GetHttpHeadersOk
|
||||
|
||||
`func (o *Payload) GetHttpHeadersOk() (*[]string, bool)`
|
||||
|
||||
GetHttpHeadersOk returns a tuple with the HttpHeaders field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetHttpHeaders
|
||||
|
||||
`func (o *Payload) SetHttpHeaders(v []string)`
|
||||
|
||||
SetHttpHeaders sets HttpHeaders field to given value.
|
||||
|
||||
### HasHttpHeaders
|
||||
|
||||
`func (o *Payload) HasHttpHeaders() bool`
|
||||
|
||||
HasHttpHeaders returns a boolean if a field has been set.
|
||||
|
||||
### GetHttpOperation
|
||||
|
||||
`func (o *Payload) GetHttpOperation() string`
|
||||
|
||||
GetHttpOperation returns the HttpOperation field if non-nil, zero value otherwise.
|
||||
|
||||
### GetHttpOperationOk
|
||||
|
||||
`func (o *Payload) GetHttpOperationOk() (*string, bool)`
|
||||
|
||||
GetHttpOperationOk returns a tuple with the HttpOperation field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetHttpOperation
|
||||
|
||||
`func (o *Payload) SetHttpOperation(v string)`
|
||||
|
||||
SetHttpOperation sets HttpOperation field to given value.
|
||||
|
||||
### HasHttpOperation
|
||||
|
||||
`func (o *Payload) HasHttpOperation() bool`
|
||||
|
||||
HasHttpOperation returns a boolean if a field has been set.
|
||||
|
||||
### GetJsonBody
|
||||
|
||||
`func (o *Payload) GetJsonBody() string`
|
||||
|
||||
GetJsonBody returns the JsonBody field if non-nil, zero value otherwise.
|
||||
|
||||
### GetJsonBodyOk
|
||||
|
||||
`func (o *Payload) GetJsonBodyOk() (*string, bool)`
|
||||
|
||||
GetJsonBodyOk returns a tuple with the JsonBody field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetJsonBody
|
||||
|
||||
`func (o *Payload) SetJsonBody(v string)`
|
||||
|
||||
SetJsonBody sets JsonBody field to given value.
|
||||
|
||||
### HasJsonBody
|
||||
|
||||
`func (o *Payload) HasJsonBody() bool`
|
||||
|
||||
HasJsonBody returns a boolean if a field has been set.
|
||||
|
||||
### GetTargetUri
|
||||
|
||||
`func (o *Payload) GetTargetUri() string`
|
||||
|
||||
GetTargetUri returns the TargetUri field if non-nil, zero value otherwise.
|
||||
|
||||
### GetTargetUriOk
|
||||
|
||||
`func (o *Payload) GetTargetUriOk() (*string, bool)`
|
||||
|
||||
GetTargetUriOk returns a tuple with the TargetUri field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetTargetUri
|
||||
|
||||
`func (o *Payload) SetTargetUri(v string)`
|
||||
|
||||
SetTargetUri sets TargetUri field to given value.
|
||||
|
||||
### HasTargetUri
|
||||
|
||||
`func (o *Payload) HasTargetUri() bool`
|
||||
|
||||
HasTargetUri returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -1,9 +1,16 @@
|
||||
# PowerState
|
||||
|
||||
## Properties
|
||||
## Enum
|
||||
|
||||
|
||||
* `ON` (value: `"On"`)
|
||||
|
||||
* `OFF` (value: `"Off"`)
|
||||
|
||||
* `POWERING_ON` (value: `"PoweringOn"`)
|
||||
|
||||
* `POWERING_OFF` (value: `"PoweringOff"`)
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -4,8 +4,88 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Count** | Pointer to **int32** | | [optional] [readonly]
|
||||
**Status** | [**Status**](Status.md) | | [optional]
|
||||
**Count** | Pointer to **NullableInt32** | | [optional] [readonly]
|
||||
**Status** | Pointer to [**Status**](Status.md) | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewProcessorSummary
|
||||
|
||||
`func NewProcessorSummary() *ProcessorSummary`
|
||||
|
||||
NewProcessorSummary instantiates a new ProcessorSummary object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewProcessorSummaryWithDefaults
|
||||
|
||||
`func NewProcessorSummaryWithDefaults() *ProcessorSummary`
|
||||
|
||||
NewProcessorSummaryWithDefaults instantiates a new ProcessorSummary object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetCount
|
||||
|
||||
`func (o *ProcessorSummary) GetCount() int32`
|
||||
|
||||
GetCount returns the Count field if non-nil, zero value otherwise.
|
||||
|
||||
### GetCountOk
|
||||
|
||||
`func (o *ProcessorSummary) GetCountOk() (*int32, bool)`
|
||||
|
||||
GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetCount
|
||||
|
||||
`func (o *ProcessorSummary) SetCount(v int32)`
|
||||
|
||||
SetCount sets Count field to given value.
|
||||
|
||||
### HasCount
|
||||
|
||||
`func (o *ProcessorSummary) HasCount() bool`
|
||||
|
||||
HasCount returns a boolean if a field has been set.
|
||||
|
||||
### SetCountNil
|
||||
|
||||
`func (o *ProcessorSummary) SetCountNil(b bool)`
|
||||
|
||||
SetCountNil sets the value for Count to be an explicit nil
|
||||
|
||||
### UnsetCount
|
||||
`func (o *ProcessorSummary) UnsetCount()`
|
||||
|
||||
UnsetCount ensures that no value is present for Count, not even an explicit nil
|
||||
### GetStatus
|
||||
|
||||
`func (o *ProcessorSummary) GetStatus() Status`
|
||||
|
||||
GetStatus returns the Status field if non-nil, zero value otherwise.
|
||||
|
||||
### GetStatusOk
|
||||
|
||||
`func (o *ProcessorSummary) GetStatusOk() (*Status, bool)`
|
||||
|
||||
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetStatus
|
||||
|
||||
`func (o *ProcessorSummary) SetStatus(v Status)`
|
||||
|
||||
SetStatus sets Status field to given value.
|
||||
|
||||
### HasStatus
|
||||
|
||||
`func (o *ProcessorSummary) HasStatus() bool`
|
||||
|
||||
HasStatus returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -4,7 +4,47 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Error** | [**RedfishErrorError**](RedfishError_error.md) | |
|
||||
**Error** | [**RedfishErrorError**](RedfishErrorError.md) | |
|
||||
|
||||
## Methods
|
||||
|
||||
### NewRedfishError
|
||||
|
||||
`func NewRedfishError(error_ RedfishErrorError, ) *RedfishError`
|
||||
|
||||
NewRedfishError instantiates a new RedfishError object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewRedfishErrorWithDefaults
|
||||
|
||||
`func NewRedfishErrorWithDefaults() *RedfishError`
|
||||
|
||||
NewRedfishErrorWithDefaults instantiates a new RedfishError object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetError
|
||||
|
||||
`func (o *RedfishError) GetError() RedfishErrorError`
|
||||
|
||||
GetError returns the Error field if non-nil, zero value otherwise.
|
||||
|
||||
### GetErrorOk
|
||||
|
||||
`func (o *RedfishError) GetErrorOk() (*RedfishErrorError, bool)`
|
||||
|
||||
GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetError
|
||||
|
||||
`func (o *RedfishError) SetError(v RedfishErrorError)`
|
||||
|
||||
SetError sets Error field to given value.
|
||||
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -4,10 +4,95 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**MessageExtendedInfo** | [**[]Message**](Message.md) | | [optional]
|
||||
**MessageExtendedInfo** | Pointer to [**[]Message**](Message.md) | | [optional]
|
||||
**Code** | **string** | | [readonly]
|
||||
**Message** | **string** | | [readonly]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewRedfishErrorError
|
||||
|
||||
`func NewRedfishErrorError(code string, message string, ) *RedfishErrorError`
|
||||
|
||||
NewRedfishErrorError instantiates a new RedfishErrorError object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewRedfishErrorErrorWithDefaults
|
||||
|
||||
`func NewRedfishErrorErrorWithDefaults() *RedfishErrorError`
|
||||
|
||||
NewRedfishErrorErrorWithDefaults instantiates a new RedfishErrorError object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetMessageExtendedInfo
|
||||
|
||||
`func (o *RedfishErrorError) GetMessageExtendedInfo() []Message`
|
||||
|
||||
GetMessageExtendedInfo returns the MessageExtendedInfo field if non-nil, zero value otherwise.
|
||||
|
||||
### GetMessageExtendedInfoOk
|
||||
|
||||
`func (o *RedfishErrorError) GetMessageExtendedInfoOk() (*[]Message, bool)`
|
||||
|
||||
GetMessageExtendedInfoOk returns a tuple with the MessageExtendedInfo field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetMessageExtendedInfo
|
||||
|
||||
`func (o *RedfishErrorError) SetMessageExtendedInfo(v []Message)`
|
||||
|
||||
SetMessageExtendedInfo sets MessageExtendedInfo field to given value.
|
||||
|
||||
### HasMessageExtendedInfo
|
||||
|
||||
`func (o *RedfishErrorError) HasMessageExtendedInfo() bool`
|
||||
|
||||
HasMessageExtendedInfo returns a boolean if a field has been set.
|
||||
|
||||
### GetCode
|
||||
|
||||
`func (o *RedfishErrorError) GetCode() string`
|
||||
|
||||
GetCode returns the Code field if non-nil, zero value otherwise.
|
||||
|
||||
### GetCodeOk
|
||||
|
||||
`func (o *RedfishErrorError) GetCodeOk() (*string, bool)`
|
||||
|
||||
GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetCode
|
||||
|
||||
`func (o *RedfishErrorError) SetCode(v string)`
|
||||
|
||||
SetCode sets Code field to given value.
|
||||
|
||||
|
||||
### GetMessage
|
||||
|
||||
`func (o *RedfishErrorError) GetMessage() string`
|
||||
|
||||
GetMessage returns the Message field if non-nil, zero value otherwise.
|
||||
|
||||
### GetMessageOk
|
||||
|
||||
`func (o *RedfishErrorError) GetMessageOk() (*string, bool)`
|
||||
|
||||
GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetMessage
|
||||
|
||||
`func (o *RedfishErrorError) SetMessage(v string)`
|
||||
|
||||
SetMessage sets Message field to given value.
|
||||
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
|
@ -4,7 +4,52 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**ResetType** | [**ResetType**](ResetType.md) | | [optional]
|
||||
**ResetType** | Pointer to [**ResetType**](ResetType.md) | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewResetRequestBody
|
||||
|
||||
`func NewResetRequestBody() *ResetRequestBody`
|
||||
|
||||
NewResetRequestBody instantiates a new ResetRequestBody object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewResetRequestBodyWithDefaults
|
||||
|
||||
`func NewResetRequestBodyWithDefaults() *ResetRequestBody`
|
||||
|
||||
NewResetRequestBodyWithDefaults instantiates a new ResetRequestBody object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetResetType
|
||||
|
||||
`func (o *ResetRequestBody) GetResetType() ResetType`
|
||||
|
||||
GetResetType returns the ResetType field if non-nil, zero value otherwise.
|
||||
|
||||
### GetResetTypeOk
|
||||
|
||||
`func (o *ResetRequestBody) GetResetTypeOk() (*ResetType, bool)`
|
||||
|
||||
GetResetTypeOk returns a tuple with the ResetType field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetResetType
|
||||
|
||||
`func (o *ResetRequestBody) SetResetType(v ResetType)`
|
||||
|
||||
SetResetType sets ResetType field to given value.
|
||||
|
||||
### HasResetType
|
||||
|
||||
`func (o *ResetRequestBody) HasResetType() bool`
|
||||
|
||||
HasResetType returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -1,9 +1,26 @@
|
||||
# ResetType
|
||||
|
||||
## Properties
|
||||
## Enum
|
||||
|
||||
|
||||
* `ON` (value: `"On"`)
|
||||
|
||||
* `FORCE_OFF` (value: `"ForceOff"`)
|
||||
|
||||
* `GRACEFUL_SHUTDOWN` (value: `"GracefulShutdown"`)
|
||||
|
||||
* `GRACEFUL_RESTART` (value: `"GracefulRestart"`)
|
||||
|
||||
* `FORCE_RESTART` (value: `"ForceRestart"`)
|
||||
|
||||
* `NMI` (value: `"Nmi"`)
|
||||
|
||||
* `FORCE_ON` (value: `"ForceOn"`)
|
||||
|
||||
* `PUSH_POWER_BUTTON` (value: `"PushPowerButton"`)
|
||||
|
||||
* `POWER_CYCLE` (value: `"PowerCycle"`)
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -4,15 +4,245 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Id** | **string** | The name of the resource. | [optional] [readonly]
|
||||
**Id** | Pointer to **string** | The name of the resource. | [optional] [readonly]
|
||||
**Name** | **string** | The name of the resource. | [readonly]
|
||||
**RedfishVersion** | **string** | redfish version | [optional]
|
||||
**UUID** | **string** | | [optional]
|
||||
**RedfishVersion** | Pointer to **string** | redfish version | [optional]
|
||||
**UUID** | Pointer to **string** | | [optional]
|
||||
**OdataType** | **string** | The type of a resource. | [readonly]
|
||||
**OdataId** | **string** | The unique identifier for a resource. | [readonly]
|
||||
**RedfishCopyright** | **string** | redfish copyright | [optional]
|
||||
**Systems** | [**IdRef**](idRef.md) | | [optional]
|
||||
**Managers** | [**IdRef**](idRef.md) | | [optional]
|
||||
**RedfishCopyright** | Pointer to **string** | redfish copyright | [optional]
|
||||
**Systems** | Pointer to [**IdRef**](IdRef.md) | | [optional]
|
||||
**Managers** | Pointer to [**IdRef**](IdRef.md) | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewRoot
|
||||
|
||||
`func NewRoot(name string, odataType string, odataId string, ) *Root`
|
||||
|
||||
NewRoot instantiates a new Root object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewRootWithDefaults
|
||||
|
||||
`func NewRootWithDefaults() *Root`
|
||||
|
||||
NewRootWithDefaults instantiates a new Root object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetId
|
||||
|
||||
`func (o *Root) GetId() string`
|
||||
|
||||
GetId returns the Id field if non-nil, zero value otherwise.
|
||||
|
||||
### GetIdOk
|
||||
|
||||
`func (o *Root) GetIdOk() (*string, bool)`
|
||||
|
||||
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetId
|
||||
|
||||
`func (o *Root) SetId(v string)`
|
||||
|
||||
SetId sets Id field to given value.
|
||||
|
||||
### HasId
|
||||
|
||||
`func (o *Root) HasId() bool`
|
||||
|
||||
HasId returns a boolean if a field has been set.
|
||||
|
||||
### GetName
|
||||
|
||||
`func (o *Root) GetName() string`
|
||||
|
||||
GetName returns the Name field if non-nil, zero value otherwise.
|
||||
|
||||
### GetNameOk
|
||||
|
||||
`func (o *Root) GetNameOk() (*string, bool)`
|
||||
|
||||
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetName
|
||||
|
||||
`func (o *Root) SetName(v string)`
|
||||
|
||||
SetName sets Name field to given value.
|
||||
|
||||
|
||||
### GetRedfishVersion
|
||||
|
||||
`func (o *Root) GetRedfishVersion() string`
|
||||
|
||||
GetRedfishVersion returns the RedfishVersion field if non-nil, zero value otherwise.
|
||||
|
||||
### GetRedfishVersionOk
|
||||
|
||||
`func (o *Root) GetRedfishVersionOk() (*string, bool)`
|
||||
|
||||
GetRedfishVersionOk returns a tuple with the RedfishVersion field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetRedfishVersion
|
||||
|
||||
`func (o *Root) SetRedfishVersion(v string)`
|
||||
|
||||
SetRedfishVersion sets RedfishVersion field to given value.
|
||||
|
||||
### HasRedfishVersion
|
||||
|
||||
`func (o *Root) HasRedfishVersion() bool`
|
||||
|
||||
HasRedfishVersion returns a boolean if a field has been set.
|
||||
|
||||
### GetUUID
|
||||
|
||||
`func (o *Root) GetUUID() string`
|
||||
|
||||
GetUUID returns the UUID field if non-nil, zero value otherwise.
|
||||
|
||||
### GetUUIDOk
|
||||
|
||||
`func (o *Root) GetUUIDOk() (*string, bool)`
|
||||
|
||||
GetUUIDOk returns a tuple with the UUID field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetUUID
|
||||
|
||||
`func (o *Root) SetUUID(v string)`
|
||||
|
||||
SetUUID sets UUID field to given value.
|
||||
|
||||
### HasUUID
|
||||
|
||||
`func (o *Root) HasUUID() bool`
|
||||
|
||||
HasUUID returns a boolean if a field has been set.
|
||||
|
||||
### GetOdataType
|
||||
|
||||
`func (o *Root) GetOdataType() string`
|
||||
|
||||
GetOdataType returns the OdataType field if non-nil, zero value otherwise.
|
||||
|
||||
### GetOdataTypeOk
|
||||
|
||||
`func (o *Root) GetOdataTypeOk() (*string, bool)`
|
||||
|
||||
GetOdataTypeOk returns a tuple with the OdataType field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetOdataType
|
||||
|
||||
`func (o *Root) SetOdataType(v string)`
|
||||
|
||||
SetOdataType sets OdataType field to given value.
|
||||
|
||||
|
||||
### GetOdataId
|
||||
|
||||
`func (o *Root) GetOdataId() string`
|
||||
|
||||
GetOdataId returns the OdataId field if non-nil, zero value otherwise.
|
||||
|
||||
### GetOdataIdOk
|
||||
|
||||
`func (o *Root) GetOdataIdOk() (*string, bool)`
|
||||
|
||||
GetOdataIdOk returns a tuple with the OdataId field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetOdataId
|
||||
|
||||
`func (o *Root) SetOdataId(v string)`
|
||||
|
||||
SetOdataId sets OdataId field to given value.
|
||||
|
||||
|
||||
### GetRedfishCopyright
|
||||
|
||||
`func (o *Root) GetRedfishCopyright() string`
|
||||
|
||||
GetRedfishCopyright returns the RedfishCopyright field if non-nil, zero value otherwise.
|
||||
|
||||
### GetRedfishCopyrightOk
|
||||
|
||||
`func (o *Root) GetRedfishCopyrightOk() (*string, bool)`
|
||||
|
||||
GetRedfishCopyrightOk returns a tuple with the RedfishCopyright field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetRedfishCopyright
|
||||
|
||||
`func (o *Root) SetRedfishCopyright(v string)`
|
||||
|
||||
SetRedfishCopyright sets RedfishCopyright field to given value.
|
||||
|
||||
### HasRedfishCopyright
|
||||
|
||||
`func (o *Root) HasRedfishCopyright() bool`
|
||||
|
||||
HasRedfishCopyright returns a boolean if a field has been set.
|
||||
|
||||
### GetSystems
|
||||
|
||||
`func (o *Root) GetSystems() IdRef`
|
||||
|
||||
GetSystems returns the Systems field if non-nil, zero value otherwise.
|
||||
|
||||
### GetSystemsOk
|
||||
|
||||
`func (o *Root) GetSystemsOk() (*IdRef, bool)`
|
||||
|
||||
GetSystemsOk returns a tuple with the Systems field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetSystems
|
||||
|
||||
`func (o *Root) SetSystems(v IdRef)`
|
||||
|
||||
SetSystems sets Systems field to given value.
|
||||
|
||||
### HasSystems
|
||||
|
||||
`func (o *Root) HasSystems() bool`
|
||||
|
||||
HasSystems returns a boolean if a field has been set.
|
||||
|
||||
### GetManagers
|
||||
|
||||
`func (o *Root) GetManagers() IdRef`
|
||||
|
||||
GetManagers returns the Managers field if non-nil, zero value otherwise.
|
||||
|
||||
### GetManagersOk
|
||||
|
||||
`func (o *Root) GetManagersOk() (*IdRef, bool)`
|
||||
|
||||
GetManagersOk returns a tuple with the Managers field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetManagers
|
||||
|
||||
`func (o *Root) SetManagers(v IdRef)`
|
||||
|
||||
SetManagers sets Managers field to given value.
|
||||
|
||||
### HasManagers
|
||||
|
||||
`func (o *Root) HasManagers() bool`
|
||||
|
||||
HasManagers returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -5,8 +5,98 @@
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**ImageURI** | **string** | |
|
||||
**Targets** | **[]string** | | [optional]
|
||||
**TransferProtocolType** | [**TransferProtocolType**](TransferProtocolType.md) | | [optional]
|
||||
**Targets** | Pointer to **[]string** | | [optional]
|
||||
**TransferProtocolType** | Pointer to [**TransferProtocolType**](TransferProtocolType.md) | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewSimpleUpdateRequestBody
|
||||
|
||||
`func NewSimpleUpdateRequestBody(imageURI string, ) *SimpleUpdateRequestBody`
|
||||
|
||||
NewSimpleUpdateRequestBody instantiates a new SimpleUpdateRequestBody object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewSimpleUpdateRequestBodyWithDefaults
|
||||
|
||||
`func NewSimpleUpdateRequestBodyWithDefaults() *SimpleUpdateRequestBody`
|
||||
|
||||
NewSimpleUpdateRequestBodyWithDefaults instantiates a new SimpleUpdateRequestBody object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetImageURI
|
||||
|
||||
`func (o *SimpleUpdateRequestBody) GetImageURI() string`
|
||||
|
||||
GetImageURI returns the ImageURI field if non-nil, zero value otherwise.
|
||||
|
||||
### GetImageURIOk
|
||||
|
||||
`func (o *SimpleUpdateRequestBody) GetImageURIOk() (*string, bool)`
|
||||
|
||||
GetImageURIOk returns a tuple with the ImageURI field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetImageURI
|
||||
|
||||
`func (o *SimpleUpdateRequestBody) SetImageURI(v string)`
|
||||
|
||||
SetImageURI sets ImageURI field to given value.
|
||||
|
||||
|
||||
### GetTargets
|
||||
|
||||
`func (o *SimpleUpdateRequestBody) GetTargets() []string`
|
||||
|
||||
GetTargets returns the Targets field if non-nil, zero value otherwise.
|
||||
|
||||
### GetTargetsOk
|
||||
|
||||
`func (o *SimpleUpdateRequestBody) GetTargetsOk() (*[]string, bool)`
|
||||
|
||||
GetTargetsOk returns a tuple with the Targets field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetTargets
|
||||
|
||||
`func (o *SimpleUpdateRequestBody) SetTargets(v []string)`
|
||||
|
||||
SetTargets sets Targets field to given value.
|
||||
|
||||
### HasTargets
|
||||
|
||||
`func (o *SimpleUpdateRequestBody) HasTargets() bool`
|
||||
|
||||
HasTargets returns a boolean if a field has been set.
|
||||
|
||||
### GetTransferProtocolType
|
||||
|
||||
`func (o *SimpleUpdateRequestBody) GetTransferProtocolType() TransferProtocolType`
|
||||
|
||||
GetTransferProtocolType returns the TransferProtocolType field if non-nil, zero value otherwise.
|
||||
|
||||
### GetTransferProtocolTypeOk
|
||||
|
||||
`func (o *SimpleUpdateRequestBody) GetTransferProtocolTypeOk() (*TransferProtocolType, bool)`
|
||||
|
||||
GetTransferProtocolTypeOk returns a tuple with the TransferProtocolType field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetTransferProtocolType
|
||||
|
||||
`func (o *SimpleUpdateRequestBody) SetTransferProtocolType(v TransferProtocolType)`
|
||||
|
||||
SetTransferProtocolType sets TransferProtocolType field to given value.
|
||||
|
||||
### HasTransferProtocolType
|
||||
|
||||
`func (o *SimpleUpdateRequestBody) HasTransferProtocolType() bool`
|
||||
|
||||
HasTransferProtocolType returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -6,21 +6,506 @@ Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**OdataType** | **string** | | [readonly]
|
||||
**OdataId** | **string** | | [readonly]
|
||||
**OdataContext** | **string** | | [optional] [readonly]
|
||||
**OdataEtag** | **string** | | [optional] [readonly]
|
||||
**Description** | Pointer to **string** | | [optional] [readonly]
|
||||
**OdataContext** | Pointer to **string** | | [optional] [readonly]
|
||||
**OdataEtag** | Pointer to **string** | | [optional] [readonly]
|
||||
**Description** | Pointer to **NullableString** | | [optional] [readonly]
|
||||
**Id** | **string** | | [readonly]
|
||||
**LowestSupportedVersion** | Pointer to **string** | | [optional] [readonly]
|
||||
**Manufacturer** | Pointer to **string** | | [optional] [readonly]
|
||||
**LowestSupportedVersion** | Pointer to **NullableString** | | [optional] [readonly]
|
||||
**Manufacturer** | Pointer to **NullableString** | | [optional] [readonly]
|
||||
**Name** | **string** | | [readonly]
|
||||
**RelatedItem** | [**[]IdRef**](idRef.md) | | [optional] [readonly]
|
||||
**RelatedItemodataCount** | Pointer to **int32** | | [optional] [readonly]
|
||||
**ReleaseDate** | Pointer to [**time.Time**](time.Time.md) | | [optional] [readonly]
|
||||
**SoftwareId** | **string** | | [optional] [readonly]
|
||||
**Status** | [**Status**](Status.md) | | [optional]
|
||||
**UefiDevicePaths** | **[]string** | | [optional] [readonly]
|
||||
**Updateable** | Pointer to **bool** | | [readonly]
|
||||
**Version** | Pointer to **string** | | [readonly]
|
||||
**RelatedItem** | Pointer to [**[]IdRef**](IdRef.md) | | [optional] [readonly]
|
||||
**RelatedItemodataCount** | Pointer to **NullableInt32** | | [optional] [readonly]
|
||||
**ReleaseDate** | Pointer to **NullableTime** | | [optional] [readonly]
|
||||
**SoftwareId** | Pointer to **string** | | [optional] [readonly]
|
||||
**Status** | Pointer to [**Status**](Status.md) | | [optional]
|
||||
**UefiDevicePaths** | Pointer to **[]string** | | [optional] [readonly]
|
||||
**Updateable** | **NullableBool** | | [readonly]
|
||||
**Version** | **NullableString** | | [readonly]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewSoftwareInventory
|
||||
|
||||
`func NewSoftwareInventory(odataType string, odataId string, id string, name string, updateable NullableBool, version NullableString, ) *SoftwareInventory`
|
||||
|
||||
NewSoftwareInventory instantiates a new SoftwareInventory object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewSoftwareInventoryWithDefaults
|
||||
|
||||
`func NewSoftwareInventoryWithDefaults() *SoftwareInventory`
|
||||
|
||||
NewSoftwareInventoryWithDefaults instantiates a new SoftwareInventory object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetOdataType
|
||||
|
||||
`func (o *SoftwareInventory) GetOdataType() string`
|
||||
|
||||
GetOdataType returns the OdataType field if non-nil, zero value otherwise.
|
||||
|
||||
### GetOdataTypeOk
|
||||
|
||||
`func (o *SoftwareInventory) GetOdataTypeOk() (*string, bool)`
|
||||
|
||||
GetOdataTypeOk returns a tuple with the OdataType field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetOdataType
|
||||
|
||||
`func (o *SoftwareInventory) SetOdataType(v string)`
|
||||
|
||||
SetOdataType sets OdataType field to given value.
|
||||
|
||||
|
||||
### GetOdataId
|
||||
|
||||
`func (o *SoftwareInventory) GetOdataId() string`
|
||||
|
||||
GetOdataId returns the OdataId field if non-nil, zero value otherwise.
|
||||
|
||||
### GetOdataIdOk
|
||||
|
||||
`func (o *SoftwareInventory) GetOdataIdOk() (*string, bool)`
|
||||
|
||||
GetOdataIdOk returns a tuple with the OdataId field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetOdataId
|
||||
|
||||
`func (o *SoftwareInventory) SetOdataId(v string)`
|
||||
|
||||
SetOdataId sets OdataId field to given value.
|
||||
|
||||
|
||||
### GetOdataContext
|
||||
|
||||
`func (o *SoftwareInventory) GetOdataContext() string`
|
||||
|
||||
GetOdataContext returns the OdataContext field if non-nil, zero value otherwise.
|
||||
|
||||
### GetOdataContextOk
|
||||
|
||||
`func (o *SoftwareInventory) GetOdataContextOk() (*string, bool)`
|
||||
|
||||
GetOdataContextOk returns a tuple with the OdataContext field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetOdataContext
|
||||
|
||||
`func (o *SoftwareInventory) SetOdataContext(v string)`
|
||||
|
||||
SetOdataContext sets OdataContext field to given value.
|
||||
|
||||
### HasOdataContext
|
||||
|
||||
`func (o *SoftwareInventory) HasOdataContext() bool`
|
||||
|
||||
HasOdataContext returns a boolean if a field has been set.
|
||||
|
||||
### GetOdataEtag
|
||||
|
||||
`func (o *SoftwareInventory) GetOdataEtag() string`
|
||||
|
||||
GetOdataEtag returns the OdataEtag field if non-nil, zero value otherwise.
|
||||
|
||||
### GetOdataEtagOk
|
||||
|
||||
`func (o *SoftwareInventory) GetOdataEtagOk() (*string, bool)`
|
||||
|
||||
GetOdataEtagOk returns a tuple with the OdataEtag field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetOdataEtag
|
||||
|
||||
`func (o *SoftwareInventory) SetOdataEtag(v string)`
|
||||
|
||||
SetOdataEtag sets OdataEtag field to given value.
|
||||
|
||||
### HasOdataEtag
|
||||
|
||||
`func (o *SoftwareInventory) HasOdataEtag() bool`
|
||||
|
||||
HasOdataEtag returns a boolean if a field has been set.
|
||||
|
||||
### GetDescription
|
||||
|
||||
`func (o *SoftwareInventory) GetDescription() string`
|
||||
|
||||
GetDescription returns the Description field if non-nil, zero value otherwise.
|
||||
|
||||
### GetDescriptionOk
|
||||
|
||||
`func (o *SoftwareInventory) GetDescriptionOk() (*string, bool)`
|
||||
|
||||
GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetDescription
|
||||
|
||||
`func (o *SoftwareInventory) SetDescription(v string)`
|
||||
|
||||
SetDescription sets Description field to given value.
|
||||
|
||||
### HasDescription
|
||||
|
||||
`func (o *SoftwareInventory) HasDescription() bool`
|
||||
|
||||
HasDescription returns a boolean if a field has been set.
|
||||
|
||||
### SetDescriptionNil
|
||||
|
||||
`func (o *SoftwareInventory) SetDescriptionNil(b bool)`
|
||||
|
||||
SetDescriptionNil sets the value for Description to be an explicit nil
|
||||
|
||||
### UnsetDescription
|
||||
`func (o *SoftwareInventory) UnsetDescription()`
|
||||
|
||||
UnsetDescription ensures that no value is present for Description, not even an explicit nil
|
||||
### GetId
|
||||
|
||||
`func (o *SoftwareInventory) GetId() string`
|
||||
|
||||
GetId returns the Id field if non-nil, zero value otherwise.
|
||||
|
||||
### GetIdOk
|
||||
|
||||
`func (o *SoftwareInventory) GetIdOk() (*string, bool)`
|
||||
|
||||
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetId
|
||||
|
||||
`func (o *SoftwareInventory) SetId(v string)`
|
||||
|
||||
SetId sets Id field to given value.
|
||||
|
||||
|
||||
### GetLowestSupportedVersion
|
||||
|
||||
`func (o *SoftwareInventory) GetLowestSupportedVersion() string`
|
||||
|
||||
GetLowestSupportedVersion returns the LowestSupportedVersion field if non-nil, zero value otherwise.
|
||||
|
||||
### GetLowestSupportedVersionOk
|
||||
|
||||
`func (o *SoftwareInventory) GetLowestSupportedVersionOk() (*string, bool)`
|
||||
|
||||
GetLowestSupportedVersionOk returns a tuple with the LowestSupportedVersion field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetLowestSupportedVersion
|
||||
|
||||
`func (o *SoftwareInventory) SetLowestSupportedVersion(v string)`
|
||||
|
||||
SetLowestSupportedVersion sets LowestSupportedVersion field to given value.
|
||||
|
||||
### HasLowestSupportedVersion
|
||||
|
||||
`func (o *SoftwareInventory) HasLowestSupportedVersion() bool`
|
||||
|
||||
HasLowestSupportedVersion returns a boolean if a field has been set.
|
||||
|
||||
### SetLowestSupportedVersionNil
|
||||
|
||||
`func (o *SoftwareInventory) SetLowestSupportedVersionNil(b bool)`
|
||||
|
||||
SetLowestSupportedVersionNil sets the value for LowestSupportedVersion to be an explicit nil
|
||||
|
||||
### UnsetLowestSupportedVersion
|
||||
`func (o *SoftwareInventory) UnsetLowestSupportedVersion()`
|
||||
|
||||
UnsetLowestSupportedVersion ensures that no value is present for LowestSupportedVersion, not even an explicit nil
|
||||
### GetManufacturer
|
||||
|
||||
`func (o *SoftwareInventory) GetManufacturer() string`
|
||||
|
||||
GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise.
|
||||
|
||||
### GetManufacturerOk
|
||||
|
||||
`func (o *SoftwareInventory) GetManufacturerOk() (*string, bool)`
|
||||
|
||||
GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetManufacturer
|
||||
|
||||
`func (o *SoftwareInventory) SetManufacturer(v string)`
|
||||
|
||||
SetManufacturer sets Manufacturer field to given value.
|
||||
|
||||
### HasManufacturer
|
||||
|
||||
`func (o *SoftwareInventory) HasManufacturer() bool`
|
||||
|
||||
HasManufacturer returns a boolean if a field has been set.
|
||||
|
||||
### SetManufacturerNil
|
||||
|
||||
`func (o *SoftwareInventory) SetManufacturerNil(b bool)`
|
||||
|
||||
SetManufacturerNil sets the value for Manufacturer to be an explicit nil
|
||||
|
||||
### UnsetManufacturer
|
||||
`func (o *SoftwareInventory) UnsetManufacturer()`
|
||||
|
||||
UnsetManufacturer ensures that no value is present for Manufacturer, not even an explicit nil
|
||||
### GetName
|
||||
|
||||
`func (o *SoftwareInventory) GetName() string`
|
||||
|
||||
GetName returns the Name field if non-nil, zero value otherwise.
|
||||
|
||||
### GetNameOk
|
||||
|
||||
`func (o *SoftwareInventory) GetNameOk() (*string, bool)`
|
||||
|
||||
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetName
|
||||
|
||||
`func (o *SoftwareInventory) SetName(v string)`
|
||||
|
||||
SetName sets Name field to given value.
|
||||
|
||||
|
||||
### GetRelatedItem
|
||||
|
||||
`func (o *SoftwareInventory) GetRelatedItem() []IdRef`
|
||||
|
||||
GetRelatedItem returns the RelatedItem field if non-nil, zero value otherwise.
|
||||
|
||||
### GetRelatedItemOk
|
||||
|
||||
`func (o *SoftwareInventory) GetRelatedItemOk() (*[]IdRef, bool)`
|
||||
|
||||
GetRelatedItemOk returns a tuple with the RelatedItem field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetRelatedItem
|
||||
|
||||
`func (o *SoftwareInventory) SetRelatedItem(v []IdRef)`
|
||||
|
||||
SetRelatedItem sets RelatedItem field to given value.
|
||||
|
||||
### HasRelatedItem
|
||||
|
||||
`func (o *SoftwareInventory) HasRelatedItem() bool`
|
||||
|
||||
HasRelatedItem returns a boolean if a field has been set.
|
||||
|
||||
### GetRelatedItemodataCount
|
||||
|
||||
`func (o *SoftwareInventory) GetRelatedItemodataCount() int32`
|
||||
|
||||
GetRelatedItemodataCount returns the RelatedItemodataCount field if non-nil, zero value otherwise.
|
||||
|
||||
### GetRelatedItemodataCountOk
|
||||
|
||||
`func (o *SoftwareInventory) GetRelatedItemodataCountOk() (*int32, bool)`
|
||||
|
||||
GetRelatedItemodataCountOk returns a tuple with the RelatedItemodataCount field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetRelatedItemodataCount
|
||||
|
||||
`func (o *SoftwareInventory) SetRelatedItemodataCount(v int32)`
|
||||
|
||||
SetRelatedItemodataCount sets RelatedItemodataCount field to given value.
|
||||
|
||||
### HasRelatedItemodataCount
|
||||
|
||||
`func (o *SoftwareInventory) HasRelatedItemodataCount() bool`
|
||||
|
||||
HasRelatedItemodataCount returns a boolean if a field has been set.
|
||||
|
||||
### SetRelatedItemodataCountNil
|
||||
|
||||
`func (o *SoftwareInventory) SetRelatedItemodataCountNil(b bool)`
|
||||
|
||||
SetRelatedItemodataCountNil sets the value for RelatedItemodataCount to be an explicit nil
|
||||
|
||||
### UnsetRelatedItemodataCount
|
||||
`func (o *SoftwareInventory) UnsetRelatedItemodataCount()`
|
||||
|
||||
UnsetRelatedItemodataCount ensures that no value is present for RelatedItemodataCount, not even an explicit nil
|
||||
### GetReleaseDate
|
||||
|
||||
`func (o *SoftwareInventory) GetReleaseDate() time.Time`
|
||||
|
||||
GetReleaseDate returns the ReleaseDate field if non-nil, zero value otherwise.
|
||||
|
||||
### GetReleaseDateOk
|
||||
|
||||
`func (o *SoftwareInventory) GetReleaseDateOk() (*time.Time, bool)`
|
||||
|
||||
GetReleaseDateOk returns a tuple with the ReleaseDate field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetReleaseDate
|
||||
|
||||
`func (o *SoftwareInventory) SetReleaseDate(v time.Time)`
|
||||
|
||||
SetReleaseDate sets ReleaseDate field to given value.
|
||||
|
||||
### HasReleaseDate
|
||||
|
||||
`func (o *SoftwareInventory) HasReleaseDate() bool`
|
||||
|
||||
HasReleaseDate returns a boolean if a field has been set.
|
||||
|
||||
### SetReleaseDateNil
|
||||
|
||||
`func (o *SoftwareInventory) SetReleaseDateNil(b bool)`
|
||||
|
||||
SetReleaseDateNil sets the value for ReleaseDate to be an explicit nil
|
||||
|
||||
### UnsetReleaseDate
|
||||
`func (o *SoftwareInventory) UnsetReleaseDate()`
|
||||
|
||||
UnsetReleaseDate ensures that no value is present for ReleaseDate, not even an explicit nil
|
||||
### GetSoftwareId
|
||||
|
||||
`func (o *SoftwareInventory) GetSoftwareId() string`
|
||||
|
||||
GetSoftwareId returns the SoftwareId field if non-nil, zero value otherwise.
|
||||
|
||||
### GetSoftwareIdOk
|
||||
|
||||
`func (o *SoftwareInventory) GetSoftwareIdOk() (*string, bool)`
|
||||
|
||||
GetSoftwareIdOk returns a tuple with the SoftwareId field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetSoftwareId
|
||||
|
||||
`func (o *SoftwareInventory) SetSoftwareId(v string)`
|
||||
|
||||
SetSoftwareId sets SoftwareId field to given value.
|
||||
|
||||
### HasSoftwareId
|
||||
|
||||
`func (o *SoftwareInventory) HasSoftwareId() bool`
|
||||
|
||||
HasSoftwareId returns a boolean if a field has been set.
|
||||
|
||||
### GetStatus
|
||||
|
||||
`func (o *SoftwareInventory) GetStatus() Status`
|
||||
|
||||
GetStatus returns the Status field if non-nil, zero value otherwise.
|
||||
|
||||
### GetStatusOk
|
||||
|
||||
`func (o *SoftwareInventory) GetStatusOk() (*Status, bool)`
|
||||
|
||||
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetStatus
|
||||
|
||||
`func (o *SoftwareInventory) SetStatus(v Status)`
|
||||
|
||||
SetStatus sets Status field to given value.
|
||||
|
||||
### HasStatus
|
||||
|
||||
`func (o *SoftwareInventory) HasStatus() bool`
|
||||
|
||||
HasStatus returns a boolean if a field has been set.
|
||||
|
||||
### GetUefiDevicePaths
|
||||
|
||||
`func (o *SoftwareInventory) GetUefiDevicePaths() []string`
|
||||
|
||||
GetUefiDevicePaths returns the UefiDevicePaths field if non-nil, zero value otherwise.
|
||||
|
||||
### GetUefiDevicePathsOk
|
||||
|
||||
`func (o *SoftwareInventory) GetUefiDevicePathsOk() (*[]string, bool)`
|
||||
|
||||
GetUefiDevicePathsOk returns a tuple with the UefiDevicePaths field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetUefiDevicePaths
|
||||
|
||||
`func (o *SoftwareInventory) SetUefiDevicePaths(v []string)`
|
||||
|
||||
SetUefiDevicePaths sets UefiDevicePaths field to given value.
|
||||
|
||||
### HasUefiDevicePaths
|
||||
|
||||
`func (o *SoftwareInventory) HasUefiDevicePaths() bool`
|
||||
|
||||
HasUefiDevicePaths returns a boolean if a field has been set.
|
||||
|
||||
### GetUpdateable
|
||||
|
||||
`func (o *SoftwareInventory) GetUpdateable() bool`
|
||||
|
||||
GetUpdateable returns the Updateable field if non-nil, zero value otherwise.
|
||||
|
||||
### GetUpdateableOk
|
||||
|
||||
`func (o *SoftwareInventory) GetUpdateableOk() (*bool, bool)`
|
||||
|
||||
GetUpdateableOk returns a tuple with the Updateable field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetUpdateable
|
||||
|
||||
`func (o *SoftwareInventory) SetUpdateable(v bool)`
|
||||
|
||||
SetUpdateable sets Updateable field to given value.
|
||||
|
||||
|
||||
### SetUpdateableNil
|
||||
|
||||
`func (o *SoftwareInventory) SetUpdateableNil(b bool)`
|
||||
|
||||
SetUpdateableNil sets the value for Updateable to be an explicit nil
|
||||
|
||||
### UnsetUpdateable
|
||||
`func (o *SoftwareInventory) UnsetUpdateable()`
|
||||
|
||||
UnsetUpdateable ensures that no value is present for Updateable, not even an explicit nil
|
||||
### GetVersion
|
||||
|
||||
`func (o *SoftwareInventory) GetVersion() string`
|
||||
|
||||
GetVersion returns the Version field if non-nil, zero value otherwise.
|
||||
|
||||
### GetVersionOk
|
||||
|
||||
`func (o *SoftwareInventory) GetVersionOk() (*string, bool)`
|
||||
|
||||
GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetVersion
|
||||
|
||||
`func (o *SoftwareInventory) SetVersion(v string)`
|
||||
|
||||
SetVersion sets Version field to given value.
|
||||
|
||||
|
||||
### SetVersionNil
|
||||
|
||||
`func (o *SoftwareInventory) SetVersionNil(b bool)`
|
||||
|
||||
SetVersionNil sets the value for Version to be an explicit nil
|
||||
|
||||
### UnsetVersion
|
||||
`func (o *SoftwareInventory) UnsetVersion()`
|
||||
|
||||
UnsetVersion ensures that no value is present for Version, not even an explicit nil
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -1,9 +1,30 @@
|
||||
# State
|
||||
|
||||
## Properties
|
||||
## Enum
|
||||
|
||||
|
||||
* `ENABLED` (value: `"Enabled"`)
|
||||
|
||||
* `DISABLED` (value: `"Disabled"`)
|
||||
|
||||
* `STANDBY_OFFLINE` (value: `"StandbyOffline"`)
|
||||
|
||||
* `STANDBY_SPARE` (value: `"StandbySpare"`)
|
||||
|
||||
* `IN_TEST` (value: `"InTest"`)
|
||||
|
||||
* `STARTING` (value: `"Starting"`)
|
||||
|
||||
* `ABSENT` (value: `"Absent"`)
|
||||
|
||||
* `UNAVAILABLE_OFFLINE` (value: `"UnavailableOffline"`)
|
||||
|
||||
* `DEFERRING` (value: `"Deferring"`)
|
||||
|
||||
* `QUIESCED` (value: `"Quiesced"`)
|
||||
|
||||
* `UPDATING` (value: `"Updating"`)
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -4,9 +4,104 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Health** | [**Health**](Health.md) | | [optional]
|
||||
**HealthRollup** | [**Health**](Health.md) | | [optional]
|
||||
**State** | [**State**](State.md) | | [optional]
|
||||
**Health** | Pointer to [**Health**](Health.md) | | [optional]
|
||||
**HealthRollup** | Pointer to [**Health**](Health.md) | | [optional]
|
||||
**State** | Pointer to [**State**](State.md) | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewStatus
|
||||
|
||||
`func NewStatus() *Status`
|
||||
|
||||
NewStatus instantiates a new Status object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewStatusWithDefaults
|
||||
|
||||
`func NewStatusWithDefaults() *Status`
|
||||
|
||||
NewStatusWithDefaults instantiates a new Status object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetHealth
|
||||
|
||||
`func (o *Status) GetHealth() Health`
|
||||
|
||||
GetHealth returns the Health field if non-nil, zero value otherwise.
|
||||
|
||||
### GetHealthOk
|
||||
|
||||
`func (o *Status) GetHealthOk() (*Health, bool)`
|
||||
|
||||
GetHealthOk returns a tuple with the Health field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetHealth
|
||||
|
||||
`func (o *Status) SetHealth(v Health)`
|
||||
|
||||
SetHealth sets Health field to given value.
|
||||
|
||||
### HasHealth
|
||||
|
||||
`func (o *Status) HasHealth() bool`
|
||||
|
||||
HasHealth returns a boolean if a field has been set.
|
||||
|
||||
### GetHealthRollup
|
||||
|
||||
`func (o *Status) GetHealthRollup() Health`
|
||||
|
||||
GetHealthRollup returns the HealthRollup field if non-nil, zero value otherwise.
|
||||
|
||||
### GetHealthRollupOk
|
||||
|
||||
`func (o *Status) GetHealthRollupOk() (*Health, bool)`
|
||||
|
||||
GetHealthRollupOk returns a tuple with the HealthRollup field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetHealthRollup
|
||||
|
||||
`func (o *Status) SetHealthRollup(v Health)`
|
||||
|
||||
SetHealthRollup sets HealthRollup field to given value.
|
||||
|
||||
### HasHealthRollup
|
||||
|
||||
`func (o *Status) HasHealthRollup() bool`
|
||||
|
||||
HasHealthRollup returns a boolean if a field has been set.
|
||||
|
||||
### GetState
|
||||
|
||||
`func (o *Status) GetState() State`
|
||||
|
||||
GetState returns the State field if non-nil, zero value otherwise.
|
||||
|
||||
### GetStateOk
|
||||
|
||||
`func (o *Status) GetStateOk() (*State, bool)`
|
||||
|
||||
GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetState
|
||||
|
||||
`func (o *Status) SetState(v State)`
|
||||
|
||||
SetState sets State field to given value.
|
||||
|
||||
### HasState
|
||||
|
||||
`func (o *Status) HasState() bool`
|
||||
|
||||
HasState returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -4,8 +4,78 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Chassis** | [**[]IdRef**](idRef.md) | | [optional]
|
||||
**ManagedBy** | [**[]IdRef**](idRef.md) | | [optional]
|
||||
**Chassis** | Pointer to [**[]IdRef**](IdRef.md) | | [optional]
|
||||
**ManagedBy** | Pointer to [**[]IdRef**](IdRef.md) | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewSystemLinks
|
||||
|
||||
`func NewSystemLinks() *SystemLinks`
|
||||
|
||||
NewSystemLinks instantiates a new SystemLinks object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewSystemLinksWithDefaults
|
||||
|
||||
`func NewSystemLinksWithDefaults() *SystemLinks`
|
||||
|
||||
NewSystemLinksWithDefaults instantiates a new SystemLinks object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetChassis
|
||||
|
||||
`func (o *SystemLinks) GetChassis() []IdRef`
|
||||
|
||||
GetChassis returns the Chassis field if non-nil, zero value otherwise.
|
||||
|
||||
### GetChassisOk
|
||||
|
||||
`func (o *SystemLinks) GetChassisOk() (*[]IdRef, bool)`
|
||||
|
||||
GetChassisOk returns a tuple with the Chassis field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetChassis
|
||||
|
||||
`func (o *SystemLinks) SetChassis(v []IdRef)`
|
||||
|
||||
SetChassis sets Chassis field to given value.
|
||||
|
||||
### HasChassis
|
||||
|
||||
`func (o *SystemLinks) HasChassis() bool`
|
||||
|
||||
HasChassis returns a boolean if a field has been set.
|
||||
|
||||
### GetManagedBy
|
||||
|
||||
`func (o *SystemLinks) GetManagedBy() []IdRef`
|
||||
|
||||
GetManagedBy returns the ManagedBy field if non-nil, zero value otherwise.
|
||||
|
||||
### GetManagedByOk
|
||||
|
||||
`func (o *SystemLinks) GetManagedByOk() (*[]IdRef, bool)`
|
||||
|
||||
GetManagedByOk returns a tuple with the ManagedBy field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetManagedBy
|
||||
|
||||
`func (o *SystemLinks) SetManagedBy(v []IdRef)`
|
||||
|
||||
SetManagedBy sets ManagedBy field to given value.
|
||||
|
||||
### HasManagedBy
|
||||
|
||||
`func (o *SystemLinks) HasManagedBy() bool`
|
||||
|
||||
HasManagedBy returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -4,22 +4,432 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**OdataContext** | **string** | The OData description of a payload. | [optional] [readonly]
|
||||
**OdataEtag** | **string** | The current ETag of the resource. | [optional] [readonly]
|
||||
**OdataContext** | Pointer to **string** | The OData description of a payload. | [optional] [readonly]
|
||||
**OdataEtag** | Pointer to **string** | The current ETag of the resource. | [optional] [readonly]
|
||||
**OdataId** | **string** | The name of the resource. | [readonly]
|
||||
**OdataType** | **string** | The type of a resource. | [readonly]
|
||||
**Description** | Pointer to **string** | description | [optional] [readonly]
|
||||
**EndTime** | **string** | The date-time stamp that the task was last completed. | [optional] [readonly]
|
||||
**HidePayload** | **bool** | Indicates that the contents of the Payload should be hidden from view after the Task has been created. When set to True, the Payload object will not be returned on GET. | [optional] [readonly]
|
||||
**Description** | Pointer to **NullableString** | description | [optional] [readonly]
|
||||
**EndTime** | Pointer to **string** | The date-time stamp that the task was last completed. | [optional] [readonly]
|
||||
**HidePayload** | Pointer to **bool** | Indicates that the contents of the Payload should be hidden from view after the Task has been created. When set to True, the Payload object will not be returned on GET. | [optional] [readonly]
|
||||
**Id** | **string** | The name of the resource. | [readonly]
|
||||
**Messages** | [**[]Message**](Message.md) | This is an array of messages associated with the task. | [optional]
|
||||
**Messages** | Pointer to [**[]Message**](Message.md) | This is an array of messages associated with the task. | [optional]
|
||||
**Name** | **string** | The name of the resource. | [readonly]
|
||||
**Oem** | **string** | This is the manufacturer/provider specific extension moniker used to divide the Oem object into sections. | [optional]
|
||||
**Payload** | [**Payload**](Payload.md) | | [optional]
|
||||
**StartTime** | [**time.Time**](time.Time.md) | The date-time stamp that the task was last started. | [optional] [readonly]
|
||||
**TaskMonitor** | **string** | The URI of the Task Monitor for this task. | [optional] [readonly]
|
||||
**TaskState** | [**TaskState**](TaskState.md) | | [optional]
|
||||
**TaskStatus** | [**Health**](Health.md) | | [optional]
|
||||
**Oem** | Pointer to **string** | This is the manufacturer/provider specific extension moniker used to divide the Oem object into sections. | [optional]
|
||||
**Payload** | Pointer to [**Payload**](Payload.md) | | [optional]
|
||||
**StartTime** | Pointer to **time.Time** | The date-time stamp that the task was last started. | [optional] [readonly]
|
||||
**TaskMonitor** | Pointer to **string** | The URI of the Task Monitor for this task. | [optional] [readonly]
|
||||
**TaskState** | Pointer to [**TaskState**](TaskState.md) | | [optional]
|
||||
**TaskStatus** | Pointer to [**Health**](Health.md) | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewTask
|
||||
|
||||
`func NewTask(odataId string, odataType string, id string, name string, ) *Task`
|
||||
|
||||
NewTask instantiates a new Task object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewTaskWithDefaults
|
||||
|
||||
`func NewTaskWithDefaults() *Task`
|
||||
|
||||
NewTaskWithDefaults instantiates a new Task object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetOdataContext
|
||||
|
||||
`func (o *Task) GetOdataContext() string`
|
||||
|
||||
GetOdataContext returns the OdataContext field if non-nil, zero value otherwise.
|
||||
|
||||
### GetOdataContextOk
|
||||
|
||||
`func (o *Task) GetOdataContextOk() (*string, bool)`
|
||||
|
||||
GetOdataContextOk returns a tuple with the OdataContext field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetOdataContext
|
||||
|
||||
`func (o *Task) SetOdataContext(v string)`
|
||||
|
||||
SetOdataContext sets OdataContext field to given value.
|
||||
|
||||
### HasOdataContext
|
||||
|
||||
`func (o *Task) HasOdataContext() bool`
|
||||
|
||||
HasOdataContext returns a boolean if a field has been set.
|
||||
|
||||
### GetOdataEtag
|
||||
|
||||
`func (o *Task) GetOdataEtag() string`
|
||||
|
||||
GetOdataEtag returns the OdataEtag field if non-nil, zero value otherwise.
|
||||
|
||||
### GetOdataEtagOk
|
||||
|
||||
`func (o *Task) GetOdataEtagOk() (*string, bool)`
|
||||
|
||||
GetOdataEtagOk returns a tuple with the OdataEtag field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetOdataEtag
|
||||
|
||||
`func (o *Task) SetOdataEtag(v string)`
|
||||
|
||||
SetOdataEtag sets OdataEtag field to given value.
|
||||
|
||||
### HasOdataEtag
|
||||
|
||||
`func (o *Task) HasOdataEtag() bool`
|
||||
|
||||
HasOdataEtag returns a boolean if a field has been set.
|
||||
|
||||
### GetOdataId
|
||||
|
||||
`func (o *Task) GetOdataId() string`
|
||||
|
||||
GetOdataId returns the OdataId field if non-nil, zero value otherwise.
|
||||
|
||||
### GetOdataIdOk
|
||||
|
||||
`func (o *Task) GetOdataIdOk() (*string, bool)`
|
||||
|
||||
GetOdataIdOk returns a tuple with the OdataId field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetOdataId
|
||||
|
||||
`func (o *Task) SetOdataId(v string)`
|
||||
|
||||
SetOdataId sets OdataId field to given value.
|
||||
|
||||
|
||||
### GetOdataType
|
||||
|
||||
`func (o *Task) GetOdataType() string`
|
||||
|
||||
GetOdataType returns the OdataType field if non-nil, zero value otherwise.
|
||||
|
||||
### GetOdataTypeOk
|
||||
|
||||
`func (o *Task) GetOdataTypeOk() (*string, bool)`
|
||||
|
||||
GetOdataTypeOk returns a tuple with the OdataType field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetOdataType
|
||||
|
||||
`func (o *Task) SetOdataType(v string)`
|
||||
|
||||
SetOdataType sets OdataType field to given value.
|
||||
|
||||
|
||||
### GetDescription
|
||||
|
||||
`func (o *Task) GetDescription() string`
|
||||
|
||||
GetDescription returns the Description field if non-nil, zero value otherwise.
|
||||
|
||||
### GetDescriptionOk
|
||||
|
||||
`func (o *Task) GetDescriptionOk() (*string, bool)`
|
||||
|
||||
GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetDescription
|
||||
|
||||
`func (o *Task) SetDescription(v string)`
|
||||
|
||||
SetDescription sets Description field to given value.
|
||||
|
||||
### HasDescription
|
||||
|
||||
`func (o *Task) HasDescription() bool`
|
||||
|
||||
HasDescription returns a boolean if a field has been set.
|
||||
|
||||
### SetDescriptionNil
|
||||
|
||||
`func (o *Task) SetDescriptionNil(b bool)`
|
||||
|
||||
SetDescriptionNil sets the value for Description to be an explicit nil
|
||||
|
||||
### UnsetDescription
|
||||
`func (o *Task) UnsetDescription()`
|
||||
|
||||
UnsetDescription ensures that no value is present for Description, not even an explicit nil
|
||||
### GetEndTime
|
||||
|
||||
`func (o *Task) GetEndTime() string`
|
||||
|
||||
GetEndTime returns the EndTime field if non-nil, zero value otherwise.
|
||||
|
||||
### GetEndTimeOk
|
||||
|
||||
`func (o *Task) GetEndTimeOk() (*string, bool)`
|
||||
|
||||
GetEndTimeOk returns a tuple with the EndTime field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetEndTime
|
||||
|
||||
`func (o *Task) SetEndTime(v string)`
|
||||
|
||||
SetEndTime sets EndTime field to given value.
|
||||
|
||||
### HasEndTime
|
||||
|
||||
`func (o *Task) HasEndTime() bool`
|
||||
|
||||
HasEndTime returns a boolean if a field has been set.
|
||||
|
||||
### GetHidePayload
|
||||
|
||||
`func (o *Task) GetHidePayload() bool`
|
||||
|
||||
GetHidePayload returns the HidePayload field if non-nil, zero value otherwise.
|
||||
|
||||
### GetHidePayloadOk
|
||||
|
||||
`func (o *Task) GetHidePayloadOk() (*bool, bool)`
|
||||
|
||||
GetHidePayloadOk returns a tuple with the HidePayload field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetHidePayload
|
||||
|
||||
`func (o *Task) SetHidePayload(v bool)`
|
||||
|
||||
SetHidePayload sets HidePayload field to given value.
|
||||
|
||||
### HasHidePayload
|
||||
|
||||
`func (o *Task) HasHidePayload() bool`
|
||||
|
||||
HasHidePayload returns a boolean if a field has been set.
|
||||
|
||||
### GetId
|
||||
|
||||
`func (o *Task) GetId() string`
|
||||
|
||||
GetId returns the Id field if non-nil, zero value otherwise.
|
||||
|
||||
### GetIdOk
|
||||
|
||||
`func (o *Task) GetIdOk() (*string, bool)`
|
||||
|
||||
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetId
|
||||
|
||||
`func (o *Task) SetId(v string)`
|
||||
|
||||
SetId sets Id field to given value.
|
||||
|
||||
|
||||
### GetMessages
|
||||
|
||||
`func (o *Task) GetMessages() []Message`
|
||||
|
||||
GetMessages returns the Messages field if non-nil, zero value otherwise.
|
||||
|
||||
### GetMessagesOk
|
||||
|
||||
`func (o *Task) GetMessagesOk() (*[]Message, bool)`
|
||||
|
||||
GetMessagesOk returns a tuple with the Messages field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetMessages
|
||||
|
||||
`func (o *Task) SetMessages(v []Message)`
|
||||
|
||||
SetMessages sets Messages field to given value.
|
||||
|
||||
### HasMessages
|
||||
|
||||
`func (o *Task) HasMessages() bool`
|
||||
|
||||
HasMessages returns a boolean if a field has been set.
|
||||
|
||||
### GetName
|
||||
|
||||
`func (o *Task) GetName() string`
|
||||
|
||||
GetName returns the Name field if non-nil, zero value otherwise.
|
||||
|
||||
### GetNameOk
|
||||
|
||||
`func (o *Task) GetNameOk() (*string, bool)`
|
||||
|
||||
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetName
|
||||
|
||||
`func (o *Task) SetName(v string)`
|
||||
|
||||
SetName sets Name field to given value.
|
||||
|
||||
|
||||
### GetOem
|
||||
|
||||
`func (o *Task) GetOem() string`
|
||||
|
||||
GetOem returns the Oem field if non-nil, zero value otherwise.
|
||||
|
||||
### GetOemOk
|
||||
|
||||
`func (o *Task) GetOemOk() (*string, bool)`
|
||||
|
||||
GetOemOk returns a tuple with the Oem field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetOem
|
||||
|
||||
`func (o *Task) SetOem(v string)`
|
||||
|
||||
SetOem sets Oem field to given value.
|
||||
|
||||
### HasOem
|
||||
|
||||
`func (o *Task) HasOem() bool`
|
||||
|
||||
HasOem returns a boolean if a field has been set.
|
||||
|
||||
### GetPayload
|
||||
|
||||
`func (o *Task) GetPayload() Payload`
|
||||
|
||||
GetPayload returns the Payload field if non-nil, zero value otherwise.
|
||||
|
||||
### GetPayloadOk
|
||||
|
||||
`func (o *Task) GetPayloadOk() (*Payload, bool)`
|
||||
|
||||
GetPayloadOk returns a tuple with the Payload field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetPayload
|
||||
|
||||
`func (o *Task) SetPayload(v Payload)`
|
||||
|
||||
SetPayload sets Payload field to given value.
|
||||
|
||||
### HasPayload
|
||||
|
||||
`func (o *Task) HasPayload() bool`
|
||||
|
||||
HasPayload returns a boolean if a field has been set.
|
||||
|
||||
### GetStartTime
|
||||
|
||||
`func (o *Task) GetStartTime() time.Time`
|
||||
|
||||
GetStartTime returns the StartTime field if non-nil, zero value otherwise.
|
||||
|
||||
### GetStartTimeOk
|
||||
|
||||
`func (o *Task) GetStartTimeOk() (*time.Time, bool)`
|
||||
|
||||
GetStartTimeOk returns a tuple with the StartTime field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetStartTime
|
||||
|
||||
`func (o *Task) SetStartTime(v time.Time)`
|
||||
|
||||
SetStartTime sets StartTime field to given value.
|
||||
|
||||
### HasStartTime
|
||||
|
||||
`func (o *Task) HasStartTime() bool`
|
||||
|
||||
HasStartTime returns a boolean if a field has been set.
|
||||
|
||||
### GetTaskMonitor
|
||||
|
||||
`func (o *Task) GetTaskMonitor() string`
|
||||
|
||||
GetTaskMonitor returns the TaskMonitor field if non-nil, zero value otherwise.
|
||||
|
||||
### GetTaskMonitorOk
|
||||
|
||||
`func (o *Task) GetTaskMonitorOk() (*string, bool)`
|
||||
|
||||
GetTaskMonitorOk returns a tuple with the TaskMonitor field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetTaskMonitor
|
||||
|
||||
`func (o *Task) SetTaskMonitor(v string)`
|
||||
|
||||
SetTaskMonitor sets TaskMonitor field to given value.
|
||||
|
||||
### HasTaskMonitor
|
||||
|
||||
`func (o *Task) HasTaskMonitor() bool`
|
||||
|
||||
HasTaskMonitor returns a boolean if a field has been set.
|
||||
|
||||
### GetTaskState
|
||||
|
||||
`func (o *Task) GetTaskState() TaskState`
|
||||
|
||||
GetTaskState returns the TaskState field if non-nil, zero value otherwise.
|
||||
|
||||
### GetTaskStateOk
|
||||
|
||||
`func (o *Task) GetTaskStateOk() (*TaskState, bool)`
|
||||
|
||||
GetTaskStateOk returns a tuple with the TaskState field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetTaskState
|
||||
|
||||
`func (o *Task) SetTaskState(v TaskState)`
|
||||
|
||||
SetTaskState sets TaskState field to given value.
|
||||
|
||||
### HasTaskState
|
||||
|
||||
`func (o *Task) HasTaskState() bool`
|
||||
|
||||
HasTaskState returns a boolean if a field has been set.
|
||||
|
||||
### GetTaskStatus
|
||||
|
||||
`func (o *Task) GetTaskStatus() Health`
|
||||
|
||||
GetTaskStatus returns the TaskStatus field if non-nil, zero value otherwise.
|
||||
|
||||
### GetTaskStatusOk
|
||||
|
||||
`func (o *Task) GetTaskStatusOk() (*Health, bool)`
|
||||
|
||||
GetTaskStatusOk returns a tuple with the TaskStatus field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetTaskStatus
|
||||
|
||||
`func (o *Task) SetTaskStatus(v Health)`
|
||||
|
||||
SetTaskStatus sets TaskStatus field to given value.
|
||||
|
||||
### HasTaskStatus
|
||||
|
||||
`func (o *Task) HasTaskStatus() bool`
|
||||
|
||||
HasTaskStatus returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -1,9 +1,34 @@
|
||||
# TaskState
|
||||
|
||||
## Properties
|
||||
## Enum
|
||||
|
||||
|
||||
* `NEW` (value: `"New"`)
|
||||
|
||||
* `STARTING` (value: `"Starting"`)
|
||||
|
||||
* `RUNNING` (value: `"Running"`)
|
||||
|
||||
* `SUSPENDED` (value: `"Suspended"`)
|
||||
|
||||
* `INTERRUPTED` (value: `"Interrupted"`)
|
||||
|
||||
* `PENDING` (value: `"Pending"`)
|
||||
|
||||
* `STOPPING` (value: `"Stopping"`)
|
||||
|
||||
* `COMPLETED` (value: `"Completed"`)
|
||||
|
||||
* `KILLED` (value: `"Killed"`)
|
||||
|
||||
* `EXCEPTION` (value: `"Exception"`)
|
||||
|
||||
* `SERVICE` (value: `"Service"`)
|
||||
|
||||
* `CANCELLING` (value: `"Cancelling"`)
|
||||
|
||||
* `CANCELLED` (value: `"Cancelled"`)
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -1,9 +1,12 @@
|
||||
# TransferMethod
|
||||
|
||||
## Properties
|
||||
## Enum
|
||||
|
||||
|
||||
* `STREAM` (value: `"Stream"`)
|
||||
|
||||
* `UPLOAD` (value: `"Upload"`)
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -1,9 +1,24 @@
|
||||
# TransferProtocolType
|
||||
|
||||
## Properties
|
||||
## Enum
|
||||
|
||||
|
||||
* `CIFS` (value: `"CIFS"`)
|
||||
|
||||
* `FTP` (value: `"FTP"`)
|
||||
|
||||
* `SFTP` (value: `"SFTP"`)
|
||||
|
||||
* `HTTP` (value: `"HTTP"`)
|
||||
|
||||
* `HTTPS` (value: `"HTTPS"`)
|
||||
|
||||
* `NFS` (value: `"NFS"`)
|
||||
|
||||
* `SCP` (value: `"SCP"`)
|
||||
|
||||
* `TFTP` (value: `"TFTP"`)
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -4,16 +4,291 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**FirmwareInventory** | [**FirmwareInventory**](FirmwareInventory.md) | | [optional]
|
||||
**Id** | **string** | The name of the resource. | [optional] [readonly]
|
||||
**FirmwareInventory** | Pointer to [**FirmwareInventory**](FirmwareInventory.md) | | [optional]
|
||||
**Id** | Pointer to **string** | The name of the resource. | [optional] [readonly]
|
||||
**Name** | **string** | The name of the resource. | [readonly]
|
||||
**OdataType** | **string** | The type of a resource. | [readonly]
|
||||
**OdataId** | **string** | The unique identifier for a resource. | [readonly]
|
||||
**OdataContext** | **string** | The OData description of a payload. | [optional] [readonly]
|
||||
**Description** | Pointer to **string** | description | [optional] [readonly]
|
||||
**HttpPushUri** | **string** | | [optional] [readonly]
|
||||
**ServiceEnabled** | Pointer to **bool** | | [optional]
|
||||
**Actions** | [**UpdateServiceActions**](UpdateService_Actions.md) | | [optional]
|
||||
**OdataContext** | Pointer to **string** | The OData description of a payload. | [optional] [readonly]
|
||||
**Description** | Pointer to **NullableString** | description | [optional] [readonly]
|
||||
**HttpPushUri** | Pointer to **string** | | [optional] [readonly]
|
||||
**ServiceEnabled** | Pointer to **NullableBool** | | [optional]
|
||||
**Actions** | Pointer to [**UpdateServiceActions**](UpdateServiceActions.md) | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewUpdateService
|
||||
|
||||
`func NewUpdateService(name string, odataType string, odataId string, ) *UpdateService`
|
||||
|
||||
NewUpdateService instantiates a new UpdateService object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewUpdateServiceWithDefaults
|
||||
|
||||
`func NewUpdateServiceWithDefaults() *UpdateService`
|
||||
|
||||
NewUpdateServiceWithDefaults instantiates a new UpdateService object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetFirmwareInventory
|
||||
|
||||
`func (o *UpdateService) GetFirmwareInventory() FirmwareInventory`
|
||||
|
||||
GetFirmwareInventory returns the FirmwareInventory field if non-nil, zero value otherwise.
|
||||
|
||||
### GetFirmwareInventoryOk
|
||||
|
||||
`func (o *UpdateService) GetFirmwareInventoryOk() (*FirmwareInventory, bool)`
|
||||
|
||||
GetFirmwareInventoryOk returns a tuple with the FirmwareInventory field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetFirmwareInventory
|
||||
|
||||
`func (o *UpdateService) SetFirmwareInventory(v FirmwareInventory)`
|
||||
|
||||
SetFirmwareInventory sets FirmwareInventory field to given value.
|
||||
|
||||
### HasFirmwareInventory
|
||||
|
||||
`func (o *UpdateService) HasFirmwareInventory() bool`
|
||||
|
||||
HasFirmwareInventory returns a boolean if a field has been set.
|
||||
|
||||
### GetId
|
||||
|
||||
`func (o *UpdateService) GetId() string`
|
||||
|
||||
GetId returns the Id field if non-nil, zero value otherwise.
|
||||
|
||||
### GetIdOk
|
||||
|
||||
`func (o *UpdateService) GetIdOk() (*string, bool)`
|
||||
|
||||
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetId
|
||||
|
||||
`func (o *UpdateService) SetId(v string)`
|
||||
|
||||
SetId sets Id field to given value.
|
||||
|
||||
### HasId
|
||||
|
||||
`func (o *UpdateService) HasId() bool`
|
||||
|
||||
HasId returns a boolean if a field has been set.
|
||||
|
||||
### GetName
|
||||
|
||||
`func (o *UpdateService) GetName() string`
|
||||
|
||||
GetName returns the Name field if non-nil, zero value otherwise.
|
||||
|
||||
### GetNameOk
|
||||
|
||||
`func (o *UpdateService) GetNameOk() (*string, bool)`
|
||||
|
||||
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetName
|
||||
|
||||
`func (o *UpdateService) SetName(v string)`
|
||||
|
||||
SetName sets Name field to given value.
|
||||
|
||||
|
||||
### GetOdataType
|
||||
|
||||
`func (o *UpdateService) GetOdataType() string`
|
||||
|
||||
GetOdataType returns the OdataType field if non-nil, zero value otherwise.
|
||||
|
||||
### GetOdataTypeOk
|
||||
|
||||
`func (o *UpdateService) GetOdataTypeOk() (*string, bool)`
|
||||
|
||||
GetOdataTypeOk returns a tuple with the OdataType field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetOdataType
|
||||
|
||||
`func (o *UpdateService) SetOdataType(v string)`
|
||||
|
||||
SetOdataType sets OdataType field to given value.
|
||||
|
||||
|
||||
### GetOdataId
|
||||
|
||||
`func (o *UpdateService) GetOdataId() string`
|
||||
|
||||
GetOdataId returns the OdataId field if non-nil, zero value otherwise.
|
||||
|
||||
### GetOdataIdOk
|
||||
|
||||
`func (o *UpdateService) GetOdataIdOk() (*string, bool)`
|
||||
|
||||
GetOdataIdOk returns a tuple with the OdataId field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetOdataId
|
||||
|
||||
`func (o *UpdateService) SetOdataId(v string)`
|
||||
|
||||
SetOdataId sets OdataId field to given value.
|
||||
|
||||
|
||||
### GetOdataContext
|
||||
|
||||
`func (o *UpdateService) GetOdataContext() string`
|
||||
|
||||
GetOdataContext returns the OdataContext field if non-nil, zero value otherwise.
|
||||
|
||||
### GetOdataContextOk
|
||||
|
||||
`func (o *UpdateService) GetOdataContextOk() (*string, bool)`
|
||||
|
||||
GetOdataContextOk returns a tuple with the OdataContext field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetOdataContext
|
||||
|
||||
`func (o *UpdateService) SetOdataContext(v string)`
|
||||
|
||||
SetOdataContext sets OdataContext field to given value.
|
||||
|
||||
### HasOdataContext
|
||||
|
||||
`func (o *UpdateService) HasOdataContext() bool`
|
||||
|
||||
HasOdataContext returns a boolean if a field has been set.
|
||||
|
||||
### GetDescription
|
||||
|
||||
`func (o *UpdateService) GetDescription() string`
|
||||
|
||||
GetDescription returns the Description field if non-nil, zero value otherwise.
|
||||
|
||||
### GetDescriptionOk
|
||||
|
||||
`func (o *UpdateService) GetDescriptionOk() (*string, bool)`
|
||||
|
||||
GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetDescription
|
||||
|
||||
`func (o *UpdateService) SetDescription(v string)`
|
||||
|
||||
SetDescription sets Description field to given value.
|
||||
|
||||
### HasDescription
|
||||
|
||||
`func (o *UpdateService) HasDescription() bool`
|
||||
|
||||
HasDescription returns a boolean if a field has been set.
|
||||
|
||||
### SetDescriptionNil
|
||||
|
||||
`func (o *UpdateService) SetDescriptionNil(b bool)`
|
||||
|
||||
SetDescriptionNil sets the value for Description to be an explicit nil
|
||||
|
||||
### UnsetDescription
|
||||
`func (o *UpdateService) UnsetDescription()`
|
||||
|
||||
UnsetDescription ensures that no value is present for Description, not even an explicit nil
|
||||
### GetHttpPushUri
|
||||
|
||||
`func (o *UpdateService) GetHttpPushUri() string`
|
||||
|
||||
GetHttpPushUri returns the HttpPushUri field if non-nil, zero value otherwise.
|
||||
|
||||
### GetHttpPushUriOk
|
||||
|
||||
`func (o *UpdateService) GetHttpPushUriOk() (*string, bool)`
|
||||
|
||||
GetHttpPushUriOk returns a tuple with the HttpPushUri field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetHttpPushUri
|
||||
|
||||
`func (o *UpdateService) SetHttpPushUri(v string)`
|
||||
|
||||
SetHttpPushUri sets HttpPushUri field to given value.
|
||||
|
||||
### HasHttpPushUri
|
||||
|
||||
`func (o *UpdateService) HasHttpPushUri() bool`
|
||||
|
||||
HasHttpPushUri returns a boolean if a field has been set.
|
||||
|
||||
### GetServiceEnabled
|
||||
|
||||
`func (o *UpdateService) GetServiceEnabled() bool`
|
||||
|
||||
GetServiceEnabled returns the ServiceEnabled field if non-nil, zero value otherwise.
|
||||
|
||||
### GetServiceEnabledOk
|
||||
|
||||
`func (o *UpdateService) GetServiceEnabledOk() (*bool, bool)`
|
||||
|
||||
GetServiceEnabledOk returns a tuple with the ServiceEnabled field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetServiceEnabled
|
||||
|
||||
`func (o *UpdateService) SetServiceEnabled(v bool)`
|
||||
|
||||
SetServiceEnabled sets ServiceEnabled field to given value.
|
||||
|
||||
### HasServiceEnabled
|
||||
|
||||
`func (o *UpdateService) HasServiceEnabled() bool`
|
||||
|
||||
HasServiceEnabled returns a boolean if a field has been set.
|
||||
|
||||
### SetServiceEnabledNil
|
||||
|
||||
`func (o *UpdateService) SetServiceEnabledNil(b bool)`
|
||||
|
||||
SetServiceEnabledNil sets the value for ServiceEnabled to be an explicit nil
|
||||
|
||||
### UnsetServiceEnabled
|
||||
`func (o *UpdateService) UnsetServiceEnabled()`
|
||||
|
||||
UnsetServiceEnabled ensures that no value is present for ServiceEnabled, not even an explicit nil
|
||||
### GetActions
|
||||
|
||||
`func (o *UpdateService) GetActions() UpdateServiceActions`
|
||||
|
||||
GetActions returns the Actions field if non-nil, zero value otherwise.
|
||||
|
||||
### GetActionsOk
|
||||
|
||||
`func (o *UpdateService) GetActionsOk() (*UpdateServiceActions, bool)`
|
||||
|
||||
GetActionsOk returns a tuple with the Actions field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetActions
|
||||
|
||||
`func (o *UpdateService) SetActions(v UpdateServiceActions)`
|
||||
|
||||
SetActions sets Actions field to given value.
|
||||
|
||||
### HasActions
|
||||
|
||||
`func (o *UpdateService) HasActions() bool`
|
||||
|
||||
HasActions returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -4,8 +4,78 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**UpdateServiceSimpleUpdate** | [**VirtualMediaActionsVirtualMediaEjectMedia**](VirtualMedia_Actions__VirtualMedia_EjectMedia.md) | | [optional]
|
||||
**UpdateServiceStartUpdate** | [**VirtualMediaActionsVirtualMediaEjectMedia**](VirtualMedia_Actions__VirtualMedia_EjectMedia.md) | | [optional]
|
||||
**UpdateServiceSimpleUpdate** | Pointer to [**VirtualMediaActionsVirtualMediaEjectMedia**](VirtualMediaActionsVirtualMediaEjectMedia.md) | | [optional]
|
||||
**UpdateServiceStartUpdate** | Pointer to [**VirtualMediaActionsVirtualMediaEjectMedia**](VirtualMediaActionsVirtualMediaEjectMedia.md) | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewUpdateServiceActions
|
||||
|
||||
`func NewUpdateServiceActions() *UpdateServiceActions`
|
||||
|
||||
NewUpdateServiceActions instantiates a new UpdateServiceActions object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewUpdateServiceActionsWithDefaults
|
||||
|
||||
`func NewUpdateServiceActionsWithDefaults() *UpdateServiceActions`
|
||||
|
||||
NewUpdateServiceActionsWithDefaults instantiates a new UpdateServiceActions object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetUpdateServiceSimpleUpdate
|
||||
|
||||
`func (o *UpdateServiceActions) GetUpdateServiceSimpleUpdate() VirtualMediaActionsVirtualMediaEjectMedia`
|
||||
|
||||
GetUpdateServiceSimpleUpdate returns the UpdateServiceSimpleUpdate field if non-nil, zero value otherwise.
|
||||
|
||||
### GetUpdateServiceSimpleUpdateOk
|
||||
|
||||
`func (o *UpdateServiceActions) GetUpdateServiceSimpleUpdateOk() (*VirtualMediaActionsVirtualMediaEjectMedia, bool)`
|
||||
|
||||
GetUpdateServiceSimpleUpdateOk returns a tuple with the UpdateServiceSimpleUpdate field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetUpdateServiceSimpleUpdate
|
||||
|
||||
`func (o *UpdateServiceActions) SetUpdateServiceSimpleUpdate(v VirtualMediaActionsVirtualMediaEjectMedia)`
|
||||
|
||||
SetUpdateServiceSimpleUpdate sets UpdateServiceSimpleUpdate field to given value.
|
||||
|
||||
### HasUpdateServiceSimpleUpdate
|
||||
|
||||
`func (o *UpdateServiceActions) HasUpdateServiceSimpleUpdate() bool`
|
||||
|
||||
HasUpdateServiceSimpleUpdate returns a boolean if a field has been set.
|
||||
|
||||
### GetUpdateServiceStartUpdate
|
||||
|
||||
`func (o *UpdateServiceActions) GetUpdateServiceStartUpdate() VirtualMediaActionsVirtualMediaEjectMedia`
|
||||
|
||||
GetUpdateServiceStartUpdate returns the UpdateServiceStartUpdate field if non-nil, zero value otherwise.
|
||||
|
||||
### GetUpdateServiceStartUpdateOk
|
||||
|
||||
`func (o *UpdateServiceActions) GetUpdateServiceStartUpdateOk() (*VirtualMediaActionsVirtualMediaEjectMedia, bool)`
|
||||
|
||||
GetUpdateServiceStartUpdateOk returns a tuple with the UpdateServiceStartUpdate field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetUpdateServiceStartUpdate
|
||||
|
||||
`func (o *UpdateServiceActions) SetUpdateServiceStartUpdate(v VirtualMediaActionsVirtualMediaEjectMedia)`
|
||||
|
||||
SetUpdateServiceStartUpdate sets UpdateServiceStartUpdate field to given value.
|
||||
|
||||
### HasUpdateServiceStartUpdate
|
||||
|
||||
`func (o *UpdateServiceActions) HasUpdateServiceStartUpdate() bool`
|
||||
|
||||
HasUpdateServiceStartUpdate returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -4,24 +4,549 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Id** | **string** | The name of the resource. | [optional] [readonly]
|
||||
**Id** | Pointer to **string** | The name of the resource. | [optional] [readonly]
|
||||
**Name** | **string** | The name of the resource. | [readonly]
|
||||
**OdataType** | **string** | The type of a resource. | [readonly]
|
||||
**OdataId** | **string** | The unique identifier for a resource. | [readonly]
|
||||
**OdataContext** | **string** | The OData description of a payload. | [optional] [readonly]
|
||||
**RedfishCopyright** | **string** | redfish copyright | [optional]
|
||||
**Description** | Pointer to **string** | description | [optional] [readonly]
|
||||
**Image** | Pointer to **string** | | [optional]
|
||||
**ImageName** | Pointer to **string** | | [optional] [readonly]
|
||||
**Inserted** | Pointer to **bool** | | [optional]
|
||||
**ConnectedVia** | [**ConnectedVia**](ConnectedVia.md) | | [optional]
|
||||
**MediaTypes** | **[]string** | | [optional] [readonly]
|
||||
**WriteProtected** | Pointer to **bool** | | [optional]
|
||||
**UserName** | Pointer to **string** | | [optional]
|
||||
**Password** | Pointer to **string** | | [optional]
|
||||
**TransferMethod** | [**TransferMethod**](TransferMethod.md) | | [optional]
|
||||
**TransferProtocolType** | [**TransferProtocolType**](TransferProtocolType.md) | | [optional]
|
||||
**Actions** | [**VirtualMediaActions**](VirtualMedia_Actions.md) | | [optional]
|
||||
**OdataContext** | Pointer to **string** | The OData description of a payload. | [optional] [readonly]
|
||||
**RedfishCopyright** | Pointer to **string** | redfish copyright | [optional]
|
||||
**Description** | Pointer to **NullableString** | description | [optional] [readonly]
|
||||
**Image** | Pointer to **NullableString** | | [optional]
|
||||
**ImageName** | Pointer to **NullableString** | | [optional] [readonly]
|
||||
**Inserted** | Pointer to **NullableBool** | | [optional]
|
||||
**ConnectedVia** | Pointer to [**ConnectedVia**](ConnectedVia.md) | | [optional]
|
||||
**MediaTypes** | Pointer to **[]string** | | [optional] [readonly]
|
||||
**WriteProtected** | Pointer to **NullableBool** | | [optional]
|
||||
**UserName** | Pointer to **NullableString** | | [optional]
|
||||
**Password** | Pointer to **NullableString** | | [optional]
|
||||
**TransferMethod** | Pointer to [**TransferMethod**](TransferMethod.md) | | [optional]
|
||||
**TransferProtocolType** | Pointer to [**TransferProtocolType**](TransferProtocolType.md) | | [optional]
|
||||
**Actions** | Pointer to [**VirtualMediaActions**](VirtualMediaActions.md) | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewVirtualMedia
|
||||
|
||||
`func NewVirtualMedia(name string, odataType string, odataId string, ) *VirtualMedia`
|
||||
|
||||
NewVirtualMedia instantiates a new VirtualMedia object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewVirtualMediaWithDefaults
|
||||
|
||||
`func NewVirtualMediaWithDefaults() *VirtualMedia`
|
||||
|
||||
NewVirtualMediaWithDefaults instantiates a new VirtualMedia object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetId
|
||||
|
||||
`func (o *VirtualMedia) GetId() string`
|
||||
|
||||
GetId returns the Id field if non-nil, zero value otherwise.
|
||||
|
||||
### GetIdOk
|
||||
|
||||
`func (o *VirtualMedia) GetIdOk() (*string, bool)`
|
||||
|
||||
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetId
|
||||
|
||||
`func (o *VirtualMedia) SetId(v string)`
|
||||
|
||||
SetId sets Id field to given value.
|
||||
|
||||
### HasId
|
||||
|
||||
`func (o *VirtualMedia) HasId() bool`
|
||||
|
||||
HasId returns a boolean if a field has been set.
|
||||
|
||||
### GetName
|
||||
|
||||
`func (o *VirtualMedia) GetName() string`
|
||||
|
||||
GetName returns the Name field if non-nil, zero value otherwise.
|
||||
|
||||
### GetNameOk
|
||||
|
||||
`func (o *VirtualMedia) GetNameOk() (*string, bool)`
|
||||
|
||||
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetName
|
||||
|
||||
`func (o *VirtualMedia) SetName(v string)`
|
||||
|
||||
SetName sets Name field to given value.
|
||||
|
||||
|
||||
### GetOdataType
|
||||
|
||||
`func (o *VirtualMedia) GetOdataType() string`
|
||||
|
||||
GetOdataType returns the OdataType field if non-nil, zero value otherwise.
|
||||
|
||||
### GetOdataTypeOk
|
||||
|
||||
`func (o *VirtualMedia) GetOdataTypeOk() (*string, bool)`
|
||||
|
||||
GetOdataTypeOk returns a tuple with the OdataType field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetOdataType
|
||||
|
||||
`func (o *VirtualMedia) SetOdataType(v string)`
|
||||
|
||||
SetOdataType sets OdataType field to given value.
|
||||
|
||||
|
||||
### GetOdataId
|
||||
|
||||
`func (o *VirtualMedia) GetOdataId() string`
|
||||
|
||||
GetOdataId returns the OdataId field if non-nil, zero value otherwise.
|
||||
|
||||
### GetOdataIdOk
|
||||
|
||||
`func (o *VirtualMedia) GetOdataIdOk() (*string, bool)`
|
||||
|
||||
GetOdataIdOk returns a tuple with the OdataId field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetOdataId
|
||||
|
||||
`func (o *VirtualMedia) SetOdataId(v string)`
|
||||
|
||||
SetOdataId sets OdataId field to given value.
|
||||
|
||||
|
||||
### GetOdataContext
|
||||
|
||||
`func (o *VirtualMedia) GetOdataContext() string`
|
||||
|
||||
GetOdataContext returns the OdataContext field if non-nil, zero value otherwise.
|
||||
|
||||
### GetOdataContextOk
|
||||
|
||||
`func (o *VirtualMedia) GetOdataContextOk() (*string, bool)`
|
||||
|
||||
GetOdataContextOk returns a tuple with the OdataContext field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetOdataContext
|
||||
|
||||
`func (o *VirtualMedia) SetOdataContext(v string)`
|
||||
|
||||
SetOdataContext sets OdataContext field to given value.
|
||||
|
||||
### HasOdataContext
|
||||
|
||||
`func (o *VirtualMedia) HasOdataContext() bool`
|
||||
|
||||
HasOdataContext returns a boolean if a field has been set.
|
||||
|
||||
### GetRedfishCopyright
|
||||
|
||||
`func (o *VirtualMedia) GetRedfishCopyright() string`
|
||||
|
||||
GetRedfishCopyright returns the RedfishCopyright field if non-nil, zero value otherwise.
|
||||
|
||||
### GetRedfishCopyrightOk
|
||||
|
||||
`func (o *VirtualMedia) GetRedfishCopyrightOk() (*string, bool)`
|
||||
|
||||
GetRedfishCopyrightOk returns a tuple with the RedfishCopyright field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetRedfishCopyright
|
||||
|
||||
`func (o *VirtualMedia) SetRedfishCopyright(v string)`
|
||||
|
||||
SetRedfishCopyright sets RedfishCopyright field to given value.
|
||||
|
||||
### HasRedfishCopyright
|
||||
|
||||
`func (o *VirtualMedia) HasRedfishCopyright() bool`
|
||||
|
||||
HasRedfishCopyright returns a boolean if a field has been set.
|
||||
|
||||
### GetDescription
|
||||
|
||||
`func (o *VirtualMedia) GetDescription() string`
|
||||
|
||||
GetDescription returns the Description field if non-nil, zero value otherwise.
|
||||
|
||||
### GetDescriptionOk
|
||||
|
||||
`func (o *VirtualMedia) GetDescriptionOk() (*string, bool)`
|
||||
|
||||
GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetDescription
|
||||
|
||||
`func (o *VirtualMedia) SetDescription(v string)`
|
||||
|
||||
SetDescription sets Description field to given value.
|
||||
|
||||
### HasDescription
|
||||
|
||||
`func (o *VirtualMedia) HasDescription() bool`
|
||||
|
||||
HasDescription returns a boolean if a field has been set.
|
||||
|
||||
### SetDescriptionNil
|
||||
|
||||
`func (o *VirtualMedia) SetDescriptionNil(b bool)`
|
||||
|
||||
SetDescriptionNil sets the value for Description to be an explicit nil
|
||||
|
||||
### UnsetDescription
|
||||
`func (o *VirtualMedia) UnsetDescription()`
|
||||
|
||||
UnsetDescription ensures that no value is present for Description, not even an explicit nil
|
||||
### GetImage
|
||||
|
||||
`func (o *VirtualMedia) GetImage() string`
|
||||
|
||||
GetImage returns the Image field if non-nil, zero value otherwise.
|
||||
|
||||
### GetImageOk
|
||||
|
||||
`func (o *VirtualMedia) GetImageOk() (*string, bool)`
|
||||
|
||||
GetImageOk returns a tuple with the Image field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetImage
|
||||
|
||||
`func (o *VirtualMedia) SetImage(v string)`
|
||||
|
||||
SetImage sets Image field to given value.
|
||||
|
||||
### HasImage
|
||||
|
||||
`func (o *VirtualMedia) HasImage() bool`
|
||||
|
||||
HasImage returns a boolean if a field has been set.
|
||||
|
||||
### SetImageNil
|
||||
|
||||
`func (o *VirtualMedia) SetImageNil(b bool)`
|
||||
|
||||
SetImageNil sets the value for Image to be an explicit nil
|
||||
|
||||
### UnsetImage
|
||||
`func (o *VirtualMedia) UnsetImage()`
|
||||
|
||||
UnsetImage ensures that no value is present for Image, not even an explicit nil
|
||||
### GetImageName
|
||||
|
||||
`func (o *VirtualMedia) GetImageName() string`
|
||||
|
||||
GetImageName returns the ImageName field if non-nil, zero value otherwise.
|
||||
|
||||
### GetImageNameOk
|
||||
|
||||
`func (o *VirtualMedia) GetImageNameOk() (*string, bool)`
|
||||
|
||||
GetImageNameOk returns a tuple with the ImageName field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetImageName
|
||||
|
||||
`func (o *VirtualMedia) SetImageName(v string)`
|
||||
|
||||
SetImageName sets ImageName field to given value.
|
||||
|
||||
### HasImageName
|
||||
|
||||
`func (o *VirtualMedia) HasImageName() bool`
|
||||
|
||||
HasImageName returns a boolean if a field has been set.
|
||||
|
||||
### SetImageNameNil
|
||||
|
||||
`func (o *VirtualMedia) SetImageNameNil(b bool)`
|
||||
|
||||
SetImageNameNil sets the value for ImageName to be an explicit nil
|
||||
|
||||
### UnsetImageName
|
||||
`func (o *VirtualMedia) UnsetImageName()`
|
||||
|
||||
UnsetImageName ensures that no value is present for ImageName, not even an explicit nil
|
||||
### GetInserted
|
||||
|
||||
`func (o *VirtualMedia) GetInserted() bool`
|
||||
|
||||
GetInserted returns the Inserted field if non-nil, zero value otherwise.
|
||||
|
||||
### GetInsertedOk
|
||||
|
||||
`func (o *VirtualMedia) GetInsertedOk() (*bool, bool)`
|
||||
|
||||
GetInsertedOk returns a tuple with the Inserted field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetInserted
|
||||
|
||||
`func (o *VirtualMedia) SetInserted(v bool)`
|
||||
|
||||
SetInserted sets Inserted field to given value.
|
||||
|
||||
### HasInserted
|
||||
|
||||
`func (o *VirtualMedia) HasInserted() bool`
|
||||
|
||||
HasInserted returns a boolean if a field has been set.
|
||||
|
||||
### SetInsertedNil
|
||||
|
||||
`func (o *VirtualMedia) SetInsertedNil(b bool)`
|
||||
|
||||
SetInsertedNil sets the value for Inserted to be an explicit nil
|
||||
|
||||
### UnsetInserted
|
||||
`func (o *VirtualMedia) UnsetInserted()`
|
||||
|
||||
UnsetInserted ensures that no value is present for Inserted, not even an explicit nil
|
||||
### GetConnectedVia
|
||||
|
||||
`func (o *VirtualMedia) GetConnectedVia() ConnectedVia`
|
||||
|
||||
GetConnectedVia returns the ConnectedVia field if non-nil, zero value otherwise.
|
||||
|
||||
### GetConnectedViaOk
|
||||
|
||||
`func (o *VirtualMedia) GetConnectedViaOk() (*ConnectedVia, bool)`
|
||||
|
||||
GetConnectedViaOk returns a tuple with the ConnectedVia field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetConnectedVia
|
||||
|
||||
`func (o *VirtualMedia) SetConnectedVia(v ConnectedVia)`
|
||||
|
||||
SetConnectedVia sets ConnectedVia field to given value.
|
||||
|
||||
### HasConnectedVia
|
||||
|
||||
`func (o *VirtualMedia) HasConnectedVia() bool`
|
||||
|
||||
HasConnectedVia returns a boolean if a field has been set.
|
||||
|
||||
### GetMediaTypes
|
||||
|
||||
`func (o *VirtualMedia) GetMediaTypes() []string`
|
||||
|
||||
GetMediaTypes returns the MediaTypes field if non-nil, zero value otherwise.
|
||||
|
||||
### GetMediaTypesOk
|
||||
|
||||
`func (o *VirtualMedia) GetMediaTypesOk() (*[]string, bool)`
|
||||
|
||||
GetMediaTypesOk returns a tuple with the MediaTypes field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetMediaTypes
|
||||
|
||||
`func (o *VirtualMedia) SetMediaTypes(v []string)`
|
||||
|
||||
SetMediaTypes sets MediaTypes field to given value.
|
||||
|
||||
### HasMediaTypes
|
||||
|
||||
`func (o *VirtualMedia) HasMediaTypes() bool`
|
||||
|
||||
HasMediaTypes returns a boolean if a field has been set.
|
||||
|
||||
### GetWriteProtected
|
||||
|
||||
`func (o *VirtualMedia) GetWriteProtected() bool`
|
||||
|
||||
GetWriteProtected returns the WriteProtected field if non-nil, zero value otherwise.
|
||||
|
||||
### GetWriteProtectedOk
|
||||
|
||||
`func (o *VirtualMedia) GetWriteProtectedOk() (*bool, bool)`
|
||||
|
||||
GetWriteProtectedOk returns a tuple with the WriteProtected field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetWriteProtected
|
||||
|
||||
`func (o *VirtualMedia) SetWriteProtected(v bool)`
|
||||
|
||||
SetWriteProtected sets WriteProtected field to given value.
|
||||
|
||||
### HasWriteProtected
|
||||
|
||||
`func (o *VirtualMedia) HasWriteProtected() bool`
|
||||
|
||||
HasWriteProtected returns a boolean if a field has been set.
|
||||
|
||||
### SetWriteProtectedNil
|
||||
|
||||
`func (o *VirtualMedia) SetWriteProtectedNil(b bool)`
|
||||
|
||||
SetWriteProtectedNil sets the value for WriteProtected to be an explicit nil
|
||||
|
||||
### UnsetWriteProtected
|
||||
`func (o *VirtualMedia) UnsetWriteProtected()`
|
||||
|
||||
UnsetWriteProtected ensures that no value is present for WriteProtected, not even an explicit nil
|
||||
### GetUserName
|
||||
|
||||
`func (o *VirtualMedia) GetUserName() string`
|
||||
|
||||
GetUserName returns the UserName field if non-nil, zero value otherwise.
|
||||
|
||||
### GetUserNameOk
|
||||
|
||||
`func (o *VirtualMedia) GetUserNameOk() (*string, bool)`
|
||||
|
||||
GetUserNameOk returns a tuple with the UserName field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetUserName
|
||||
|
||||
`func (o *VirtualMedia) SetUserName(v string)`
|
||||
|
||||
SetUserName sets UserName field to given value.
|
||||
|
||||
### HasUserName
|
||||
|
||||
`func (o *VirtualMedia) HasUserName() bool`
|
||||
|
||||
HasUserName returns a boolean if a field has been set.
|
||||
|
||||
### SetUserNameNil
|
||||
|
||||
`func (o *VirtualMedia) SetUserNameNil(b bool)`
|
||||
|
||||
SetUserNameNil sets the value for UserName to be an explicit nil
|
||||
|
||||
### UnsetUserName
|
||||
`func (o *VirtualMedia) UnsetUserName()`
|
||||
|
||||
UnsetUserName ensures that no value is present for UserName, not even an explicit nil
|
||||
### GetPassword
|
||||
|
||||
`func (o *VirtualMedia) GetPassword() string`
|
||||
|
||||
GetPassword returns the Password field if non-nil, zero value otherwise.
|
||||
|
||||
### GetPasswordOk
|
||||
|
||||
`func (o *VirtualMedia) GetPasswordOk() (*string, bool)`
|
||||
|
||||
GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetPassword
|
||||
|
||||
`func (o *VirtualMedia) SetPassword(v string)`
|
||||
|
||||
SetPassword sets Password field to given value.
|
||||
|
||||
### HasPassword
|
||||
|
||||
`func (o *VirtualMedia) HasPassword() bool`
|
||||
|
||||
HasPassword returns a boolean if a field has been set.
|
||||
|
||||
### SetPasswordNil
|
||||
|
||||
`func (o *VirtualMedia) SetPasswordNil(b bool)`
|
||||
|
||||
SetPasswordNil sets the value for Password to be an explicit nil
|
||||
|
||||
### UnsetPassword
|
||||
`func (o *VirtualMedia) UnsetPassword()`
|
||||
|
||||
UnsetPassword ensures that no value is present for Password, not even an explicit nil
|
||||
### GetTransferMethod
|
||||
|
||||
`func (o *VirtualMedia) GetTransferMethod() TransferMethod`
|
||||
|
||||
GetTransferMethod returns the TransferMethod field if non-nil, zero value otherwise.
|
||||
|
||||
### GetTransferMethodOk
|
||||
|
||||
`func (o *VirtualMedia) GetTransferMethodOk() (*TransferMethod, bool)`
|
||||
|
||||
GetTransferMethodOk returns a tuple with the TransferMethod field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetTransferMethod
|
||||
|
||||
`func (o *VirtualMedia) SetTransferMethod(v TransferMethod)`
|
||||
|
||||
SetTransferMethod sets TransferMethod field to given value.
|
||||
|
||||
### HasTransferMethod
|
||||
|
||||
`func (o *VirtualMedia) HasTransferMethod() bool`
|
||||
|
||||
HasTransferMethod returns a boolean if a field has been set.
|
||||
|
||||
### GetTransferProtocolType
|
||||
|
||||
`func (o *VirtualMedia) GetTransferProtocolType() TransferProtocolType`
|
||||
|
||||
GetTransferProtocolType returns the TransferProtocolType field if non-nil, zero value otherwise.
|
||||
|
||||
### GetTransferProtocolTypeOk
|
||||
|
||||
`func (o *VirtualMedia) GetTransferProtocolTypeOk() (*TransferProtocolType, bool)`
|
||||
|
||||
GetTransferProtocolTypeOk returns a tuple with the TransferProtocolType field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetTransferProtocolType
|
||||
|
||||
`func (o *VirtualMedia) SetTransferProtocolType(v TransferProtocolType)`
|
||||
|
||||
SetTransferProtocolType sets TransferProtocolType field to given value.
|
||||
|
||||
### HasTransferProtocolType
|
||||
|
||||
`func (o *VirtualMedia) HasTransferProtocolType() bool`
|
||||
|
||||
HasTransferProtocolType returns a boolean if a field has been set.
|
||||
|
||||
### GetActions
|
||||
|
||||
`func (o *VirtualMedia) GetActions() VirtualMediaActions`
|
||||
|
||||
GetActions returns the Actions field if non-nil, zero value otherwise.
|
||||
|
||||
### GetActionsOk
|
||||
|
||||
`func (o *VirtualMedia) GetActionsOk() (*VirtualMediaActions, bool)`
|
||||
|
||||
GetActionsOk returns a tuple with the Actions field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetActions
|
||||
|
||||
`func (o *VirtualMedia) SetActions(v VirtualMediaActions)`
|
||||
|
||||
SetActions sets Actions field to given value.
|
||||
|
||||
### HasActions
|
||||
|
||||
`func (o *VirtualMedia) HasActions() bool`
|
||||
|
||||
HasActions returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -4,8 +4,78 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**VirtualMediaEjectMedia** | [**VirtualMediaActionsVirtualMediaEjectMedia**](VirtualMedia_Actions__VirtualMedia_EjectMedia.md) | | [optional]
|
||||
**VirtualMediaInsertMedia** | [**VirtualMediaActionsVirtualMediaEjectMedia**](VirtualMedia_Actions__VirtualMedia_EjectMedia.md) | | [optional]
|
||||
**VirtualMediaEjectMedia** | Pointer to [**VirtualMediaActionsVirtualMediaEjectMedia**](VirtualMediaActionsVirtualMediaEjectMedia.md) | | [optional]
|
||||
**VirtualMediaInsertMedia** | Pointer to [**VirtualMediaActionsVirtualMediaEjectMedia**](VirtualMediaActionsVirtualMediaEjectMedia.md) | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewVirtualMediaActions
|
||||
|
||||
`func NewVirtualMediaActions() *VirtualMediaActions`
|
||||
|
||||
NewVirtualMediaActions instantiates a new VirtualMediaActions object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewVirtualMediaActionsWithDefaults
|
||||
|
||||
`func NewVirtualMediaActionsWithDefaults() *VirtualMediaActions`
|
||||
|
||||
NewVirtualMediaActionsWithDefaults instantiates a new VirtualMediaActions object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetVirtualMediaEjectMedia
|
||||
|
||||
`func (o *VirtualMediaActions) GetVirtualMediaEjectMedia() VirtualMediaActionsVirtualMediaEjectMedia`
|
||||
|
||||
GetVirtualMediaEjectMedia returns the VirtualMediaEjectMedia field if non-nil, zero value otherwise.
|
||||
|
||||
### GetVirtualMediaEjectMediaOk
|
||||
|
||||
`func (o *VirtualMediaActions) GetVirtualMediaEjectMediaOk() (*VirtualMediaActionsVirtualMediaEjectMedia, bool)`
|
||||
|
||||
GetVirtualMediaEjectMediaOk returns a tuple with the VirtualMediaEjectMedia field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetVirtualMediaEjectMedia
|
||||
|
||||
`func (o *VirtualMediaActions) SetVirtualMediaEjectMedia(v VirtualMediaActionsVirtualMediaEjectMedia)`
|
||||
|
||||
SetVirtualMediaEjectMedia sets VirtualMediaEjectMedia field to given value.
|
||||
|
||||
### HasVirtualMediaEjectMedia
|
||||
|
||||
`func (o *VirtualMediaActions) HasVirtualMediaEjectMedia() bool`
|
||||
|
||||
HasVirtualMediaEjectMedia returns a boolean if a field has been set.
|
||||
|
||||
### GetVirtualMediaInsertMedia
|
||||
|
||||
`func (o *VirtualMediaActions) GetVirtualMediaInsertMedia() VirtualMediaActionsVirtualMediaEjectMedia`
|
||||
|
||||
GetVirtualMediaInsertMedia returns the VirtualMediaInsertMedia field if non-nil, zero value otherwise.
|
||||
|
||||
### GetVirtualMediaInsertMediaOk
|
||||
|
||||
`func (o *VirtualMediaActions) GetVirtualMediaInsertMediaOk() (*VirtualMediaActionsVirtualMediaEjectMedia, bool)`
|
||||
|
||||
GetVirtualMediaInsertMediaOk returns a tuple with the VirtualMediaInsertMedia field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetVirtualMediaInsertMedia
|
||||
|
||||
`func (o *VirtualMediaActions) SetVirtualMediaInsertMedia(v VirtualMediaActionsVirtualMediaEjectMedia)`
|
||||
|
||||
SetVirtualMediaInsertMedia sets VirtualMediaInsertMedia field to given value.
|
||||
|
||||
### HasVirtualMediaInsertMedia
|
||||
|
||||
`func (o *VirtualMediaActions) HasVirtualMediaInsertMedia() bool`
|
||||
|
||||
HasVirtualMediaInsertMedia returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -4,7 +4,52 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Target** | **string** | The unique identifier for a resource. | [optional] [readonly]
|
||||
**Target** | Pointer to **string** | The unique identifier for a resource. | [optional] [readonly]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewVirtualMediaActionsVirtualMediaEjectMedia
|
||||
|
||||
`func NewVirtualMediaActionsVirtualMediaEjectMedia() *VirtualMediaActionsVirtualMediaEjectMedia`
|
||||
|
||||
NewVirtualMediaActionsVirtualMediaEjectMedia instantiates a new VirtualMediaActionsVirtualMediaEjectMedia object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewVirtualMediaActionsVirtualMediaEjectMediaWithDefaults
|
||||
|
||||
`func NewVirtualMediaActionsVirtualMediaEjectMediaWithDefaults() *VirtualMediaActionsVirtualMediaEjectMedia`
|
||||
|
||||
NewVirtualMediaActionsVirtualMediaEjectMediaWithDefaults instantiates a new VirtualMediaActionsVirtualMediaEjectMedia object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetTarget
|
||||
|
||||
`func (o *VirtualMediaActionsVirtualMediaEjectMedia) GetTarget() string`
|
||||
|
||||
GetTarget returns the Target field if non-nil, zero value otherwise.
|
||||
|
||||
### GetTargetOk
|
||||
|
||||
`func (o *VirtualMediaActionsVirtualMediaEjectMedia) GetTargetOk() (*string, bool)`
|
||||
|
||||
GetTargetOk returns a tuple with the Target field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### SetTarget
|
||||
|
||||
`func (o *VirtualMediaActionsVirtualMediaEjectMedia) SetTarget(v string)`
|
||||
|
||||
SetTarget sets Target field to given value.
|
||||
|
||||
### HasTarget
|
||||
|
||||
`func (o *VirtualMediaActionsVirtualMediaEjectMedia) HasTarget() bool`
|
||||
|
||||
HasTarget returns a boolean if a field has been set.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -1,9 +1,20 @@
|
||||
# VolumeType
|
||||
|
||||
## Properties
|
||||
## Enum
|
||||
|
||||
|
||||
* `RAW_DEVICE` (value: `"RawDevice"`)
|
||||
|
||||
* `NON_REDUNDANT` (value: `"NonRedundant"`)
|
||||
|
||||
* `MIRRORED` (value: `"Mirrored"`)
|
||||
|
||||
* `STRIPED_WITH_PARITY` (value: `"StripedWithParity"`)
|
||||
|
||||
* `SPANNED_MIRRORS` (value: `"SpannedMirrors"`)
|
||||
|
||||
* `SPANNED_STRIPES_WITH_PARITY` (value: `"SpannedStripesWithParity"`)
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -1,8 +1,7 @@
|
||||
module opendev.org/airship/go-redfish/client
|
||||
|
||||
require (
|
||||
github.com/antihax/optional v1.0.0
|
||||
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45
|
||||
)
|
||||
|
||||
go 1.13
|
||||
|
||||
require (
|
||||
golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99
|
||||
)
|
||||
|
@ -1,6 +1,4 @@
|
||||
cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
|
||||
github.com/antihax/optional v1.0.0 h1:xK2lYat7ZLaVVcIuj82J8kIro4V6kDe0AUDFboUCwcg=
|
||||
github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY=
|
||||
github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM=
|
||||
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
|
@ -4,13 +4,184 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// Boot struct for Boot
|
||||
type Boot struct {
|
||||
BootSourceOverrideEnabled BootSourceOverrideEnabled `json:"BootSourceOverrideEnabled,omitempty"`
|
||||
BootSourceOverrideTarget BootSource `json:"BootSourceOverrideTarget,omitempty"`
|
||||
BootSourceOverrideTargetRedfishAllowableValues []BootSource `json:"BootSourceOverrideTarget@Redfish.AllowableValues,omitempty"`
|
||||
BootSourceOverrideEnabled *BootSourceOverrideEnabled `json:"BootSourceOverrideEnabled,omitempty"`
|
||||
BootSourceOverrideTarget *BootSource `json:"BootSourceOverrideTarget,omitempty"`
|
||||
BootSourceOverrideTargetRedfishAllowableValues *[]BootSource `json:"BootSourceOverrideTarget@Redfish.AllowableValues,omitempty"`
|
||||
}
|
||||
|
||||
// NewBoot instantiates a new Boot object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewBoot() *Boot {
|
||||
this := Boot{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewBootWithDefaults instantiates a new Boot object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewBootWithDefaults() *Boot {
|
||||
this := Boot{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetBootSourceOverrideEnabled returns the BootSourceOverrideEnabled field value if set, zero value otherwise.
|
||||
func (o *Boot) GetBootSourceOverrideEnabled() BootSourceOverrideEnabled {
|
||||
if o == nil || o.BootSourceOverrideEnabled == nil {
|
||||
var ret BootSourceOverrideEnabled
|
||||
return ret
|
||||
}
|
||||
return *o.BootSourceOverrideEnabled
|
||||
}
|
||||
|
||||
// GetBootSourceOverrideEnabledOk returns a tuple with the BootSourceOverrideEnabled field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Boot) GetBootSourceOverrideEnabledOk() (*BootSourceOverrideEnabled, bool) {
|
||||
if o == nil || o.BootSourceOverrideEnabled == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.BootSourceOverrideEnabled, true
|
||||
}
|
||||
|
||||
// HasBootSourceOverrideEnabled returns a boolean if a field has been set.
|
||||
func (o *Boot) HasBootSourceOverrideEnabled() bool {
|
||||
if o != nil && o.BootSourceOverrideEnabled != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetBootSourceOverrideEnabled gets a reference to the given BootSourceOverrideEnabled and assigns it to the BootSourceOverrideEnabled field.
|
||||
func (o *Boot) SetBootSourceOverrideEnabled(v BootSourceOverrideEnabled) {
|
||||
o.BootSourceOverrideEnabled = &v
|
||||
}
|
||||
|
||||
// GetBootSourceOverrideTarget returns the BootSourceOverrideTarget field value if set, zero value otherwise.
|
||||
func (o *Boot) GetBootSourceOverrideTarget() BootSource {
|
||||
if o == nil || o.BootSourceOverrideTarget == nil {
|
||||
var ret BootSource
|
||||
return ret
|
||||
}
|
||||
return *o.BootSourceOverrideTarget
|
||||
}
|
||||
|
||||
// GetBootSourceOverrideTargetOk returns a tuple with the BootSourceOverrideTarget field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Boot) GetBootSourceOverrideTargetOk() (*BootSource, bool) {
|
||||
if o == nil || o.BootSourceOverrideTarget == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.BootSourceOverrideTarget, true
|
||||
}
|
||||
|
||||
// HasBootSourceOverrideTarget returns a boolean if a field has been set.
|
||||
func (o *Boot) HasBootSourceOverrideTarget() bool {
|
||||
if o != nil && o.BootSourceOverrideTarget != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetBootSourceOverrideTarget gets a reference to the given BootSource and assigns it to the BootSourceOverrideTarget field.
|
||||
func (o *Boot) SetBootSourceOverrideTarget(v BootSource) {
|
||||
o.BootSourceOverrideTarget = &v
|
||||
}
|
||||
|
||||
// GetBootSourceOverrideTargetRedfishAllowableValues returns the BootSourceOverrideTargetRedfishAllowableValues field value if set, zero value otherwise.
|
||||
func (o *Boot) GetBootSourceOverrideTargetRedfishAllowableValues() []BootSource {
|
||||
if o == nil || o.BootSourceOverrideTargetRedfishAllowableValues == nil {
|
||||
var ret []BootSource
|
||||
return ret
|
||||
}
|
||||
return *o.BootSourceOverrideTargetRedfishAllowableValues
|
||||
}
|
||||
|
||||
// GetBootSourceOverrideTargetRedfishAllowableValuesOk returns a tuple with the BootSourceOverrideTargetRedfishAllowableValues field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Boot) GetBootSourceOverrideTargetRedfishAllowableValuesOk() (*[]BootSource, bool) {
|
||||
if o == nil || o.BootSourceOverrideTargetRedfishAllowableValues == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.BootSourceOverrideTargetRedfishAllowableValues, true
|
||||
}
|
||||
|
||||
// HasBootSourceOverrideTargetRedfishAllowableValues returns a boolean if a field has been set.
|
||||
func (o *Boot) HasBootSourceOverrideTargetRedfishAllowableValues() bool {
|
||||
if o != nil && o.BootSourceOverrideTargetRedfishAllowableValues != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetBootSourceOverrideTargetRedfishAllowableValues gets a reference to the given []BootSource and assigns it to the BootSourceOverrideTargetRedfishAllowableValues field.
|
||||
func (o *Boot) SetBootSourceOverrideTargetRedfishAllowableValues(v []BootSource) {
|
||||
o.BootSourceOverrideTargetRedfishAllowableValues = &v
|
||||
}
|
||||
|
||||
func (o Boot) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if o.BootSourceOverrideEnabled != nil {
|
||||
toSerialize["BootSourceOverrideEnabled"] = o.BootSourceOverrideEnabled
|
||||
}
|
||||
if o.BootSourceOverrideTarget != nil {
|
||||
toSerialize["BootSourceOverrideTarget"] = o.BootSourceOverrideTarget
|
||||
}
|
||||
if o.BootSourceOverrideTargetRedfishAllowableValues != nil {
|
||||
toSerialize["BootSourceOverrideTarget@Redfish.AllowableValues"] = o.BootSourceOverrideTargetRedfishAllowableValues
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
type NullableBoot struct {
|
||||
value *Boot
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableBoot) Get() *Boot {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableBoot) Set(val *Boot) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableBoot) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableBoot) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableBoot(val *Boot) *NullableBoot {
|
||||
return &NullableBoot{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableBoot) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableBoot) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
|
@ -4,10 +4,17 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// BootSource the model 'BootSource'
|
||||
type BootSource string
|
||||
|
||||
@ -29,3 +36,62 @@ const (
|
||||
BOOTSOURCE_REMOTE_DRIVE BootSource = "RemoteDrive"
|
||||
BOOTSOURCE_UEFI_BOOT_NEXT BootSource = "UefiBootNext"
|
||||
)
|
||||
|
||||
func (v *BootSource) UnmarshalJSON(src []byte) error {
|
||||
var value string
|
||||
err := json.Unmarshal(src, &value)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
enumTypeValue := BootSource(value)
|
||||
for _, existing := range []BootSource{ "None", "Pxe", "Floppy", "Cd", "Usb", "Hdd", "BiosSetup", "Utilities", "Diags", "UefiShell", "UefiTarget", "SDCard", "UefiHttp", "RemoteDrive", "UefiBootNext", } {
|
||||
if existing == enumTypeValue {
|
||||
*v = enumTypeValue
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
return fmt.Errorf("%+v is not a valid BootSource", value)
|
||||
}
|
||||
|
||||
// Ptr returns reference to BootSource value
|
||||
func (v BootSource) Ptr() *BootSource {
|
||||
return &v
|
||||
}
|
||||
|
||||
type NullableBootSource struct {
|
||||
value *BootSource
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableBootSource) Get() *BootSource {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableBootSource) Set(val *BootSource) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableBootSource) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableBootSource) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableBootSource(val *BootSource) *NullableBootSource {
|
||||
return &NullableBootSource{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableBootSource) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableBootSource) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
@ -4,10 +4,17 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// BootSourceOverrideEnabled the model 'BootSourceOverrideEnabled'
|
||||
type BootSourceOverrideEnabled string
|
||||
|
||||
@ -15,4 +22,64 @@ type BootSourceOverrideEnabled string
|
||||
const (
|
||||
BOOTSOURCEOVERRIDEENABLED_ONCE BootSourceOverrideEnabled = "Once"
|
||||
BOOTSOURCEOVERRIDEENABLED_CONTINUOUS BootSourceOverrideEnabled = "Continuous"
|
||||
BOOTSOURCEOVERRIDEENABLED_DISABLED BootSourceOverrideEnabled = "Disabled"
|
||||
)
|
||||
|
||||
func (v *BootSourceOverrideEnabled) UnmarshalJSON(src []byte) error {
|
||||
var value string
|
||||
err := json.Unmarshal(src, &value)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
enumTypeValue := BootSourceOverrideEnabled(value)
|
||||
for _, existing := range []BootSourceOverrideEnabled{ "Once", "Continuous", "Disabled", } {
|
||||
if existing == enumTypeValue {
|
||||
*v = enumTypeValue
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
return fmt.Errorf("%+v is not a valid BootSourceOverrideEnabled", value)
|
||||
}
|
||||
|
||||
// Ptr returns reference to BootSourceOverrideEnabled value
|
||||
func (v BootSourceOverrideEnabled) Ptr() *BootSourceOverrideEnabled {
|
||||
return &v
|
||||
}
|
||||
|
||||
type NullableBootSourceOverrideEnabled struct {
|
||||
value *BootSourceOverrideEnabled
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableBootSourceOverrideEnabled) Get() *BootSourceOverrideEnabled {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableBootSourceOverrideEnabled) Set(val *BootSourceOverrideEnabled) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableBootSourceOverrideEnabled) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableBootSourceOverrideEnabled) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableBootSourceOverrideEnabled(val *BootSourceOverrideEnabled) *NullableBootSourceOverrideEnabled {
|
||||
return &NullableBootSourceOverrideEnabled{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableBootSourceOverrideEnabled) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableBootSourceOverrideEnabled) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
@ -4,28 +4,391 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// Collection A Collection of ComputerSystem resource instances.
|
||||
type Collection struct {
|
||||
// context
|
||||
OdataContext string `json:"@odata.context,omitempty"`
|
||||
OdataContext *string `json:"@odata.context,omitempty"`
|
||||
// etag
|
||||
OdataEtag string `json:"@odata.etag,omitempty"`
|
||||
OdataEtag *string `json:"@odata.etag,omitempty"`
|
||||
// id
|
||||
OdataId string `json:"@odata.id"`
|
||||
// type
|
||||
OdataType string `json:"@odata.type"`
|
||||
// description
|
||||
Description *string `json:"Description,omitempty"`
|
||||
Description NullableString `json:"Description,omitempty"`
|
||||
// Contains the members of this collection.
|
||||
Members []IdRef `json:"Members"`
|
||||
// The number of items in a collection.
|
||||
MembersodataCount int32 `json:"Members@odata.count,omitempty"`
|
||||
MembersodataCount *int32 `json:"Members@odata.count,omitempty"`
|
||||
// The URI to the resource containing the next set of partial members.
|
||||
MembersodataNextLink string `json:"Members@odata.nextLink,omitempty"`
|
||||
MembersodataNextLink *string `json:"Members@odata.nextLink,omitempty"`
|
||||
// The name of the resource.
|
||||
Name string `json:"Name"`
|
||||
}
|
||||
|
||||
// NewCollection instantiates a new Collection object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewCollection(odataId string, odataType string, members []IdRef, name string) *Collection {
|
||||
this := Collection{}
|
||||
this.OdataId = odataId
|
||||
this.OdataType = odataType
|
||||
this.Members = members
|
||||
this.Name = name
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewCollectionWithDefaults instantiates a new Collection object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewCollectionWithDefaults() *Collection {
|
||||
this := Collection{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetOdataContext returns the OdataContext field value if set, zero value otherwise.
|
||||
func (o *Collection) GetOdataContext() string {
|
||||
if o == nil || o.OdataContext == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.OdataContext
|
||||
}
|
||||
|
||||
// GetOdataContextOk returns a tuple with the OdataContext field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Collection) GetOdataContextOk() (*string, bool) {
|
||||
if o == nil || o.OdataContext == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.OdataContext, true
|
||||
}
|
||||
|
||||
// HasOdataContext returns a boolean if a field has been set.
|
||||
func (o *Collection) HasOdataContext() bool {
|
||||
if o != nil && o.OdataContext != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetOdataContext gets a reference to the given string and assigns it to the OdataContext field.
|
||||
func (o *Collection) SetOdataContext(v string) {
|
||||
o.OdataContext = &v
|
||||
}
|
||||
|
||||
// GetOdataEtag returns the OdataEtag field value if set, zero value otherwise.
|
||||
func (o *Collection) GetOdataEtag() string {
|
||||
if o == nil || o.OdataEtag == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.OdataEtag
|
||||
}
|
||||
|
||||
// GetOdataEtagOk returns a tuple with the OdataEtag field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Collection) GetOdataEtagOk() (*string, bool) {
|
||||
if o == nil || o.OdataEtag == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.OdataEtag, true
|
||||
}
|
||||
|
||||
// HasOdataEtag returns a boolean if a field has been set.
|
||||
func (o *Collection) HasOdataEtag() bool {
|
||||
if o != nil && o.OdataEtag != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetOdataEtag gets a reference to the given string and assigns it to the OdataEtag field.
|
||||
func (o *Collection) SetOdataEtag(v string) {
|
||||
o.OdataEtag = &v
|
||||
}
|
||||
|
||||
// GetOdataId returns the OdataId field value
|
||||
func (o *Collection) GetOdataId() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.OdataId
|
||||
}
|
||||
|
||||
// GetOdataIdOk returns a tuple with the OdataId field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Collection) GetOdataIdOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.OdataId, true
|
||||
}
|
||||
|
||||
// SetOdataId sets field value
|
||||
func (o *Collection) SetOdataId(v string) {
|
||||
o.OdataId = v
|
||||
}
|
||||
|
||||
// GetOdataType returns the OdataType field value
|
||||
func (o *Collection) GetOdataType() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.OdataType
|
||||
}
|
||||
|
||||
// GetOdataTypeOk returns a tuple with the OdataType field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Collection) GetOdataTypeOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.OdataType, true
|
||||
}
|
||||
|
||||
// SetOdataType sets field value
|
||||
func (o *Collection) SetOdataType(v string) {
|
||||
o.OdataType = v
|
||||
}
|
||||
|
||||
// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null).
|
||||
func (o *Collection) GetDescription() string {
|
||||
if o == nil || o.Description.Get() == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Description.Get()
|
||||
}
|
||||
|
||||
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
||||
func (o *Collection) GetDescriptionOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Description.Get(), o.Description.IsSet()
|
||||
}
|
||||
|
||||
// HasDescription returns a boolean if a field has been set.
|
||||
func (o *Collection) HasDescription() bool {
|
||||
if o != nil && o.Description.IsSet() {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetDescription gets a reference to the given NullableString and assigns it to the Description field.
|
||||
func (o *Collection) SetDescription(v string) {
|
||||
o.Description.Set(&v)
|
||||
}
|
||||
// SetDescriptionNil sets the value for Description to be an explicit nil
|
||||
func (o *Collection) SetDescriptionNil() {
|
||||
o.Description.Set(nil)
|
||||
}
|
||||
|
||||
// UnsetDescription ensures that no value is present for Description, not even an explicit nil
|
||||
func (o *Collection) UnsetDescription() {
|
||||
o.Description.Unset()
|
||||
}
|
||||
|
||||
// GetMembers returns the Members field value
|
||||
func (o *Collection) GetMembers() []IdRef {
|
||||
if o == nil {
|
||||
var ret []IdRef
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.Members
|
||||
}
|
||||
|
||||
// GetMembersOk returns a tuple with the Members field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Collection) GetMembersOk() (*[]IdRef, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Members, true
|
||||
}
|
||||
|
||||
// SetMembers sets field value
|
||||
func (o *Collection) SetMembers(v []IdRef) {
|
||||
o.Members = v
|
||||
}
|
||||
|
||||
// GetMembersodataCount returns the MembersodataCount field value if set, zero value otherwise.
|
||||
func (o *Collection) GetMembersodataCount() int32 {
|
||||
if o == nil || o.MembersodataCount == nil {
|
||||
var ret int32
|
||||
return ret
|
||||
}
|
||||
return *o.MembersodataCount
|
||||
}
|
||||
|
||||
// GetMembersodataCountOk returns a tuple with the MembersodataCount field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Collection) GetMembersodataCountOk() (*int32, bool) {
|
||||
if o == nil || o.MembersodataCount == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.MembersodataCount, true
|
||||
}
|
||||
|
||||
// HasMembersodataCount returns a boolean if a field has been set.
|
||||
func (o *Collection) HasMembersodataCount() bool {
|
||||
if o != nil && o.MembersodataCount != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetMembersodataCount gets a reference to the given int32 and assigns it to the MembersodataCount field.
|
||||
func (o *Collection) SetMembersodataCount(v int32) {
|
||||
o.MembersodataCount = &v
|
||||
}
|
||||
|
||||
// GetMembersodataNextLink returns the MembersodataNextLink field value if set, zero value otherwise.
|
||||
func (o *Collection) GetMembersodataNextLink() string {
|
||||
if o == nil || o.MembersodataNextLink == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.MembersodataNextLink
|
||||
}
|
||||
|
||||
// GetMembersodataNextLinkOk returns a tuple with the MembersodataNextLink field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Collection) GetMembersodataNextLinkOk() (*string, bool) {
|
||||
if o == nil || o.MembersodataNextLink == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.MembersodataNextLink, true
|
||||
}
|
||||
|
||||
// HasMembersodataNextLink returns a boolean if a field has been set.
|
||||
func (o *Collection) HasMembersodataNextLink() bool {
|
||||
if o != nil && o.MembersodataNextLink != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetMembersodataNextLink gets a reference to the given string and assigns it to the MembersodataNextLink field.
|
||||
func (o *Collection) SetMembersodataNextLink(v string) {
|
||||
o.MembersodataNextLink = &v
|
||||
}
|
||||
|
||||
// GetName returns the Name field value
|
||||
func (o *Collection) GetName() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.Name
|
||||
}
|
||||
|
||||
// GetNameOk returns a tuple with the Name field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Collection) GetNameOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Name, true
|
||||
}
|
||||
|
||||
// SetName sets field value
|
||||
func (o *Collection) SetName(v string) {
|
||||
o.Name = v
|
||||
}
|
||||
|
||||
func (o Collection) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if o.OdataContext != nil {
|
||||
toSerialize["@odata.context"] = o.OdataContext
|
||||
}
|
||||
if o.OdataEtag != nil {
|
||||
toSerialize["@odata.etag"] = o.OdataEtag
|
||||
}
|
||||
if true {
|
||||
toSerialize["@odata.id"] = o.OdataId
|
||||
}
|
||||
if true {
|
||||
toSerialize["@odata.type"] = o.OdataType
|
||||
}
|
||||
if o.Description.IsSet() {
|
||||
toSerialize["Description"] = o.Description.Get()
|
||||
}
|
||||
if true {
|
||||
toSerialize["Members"] = o.Members
|
||||
}
|
||||
if o.MembersodataCount != nil {
|
||||
toSerialize["Members@odata.count"] = o.MembersodataCount
|
||||
}
|
||||
if o.MembersodataNextLink != nil {
|
||||
toSerialize["Members@odata.nextLink"] = o.MembersodataNextLink
|
||||
}
|
||||
if true {
|
||||
toSerialize["Name"] = o.Name
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
type NullableCollection struct {
|
||||
value *Collection
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableCollection) Get() *Collection {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableCollection) Set(val *Collection) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableCollection) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableCollection) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableCollection(val *Collection) *NullableCollection {
|
||||
return &NullableCollection{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableCollection) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableCollection) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
|
@ -4,38 +4,839 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// ComputerSystem Root redfish path.
|
||||
type ComputerSystem struct {
|
||||
// The name of the resource.
|
||||
Id string `json:"Id,omitempty"`
|
||||
Id *string `json:"Id,omitempty"`
|
||||
// The name of the resource.
|
||||
Name string `json:"Name"`
|
||||
Name *string `json:"Name,omitempty"`
|
||||
// redfish version
|
||||
RedfishVersion string `json:"RedfishVersion,omitempty"`
|
||||
UUID string `json:"UUID,omitempty"`
|
||||
RedfishVersion *string `json:"RedfishVersion,omitempty"`
|
||||
UUID *string `json:"UUID,omitempty"`
|
||||
// The type of a resource.
|
||||
OdataType string `json:"@odata.type"`
|
||||
OdataType *string `json:"@odata.type,omitempty"`
|
||||
// The unique identifier for a resource.
|
||||
OdataId string `json:"@odata.id"`
|
||||
OdataId *string `json:"@odata.id,omitempty"`
|
||||
// The OData description of a payload.
|
||||
OdataContext string `json:"@odata.context,omitempty"`
|
||||
OdataContext *string `json:"@odata.context,omitempty"`
|
||||
// redfish copyright
|
||||
RedfishCopyright string `json:"@Redfish.Copyright,omitempty"`
|
||||
Bios IdRef `json:"Bios,omitempty"`
|
||||
Processors IdRef `json:"Processors,omitempty"`
|
||||
Memory IdRef `json:"Memory,omitempty"`
|
||||
EthernetInterfaces IdRef `json:"EthernetInterfaces,omitempty"`
|
||||
SimpleStorage IdRef `json:"SimpleStorage,omitempty"`
|
||||
PowerState PowerState `json:"PowerState,omitempty"`
|
||||
Status Status `json:"Status,omitempty"`
|
||||
Boot Boot `json:"Boot,omitempty"`
|
||||
ProcessorSummary ProcessorSummary `json:"ProcessorSummary,omitempty"`
|
||||
MemorySummary MemorySummary `json:"MemorySummary,omitempty"`
|
||||
IndicatorLED IndicatorLed `json:"IndicatorLED,omitempty"`
|
||||
Links SystemLinks `json:"Links,omitempty"`
|
||||
Actions ComputerSystemActions `json:"Actions,omitempty"`
|
||||
RedfishCopyright *string `json:"@Redfish.Copyright,omitempty"`
|
||||
Bios *IdRef `json:"Bios,omitempty"`
|
||||
Processors *IdRef `json:"Processors,omitempty"`
|
||||
Memory *IdRef `json:"Memory,omitempty"`
|
||||
EthernetInterfaces *IdRef `json:"EthernetInterfaces,omitempty"`
|
||||
SimpleStorage *IdRef `json:"SimpleStorage,omitempty"`
|
||||
PowerState *PowerState `json:"PowerState,omitempty"`
|
||||
Status *Status `json:"Status,omitempty"`
|
||||
Boot *Boot `json:"Boot,omitempty"`
|
||||
ProcessorSummary *ProcessorSummary `json:"ProcessorSummary,omitempty"`
|
||||
MemorySummary *MemorySummary `json:"MemorySummary,omitempty"`
|
||||
IndicatorLED *IndicatorLED `json:"IndicatorLED,omitempty"`
|
||||
Links *SystemLinks `json:"Links,omitempty"`
|
||||
Actions *ComputerSystemActions `json:"Actions,omitempty"`
|
||||
}
|
||||
|
||||
// NewComputerSystem instantiates a new ComputerSystem object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewComputerSystem() *ComputerSystem {
|
||||
this := ComputerSystem{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewComputerSystemWithDefaults instantiates a new ComputerSystem object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewComputerSystemWithDefaults() *ComputerSystem {
|
||||
this := ComputerSystem{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetId returns the Id field value if set, zero value otherwise.
|
||||
func (o *ComputerSystem) GetId() string {
|
||||
if o == nil || o.Id == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Id
|
||||
}
|
||||
|
||||
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ComputerSystem) GetIdOk() (*string, bool) {
|
||||
if o == nil || o.Id == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Id, true
|
||||
}
|
||||
|
||||
// HasId returns a boolean if a field has been set.
|
||||
func (o *ComputerSystem) HasId() bool {
|
||||
if o != nil && o.Id != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetId gets a reference to the given string and assigns it to the Id field.
|
||||
func (o *ComputerSystem) SetId(v string) {
|
||||
o.Id = &v
|
||||
}
|
||||
|
||||
// GetName returns the Name field value if set, zero value otherwise.
|
||||
func (o *ComputerSystem) GetName() string {
|
||||
if o == nil || o.Name == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Name
|
||||
}
|
||||
|
||||
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ComputerSystem) GetNameOk() (*string, bool) {
|
||||
if o == nil || o.Name == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Name, true
|
||||
}
|
||||
|
||||
// HasName returns a boolean if a field has been set.
|
||||
func (o *ComputerSystem) HasName() bool {
|
||||
if o != nil && o.Name != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetName gets a reference to the given string and assigns it to the Name field.
|
||||
func (o *ComputerSystem) SetName(v string) {
|
||||
o.Name = &v
|
||||
}
|
||||
|
||||
// GetRedfishVersion returns the RedfishVersion field value if set, zero value otherwise.
|
||||
func (o *ComputerSystem) GetRedfishVersion() string {
|
||||
if o == nil || o.RedfishVersion == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.RedfishVersion
|
||||
}
|
||||
|
||||
// GetRedfishVersionOk returns a tuple with the RedfishVersion field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ComputerSystem) GetRedfishVersionOk() (*string, bool) {
|
||||
if o == nil || o.RedfishVersion == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.RedfishVersion, true
|
||||
}
|
||||
|
||||
// HasRedfishVersion returns a boolean if a field has been set.
|
||||
func (o *ComputerSystem) HasRedfishVersion() bool {
|
||||
if o != nil && o.RedfishVersion != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetRedfishVersion gets a reference to the given string and assigns it to the RedfishVersion field.
|
||||
func (o *ComputerSystem) SetRedfishVersion(v string) {
|
||||
o.RedfishVersion = &v
|
||||
}
|
||||
|
||||
// GetUUID returns the UUID field value if set, zero value otherwise.
|
||||
func (o *ComputerSystem) GetUUID() string {
|
||||
if o == nil || o.UUID == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.UUID
|
||||
}
|
||||
|
||||
// GetUUIDOk returns a tuple with the UUID field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ComputerSystem) GetUUIDOk() (*string, bool) {
|
||||
if o == nil || o.UUID == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.UUID, true
|
||||
}
|
||||
|
||||
// HasUUID returns a boolean if a field has been set.
|
||||
func (o *ComputerSystem) HasUUID() bool {
|
||||
if o != nil && o.UUID != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetUUID gets a reference to the given string and assigns it to the UUID field.
|
||||
func (o *ComputerSystem) SetUUID(v string) {
|
||||
o.UUID = &v
|
||||
}
|
||||
|
||||
// GetOdataType returns the OdataType field value if set, zero value otherwise.
|
||||
func (o *ComputerSystem) GetOdataType() string {
|
||||
if o == nil || o.OdataType == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.OdataType
|
||||
}
|
||||
|
||||
// GetOdataTypeOk returns a tuple with the OdataType field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ComputerSystem) GetOdataTypeOk() (*string, bool) {
|
||||
if o == nil || o.OdataType == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.OdataType, true
|
||||
}
|
||||
|
||||
// HasOdataType returns a boolean if a field has been set.
|
||||
func (o *ComputerSystem) HasOdataType() bool {
|
||||
if o != nil && o.OdataType != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetOdataType gets a reference to the given string and assigns it to the OdataType field.
|
||||
func (o *ComputerSystem) SetOdataType(v string) {
|
||||
o.OdataType = &v
|
||||
}
|
||||
|
||||
// GetOdataId returns the OdataId field value if set, zero value otherwise.
|
||||
func (o *ComputerSystem) GetOdataId() string {
|
||||
if o == nil || o.OdataId == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.OdataId
|
||||
}
|
||||
|
||||
// GetOdataIdOk returns a tuple with the OdataId field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ComputerSystem) GetOdataIdOk() (*string, bool) {
|
||||
if o == nil || o.OdataId == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.OdataId, true
|
||||
}
|
||||
|
||||
// HasOdataId returns a boolean if a field has been set.
|
||||
func (o *ComputerSystem) HasOdataId() bool {
|
||||
if o != nil && o.OdataId != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetOdataId gets a reference to the given string and assigns it to the OdataId field.
|
||||
func (o *ComputerSystem) SetOdataId(v string) {
|
||||
o.OdataId = &v
|
||||
}
|
||||
|
||||
// GetOdataContext returns the OdataContext field value if set, zero value otherwise.
|
||||
func (o *ComputerSystem) GetOdataContext() string {
|
||||
if o == nil || o.OdataContext == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.OdataContext
|
||||
}
|
||||
|
||||
// GetOdataContextOk returns a tuple with the OdataContext field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ComputerSystem) GetOdataContextOk() (*string, bool) {
|
||||
if o == nil || o.OdataContext == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.OdataContext, true
|
||||
}
|
||||
|
||||
// HasOdataContext returns a boolean if a field has been set.
|
||||
func (o *ComputerSystem) HasOdataContext() bool {
|
||||
if o != nil && o.OdataContext != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetOdataContext gets a reference to the given string and assigns it to the OdataContext field.
|
||||
func (o *ComputerSystem) SetOdataContext(v string) {
|
||||
o.OdataContext = &v
|
||||
}
|
||||
|
||||
// GetRedfishCopyright returns the RedfishCopyright field value if set, zero value otherwise.
|
||||
func (o *ComputerSystem) GetRedfishCopyright() string {
|
||||
if o == nil || o.RedfishCopyright == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.RedfishCopyright
|
||||
}
|
||||
|
||||
// GetRedfishCopyrightOk returns a tuple with the RedfishCopyright field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ComputerSystem) GetRedfishCopyrightOk() (*string, bool) {
|
||||
if o == nil || o.RedfishCopyright == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.RedfishCopyright, true
|
||||
}
|
||||
|
||||
// HasRedfishCopyright returns a boolean if a field has been set.
|
||||
func (o *ComputerSystem) HasRedfishCopyright() bool {
|
||||
if o != nil && o.RedfishCopyright != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetRedfishCopyright gets a reference to the given string and assigns it to the RedfishCopyright field.
|
||||
func (o *ComputerSystem) SetRedfishCopyright(v string) {
|
||||
o.RedfishCopyright = &v
|
||||
}
|
||||
|
||||
// GetBios returns the Bios field value if set, zero value otherwise.
|
||||
func (o *ComputerSystem) GetBios() IdRef {
|
||||
if o == nil || o.Bios == nil {
|
||||
var ret IdRef
|
||||
return ret
|
||||
}
|
||||
return *o.Bios
|
||||
}
|
||||
|
||||
// GetBiosOk returns a tuple with the Bios field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ComputerSystem) GetBiosOk() (*IdRef, bool) {
|
||||
if o == nil || o.Bios == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Bios, true
|
||||
}
|
||||
|
||||
// HasBios returns a boolean if a field has been set.
|
||||
func (o *ComputerSystem) HasBios() bool {
|
||||
if o != nil && o.Bios != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetBios gets a reference to the given IdRef and assigns it to the Bios field.
|
||||
func (o *ComputerSystem) SetBios(v IdRef) {
|
||||
o.Bios = &v
|
||||
}
|
||||
|
||||
// GetProcessors returns the Processors field value if set, zero value otherwise.
|
||||
func (o *ComputerSystem) GetProcessors() IdRef {
|
||||
if o == nil || o.Processors == nil {
|
||||
var ret IdRef
|
||||
return ret
|
||||
}
|
||||
return *o.Processors
|
||||
}
|
||||
|
||||
// GetProcessorsOk returns a tuple with the Processors field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ComputerSystem) GetProcessorsOk() (*IdRef, bool) {
|
||||
if o == nil || o.Processors == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Processors, true
|
||||
}
|
||||
|
||||
// HasProcessors returns a boolean if a field has been set.
|
||||
func (o *ComputerSystem) HasProcessors() bool {
|
||||
if o != nil && o.Processors != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetProcessors gets a reference to the given IdRef and assigns it to the Processors field.
|
||||
func (o *ComputerSystem) SetProcessors(v IdRef) {
|
||||
o.Processors = &v
|
||||
}
|
||||
|
||||
// GetMemory returns the Memory field value if set, zero value otherwise.
|
||||
func (o *ComputerSystem) GetMemory() IdRef {
|
||||
if o == nil || o.Memory == nil {
|
||||
var ret IdRef
|
||||
return ret
|
||||
}
|
||||
return *o.Memory
|
||||
}
|
||||
|
||||
// GetMemoryOk returns a tuple with the Memory field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ComputerSystem) GetMemoryOk() (*IdRef, bool) {
|
||||
if o == nil || o.Memory == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Memory, true
|
||||
}
|
||||
|
||||
// HasMemory returns a boolean if a field has been set.
|
||||
func (o *ComputerSystem) HasMemory() bool {
|
||||
if o != nil && o.Memory != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetMemory gets a reference to the given IdRef and assigns it to the Memory field.
|
||||
func (o *ComputerSystem) SetMemory(v IdRef) {
|
||||
o.Memory = &v
|
||||
}
|
||||
|
||||
// GetEthernetInterfaces returns the EthernetInterfaces field value if set, zero value otherwise.
|
||||
func (o *ComputerSystem) GetEthernetInterfaces() IdRef {
|
||||
if o == nil || o.EthernetInterfaces == nil {
|
||||
var ret IdRef
|
||||
return ret
|
||||
}
|
||||
return *o.EthernetInterfaces
|
||||
}
|
||||
|
||||
// GetEthernetInterfacesOk returns a tuple with the EthernetInterfaces field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ComputerSystem) GetEthernetInterfacesOk() (*IdRef, bool) {
|
||||
if o == nil || o.EthernetInterfaces == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.EthernetInterfaces, true
|
||||
}
|
||||
|
||||
// HasEthernetInterfaces returns a boolean if a field has been set.
|
||||
func (o *ComputerSystem) HasEthernetInterfaces() bool {
|
||||
if o != nil && o.EthernetInterfaces != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetEthernetInterfaces gets a reference to the given IdRef and assigns it to the EthernetInterfaces field.
|
||||
func (o *ComputerSystem) SetEthernetInterfaces(v IdRef) {
|
||||
o.EthernetInterfaces = &v
|
||||
}
|
||||
|
||||
// GetSimpleStorage returns the SimpleStorage field value if set, zero value otherwise.
|
||||
func (o *ComputerSystem) GetSimpleStorage() IdRef {
|
||||
if o == nil || o.SimpleStorage == nil {
|
||||
var ret IdRef
|
||||
return ret
|
||||
}
|
||||
return *o.SimpleStorage
|
||||
}
|
||||
|
||||
// GetSimpleStorageOk returns a tuple with the SimpleStorage field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ComputerSystem) GetSimpleStorageOk() (*IdRef, bool) {
|
||||
if o == nil || o.SimpleStorage == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.SimpleStorage, true
|
||||
}
|
||||
|
||||
// HasSimpleStorage returns a boolean if a field has been set.
|
||||
func (o *ComputerSystem) HasSimpleStorage() bool {
|
||||
if o != nil && o.SimpleStorage != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetSimpleStorage gets a reference to the given IdRef and assigns it to the SimpleStorage field.
|
||||
func (o *ComputerSystem) SetSimpleStorage(v IdRef) {
|
||||
o.SimpleStorage = &v
|
||||
}
|
||||
|
||||
// GetPowerState returns the PowerState field value if set, zero value otherwise.
|
||||
func (o *ComputerSystem) GetPowerState() PowerState {
|
||||
if o == nil || o.PowerState == nil {
|
||||
var ret PowerState
|
||||
return ret
|
||||
}
|
||||
return *o.PowerState
|
||||
}
|
||||
|
||||
// GetPowerStateOk returns a tuple with the PowerState field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ComputerSystem) GetPowerStateOk() (*PowerState, bool) {
|
||||
if o == nil || o.PowerState == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.PowerState, true
|
||||
}
|
||||
|
||||
// HasPowerState returns a boolean if a field has been set.
|
||||
func (o *ComputerSystem) HasPowerState() bool {
|
||||
if o != nil && o.PowerState != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetPowerState gets a reference to the given PowerState and assigns it to the PowerState field.
|
||||
func (o *ComputerSystem) SetPowerState(v PowerState) {
|
||||
o.PowerState = &v
|
||||
}
|
||||
|
||||
// GetStatus returns the Status field value if set, zero value otherwise.
|
||||
func (o *ComputerSystem) GetStatus() Status {
|
||||
if o == nil || o.Status == nil {
|
||||
var ret Status
|
||||
return ret
|
||||
}
|
||||
return *o.Status
|
||||
}
|
||||
|
||||
// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ComputerSystem) GetStatusOk() (*Status, bool) {
|
||||
if o == nil || o.Status == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Status, true
|
||||
}
|
||||
|
||||
// HasStatus returns a boolean if a field has been set.
|
||||
func (o *ComputerSystem) HasStatus() bool {
|
||||
if o != nil && o.Status != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetStatus gets a reference to the given Status and assigns it to the Status field.
|
||||
func (o *ComputerSystem) SetStatus(v Status) {
|
||||
o.Status = &v
|
||||
}
|
||||
|
||||
// GetBoot returns the Boot field value if set, zero value otherwise.
|
||||
func (o *ComputerSystem) GetBoot() Boot {
|
||||
if o == nil || o.Boot == nil {
|
||||
var ret Boot
|
||||
return ret
|
||||
}
|
||||
return *o.Boot
|
||||
}
|
||||
|
||||
// GetBootOk returns a tuple with the Boot field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ComputerSystem) GetBootOk() (*Boot, bool) {
|
||||
if o == nil || o.Boot == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Boot, true
|
||||
}
|
||||
|
||||
// HasBoot returns a boolean if a field has been set.
|
||||
func (o *ComputerSystem) HasBoot() bool {
|
||||
if o != nil && o.Boot != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetBoot gets a reference to the given Boot and assigns it to the Boot field.
|
||||
func (o *ComputerSystem) SetBoot(v Boot) {
|
||||
o.Boot = &v
|
||||
}
|
||||
|
||||
// GetProcessorSummary returns the ProcessorSummary field value if set, zero value otherwise.
|
||||
func (o *ComputerSystem) GetProcessorSummary() ProcessorSummary {
|
||||
if o == nil || o.ProcessorSummary == nil {
|
||||
var ret ProcessorSummary
|
||||
return ret
|
||||
}
|
||||
return *o.ProcessorSummary
|
||||
}
|
||||
|
||||
// GetProcessorSummaryOk returns a tuple with the ProcessorSummary field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ComputerSystem) GetProcessorSummaryOk() (*ProcessorSummary, bool) {
|
||||
if o == nil || o.ProcessorSummary == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.ProcessorSummary, true
|
||||
}
|
||||
|
||||
// HasProcessorSummary returns a boolean if a field has been set.
|
||||
func (o *ComputerSystem) HasProcessorSummary() bool {
|
||||
if o != nil && o.ProcessorSummary != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetProcessorSummary gets a reference to the given ProcessorSummary and assigns it to the ProcessorSummary field.
|
||||
func (o *ComputerSystem) SetProcessorSummary(v ProcessorSummary) {
|
||||
o.ProcessorSummary = &v
|
||||
}
|
||||
|
||||
// GetMemorySummary returns the MemorySummary field value if set, zero value otherwise.
|
||||
func (o *ComputerSystem) GetMemorySummary() MemorySummary {
|
||||
if o == nil || o.MemorySummary == nil {
|
||||
var ret MemorySummary
|
||||
return ret
|
||||
}
|
||||
return *o.MemorySummary
|
||||
}
|
||||
|
||||
// GetMemorySummaryOk returns a tuple with the MemorySummary field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ComputerSystem) GetMemorySummaryOk() (*MemorySummary, bool) {
|
||||
if o == nil || o.MemorySummary == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.MemorySummary, true
|
||||
}
|
||||
|
||||
// HasMemorySummary returns a boolean if a field has been set.
|
||||
func (o *ComputerSystem) HasMemorySummary() bool {
|
||||
if o != nil && o.MemorySummary != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetMemorySummary gets a reference to the given MemorySummary and assigns it to the MemorySummary field.
|
||||
func (o *ComputerSystem) SetMemorySummary(v MemorySummary) {
|
||||
o.MemorySummary = &v
|
||||
}
|
||||
|
||||
// GetIndicatorLED returns the IndicatorLED field value if set, zero value otherwise.
|
||||
func (o *ComputerSystem) GetIndicatorLED() IndicatorLED {
|
||||
if o == nil || o.IndicatorLED == nil {
|
||||
var ret IndicatorLED
|
||||
return ret
|
||||
}
|
||||
return *o.IndicatorLED
|
||||
}
|
||||
|
||||
// GetIndicatorLEDOk returns a tuple with the IndicatorLED field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ComputerSystem) GetIndicatorLEDOk() (*IndicatorLED, bool) {
|
||||
if o == nil || o.IndicatorLED == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.IndicatorLED, true
|
||||
}
|
||||
|
||||
// HasIndicatorLED returns a boolean if a field has been set.
|
||||
func (o *ComputerSystem) HasIndicatorLED() bool {
|
||||
if o != nil && o.IndicatorLED != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetIndicatorLED gets a reference to the given IndicatorLED and assigns it to the IndicatorLED field.
|
||||
func (o *ComputerSystem) SetIndicatorLED(v IndicatorLED) {
|
||||
o.IndicatorLED = &v
|
||||
}
|
||||
|
||||
// GetLinks returns the Links field value if set, zero value otherwise.
|
||||
func (o *ComputerSystem) GetLinks() SystemLinks {
|
||||
if o == nil || o.Links == nil {
|
||||
var ret SystemLinks
|
||||
return ret
|
||||
}
|
||||
return *o.Links
|
||||
}
|
||||
|
||||
// GetLinksOk returns a tuple with the Links field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ComputerSystem) GetLinksOk() (*SystemLinks, bool) {
|
||||
if o == nil || o.Links == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Links, true
|
||||
}
|
||||
|
||||
// HasLinks returns a boolean if a field has been set.
|
||||
func (o *ComputerSystem) HasLinks() bool {
|
||||
if o != nil && o.Links != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetLinks gets a reference to the given SystemLinks and assigns it to the Links field.
|
||||
func (o *ComputerSystem) SetLinks(v SystemLinks) {
|
||||
o.Links = &v
|
||||
}
|
||||
|
||||
// GetActions returns the Actions field value if set, zero value otherwise.
|
||||
func (o *ComputerSystem) GetActions() ComputerSystemActions {
|
||||
if o == nil || o.Actions == nil {
|
||||
var ret ComputerSystemActions
|
||||
return ret
|
||||
}
|
||||
return *o.Actions
|
||||
}
|
||||
|
||||
// GetActionsOk returns a tuple with the Actions field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ComputerSystem) GetActionsOk() (*ComputerSystemActions, bool) {
|
||||
if o == nil || o.Actions == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Actions, true
|
||||
}
|
||||
|
||||
// HasActions returns a boolean if a field has been set.
|
||||
func (o *ComputerSystem) HasActions() bool {
|
||||
if o != nil && o.Actions != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetActions gets a reference to the given ComputerSystemActions and assigns it to the Actions field.
|
||||
func (o *ComputerSystem) SetActions(v ComputerSystemActions) {
|
||||
o.Actions = &v
|
||||
}
|
||||
|
||||
func (o ComputerSystem) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if o.Id != nil {
|
||||
toSerialize["Id"] = o.Id
|
||||
}
|
||||
if o.Name != nil {
|
||||
toSerialize["Name"] = o.Name
|
||||
}
|
||||
if o.RedfishVersion != nil {
|
||||
toSerialize["RedfishVersion"] = o.RedfishVersion
|
||||
}
|
||||
if o.UUID != nil {
|
||||
toSerialize["UUID"] = o.UUID
|
||||
}
|
||||
if o.OdataType != nil {
|
||||
toSerialize["@odata.type"] = o.OdataType
|
||||
}
|
||||
if o.OdataId != nil {
|
||||
toSerialize["@odata.id"] = o.OdataId
|
||||
}
|
||||
if o.OdataContext != nil {
|
||||
toSerialize["@odata.context"] = o.OdataContext
|
||||
}
|
||||
if o.RedfishCopyright != nil {
|
||||
toSerialize["@Redfish.Copyright"] = o.RedfishCopyright
|
||||
}
|
||||
if o.Bios != nil {
|
||||
toSerialize["Bios"] = o.Bios
|
||||
}
|
||||
if o.Processors != nil {
|
||||
toSerialize["Processors"] = o.Processors
|
||||
}
|
||||
if o.Memory != nil {
|
||||
toSerialize["Memory"] = o.Memory
|
||||
}
|
||||
if o.EthernetInterfaces != nil {
|
||||
toSerialize["EthernetInterfaces"] = o.EthernetInterfaces
|
||||
}
|
||||
if o.SimpleStorage != nil {
|
||||
toSerialize["SimpleStorage"] = o.SimpleStorage
|
||||
}
|
||||
if o.PowerState != nil {
|
||||
toSerialize["PowerState"] = o.PowerState
|
||||
}
|
||||
if o.Status != nil {
|
||||
toSerialize["Status"] = o.Status
|
||||
}
|
||||
if o.Boot != nil {
|
||||
toSerialize["Boot"] = o.Boot
|
||||
}
|
||||
if o.ProcessorSummary != nil {
|
||||
toSerialize["ProcessorSummary"] = o.ProcessorSummary
|
||||
}
|
||||
if o.MemorySummary != nil {
|
||||
toSerialize["MemorySummary"] = o.MemorySummary
|
||||
}
|
||||
if o.IndicatorLED != nil {
|
||||
toSerialize["IndicatorLED"] = o.IndicatorLED
|
||||
}
|
||||
if o.Links != nil {
|
||||
toSerialize["Links"] = o.Links
|
||||
}
|
||||
if o.Actions != nil {
|
||||
toSerialize["Actions"] = o.Actions
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
type NullableComputerSystem struct {
|
||||
value *ComputerSystem
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableComputerSystem) Get() *ComputerSystem {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableComputerSystem) Set(val *ComputerSystem) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableComputerSystem) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableComputerSystem) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableComputerSystem(val *ComputerSystem) *NullableComputerSystem {
|
||||
return &NullableComputerSystem{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableComputerSystem) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableComputerSystem) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
|
@ -4,11 +4,112 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// ComputerSystemActions struct for ComputerSystemActions
|
||||
type ComputerSystemActions struct {
|
||||
ComputerSystemReset ComputerSystemReset `json:"#ComputerSystem.Reset,omitempty"`
|
||||
ComputerSystemReset *ComputerSystemReset `json:"#ComputerSystem.Reset,omitempty"`
|
||||
}
|
||||
|
||||
// NewComputerSystemActions instantiates a new ComputerSystemActions object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewComputerSystemActions() *ComputerSystemActions {
|
||||
this := ComputerSystemActions{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewComputerSystemActionsWithDefaults instantiates a new ComputerSystemActions object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewComputerSystemActionsWithDefaults() *ComputerSystemActions {
|
||||
this := ComputerSystemActions{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetComputerSystemReset returns the ComputerSystemReset field value if set, zero value otherwise.
|
||||
func (o *ComputerSystemActions) GetComputerSystemReset() ComputerSystemReset {
|
||||
if o == nil || o.ComputerSystemReset == nil {
|
||||
var ret ComputerSystemReset
|
||||
return ret
|
||||
}
|
||||
return *o.ComputerSystemReset
|
||||
}
|
||||
|
||||
// GetComputerSystemResetOk returns a tuple with the ComputerSystemReset field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ComputerSystemActions) GetComputerSystemResetOk() (*ComputerSystemReset, bool) {
|
||||
if o == nil || o.ComputerSystemReset == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.ComputerSystemReset, true
|
||||
}
|
||||
|
||||
// HasComputerSystemReset returns a boolean if a field has been set.
|
||||
func (o *ComputerSystemActions) HasComputerSystemReset() bool {
|
||||
if o != nil && o.ComputerSystemReset != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetComputerSystemReset gets a reference to the given ComputerSystemReset and assigns it to the ComputerSystemReset field.
|
||||
func (o *ComputerSystemActions) SetComputerSystemReset(v ComputerSystemReset) {
|
||||
o.ComputerSystemReset = &v
|
||||
}
|
||||
|
||||
func (o ComputerSystemActions) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if o.ComputerSystemReset != nil {
|
||||
toSerialize["#ComputerSystem.Reset"] = o.ComputerSystemReset
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
type NullableComputerSystemActions struct {
|
||||
value *ComputerSystemActions
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableComputerSystemActions) Get() *ComputerSystemActions {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableComputerSystemActions) Set(val *ComputerSystemActions) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableComputerSystemActions) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableComputerSystemActions) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableComputerSystemActions(val *ComputerSystemActions) *NullableComputerSystemActions {
|
||||
return &NullableComputerSystemActions{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableComputerSystemActions) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableComputerSystemActions) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
|
@ -4,13 +4,149 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// ComputerSystemReset struct for ComputerSystemReset
|
||||
type ComputerSystemReset struct {
|
||||
// The unique identifier for a resource.
|
||||
Target string `json:"target,omitempty"`
|
||||
ResetTypeRedfishAllowableValues []ResetType `json:"ResetType@Redfish.AllowableValues,omitempty"`
|
||||
Target *string `json:"target,omitempty"`
|
||||
ResetTypeRedfishAllowableValues *[]ResetType `json:"ResetType@Redfish.AllowableValues,omitempty"`
|
||||
}
|
||||
|
||||
// NewComputerSystemReset instantiates a new ComputerSystemReset object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewComputerSystemReset() *ComputerSystemReset {
|
||||
this := ComputerSystemReset{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewComputerSystemResetWithDefaults instantiates a new ComputerSystemReset object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewComputerSystemResetWithDefaults() *ComputerSystemReset {
|
||||
this := ComputerSystemReset{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetTarget returns the Target field value if set, zero value otherwise.
|
||||
func (o *ComputerSystemReset) GetTarget() string {
|
||||
if o == nil || o.Target == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Target
|
||||
}
|
||||
|
||||
// GetTargetOk returns a tuple with the Target field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ComputerSystemReset) GetTargetOk() (*string, bool) {
|
||||
if o == nil || o.Target == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Target, true
|
||||
}
|
||||
|
||||
// HasTarget returns a boolean if a field has been set.
|
||||
func (o *ComputerSystemReset) HasTarget() bool {
|
||||
if o != nil && o.Target != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetTarget gets a reference to the given string and assigns it to the Target field.
|
||||
func (o *ComputerSystemReset) SetTarget(v string) {
|
||||
o.Target = &v
|
||||
}
|
||||
|
||||
// GetResetTypeRedfishAllowableValues returns the ResetTypeRedfishAllowableValues field value if set, zero value otherwise.
|
||||
func (o *ComputerSystemReset) GetResetTypeRedfishAllowableValues() []ResetType {
|
||||
if o == nil || o.ResetTypeRedfishAllowableValues == nil {
|
||||
var ret []ResetType
|
||||
return ret
|
||||
}
|
||||
return *o.ResetTypeRedfishAllowableValues
|
||||
}
|
||||
|
||||
// GetResetTypeRedfishAllowableValuesOk returns a tuple with the ResetTypeRedfishAllowableValues field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ComputerSystemReset) GetResetTypeRedfishAllowableValuesOk() (*[]ResetType, bool) {
|
||||
if o == nil || o.ResetTypeRedfishAllowableValues == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.ResetTypeRedfishAllowableValues, true
|
||||
}
|
||||
|
||||
// HasResetTypeRedfishAllowableValues returns a boolean if a field has been set.
|
||||
func (o *ComputerSystemReset) HasResetTypeRedfishAllowableValues() bool {
|
||||
if o != nil && o.ResetTypeRedfishAllowableValues != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetResetTypeRedfishAllowableValues gets a reference to the given []ResetType and assigns it to the ResetTypeRedfishAllowableValues field.
|
||||
func (o *ComputerSystemReset) SetResetTypeRedfishAllowableValues(v []ResetType) {
|
||||
o.ResetTypeRedfishAllowableValues = &v
|
||||
}
|
||||
|
||||
func (o ComputerSystemReset) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if o.Target != nil {
|
||||
toSerialize["target"] = o.Target
|
||||
}
|
||||
if o.ResetTypeRedfishAllowableValues != nil {
|
||||
toSerialize["ResetType@Redfish.AllowableValues"] = o.ResetTypeRedfishAllowableValues
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
type NullableComputerSystemReset struct {
|
||||
value *ComputerSystemReset
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableComputerSystemReset) Get() *ComputerSystemReset {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableComputerSystemReset) Set(val *ComputerSystemReset) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableComputerSystemReset) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableComputerSystemReset) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableComputerSystemReset(val *ComputerSystemReset) *NullableComputerSystemReset {
|
||||
return &NullableComputerSystemReset{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableComputerSystemReset) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableComputerSystemReset) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
|
@ -4,10 +4,17 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// ConnectedVia the model 'ConnectedVia'
|
||||
type ConnectedVia string
|
||||
|
||||
@ -18,3 +25,62 @@ const (
|
||||
CONNECTEDVIA_APPLET ConnectedVia = "Applet"
|
||||
CONNECTEDVIA_OEM ConnectedVia = "Oem"
|
||||
)
|
||||
|
||||
func (v *ConnectedVia) UnmarshalJSON(src []byte) error {
|
||||
var value string
|
||||
err := json.Unmarshal(src, &value)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
enumTypeValue := ConnectedVia(value)
|
||||
for _, existing := range []ConnectedVia{ "NotConnected", "URI", "Applet", "Oem", } {
|
||||
if existing == enumTypeValue {
|
||||
*v = enumTypeValue
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
return fmt.Errorf("%+v is not a valid ConnectedVia", value)
|
||||
}
|
||||
|
||||
// Ptr returns reference to ConnectedVia value
|
||||
func (v ConnectedVia) Ptr() *ConnectedVia {
|
||||
return &v
|
||||
}
|
||||
|
||||
type NullableConnectedVia struct {
|
||||
value *ConnectedVia
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableConnectedVia) Get() *ConnectedVia {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableConnectedVia) Set(val *ConnectedVia) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableConnectedVia) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableConnectedVia) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableConnectedVia(val *ConnectedVia) *NullableConnectedVia {
|
||||
return &NullableConnectedVia{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableConnectedVia) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableConnectedVia) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
@ -4,13 +4,163 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// CreateVirtualDiskRequestBody struct for CreateVirtualDiskRequestBody
|
||||
type CreateVirtualDiskRequestBody struct {
|
||||
VolumeType VolumeType `json:"VolumeType"`
|
||||
Name string `json:"Name"`
|
||||
Drives []IdRef `json:"Drives"`
|
||||
}
|
||||
|
||||
// NewCreateVirtualDiskRequestBody instantiates a new CreateVirtualDiskRequestBody object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewCreateVirtualDiskRequestBody(volumeType VolumeType, name string, drives []IdRef) *CreateVirtualDiskRequestBody {
|
||||
this := CreateVirtualDiskRequestBody{}
|
||||
this.VolumeType = volumeType
|
||||
this.Name = name
|
||||
this.Drives = drives
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewCreateVirtualDiskRequestBodyWithDefaults instantiates a new CreateVirtualDiskRequestBody object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewCreateVirtualDiskRequestBodyWithDefaults() *CreateVirtualDiskRequestBody {
|
||||
this := CreateVirtualDiskRequestBody{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetVolumeType returns the VolumeType field value
|
||||
func (o *CreateVirtualDiskRequestBody) GetVolumeType() VolumeType {
|
||||
if o == nil {
|
||||
var ret VolumeType
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.VolumeType
|
||||
}
|
||||
|
||||
// GetVolumeTypeOk returns a tuple with the VolumeType field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *CreateVirtualDiskRequestBody) GetVolumeTypeOk() (*VolumeType, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.VolumeType, true
|
||||
}
|
||||
|
||||
// SetVolumeType sets field value
|
||||
func (o *CreateVirtualDiskRequestBody) SetVolumeType(v VolumeType) {
|
||||
o.VolumeType = v
|
||||
}
|
||||
|
||||
// GetName returns the Name field value
|
||||
func (o *CreateVirtualDiskRequestBody) GetName() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.Name
|
||||
}
|
||||
|
||||
// GetNameOk returns a tuple with the Name field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *CreateVirtualDiskRequestBody) GetNameOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Name, true
|
||||
}
|
||||
|
||||
// SetName sets field value
|
||||
func (o *CreateVirtualDiskRequestBody) SetName(v string) {
|
||||
o.Name = v
|
||||
}
|
||||
|
||||
// GetDrives returns the Drives field value
|
||||
func (o *CreateVirtualDiskRequestBody) GetDrives() []IdRef {
|
||||
if o == nil {
|
||||
var ret []IdRef
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.Drives
|
||||
}
|
||||
|
||||
// GetDrivesOk returns a tuple with the Drives field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *CreateVirtualDiskRequestBody) GetDrivesOk() (*[]IdRef, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Drives, true
|
||||
}
|
||||
|
||||
// SetDrives sets field value
|
||||
func (o *CreateVirtualDiskRequestBody) SetDrives(v []IdRef) {
|
||||
o.Drives = v
|
||||
}
|
||||
|
||||
func (o CreateVirtualDiskRequestBody) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if true {
|
||||
toSerialize["VolumeType"] = o.VolumeType
|
||||
}
|
||||
if true {
|
||||
toSerialize["Name"] = o.Name
|
||||
}
|
||||
if true {
|
||||
toSerialize["Drives"] = o.Drives
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
type NullableCreateVirtualDiskRequestBody struct {
|
||||
value *CreateVirtualDiskRequestBody
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableCreateVirtualDiskRequestBody) Get() *CreateVirtualDiskRequestBody {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableCreateVirtualDiskRequestBody) Set(val *CreateVirtualDiskRequestBody) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableCreateVirtualDiskRequestBody) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableCreateVirtualDiskRequestBody) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableCreateVirtualDiskRequestBody(val *CreateVirtualDiskRequestBody) *NullableCreateVirtualDiskRequestBody {
|
||||
return &NullableCreateVirtualDiskRequestBody{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableCreateVirtualDiskRequestBody) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableCreateVirtualDiskRequestBody) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
|
@ -4,12 +4,113 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// FirmwareInventory struct for FirmwareInventory
|
||||
type FirmwareInventory struct {
|
||||
// The unique identifier for a resource.
|
||||
OdataId string `json:"@odata.id,omitempty"`
|
||||
OdataId *string `json:"@odata.id,omitempty"`
|
||||
}
|
||||
|
||||
// NewFirmwareInventory instantiates a new FirmwareInventory object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewFirmwareInventory() *FirmwareInventory {
|
||||
this := FirmwareInventory{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewFirmwareInventoryWithDefaults instantiates a new FirmwareInventory object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewFirmwareInventoryWithDefaults() *FirmwareInventory {
|
||||
this := FirmwareInventory{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetOdataId returns the OdataId field value if set, zero value otherwise.
|
||||
func (o *FirmwareInventory) GetOdataId() string {
|
||||
if o == nil || o.OdataId == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.OdataId
|
||||
}
|
||||
|
||||
// GetOdataIdOk returns a tuple with the OdataId field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *FirmwareInventory) GetOdataIdOk() (*string, bool) {
|
||||
if o == nil || o.OdataId == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.OdataId, true
|
||||
}
|
||||
|
||||
// HasOdataId returns a boolean if a field has been set.
|
||||
func (o *FirmwareInventory) HasOdataId() bool {
|
||||
if o != nil && o.OdataId != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetOdataId gets a reference to the given string and assigns it to the OdataId field.
|
||||
func (o *FirmwareInventory) SetOdataId(v string) {
|
||||
o.OdataId = &v
|
||||
}
|
||||
|
||||
func (o FirmwareInventory) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if o.OdataId != nil {
|
||||
toSerialize["@odata.id"] = o.OdataId
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
type NullableFirmwareInventory struct {
|
||||
value *FirmwareInventory
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableFirmwareInventory) Get() *FirmwareInventory {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableFirmwareInventory) Set(val *FirmwareInventory) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableFirmwareInventory) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableFirmwareInventory) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableFirmwareInventory(val *FirmwareInventory) *NullableFirmwareInventory {
|
||||
return &NullableFirmwareInventory{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableFirmwareInventory) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableFirmwareInventory) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
|
@ -4,10 +4,17 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// Health the model 'Health'
|
||||
type Health string
|
||||
|
||||
@ -17,3 +24,62 @@ const (
|
||||
HEALTH_WARNING Health = "Warning"
|
||||
HEALTH_CRITICAL Health = "Critical"
|
||||
)
|
||||
|
||||
func (v *Health) UnmarshalJSON(src []byte) error {
|
||||
var value string
|
||||
err := json.Unmarshal(src, &value)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
enumTypeValue := Health(value)
|
||||
for _, existing := range []Health{ "OK", "Warning", "Critical", } {
|
||||
if existing == enumTypeValue {
|
||||
*v = enumTypeValue
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
return fmt.Errorf("%+v is not a valid Health", value)
|
||||
}
|
||||
|
||||
// Ptr returns reference to Health value
|
||||
func (v Health) Ptr() *Health {
|
||||
return &v
|
||||
}
|
||||
|
||||
type NullableHealth struct {
|
||||
value *Health
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableHealth) Get() *Health {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableHealth) Set(val *Health) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableHealth) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableHealth) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableHealth(val *Health) *NullableHealth {
|
||||
return &NullableHealth{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableHealth) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableHealth) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
@ -4,12 +4,113 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// IdRef A reference to a resource.
|
||||
type IdRef struct {
|
||||
// The unique identifier for a resource.
|
||||
OdataId string `json:"@odata.id,omitempty"`
|
||||
OdataId *string `json:"@odata.id,omitempty"`
|
||||
}
|
||||
|
||||
// NewIdRef instantiates a new IdRef object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewIdRef() *IdRef {
|
||||
this := IdRef{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewIdRefWithDefaults instantiates a new IdRef object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewIdRefWithDefaults() *IdRef {
|
||||
this := IdRef{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetOdataId returns the OdataId field value if set, zero value otherwise.
|
||||
func (o *IdRef) GetOdataId() string {
|
||||
if o == nil || o.OdataId == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.OdataId
|
||||
}
|
||||
|
||||
// GetOdataIdOk returns a tuple with the OdataId field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *IdRef) GetOdataIdOk() (*string, bool) {
|
||||
if o == nil || o.OdataId == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.OdataId, true
|
||||
}
|
||||
|
||||
// HasOdataId returns a boolean if a field has been set.
|
||||
func (o *IdRef) HasOdataId() bool {
|
||||
if o != nil && o.OdataId != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetOdataId gets a reference to the given string and assigns it to the OdataId field.
|
||||
func (o *IdRef) SetOdataId(v string) {
|
||||
o.OdataId = &v
|
||||
}
|
||||
|
||||
func (o IdRef) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if o.OdataId != nil {
|
||||
toSerialize["@odata.id"] = o.OdataId
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
type NullableIdRef struct {
|
||||
value *IdRef
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableIdRef) Get() *IdRef {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableIdRef) Set(val *IdRef) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableIdRef) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableIdRef) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableIdRef(val *IdRef) *NullableIdRef {
|
||||
return &NullableIdRef{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableIdRef) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableIdRef) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
|
@ -4,17 +4,83 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
// IndicatorLed the model 'IndicatorLed'
|
||||
type IndicatorLed string
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// IndicatorLED the model 'IndicatorLED'
|
||||
type IndicatorLED string
|
||||
|
||||
// List of IndicatorLED
|
||||
const (
|
||||
INDICATORLED_UNKNOWN IndicatorLed = "Unknown"
|
||||
INDICATORLED_LIT IndicatorLed = "Lit"
|
||||
INDICATORLED_BLINKING IndicatorLed = "Blinking"
|
||||
INDICATORLED_OFF IndicatorLed = "Off"
|
||||
INDICATORLED_UNKNOWN IndicatorLED = "Unknown"
|
||||
INDICATORLED_LIT IndicatorLED = "Lit"
|
||||
INDICATORLED_BLINKING IndicatorLED = "Blinking"
|
||||
INDICATORLED_OFF IndicatorLED = "Off"
|
||||
)
|
||||
|
||||
func (v *IndicatorLED) UnmarshalJSON(src []byte) error {
|
||||
var value string
|
||||
err := json.Unmarshal(src, &value)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
enumTypeValue := IndicatorLED(value)
|
||||
for _, existing := range []IndicatorLED{ "Unknown", "Lit", "Blinking", "Off", } {
|
||||
if existing == enumTypeValue {
|
||||
*v = enumTypeValue
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
return fmt.Errorf("%+v is not a valid IndicatorLED", value)
|
||||
}
|
||||
|
||||
// Ptr returns reference to IndicatorLED value
|
||||
func (v IndicatorLED) Ptr() *IndicatorLED {
|
||||
return &v
|
||||
}
|
||||
|
||||
type NullableIndicatorLED struct {
|
||||
value *IndicatorLED
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableIndicatorLED) Get() *IndicatorLED {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableIndicatorLED) Set(val *IndicatorLED) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableIndicatorLED) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableIndicatorLED) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableIndicatorLED(val *IndicatorLED) *NullableIndicatorLED {
|
||||
return &NullableIndicatorLED{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableIndicatorLED) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableIndicatorLED) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
@ -4,14 +4,113 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"os"
|
||||
)
|
||||
|
||||
// InlineObject struct for InlineObject
|
||||
type InlineObject struct {
|
||||
SoftwareImage *os.File `json:"softwareImage,omitempty"`
|
||||
SoftwareImage **os.File `json:"softwareImage,omitempty"`
|
||||
}
|
||||
|
||||
// NewInlineObject instantiates a new InlineObject object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewInlineObject() *InlineObject {
|
||||
this := InlineObject{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewInlineObjectWithDefaults instantiates a new InlineObject object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewInlineObjectWithDefaults() *InlineObject {
|
||||
this := InlineObject{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetSoftwareImage returns the SoftwareImage field value if set, zero value otherwise.
|
||||
func (o *InlineObject) GetSoftwareImage() *os.File {
|
||||
if o == nil || o.SoftwareImage == nil {
|
||||
var ret *os.File
|
||||
return ret
|
||||
}
|
||||
return *o.SoftwareImage
|
||||
}
|
||||
|
||||
// GetSoftwareImageOk returns a tuple with the SoftwareImage field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *InlineObject) GetSoftwareImageOk() (**os.File, bool) {
|
||||
if o == nil || o.SoftwareImage == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.SoftwareImage, true
|
||||
}
|
||||
|
||||
// HasSoftwareImage returns a boolean if a field has been set.
|
||||
func (o *InlineObject) HasSoftwareImage() bool {
|
||||
if o != nil && o.SoftwareImage != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetSoftwareImage gets a reference to the given *os.File and assigns it to the SoftwareImage field.
|
||||
func (o *InlineObject) SetSoftwareImage(v *os.File) {
|
||||
o.SoftwareImage = &v
|
||||
}
|
||||
|
||||
func (o InlineObject) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if o.SoftwareImage != nil {
|
||||
toSerialize["softwareImage"] = o.SoftwareImage
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
type NullableInlineObject struct {
|
||||
value *InlineObject
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableInlineObject) Get() *InlineObject {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableInlineObject) Set(val *InlineObject) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableInlineObject) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableInlineObject) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableInlineObject(val *InlineObject) *NullableInlineObject {
|
||||
return &NullableInlineObject{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableInlineObject) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableInlineObject) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
|
@ -4,17 +4,321 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// InsertMediaRequestBody struct for InsertMediaRequestBody
|
||||
type InsertMediaRequestBody struct {
|
||||
Image string `json:"Image"`
|
||||
Inserted bool `json:"Inserted,omitempty"`
|
||||
Password string `json:"Password,omitempty"`
|
||||
TransferMethod TransferMethod `json:"TransferMethod,omitempty"`
|
||||
TransferProtocolType TransferProtocolType `json:"TransferProtocolType,omitempty"`
|
||||
UserName string `json:"UserName,omitempty"`
|
||||
WriteProtected bool `json:"WriteProtected,omitempty"`
|
||||
Inserted *bool `json:"Inserted,omitempty"`
|
||||
Password *string `json:"Password,omitempty"`
|
||||
TransferMethod *TransferMethod `json:"TransferMethod,omitempty"`
|
||||
TransferProtocolType *TransferProtocolType `json:"TransferProtocolType,omitempty"`
|
||||
UserName *string `json:"UserName,omitempty"`
|
||||
WriteProtected *bool `json:"WriteProtected,omitempty"`
|
||||
}
|
||||
|
||||
// NewInsertMediaRequestBody instantiates a new InsertMediaRequestBody object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewInsertMediaRequestBody(image string) *InsertMediaRequestBody {
|
||||
this := InsertMediaRequestBody{}
|
||||
this.Image = image
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewInsertMediaRequestBodyWithDefaults instantiates a new InsertMediaRequestBody object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewInsertMediaRequestBodyWithDefaults() *InsertMediaRequestBody {
|
||||
this := InsertMediaRequestBody{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetImage returns the Image field value
|
||||
func (o *InsertMediaRequestBody) GetImage() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.Image
|
||||
}
|
||||
|
||||
// GetImageOk returns a tuple with the Image field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *InsertMediaRequestBody) GetImageOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Image, true
|
||||
}
|
||||
|
||||
// SetImage sets field value
|
||||
func (o *InsertMediaRequestBody) SetImage(v string) {
|
||||
o.Image = v
|
||||
}
|
||||
|
||||
// GetInserted returns the Inserted field value if set, zero value otherwise.
|
||||
func (o *InsertMediaRequestBody) GetInserted() bool {
|
||||
if o == nil || o.Inserted == nil {
|
||||
var ret bool
|
||||
return ret
|
||||
}
|
||||
return *o.Inserted
|
||||
}
|
||||
|
||||
// GetInsertedOk returns a tuple with the Inserted field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *InsertMediaRequestBody) GetInsertedOk() (*bool, bool) {
|
||||
if o == nil || o.Inserted == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Inserted, true
|
||||
}
|
||||
|
||||
// HasInserted returns a boolean if a field has been set.
|
||||
func (o *InsertMediaRequestBody) HasInserted() bool {
|
||||
if o != nil && o.Inserted != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetInserted gets a reference to the given bool and assigns it to the Inserted field.
|
||||
func (o *InsertMediaRequestBody) SetInserted(v bool) {
|
||||
o.Inserted = &v
|
||||
}
|
||||
|
||||
// GetPassword returns the Password field value if set, zero value otherwise.
|
||||
func (o *InsertMediaRequestBody) GetPassword() string {
|
||||
if o == nil || o.Password == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Password
|
||||
}
|
||||
|
||||
// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *InsertMediaRequestBody) GetPasswordOk() (*string, bool) {
|
||||
if o == nil || o.Password == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Password, true
|
||||
}
|
||||
|
||||
// HasPassword returns a boolean if a field has been set.
|
||||
func (o *InsertMediaRequestBody) HasPassword() bool {
|
||||
if o != nil && o.Password != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetPassword gets a reference to the given string and assigns it to the Password field.
|
||||
func (o *InsertMediaRequestBody) SetPassword(v string) {
|
||||
o.Password = &v
|
||||
}
|
||||
|
||||
// GetTransferMethod returns the TransferMethod field value if set, zero value otherwise.
|
||||
func (o *InsertMediaRequestBody) GetTransferMethod() TransferMethod {
|
||||
if o == nil || o.TransferMethod == nil {
|
||||
var ret TransferMethod
|
||||
return ret
|
||||
}
|
||||
return *o.TransferMethod
|
||||
}
|
||||
|
||||
// GetTransferMethodOk returns a tuple with the TransferMethod field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *InsertMediaRequestBody) GetTransferMethodOk() (*TransferMethod, bool) {
|
||||
if o == nil || o.TransferMethod == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.TransferMethod, true
|
||||
}
|
||||
|
||||
// HasTransferMethod returns a boolean if a field has been set.
|
||||
func (o *InsertMediaRequestBody) HasTransferMethod() bool {
|
||||
if o != nil && o.TransferMethod != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetTransferMethod gets a reference to the given TransferMethod and assigns it to the TransferMethod field.
|
||||
func (o *InsertMediaRequestBody) SetTransferMethod(v TransferMethod) {
|
||||
o.TransferMethod = &v
|
||||
}
|
||||
|
||||
// GetTransferProtocolType returns the TransferProtocolType field value if set, zero value otherwise.
|
||||
func (o *InsertMediaRequestBody) GetTransferProtocolType() TransferProtocolType {
|
||||
if o == nil || o.TransferProtocolType == nil {
|
||||
var ret TransferProtocolType
|
||||
return ret
|
||||
}
|
||||
return *o.TransferProtocolType
|
||||
}
|
||||
|
||||
// GetTransferProtocolTypeOk returns a tuple with the TransferProtocolType field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *InsertMediaRequestBody) GetTransferProtocolTypeOk() (*TransferProtocolType, bool) {
|
||||
if o == nil || o.TransferProtocolType == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.TransferProtocolType, true
|
||||
}
|
||||
|
||||
// HasTransferProtocolType returns a boolean if a field has been set.
|
||||
func (o *InsertMediaRequestBody) HasTransferProtocolType() bool {
|
||||
if o != nil && o.TransferProtocolType != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetTransferProtocolType gets a reference to the given TransferProtocolType and assigns it to the TransferProtocolType field.
|
||||
func (o *InsertMediaRequestBody) SetTransferProtocolType(v TransferProtocolType) {
|
||||
o.TransferProtocolType = &v
|
||||
}
|
||||
|
||||
// GetUserName returns the UserName field value if set, zero value otherwise.
|
||||
func (o *InsertMediaRequestBody) GetUserName() string {
|
||||
if o == nil || o.UserName == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.UserName
|
||||
}
|
||||
|
||||
// GetUserNameOk returns a tuple with the UserName field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *InsertMediaRequestBody) GetUserNameOk() (*string, bool) {
|
||||
if o == nil || o.UserName == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.UserName, true
|
||||
}
|
||||
|
||||
// HasUserName returns a boolean if a field has been set.
|
||||
func (o *InsertMediaRequestBody) HasUserName() bool {
|
||||
if o != nil && o.UserName != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetUserName gets a reference to the given string and assigns it to the UserName field.
|
||||
func (o *InsertMediaRequestBody) SetUserName(v string) {
|
||||
o.UserName = &v
|
||||
}
|
||||
|
||||
// GetWriteProtected returns the WriteProtected field value if set, zero value otherwise.
|
||||
func (o *InsertMediaRequestBody) GetWriteProtected() bool {
|
||||
if o == nil || o.WriteProtected == nil {
|
||||
var ret bool
|
||||
return ret
|
||||
}
|
||||
return *o.WriteProtected
|
||||
}
|
||||
|
||||
// GetWriteProtectedOk returns a tuple with the WriteProtected field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *InsertMediaRequestBody) GetWriteProtectedOk() (*bool, bool) {
|
||||
if o == nil || o.WriteProtected == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.WriteProtected, true
|
||||
}
|
||||
|
||||
// HasWriteProtected returns a boolean if a field has been set.
|
||||
func (o *InsertMediaRequestBody) HasWriteProtected() bool {
|
||||
if o != nil && o.WriteProtected != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetWriteProtected gets a reference to the given bool and assigns it to the WriteProtected field.
|
||||
func (o *InsertMediaRequestBody) SetWriteProtected(v bool) {
|
||||
o.WriteProtected = &v
|
||||
}
|
||||
|
||||
func (o InsertMediaRequestBody) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if true {
|
||||
toSerialize["Image"] = o.Image
|
||||
}
|
||||
if o.Inserted != nil {
|
||||
toSerialize["Inserted"] = o.Inserted
|
||||
}
|
||||
if o.Password != nil {
|
||||
toSerialize["Password"] = o.Password
|
||||
}
|
||||
if o.TransferMethod != nil {
|
||||
toSerialize["TransferMethod"] = o.TransferMethod
|
||||
}
|
||||
if o.TransferProtocolType != nil {
|
||||
toSerialize["TransferProtocolType"] = o.TransferProtocolType
|
||||
}
|
||||
if o.UserName != nil {
|
||||
toSerialize["UserName"] = o.UserName
|
||||
}
|
||||
if o.WriteProtected != nil {
|
||||
toSerialize["WriteProtected"] = o.WriteProtected
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
type NullableInsertMediaRequestBody struct {
|
||||
value *InsertMediaRequestBody
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableInsertMediaRequestBody) Get() *InsertMediaRequestBody {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableInsertMediaRequestBody) Set(val *InsertMediaRequestBody) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableInsertMediaRequestBody) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableInsertMediaRequestBody) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableInsertMediaRequestBody(val *InsertMediaRequestBody) *NullableInsertMediaRequestBody {
|
||||
return &NullableInsertMediaRequestBody{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableInsertMediaRequestBody) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableInsertMediaRequestBody) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
|
@ -4,37 +4,797 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// Manager Redfish manager resource.
|
||||
type Manager struct {
|
||||
// The name of the resource.
|
||||
Id string `json:"Id,omitempty"`
|
||||
Id *string `json:"Id,omitempty"`
|
||||
// The name of the resource.
|
||||
Name string `json:"Name"`
|
||||
UUID string `json:"UUID,omitempty"`
|
||||
ServiceEntryPointUUID string `json:"ServiceEntryPointUUID,omitempty"`
|
||||
UUID *string `json:"UUID,omitempty"`
|
||||
ServiceEntryPointUUID *string `json:"ServiceEntryPointUUID,omitempty"`
|
||||
// The type of a resource.
|
||||
OdataType string `json:"@odata.type"`
|
||||
// The unique identifier for a resource.
|
||||
OdataId string `json:"@odata.id"`
|
||||
// The OData description of a payload.
|
||||
OdataContext string `json:"@odata.context,omitempty"`
|
||||
OdataContext *string `json:"@odata.context,omitempty"`
|
||||
// redfish copyright
|
||||
RedfishCopyright string `json:"@Redfish.Copyright,omitempty"`
|
||||
Model *string `json:"Model,omitempty"`
|
||||
ManagerType ManagerType `json:"ManagerType,omitempty"`
|
||||
Status Status `json:"Status,omitempty"`
|
||||
DateTime *string `json:"DateTime,omitempty"`
|
||||
RedfishCopyright *string `json:"@Redfish.Copyright,omitempty"`
|
||||
Model NullableString `json:"Model,omitempty"`
|
||||
ManagerType *ManagerType `json:"ManagerType,omitempty"`
|
||||
Status *Status `json:"Status,omitempty"`
|
||||
DateTime NullableString `json:"DateTime,omitempty"`
|
||||
// The time offset from UTC that the DateTime property is set to in format: +06:00 .
|
||||
DateTimeLocalOffset *string `json:"DateTimeLocalOffset,omitempty"`
|
||||
DateTimeLocalOffset NullableString `json:"DateTimeLocalOffset,omitempty"`
|
||||
// description
|
||||
Description *string `json:"Description,omitempty"`
|
||||
EthernetInterfaces IdRef `json:"EthernetInterfaces,omitempty"`
|
||||
FirmwareVersion *string `json:"FirmwareVersion,omitempty"`
|
||||
Links ManagerLinks `json:"Links,omitempty"`
|
||||
PowerState PowerState `json:"PowerState,omitempty"`
|
||||
VirtualMedia IdRef `json:"VirtualMedia,omitempty"`
|
||||
Description NullableString `json:"Description,omitempty"`
|
||||
EthernetInterfaces *IdRef `json:"EthernetInterfaces,omitempty"`
|
||||
FirmwareVersion NullableString `json:"FirmwareVersion,omitempty"`
|
||||
Links *ManagerLinks `json:"Links,omitempty"`
|
||||
PowerState *PowerState `json:"PowerState,omitempty"`
|
||||
VirtualMedia *IdRef `json:"VirtualMedia,omitempty"`
|
||||
}
|
||||
|
||||
// NewManager instantiates a new Manager object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewManager(name string, odataType string, odataId string) *Manager {
|
||||
this := Manager{}
|
||||
this.Name = name
|
||||
this.OdataType = odataType
|
||||
this.OdataId = odataId
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewManagerWithDefaults instantiates a new Manager object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewManagerWithDefaults() *Manager {
|
||||
this := Manager{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetId returns the Id field value if set, zero value otherwise.
|
||||
func (o *Manager) GetId() string {
|
||||
if o == nil || o.Id == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Id
|
||||
}
|
||||
|
||||
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Manager) GetIdOk() (*string, bool) {
|
||||
if o == nil || o.Id == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Id, true
|
||||
}
|
||||
|
||||
// HasId returns a boolean if a field has been set.
|
||||
func (o *Manager) HasId() bool {
|
||||
if o != nil && o.Id != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetId gets a reference to the given string and assigns it to the Id field.
|
||||
func (o *Manager) SetId(v string) {
|
||||
o.Id = &v
|
||||
}
|
||||
|
||||
// GetName returns the Name field value
|
||||
func (o *Manager) GetName() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.Name
|
||||
}
|
||||
|
||||
// GetNameOk returns a tuple with the Name field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Manager) GetNameOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Name, true
|
||||
}
|
||||
|
||||
// SetName sets field value
|
||||
func (o *Manager) SetName(v string) {
|
||||
o.Name = v
|
||||
}
|
||||
|
||||
// GetUUID returns the UUID field value if set, zero value otherwise.
|
||||
func (o *Manager) GetUUID() string {
|
||||
if o == nil || o.UUID == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.UUID
|
||||
}
|
||||
|
||||
// GetUUIDOk returns a tuple with the UUID field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Manager) GetUUIDOk() (*string, bool) {
|
||||
if o == nil || o.UUID == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.UUID, true
|
||||
}
|
||||
|
||||
// HasUUID returns a boolean if a field has been set.
|
||||
func (o *Manager) HasUUID() bool {
|
||||
if o != nil && o.UUID != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetUUID gets a reference to the given string and assigns it to the UUID field.
|
||||
func (o *Manager) SetUUID(v string) {
|
||||
o.UUID = &v
|
||||
}
|
||||
|
||||
// GetServiceEntryPointUUID returns the ServiceEntryPointUUID field value if set, zero value otherwise.
|
||||
func (o *Manager) GetServiceEntryPointUUID() string {
|
||||
if o == nil || o.ServiceEntryPointUUID == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.ServiceEntryPointUUID
|
||||
}
|
||||
|
||||
// GetServiceEntryPointUUIDOk returns a tuple with the ServiceEntryPointUUID field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Manager) GetServiceEntryPointUUIDOk() (*string, bool) {
|
||||
if o == nil || o.ServiceEntryPointUUID == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.ServiceEntryPointUUID, true
|
||||
}
|
||||
|
||||
// HasServiceEntryPointUUID returns a boolean if a field has been set.
|
||||
func (o *Manager) HasServiceEntryPointUUID() bool {
|
||||
if o != nil && o.ServiceEntryPointUUID != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetServiceEntryPointUUID gets a reference to the given string and assigns it to the ServiceEntryPointUUID field.
|
||||
func (o *Manager) SetServiceEntryPointUUID(v string) {
|
||||
o.ServiceEntryPointUUID = &v
|
||||
}
|
||||
|
||||
// GetOdataType returns the OdataType field value
|
||||
func (o *Manager) GetOdataType() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.OdataType
|
||||
}
|
||||
|
||||
// GetOdataTypeOk returns a tuple with the OdataType field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Manager) GetOdataTypeOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.OdataType, true
|
||||
}
|
||||
|
||||
// SetOdataType sets field value
|
||||
func (o *Manager) SetOdataType(v string) {
|
||||
o.OdataType = v
|
||||
}
|
||||
|
||||
// GetOdataId returns the OdataId field value
|
||||
func (o *Manager) GetOdataId() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.OdataId
|
||||
}
|
||||
|
||||
// GetOdataIdOk returns a tuple with the OdataId field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Manager) GetOdataIdOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.OdataId, true
|
||||
}
|
||||
|
||||
// SetOdataId sets field value
|
||||
func (o *Manager) SetOdataId(v string) {
|
||||
o.OdataId = v
|
||||
}
|
||||
|
||||
// GetOdataContext returns the OdataContext field value if set, zero value otherwise.
|
||||
func (o *Manager) GetOdataContext() string {
|
||||
if o == nil || o.OdataContext == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.OdataContext
|
||||
}
|
||||
|
||||
// GetOdataContextOk returns a tuple with the OdataContext field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Manager) GetOdataContextOk() (*string, bool) {
|
||||
if o == nil || o.OdataContext == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.OdataContext, true
|
||||
}
|
||||
|
||||
// HasOdataContext returns a boolean if a field has been set.
|
||||
func (o *Manager) HasOdataContext() bool {
|
||||
if o != nil && o.OdataContext != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetOdataContext gets a reference to the given string and assigns it to the OdataContext field.
|
||||
func (o *Manager) SetOdataContext(v string) {
|
||||
o.OdataContext = &v
|
||||
}
|
||||
|
||||
// GetRedfishCopyright returns the RedfishCopyright field value if set, zero value otherwise.
|
||||
func (o *Manager) GetRedfishCopyright() string {
|
||||
if o == nil || o.RedfishCopyright == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.RedfishCopyright
|
||||
}
|
||||
|
||||
// GetRedfishCopyrightOk returns a tuple with the RedfishCopyright field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Manager) GetRedfishCopyrightOk() (*string, bool) {
|
||||
if o == nil || o.RedfishCopyright == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.RedfishCopyright, true
|
||||
}
|
||||
|
||||
// HasRedfishCopyright returns a boolean if a field has been set.
|
||||
func (o *Manager) HasRedfishCopyright() bool {
|
||||
if o != nil && o.RedfishCopyright != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetRedfishCopyright gets a reference to the given string and assigns it to the RedfishCopyright field.
|
||||
func (o *Manager) SetRedfishCopyright(v string) {
|
||||
o.RedfishCopyright = &v
|
||||
}
|
||||
|
||||
// GetModel returns the Model field value if set, zero value otherwise (both if not set or set to explicit null).
|
||||
func (o *Manager) GetModel() string {
|
||||
if o == nil || o.Model.Get() == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Model.Get()
|
||||
}
|
||||
|
||||
// GetModelOk returns a tuple with the Model field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
||||
func (o *Manager) GetModelOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Model.Get(), o.Model.IsSet()
|
||||
}
|
||||
|
||||
// HasModel returns a boolean if a field has been set.
|
||||
func (o *Manager) HasModel() bool {
|
||||
if o != nil && o.Model.IsSet() {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetModel gets a reference to the given NullableString and assigns it to the Model field.
|
||||
func (o *Manager) SetModel(v string) {
|
||||
o.Model.Set(&v)
|
||||
}
|
||||
// SetModelNil sets the value for Model to be an explicit nil
|
||||
func (o *Manager) SetModelNil() {
|
||||
o.Model.Set(nil)
|
||||
}
|
||||
|
||||
// UnsetModel ensures that no value is present for Model, not even an explicit nil
|
||||
func (o *Manager) UnsetModel() {
|
||||
o.Model.Unset()
|
||||
}
|
||||
|
||||
// GetManagerType returns the ManagerType field value if set, zero value otherwise.
|
||||
func (o *Manager) GetManagerType() ManagerType {
|
||||
if o == nil || o.ManagerType == nil {
|
||||
var ret ManagerType
|
||||
return ret
|
||||
}
|
||||
return *o.ManagerType
|
||||
}
|
||||
|
||||
// GetManagerTypeOk returns a tuple with the ManagerType field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Manager) GetManagerTypeOk() (*ManagerType, bool) {
|
||||
if o == nil || o.ManagerType == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.ManagerType, true
|
||||
}
|
||||
|
||||
// HasManagerType returns a boolean if a field has been set.
|
||||
func (o *Manager) HasManagerType() bool {
|
||||
if o != nil && o.ManagerType != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetManagerType gets a reference to the given ManagerType and assigns it to the ManagerType field.
|
||||
func (o *Manager) SetManagerType(v ManagerType) {
|
||||
o.ManagerType = &v
|
||||
}
|
||||
|
||||
// GetStatus returns the Status field value if set, zero value otherwise.
|
||||
func (o *Manager) GetStatus() Status {
|
||||
if o == nil || o.Status == nil {
|
||||
var ret Status
|
||||
return ret
|
||||
}
|
||||
return *o.Status
|
||||
}
|
||||
|
||||
// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Manager) GetStatusOk() (*Status, bool) {
|
||||
if o == nil || o.Status == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Status, true
|
||||
}
|
||||
|
||||
// HasStatus returns a boolean if a field has been set.
|
||||
func (o *Manager) HasStatus() bool {
|
||||
if o != nil && o.Status != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetStatus gets a reference to the given Status and assigns it to the Status field.
|
||||
func (o *Manager) SetStatus(v Status) {
|
||||
o.Status = &v
|
||||
}
|
||||
|
||||
// GetDateTime returns the DateTime field value if set, zero value otherwise (both if not set or set to explicit null).
|
||||
func (o *Manager) GetDateTime() string {
|
||||
if o == nil || o.DateTime.Get() == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.DateTime.Get()
|
||||
}
|
||||
|
||||
// GetDateTimeOk returns a tuple with the DateTime field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
||||
func (o *Manager) GetDateTimeOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.DateTime.Get(), o.DateTime.IsSet()
|
||||
}
|
||||
|
||||
// HasDateTime returns a boolean if a field has been set.
|
||||
func (o *Manager) HasDateTime() bool {
|
||||
if o != nil && o.DateTime.IsSet() {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetDateTime gets a reference to the given NullableString and assigns it to the DateTime field.
|
||||
func (o *Manager) SetDateTime(v string) {
|
||||
o.DateTime.Set(&v)
|
||||
}
|
||||
// SetDateTimeNil sets the value for DateTime to be an explicit nil
|
||||
func (o *Manager) SetDateTimeNil() {
|
||||
o.DateTime.Set(nil)
|
||||
}
|
||||
|
||||
// UnsetDateTime ensures that no value is present for DateTime, not even an explicit nil
|
||||
func (o *Manager) UnsetDateTime() {
|
||||
o.DateTime.Unset()
|
||||
}
|
||||
|
||||
// GetDateTimeLocalOffset returns the DateTimeLocalOffset field value if set, zero value otherwise (both if not set or set to explicit null).
|
||||
func (o *Manager) GetDateTimeLocalOffset() string {
|
||||
if o == nil || o.DateTimeLocalOffset.Get() == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.DateTimeLocalOffset.Get()
|
||||
}
|
||||
|
||||
// GetDateTimeLocalOffsetOk returns a tuple with the DateTimeLocalOffset field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
||||
func (o *Manager) GetDateTimeLocalOffsetOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.DateTimeLocalOffset.Get(), o.DateTimeLocalOffset.IsSet()
|
||||
}
|
||||
|
||||
// HasDateTimeLocalOffset returns a boolean if a field has been set.
|
||||
func (o *Manager) HasDateTimeLocalOffset() bool {
|
||||
if o != nil && o.DateTimeLocalOffset.IsSet() {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetDateTimeLocalOffset gets a reference to the given NullableString and assigns it to the DateTimeLocalOffset field.
|
||||
func (o *Manager) SetDateTimeLocalOffset(v string) {
|
||||
o.DateTimeLocalOffset.Set(&v)
|
||||
}
|
||||
// SetDateTimeLocalOffsetNil sets the value for DateTimeLocalOffset to be an explicit nil
|
||||
func (o *Manager) SetDateTimeLocalOffsetNil() {
|
||||
o.DateTimeLocalOffset.Set(nil)
|
||||
}
|
||||
|
||||
// UnsetDateTimeLocalOffset ensures that no value is present for DateTimeLocalOffset, not even an explicit nil
|
||||
func (o *Manager) UnsetDateTimeLocalOffset() {
|
||||
o.DateTimeLocalOffset.Unset()
|
||||
}
|
||||
|
||||
// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null).
|
||||
func (o *Manager) GetDescription() string {
|
||||
if o == nil || o.Description.Get() == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Description.Get()
|
||||
}
|
||||
|
||||
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
||||
func (o *Manager) GetDescriptionOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Description.Get(), o.Description.IsSet()
|
||||
}
|
||||
|
||||
// HasDescription returns a boolean if a field has been set.
|
||||
func (o *Manager) HasDescription() bool {
|
||||
if o != nil && o.Description.IsSet() {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetDescription gets a reference to the given NullableString and assigns it to the Description field.
|
||||
func (o *Manager) SetDescription(v string) {
|
||||
o.Description.Set(&v)
|
||||
}
|
||||
// SetDescriptionNil sets the value for Description to be an explicit nil
|
||||
func (o *Manager) SetDescriptionNil() {
|
||||
o.Description.Set(nil)
|
||||
}
|
||||
|
||||
// UnsetDescription ensures that no value is present for Description, not even an explicit nil
|
||||
func (o *Manager) UnsetDescription() {
|
||||
o.Description.Unset()
|
||||
}
|
||||
|
||||
// GetEthernetInterfaces returns the EthernetInterfaces field value if set, zero value otherwise.
|
||||
func (o *Manager) GetEthernetInterfaces() IdRef {
|
||||
if o == nil || o.EthernetInterfaces == nil {
|
||||
var ret IdRef
|
||||
return ret
|
||||
}
|
||||
return *o.EthernetInterfaces
|
||||
}
|
||||
|
||||
// GetEthernetInterfacesOk returns a tuple with the EthernetInterfaces field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Manager) GetEthernetInterfacesOk() (*IdRef, bool) {
|
||||
if o == nil || o.EthernetInterfaces == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.EthernetInterfaces, true
|
||||
}
|
||||
|
||||
// HasEthernetInterfaces returns a boolean if a field has been set.
|
||||
func (o *Manager) HasEthernetInterfaces() bool {
|
||||
if o != nil && o.EthernetInterfaces != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetEthernetInterfaces gets a reference to the given IdRef and assigns it to the EthernetInterfaces field.
|
||||
func (o *Manager) SetEthernetInterfaces(v IdRef) {
|
||||
o.EthernetInterfaces = &v
|
||||
}
|
||||
|
||||
// GetFirmwareVersion returns the FirmwareVersion field value if set, zero value otherwise (both if not set or set to explicit null).
|
||||
func (o *Manager) GetFirmwareVersion() string {
|
||||
if o == nil || o.FirmwareVersion.Get() == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.FirmwareVersion.Get()
|
||||
}
|
||||
|
||||
// GetFirmwareVersionOk returns a tuple with the FirmwareVersion field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
||||
func (o *Manager) GetFirmwareVersionOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.FirmwareVersion.Get(), o.FirmwareVersion.IsSet()
|
||||
}
|
||||
|
||||
// HasFirmwareVersion returns a boolean if a field has been set.
|
||||
func (o *Manager) HasFirmwareVersion() bool {
|
||||
if o != nil && o.FirmwareVersion.IsSet() {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetFirmwareVersion gets a reference to the given NullableString and assigns it to the FirmwareVersion field.
|
||||
func (o *Manager) SetFirmwareVersion(v string) {
|
||||
o.FirmwareVersion.Set(&v)
|
||||
}
|
||||
// SetFirmwareVersionNil sets the value for FirmwareVersion to be an explicit nil
|
||||
func (o *Manager) SetFirmwareVersionNil() {
|
||||
o.FirmwareVersion.Set(nil)
|
||||
}
|
||||
|
||||
// UnsetFirmwareVersion ensures that no value is present for FirmwareVersion, not even an explicit nil
|
||||
func (o *Manager) UnsetFirmwareVersion() {
|
||||
o.FirmwareVersion.Unset()
|
||||
}
|
||||
|
||||
// GetLinks returns the Links field value if set, zero value otherwise.
|
||||
func (o *Manager) GetLinks() ManagerLinks {
|
||||
if o == nil || o.Links == nil {
|
||||
var ret ManagerLinks
|
||||
return ret
|
||||
}
|
||||
return *o.Links
|
||||
}
|
||||
|
||||
// GetLinksOk returns a tuple with the Links field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Manager) GetLinksOk() (*ManagerLinks, bool) {
|
||||
if o == nil || o.Links == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Links, true
|
||||
}
|
||||
|
||||
// HasLinks returns a boolean if a field has been set.
|
||||
func (o *Manager) HasLinks() bool {
|
||||
if o != nil && o.Links != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetLinks gets a reference to the given ManagerLinks and assigns it to the Links field.
|
||||
func (o *Manager) SetLinks(v ManagerLinks) {
|
||||
o.Links = &v
|
||||
}
|
||||
|
||||
// GetPowerState returns the PowerState field value if set, zero value otherwise.
|
||||
func (o *Manager) GetPowerState() PowerState {
|
||||
if o == nil || o.PowerState == nil {
|
||||
var ret PowerState
|
||||
return ret
|
||||
}
|
||||
return *o.PowerState
|
||||
}
|
||||
|
||||
// GetPowerStateOk returns a tuple with the PowerState field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Manager) GetPowerStateOk() (*PowerState, bool) {
|
||||
if o == nil || o.PowerState == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.PowerState, true
|
||||
}
|
||||
|
||||
// HasPowerState returns a boolean if a field has been set.
|
||||
func (o *Manager) HasPowerState() bool {
|
||||
if o != nil && o.PowerState != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetPowerState gets a reference to the given PowerState and assigns it to the PowerState field.
|
||||
func (o *Manager) SetPowerState(v PowerState) {
|
||||
o.PowerState = &v
|
||||
}
|
||||
|
||||
// GetVirtualMedia returns the VirtualMedia field value if set, zero value otherwise.
|
||||
func (o *Manager) GetVirtualMedia() IdRef {
|
||||
if o == nil || o.VirtualMedia == nil {
|
||||
var ret IdRef
|
||||
return ret
|
||||
}
|
||||
return *o.VirtualMedia
|
||||
}
|
||||
|
||||
// GetVirtualMediaOk returns a tuple with the VirtualMedia field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Manager) GetVirtualMediaOk() (*IdRef, bool) {
|
||||
if o == nil || o.VirtualMedia == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.VirtualMedia, true
|
||||
}
|
||||
|
||||
// HasVirtualMedia returns a boolean if a field has been set.
|
||||
func (o *Manager) HasVirtualMedia() bool {
|
||||
if o != nil && o.VirtualMedia != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetVirtualMedia gets a reference to the given IdRef and assigns it to the VirtualMedia field.
|
||||
func (o *Manager) SetVirtualMedia(v IdRef) {
|
||||
o.VirtualMedia = &v
|
||||
}
|
||||
|
||||
func (o Manager) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if o.Id != nil {
|
||||
toSerialize["Id"] = o.Id
|
||||
}
|
||||
if true {
|
||||
toSerialize["Name"] = o.Name
|
||||
}
|
||||
if o.UUID != nil {
|
||||
toSerialize["UUID"] = o.UUID
|
||||
}
|
||||
if o.ServiceEntryPointUUID != nil {
|
||||
toSerialize["ServiceEntryPointUUID"] = o.ServiceEntryPointUUID
|
||||
}
|
||||
if true {
|
||||
toSerialize["@odata.type"] = o.OdataType
|
||||
}
|
||||
if true {
|
||||
toSerialize["@odata.id"] = o.OdataId
|
||||
}
|
||||
if o.OdataContext != nil {
|
||||
toSerialize["@odata.context"] = o.OdataContext
|
||||
}
|
||||
if o.RedfishCopyright != nil {
|
||||
toSerialize["@Redfish.Copyright"] = o.RedfishCopyright
|
||||
}
|
||||
if o.Model.IsSet() {
|
||||
toSerialize["Model"] = o.Model.Get()
|
||||
}
|
||||
if o.ManagerType != nil {
|
||||
toSerialize["ManagerType"] = o.ManagerType
|
||||
}
|
||||
if o.Status != nil {
|
||||
toSerialize["Status"] = o.Status
|
||||
}
|
||||
if o.DateTime.IsSet() {
|
||||
toSerialize["DateTime"] = o.DateTime.Get()
|
||||
}
|
||||
if o.DateTimeLocalOffset.IsSet() {
|
||||
toSerialize["DateTimeLocalOffset"] = o.DateTimeLocalOffset.Get()
|
||||
}
|
||||
if o.Description.IsSet() {
|
||||
toSerialize["Description"] = o.Description.Get()
|
||||
}
|
||||
if o.EthernetInterfaces != nil {
|
||||
toSerialize["EthernetInterfaces"] = o.EthernetInterfaces
|
||||
}
|
||||
if o.FirmwareVersion.IsSet() {
|
||||
toSerialize["FirmwareVersion"] = o.FirmwareVersion.Get()
|
||||
}
|
||||
if o.Links != nil {
|
||||
toSerialize["Links"] = o.Links
|
||||
}
|
||||
if o.PowerState != nil {
|
||||
toSerialize["PowerState"] = o.PowerState
|
||||
}
|
||||
if o.VirtualMedia != nil {
|
||||
toSerialize["VirtualMedia"] = o.VirtualMedia
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
type NullableManager struct {
|
||||
value *Manager
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableManager) Get() *Manager {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableManager) Set(val *Manager) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableManager) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableManager) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableManager(val *Manager) *NullableManager {
|
||||
return &NullableManager{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableManager) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableManager) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
|
@ -4,14 +4,220 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// ManagerLinks struct for ManagerLinks
|
||||
type ManagerLinks struct {
|
||||
ManagerForServers []IdRef `json:"ManagerForServers,omitempty"`
|
||||
ManagerForChassis []IdRef `json:"ManagerForChassis,omitempty"`
|
||||
ManagerForSwitches []IdRef `json:"ManagerForSwitches,omitempty"`
|
||||
ManagerInChassis []IdRef `json:"ManagerInChassis,omitempty"`
|
||||
ManagerForServers *[]IdRef `json:"ManagerForServers,omitempty"`
|
||||
ManagerForChassis *[]IdRef `json:"ManagerForChassis,omitempty"`
|
||||
ManagerForSwitches *[]IdRef `json:"ManagerForSwitches,omitempty"`
|
||||
ManagerInChassis *[]IdRef `json:"ManagerInChassis,omitempty"`
|
||||
}
|
||||
|
||||
// NewManagerLinks instantiates a new ManagerLinks object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewManagerLinks() *ManagerLinks {
|
||||
this := ManagerLinks{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewManagerLinksWithDefaults instantiates a new ManagerLinks object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewManagerLinksWithDefaults() *ManagerLinks {
|
||||
this := ManagerLinks{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetManagerForServers returns the ManagerForServers field value if set, zero value otherwise.
|
||||
func (o *ManagerLinks) GetManagerForServers() []IdRef {
|
||||
if o == nil || o.ManagerForServers == nil {
|
||||
var ret []IdRef
|
||||
return ret
|
||||
}
|
||||
return *o.ManagerForServers
|
||||
}
|
||||
|
||||
// GetManagerForServersOk returns a tuple with the ManagerForServers field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ManagerLinks) GetManagerForServersOk() (*[]IdRef, bool) {
|
||||
if o == nil || o.ManagerForServers == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.ManagerForServers, true
|
||||
}
|
||||
|
||||
// HasManagerForServers returns a boolean if a field has been set.
|
||||
func (o *ManagerLinks) HasManagerForServers() bool {
|
||||
if o != nil && o.ManagerForServers != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetManagerForServers gets a reference to the given []IdRef and assigns it to the ManagerForServers field.
|
||||
func (o *ManagerLinks) SetManagerForServers(v []IdRef) {
|
||||
o.ManagerForServers = &v
|
||||
}
|
||||
|
||||
// GetManagerForChassis returns the ManagerForChassis field value if set, zero value otherwise.
|
||||
func (o *ManagerLinks) GetManagerForChassis() []IdRef {
|
||||
if o == nil || o.ManagerForChassis == nil {
|
||||
var ret []IdRef
|
||||
return ret
|
||||
}
|
||||
return *o.ManagerForChassis
|
||||
}
|
||||
|
||||
// GetManagerForChassisOk returns a tuple with the ManagerForChassis field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ManagerLinks) GetManagerForChassisOk() (*[]IdRef, bool) {
|
||||
if o == nil || o.ManagerForChassis == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.ManagerForChassis, true
|
||||
}
|
||||
|
||||
// HasManagerForChassis returns a boolean if a field has been set.
|
||||
func (o *ManagerLinks) HasManagerForChassis() bool {
|
||||
if o != nil && o.ManagerForChassis != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetManagerForChassis gets a reference to the given []IdRef and assigns it to the ManagerForChassis field.
|
||||
func (o *ManagerLinks) SetManagerForChassis(v []IdRef) {
|
||||
o.ManagerForChassis = &v
|
||||
}
|
||||
|
||||
// GetManagerForSwitches returns the ManagerForSwitches field value if set, zero value otherwise.
|
||||
func (o *ManagerLinks) GetManagerForSwitches() []IdRef {
|
||||
if o == nil || o.ManagerForSwitches == nil {
|
||||
var ret []IdRef
|
||||
return ret
|
||||
}
|
||||
return *o.ManagerForSwitches
|
||||
}
|
||||
|
||||
// GetManagerForSwitchesOk returns a tuple with the ManagerForSwitches field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ManagerLinks) GetManagerForSwitchesOk() (*[]IdRef, bool) {
|
||||
if o == nil || o.ManagerForSwitches == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.ManagerForSwitches, true
|
||||
}
|
||||
|
||||
// HasManagerForSwitches returns a boolean if a field has been set.
|
||||
func (o *ManagerLinks) HasManagerForSwitches() bool {
|
||||
if o != nil && o.ManagerForSwitches != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetManagerForSwitches gets a reference to the given []IdRef and assigns it to the ManagerForSwitches field.
|
||||
func (o *ManagerLinks) SetManagerForSwitches(v []IdRef) {
|
||||
o.ManagerForSwitches = &v
|
||||
}
|
||||
|
||||
// GetManagerInChassis returns the ManagerInChassis field value if set, zero value otherwise.
|
||||
func (o *ManagerLinks) GetManagerInChassis() []IdRef {
|
||||
if o == nil || o.ManagerInChassis == nil {
|
||||
var ret []IdRef
|
||||
return ret
|
||||
}
|
||||
return *o.ManagerInChassis
|
||||
}
|
||||
|
||||
// GetManagerInChassisOk returns a tuple with the ManagerInChassis field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ManagerLinks) GetManagerInChassisOk() (*[]IdRef, bool) {
|
||||
if o == nil || o.ManagerInChassis == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.ManagerInChassis, true
|
||||
}
|
||||
|
||||
// HasManagerInChassis returns a boolean if a field has been set.
|
||||
func (o *ManagerLinks) HasManagerInChassis() bool {
|
||||
if o != nil && o.ManagerInChassis != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetManagerInChassis gets a reference to the given []IdRef and assigns it to the ManagerInChassis field.
|
||||
func (o *ManagerLinks) SetManagerInChassis(v []IdRef) {
|
||||
o.ManagerInChassis = &v
|
||||
}
|
||||
|
||||
func (o ManagerLinks) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if o.ManagerForServers != nil {
|
||||
toSerialize["ManagerForServers"] = o.ManagerForServers
|
||||
}
|
||||
if o.ManagerForChassis != nil {
|
||||
toSerialize["ManagerForChassis"] = o.ManagerForChassis
|
||||
}
|
||||
if o.ManagerForSwitches != nil {
|
||||
toSerialize["ManagerForSwitches"] = o.ManagerForSwitches
|
||||
}
|
||||
if o.ManagerInChassis != nil {
|
||||
toSerialize["ManagerInChassis"] = o.ManagerInChassis
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
type NullableManagerLinks struct {
|
||||
value *ManagerLinks
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableManagerLinks) Get() *ManagerLinks {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableManagerLinks) Set(val *ManagerLinks) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableManagerLinks) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableManagerLinks) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableManagerLinks(val *ManagerLinks) *NullableManagerLinks {
|
||||
return &NullableManagerLinks{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableManagerLinks) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableManagerLinks) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
|
@ -4,10 +4,17 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// ManagerType the model 'ManagerType'
|
||||
type ManagerType string
|
||||
|
||||
@ -20,3 +27,62 @@ const (
|
||||
MANAGERTYPE_AUXILIARY_CONTROLLER ManagerType = "AuxiliaryController"
|
||||
MANAGERTYPE_SERVICE ManagerType = "Service"
|
||||
)
|
||||
|
||||
func (v *ManagerType) UnmarshalJSON(src []byte) error {
|
||||
var value string
|
||||
err := json.Unmarshal(src, &value)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
enumTypeValue := ManagerType(value)
|
||||
for _, existing := range []ManagerType{ "ManagementController", "EnclosureManager", "BMC", "RackManager", "AuxiliaryController", "Service", } {
|
||||
if existing == enumTypeValue {
|
||||
*v = enumTypeValue
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
return fmt.Errorf("%+v is not a valid ManagerType", value)
|
||||
}
|
||||
|
||||
// Ptr returns reference to ManagerType value
|
||||
func (v ManagerType) Ptr() *ManagerType {
|
||||
return &v
|
||||
}
|
||||
|
||||
type NullableManagerType struct {
|
||||
value *ManagerType
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableManagerType) Get() *ManagerType {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableManagerType) Set(val *ManagerType) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableManagerType) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableManagerType) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableManagerType(val *ManagerType) *NullableManagerType {
|
||||
return &NullableManagerType{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableManagerType) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableManagerType) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
@ -4,13 +4,204 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// MemorySummary struct for MemorySummary
|
||||
type MemorySummary struct {
|
||||
TotalSystemMemoryGiB *float32 `json:"TotalSystemMemoryGiB,omitempty"`
|
||||
TotalSystemPersistentMemoryGiB *float32 `json:"TotalSystemPersistentMemoryGiB,omitempty"`
|
||||
Status Status `json:"Status,omitempty"`
|
||||
TotalSystemMemoryGiB NullableFloat32 `json:"TotalSystemMemoryGiB,omitempty"`
|
||||
TotalSystemPersistentMemoryGiB NullableFloat32 `json:"TotalSystemPersistentMemoryGiB,omitempty"`
|
||||
Status *Status `json:"Status,omitempty"`
|
||||
}
|
||||
|
||||
// NewMemorySummary instantiates a new MemorySummary object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewMemorySummary() *MemorySummary {
|
||||
this := MemorySummary{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewMemorySummaryWithDefaults instantiates a new MemorySummary object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewMemorySummaryWithDefaults() *MemorySummary {
|
||||
this := MemorySummary{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetTotalSystemMemoryGiB returns the TotalSystemMemoryGiB field value if set, zero value otherwise (both if not set or set to explicit null).
|
||||
func (o *MemorySummary) GetTotalSystemMemoryGiB() float32 {
|
||||
if o == nil || o.TotalSystemMemoryGiB.Get() == nil {
|
||||
var ret float32
|
||||
return ret
|
||||
}
|
||||
return *o.TotalSystemMemoryGiB.Get()
|
||||
}
|
||||
|
||||
// GetTotalSystemMemoryGiBOk returns a tuple with the TotalSystemMemoryGiB field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
||||
func (o *MemorySummary) GetTotalSystemMemoryGiBOk() (*float32, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.TotalSystemMemoryGiB.Get(), o.TotalSystemMemoryGiB.IsSet()
|
||||
}
|
||||
|
||||
// HasTotalSystemMemoryGiB returns a boolean if a field has been set.
|
||||
func (o *MemorySummary) HasTotalSystemMemoryGiB() bool {
|
||||
if o != nil && o.TotalSystemMemoryGiB.IsSet() {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetTotalSystemMemoryGiB gets a reference to the given NullableFloat32 and assigns it to the TotalSystemMemoryGiB field.
|
||||
func (o *MemorySummary) SetTotalSystemMemoryGiB(v float32) {
|
||||
o.TotalSystemMemoryGiB.Set(&v)
|
||||
}
|
||||
// SetTotalSystemMemoryGiBNil sets the value for TotalSystemMemoryGiB to be an explicit nil
|
||||
func (o *MemorySummary) SetTotalSystemMemoryGiBNil() {
|
||||
o.TotalSystemMemoryGiB.Set(nil)
|
||||
}
|
||||
|
||||
// UnsetTotalSystemMemoryGiB ensures that no value is present for TotalSystemMemoryGiB, not even an explicit nil
|
||||
func (o *MemorySummary) UnsetTotalSystemMemoryGiB() {
|
||||
o.TotalSystemMemoryGiB.Unset()
|
||||
}
|
||||
|
||||
// GetTotalSystemPersistentMemoryGiB returns the TotalSystemPersistentMemoryGiB field value if set, zero value otherwise (both if not set or set to explicit null).
|
||||
func (o *MemorySummary) GetTotalSystemPersistentMemoryGiB() float32 {
|
||||
if o == nil || o.TotalSystemPersistentMemoryGiB.Get() == nil {
|
||||
var ret float32
|
||||
return ret
|
||||
}
|
||||
return *o.TotalSystemPersistentMemoryGiB.Get()
|
||||
}
|
||||
|
||||
// GetTotalSystemPersistentMemoryGiBOk returns a tuple with the TotalSystemPersistentMemoryGiB field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
||||
func (o *MemorySummary) GetTotalSystemPersistentMemoryGiBOk() (*float32, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.TotalSystemPersistentMemoryGiB.Get(), o.TotalSystemPersistentMemoryGiB.IsSet()
|
||||
}
|
||||
|
||||
// HasTotalSystemPersistentMemoryGiB returns a boolean if a field has been set.
|
||||
func (o *MemorySummary) HasTotalSystemPersistentMemoryGiB() bool {
|
||||
if o != nil && o.TotalSystemPersistentMemoryGiB.IsSet() {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetTotalSystemPersistentMemoryGiB gets a reference to the given NullableFloat32 and assigns it to the TotalSystemPersistentMemoryGiB field.
|
||||
func (o *MemorySummary) SetTotalSystemPersistentMemoryGiB(v float32) {
|
||||
o.TotalSystemPersistentMemoryGiB.Set(&v)
|
||||
}
|
||||
// SetTotalSystemPersistentMemoryGiBNil sets the value for TotalSystemPersistentMemoryGiB to be an explicit nil
|
||||
func (o *MemorySummary) SetTotalSystemPersistentMemoryGiBNil() {
|
||||
o.TotalSystemPersistentMemoryGiB.Set(nil)
|
||||
}
|
||||
|
||||
// UnsetTotalSystemPersistentMemoryGiB ensures that no value is present for TotalSystemPersistentMemoryGiB, not even an explicit nil
|
||||
func (o *MemorySummary) UnsetTotalSystemPersistentMemoryGiB() {
|
||||
o.TotalSystemPersistentMemoryGiB.Unset()
|
||||
}
|
||||
|
||||
// GetStatus returns the Status field value if set, zero value otherwise.
|
||||
func (o *MemorySummary) GetStatus() Status {
|
||||
if o == nil || o.Status == nil {
|
||||
var ret Status
|
||||
return ret
|
||||
}
|
||||
return *o.Status
|
||||
}
|
||||
|
||||
// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *MemorySummary) GetStatusOk() (*Status, bool) {
|
||||
if o == nil || o.Status == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Status, true
|
||||
}
|
||||
|
||||
// HasStatus returns a boolean if a field has been set.
|
||||
func (o *MemorySummary) HasStatus() bool {
|
||||
if o != nil && o.Status != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetStatus gets a reference to the given Status and assigns it to the Status field.
|
||||
func (o *MemorySummary) SetStatus(v Status) {
|
||||
o.Status = &v
|
||||
}
|
||||
|
||||
func (o MemorySummary) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if o.TotalSystemMemoryGiB.IsSet() {
|
||||
toSerialize["TotalSystemMemoryGiB"] = o.TotalSystemMemoryGiB.Get()
|
||||
}
|
||||
if o.TotalSystemPersistentMemoryGiB.IsSet() {
|
||||
toSerialize["TotalSystemPersistentMemoryGiB"] = o.TotalSystemPersistentMemoryGiB.Get()
|
||||
}
|
||||
if o.Status != nil {
|
||||
toSerialize["Status"] = o.Status
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
type NullableMemorySummary struct {
|
||||
value *MemorySummary
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableMemorySummary) Get() *MemorySummary {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableMemorySummary) Set(val *MemorySummary) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableMemorySummary) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableMemorySummary) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableMemorySummary(val *MemorySummary) *NullableMemorySummary {
|
||||
return &NullableMemorySummary{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableMemorySummary) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableMemorySummary) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
|
@ -4,16 +4,285 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// Message struct for Message
|
||||
type Message struct {
|
||||
Message string `json:"Message,omitempty"`
|
||||
MessageArgs []string `json:"MessageArgs,omitempty"`
|
||||
Message *string `json:"Message,omitempty"`
|
||||
MessageArgs *[]string `json:"MessageArgs,omitempty"`
|
||||
MessageId string `json:"MessageId"`
|
||||
RelatedProperties []string `json:"RelatedProperties,omitempty"`
|
||||
Resolution string `json:"Resolution,omitempty"`
|
||||
Severity string `json:"Severity,omitempty"`
|
||||
RelatedProperties *[]string `json:"RelatedProperties,omitempty"`
|
||||
Resolution *string `json:"Resolution,omitempty"`
|
||||
Severity *string `json:"Severity,omitempty"`
|
||||
}
|
||||
|
||||
// NewMessage instantiates a new Message object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewMessage(messageId string) *Message {
|
||||
this := Message{}
|
||||
this.MessageId = messageId
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewMessageWithDefaults instantiates a new Message object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewMessageWithDefaults() *Message {
|
||||
this := Message{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetMessage returns the Message field value if set, zero value otherwise.
|
||||
func (o *Message) GetMessage() string {
|
||||
if o == nil || o.Message == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Message
|
||||
}
|
||||
|
||||
// GetMessageOk returns a tuple with the Message field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Message) GetMessageOk() (*string, bool) {
|
||||
if o == nil || o.Message == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Message, true
|
||||
}
|
||||
|
||||
// HasMessage returns a boolean if a field has been set.
|
||||
func (o *Message) HasMessage() bool {
|
||||
if o != nil && o.Message != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetMessage gets a reference to the given string and assigns it to the Message field.
|
||||
func (o *Message) SetMessage(v string) {
|
||||
o.Message = &v
|
||||
}
|
||||
|
||||
// GetMessageArgs returns the MessageArgs field value if set, zero value otherwise.
|
||||
func (o *Message) GetMessageArgs() []string {
|
||||
if o == nil || o.MessageArgs == nil {
|
||||
var ret []string
|
||||
return ret
|
||||
}
|
||||
return *o.MessageArgs
|
||||
}
|
||||
|
||||
// GetMessageArgsOk returns a tuple with the MessageArgs field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Message) GetMessageArgsOk() (*[]string, bool) {
|
||||
if o == nil || o.MessageArgs == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.MessageArgs, true
|
||||
}
|
||||
|
||||
// HasMessageArgs returns a boolean if a field has been set.
|
||||
func (o *Message) HasMessageArgs() bool {
|
||||
if o != nil && o.MessageArgs != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetMessageArgs gets a reference to the given []string and assigns it to the MessageArgs field.
|
||||
func (o *Message) SetMessageArgs(v []string) {
|
||||
o.MessageArgs = &v
|
||||
}
|
||||
|
||||
// GetMessageId returns the MessageId field value
|
||||
func (o *Message) GetMessageId() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.MessageId
|
||||
}
|
||||
|
||||
// GetMessageIdOk returns a tuple with the MessageId field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Message) GetMessageIdOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.MessageId, true
|
||||
}
|
||||
|
||||
// SetMessageId sets field value
|
||||
func (o *Message) SetMessageId(v string) {
|
||||
o.MessageId = v
|
||||
}
|
||||
|
||||
// GetRelatedProperties returns the RelatedProperties field value if set, zero value otherwise.
|
||||
func (o *Message) GetRelatedProperties() []string {
|
||||
if o == nil || o.RelatedProperties == nil {
|
||||
var ret []string
|
||||
return ret
|
||||
}
|
||||
return *o.RelatedProperties
|
||||
}
|
||||
|
||||
// GetRelatedPropertiesOk returns a tuple with the RelatedProperties field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Message) GetRelatedPropertiesOk() (*[]string, bool) {
|
||||
if o == nil || o.RelatedProperties == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.RelatedProperties, true
|
||||
}
|
||||
|
||||
// HasRelatedProperties returns a boolean if a field has been set.
|
||||
func (o *Message) HasRelatedProperties() bool {
|
||||
if o != nil && o.RelatedProperties != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetRelatedProperties gets a reference to the given []string and assigns it to the RelatedProperties field.
|
||||
func (o *Message) SetRelatedProperties(v []string) {
|
||||
o.RelatedProperties = &v
|
||||
}
|
||||
|
||||
// GetResolution returns the Resolution field value if set, zero value otherwise.
|
||||
func (o *Message) GetResolution() string {
|
||||
if o == nil || o.Resolution == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Resolution
|
||||
}
|
||||
|
||||
// GetResolutionOk returns a tuple with the Resolution field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Message) GetResolutionOk() (*string, bool) {
|
||||
if o == nil || o.Resolution == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Resolution, true
|
||||
}
|
||||
|
||||
// HasResolution returns a boolean if a field has been set.
|
||||
func (o *Message) HasResolution() bool {
|
||||
if o != nil && o.Resolution != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetResolution gets a reference to the given string and assigns it to the Resolution field.
|
||||
func (o *Message) SetResolution(v string) {
|
||||
o.Resolution = &v
|
||||
}
|
||||
|
||||
// GetSeverity returns the Severity field value if set, zero value otherwise.
|
||||
func (o *Message) GetSeverity() string {
|
||||
if o == nil || o.Severity == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Severity
|
||||
}
|
||||
|
||||
// GetSeverityOk returns a tuple with the Severity field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Message) GetSeverityOk() (*string, bool) {
|
||||
if o == nil || o.Severity == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Severity, true
|
||||
}
|
||||
|
||||
// HasSeverity returns a boolean if a field has been set.
|
||||
func (o *Message) HasSeverity() bool {
|
||||
if o != nil && o.Severity != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetSeverity gets a reference to the given string and assigns it to the Severity field.
|
||||
func (o *Message) SetSeverity(v string) {
|
||||
o.Severity = &v
|
||||
}
|
||||
|
||||
func (o Message) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if o.Message != nil {
|
||||
toSerialize["Message"] = o.Message
|
||||
}
|
||||
if o.MessageArgs != nil {
|
||||
toSerialize["MessageArgs"] = o.MessageArgs
|
||||
}
|
||||
if true {
|
||||
toSerialize["MessageId"] = o.MessageId
|
||||
}
|
||||
if o.RelatedProperties != nil {
|
||||
toSerialize["RelatedProperties"] = o.RelatedProperties
|
||||
}
|
||||
if o.Resolution != nil {
|
||||
toSerialize["Resolution"] = o.Resolution
|
||||
}
|
||||
if o.Severity != nil {
|
||||
toSerialize["Severity"] = o.Severity
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
type NullableMessage struct {
|
||||
value *Message
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableMessage) Get() *Message {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableMessage) Set(val *Message) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableMessage) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableMessage) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableMessage(val *Message) *NullableMessage {
|
||||
return &NullableMessage{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableMessage) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableMessage) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
|
@ -4,18 +4,224 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// Payload The HTTP and JSON payload details for this Task.
|
||||
type Payload struct {
|
||||
// This represents the HTTP headers used in the operation of this Task.
|
||||
HttpHeaders []string `json:"HttpHeaders,omitempty"`
|
||||
HttpHeaders *[]string `json:"HttpHeaders,omitempty"`
|
||||
// The HTTP operation to perform to execute this Task.
|
||||
HttpOperation string `json:"HttpOperation,omitempty"`
|
||||
HttpOperation *string `json:"HttpOperation,omitempty"`
|
||||
// This property contains the JSON payload to use in the execution of this Task.
|
||||
JsonBody string `json:"JsonBody,omitempty"`
|
||||
JsonBody *string `json:"JsonBody,omitempty"`
|
||||
// The URI of the target for this task.
|
||||
TargetUri string `json:"TargetUri,omitempty"`
|
||||
TargetUri *string `json:"TargetUri,omitempty"`
|
||||
}
|
||||
|
||||
// NewPayload instantiates a new Payload object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewPayload() *Payload {
|
||||
this := Payload{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewPayloadWithDefaults instantiates a new Payload object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewPayloadWithDefaults() *Payload {
|
||||
this := Payload{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetHttpHeaders returns the HttpHeaders field value if set, zero value otherwise.
|
||||
func (o *Payload) GetHttpHeaders() []string {
|
||||
if o == nil || o.HttpHeaders == nil {
|
||||
var ret []string
|
||||
return ret
|
||||
}
|
||||
return *o.HttpHeaders
|
||||
}
|
||||
|
||||
// GetHttpHeadersOk returns a tuple with the HttpHeaders field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Payload) GetHttpHeadersOk() (*[]string, bool) {
|
||||
if o == nil || o.HttpHeaders == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.HttpHeaders, true
|
||||
}
|
||||
|
||||
// HasHttpHeaders returns a boolean if a field has been set.
|
||||
func (o *Payload) HasHttpHeaders() bool {
|
||||
if o != nil && o.HttpHeaders != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetHttpHeaders gets a reference to the given []string and assigns it to the HttpHeaders field.
|
||||
func (o *Payload) SetHttpHeaders(v []string) {
|
||||
o.HttpHeaders = &v
|
||||
}
|
||||
|
||||
// GetHttpOperation returns the HttpOperation field value if set, zero value otherwise.
|
||||
func (o *Payload) GetHttpOperation() string {
|
||||
if o == nil || o.HttpOperation == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.HttpOperation
|
||||
}
|
||||
|
||||
// GetHttpOperationOk returns a tuple with the HttpOperation field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Payload) GetHttpOperationOk() (*string, bool) {
|
||||
if o == nil || o.HttpOperation == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.HttpOperation, true
|
||||
}
|
||||
|
||||
// HasHttpOperation returns a boolean if a field has been set.
|
||||
func (o *Payload) HasHttpOperation() bool {
|
||||
if o != nil && o.HttpOperation != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetHttpOperation gets a reference to the given string and assigns it to the HttpOperation field.
|
||||
func (o *Payload) SetHttpOperation(v string) {
|
||||
o.HttpOperation = &v
|
||||
}
|
||||
|
||||
// GetJsonBody returns the JsonBody field value if set, zero value otherwise.
|
||||
func (o *Payload) GetJsonBody() string {
|
||||
if o == nil || o.JsonBody == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.JsonBody
|
||||
}
|
||||
|
||||
// GetJsonBodyOk returns a tuple with the JsonBody field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Payload) GetJsonBodyOk() (*string, bool) {
|
||||
if o == nil || o.JsonBody == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.JsonBody, true
|
||||
}
|
||||
|
||||
// HasJsonBody returns a boolean if a field has been set.
|
||||
func (o *Payload) HasJsonBody() bool {
|
||||
if o != nil && o.JsonBody != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetJsonBody gets a reference to the given string and assigns it to the JsonBody field.
|
||||
func (o *Payload) SetJsonBody(v string) {
|
||||
o.JsonBody = &v
|
||||
}
|
||||
|
||||
// GetTargetUri returns the TargetUri field value if set, zero value otherwise.
|
||||
func (o *Payload) GetTargetUri() string {
|
||||
if o == nil || o.TargetUri == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.TargetUri
|
||||
}
|
||||
|
||||
// GetTargetUriOk returns a tuple with the TargetUri field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Payload) GetTargetUriOk() (*string, bool) {
|
||||
if o == nil || o.TargetUri == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.TargetUri, true
|
||||
}
|
||||
|
||||
// HasTargetUri returns a boolean if a field has been set.
|
||||
func (o *Payload) HasTargetUri() bool {
|
||||
if o != nil && o.TargetUri != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetTargetUri gets a reference to the given string and assigns it to the TargetUri field.
|
||||
func (o *Payload) SetTargetUri(v string) {
|
||||
o.TargetUri = &v
|
||||
}
|
||||
|
||||
func (o Payload) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if o.HttpHeaders != nil {
|
||||
toSerialize["HttpHeaders"] = o.HttpHeaders
|
||||
}
|
||||
if o.HttpOperation != nil {
|
||||
toSerialize["HttpOperation"] = o.HttpOperation
|
||||
}
|
||||
if o.JsonBody != nil {
|
||||
toSerialize["JsonBody"] = o.JsonBody
|
||||
}
|
||||
if o.TargetUri != nil {
|
||||
toSerialize["TargetUri"] = o.TargetUri
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
type NullablePayload struct {
|
||||
value *Payload
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullablePayload) Get() *Payload {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullablePayload) Set(val *Payload) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullablePayload) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullablePayload) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullablePayload(val *Payload) *NullablePayload {
|
||||
return &NullablePayload{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullablePayload) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullablePayload) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
|
@ -4,10 +4,17 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// PowerState the model 'PowerState'
|
||||
type PowerState string
|
||||
|
||||
@ -18,3 +25,62 @@ const (
|
||||
POWERSTATE_POWERING_ON PowerState = "PoweringOn"
|
||||
POWERSTATE_POWERING_OFF PowerState = "PoweringOff"
|
||||
)
|
||||
|
||||
func (v *PowerState) UnmarshalJSON(src []byte) error {
|
||||
var value string
|
||||
err := json.Unmarshal(src, &value)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
enumTypeValue := PowerState(value)
|
||||
for _, existing := range []PowerState{ "On", "Off", "PoweringOn", "PoweringOff", } {
|
||||
if existing == enumTypeValue {
|
||||
*v = enumTypeValue
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
return fmt.Errorf("%+v is not a valid PowerState", value)
|
||||
}
|
||||
|
||||
// Ptr returns reference to PowerState value
|
||||
func (v PowerState) Ptr() *PowerState {
|
||||
return &v
|
||||
}
|
||||
|
||||
type NullablePowerState struct {
|
||||
value *PowerState
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullablePowerState) Get() *PowerState {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullablePowerState) Set(val *PowerState) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullablePowerState) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullablePowerState) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullablePowerState(val *PowerState) *NullablePowerState {
|
||||
return &NullablePowerState{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullablePowerState) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullablePowerState) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
@ -4,12 +4,158 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// ProcessorSummary struct for ProcessorSummary
|
||||
type ProcessorSummary struct {
|
||||
Count *int32 `json:"Count,omitempty"`
|
||||
Status Status `json:"Status,omitempty"`
|
||||
Count NullableInt32 `json:"Count,omitempty"`
|
||||
Status *Status `json:"Status,omitempty"`
|
||||
}
|
||||
|
||||
// NewProcessorSummary instantiates a new ProcessorSummary object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewProcessorSummary() *ProcessorSummary {
|
||||
this := ProcessorSummary{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewProcessorSummaryWithDefaults instantiates a new ProcessorSummary object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewProcessorSummaryWithDefaults() *ProcessorSummary {
|
||||
this := ProcessorSummary{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetCount returns the Count field value if set, zero value otherwise (both if not set or set to explicit null).
|
||||
func (o *ProcessorSummary) GetCount() int32 {
|
||||
if o == nil || o.Count.Get() == nil {
|
||||
var ret int32
|
||||
return ret
|
||||
}
|
||||
return *o.Count.Get()
|
||||
}
|
||||
|
||||
// GetCountOk returns a tuple with the Count field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
||||
func (o *ProcessorSummary) GetCountOk() (*int32, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Count.Get(), o.Count.IsSet()
|
||||
}
|
||||
|
||||
// HasCount returns a boolean if a field has been set.
|
||||
func (o *ProcessorSummary) HasCount() bool {
|
||||
if o != nil && o.Count.IsSet() {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetCount gets a reference to the given NullableInt32 and assigns it to the Count field.
|
||||
func (o *ProcessorSummary) SetCount(v int32) {
|
||||
o.Count.Set(&v)
|
||||
}
|
||||
// SetCountNil sets the value for Count to be an explicit nil
|
||||
func (o *ProcessorSummary) SetCountNil() {
|
||||
o.Count.Set(nil)
|
||||
}
|
||||
|
||||
// UnsetCount ensures that no value is present for Count, not even an explicit nil
|
||||
func (o *ProcessorSummary) UnsetCount() {
|
||||
o.Count.Unset()
|
||||
}
|
||||
|
||||
// GetStatus returns the Status field value if set, zero value otherwise.
|
||||
func (o *ProcessorSummary) GetStatus() Status {
|
||||
if o == nil || o.Status == nil {
|
||||
var ret Status
|
||||
return ret
|
||||
}
|
||||
return *o.Status
|
||||
}
|
||||
|
||||
// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ProcessorSummary) GetStatusOk() (*Status, bool) {
|
||||
if o == nil || o.Status == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Status, true
|
||||
}
|
||||
|
||||
// HasStatus returns a boolean if a field has been set.
|
||||
func (o *ProcessorSummary) HasStatus() bool {
|
||||
if o != nil && o.Status != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetStatus gets a reference to the given Status and assigns it to the Status field.
|
||||
func (o *ProcessorSummary) SetStatus(v Status) {
|
||||
o.Status = &v
|
||||
}
|
||||
|
||||
func (o ProcessorSummary) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if o.Count.IsSet() {
|
||||
toSerialize["Count"] = o.Count.Get()
|
||||
}
|
||||
if o.Status != nil {
|
||||
toSerialize["Status"] = o.Status
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
type NullableProcessorSummary struct {
|
||||
value *ProcessorSummary
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableProcessorSummary) Get() *ProcessorSummary {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableProcessorSummary) Set(val *ProcessorSummary) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableProcessorSummary) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableProcessorSummary) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableProcessorSummary(val *ProcessorSummary) *NullableProcessorSummary {
|
||||
return &NullableProcessorSummary{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableProcessorSummary) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableProcessorSummary) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
|
@ -4,11 +4,105 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// RedfishError Contains an error payload from a Redfish Service.
|
||||
type RedfishError struct {
|
||||
Error RedfishErrorError `json:"error"`
|
||||
}
|
||||
|
||||
// NewRedfishError instantiates a new RedfishError object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewRedfishError(error_ RedfishErrorError) *RedfishError {
|
||||
this := RedfishError{}
|
||||
this.Error = error_
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewRedfishErrorWithDefaults instantiates a new RedfishError object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewRedfishErrorWithDefaults() *RedfishError {
|
||||
this := RedfishError{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetError returns the Error field value
|
||||
func (o *RedfishError) GetError() RedfishErrorError {
|
||||
if o == nil {
|
||||
var ret RedfishErrorError
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.Error
|
||||
}
|
||||
|
||||
// GetErrorOk returns a tuple with the Error field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *RedfishError) GetErrorOk() (*RedfishErrorError, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Error, true
|
||||
}
|
||||
|
||||
// SetError sets field value
|
||||
func (o *RedfishError) SetError(v RedfishErrorError) {
|
||||
o.Error = v
|
||||
}
|
||||
|
||||
func (o RedfishError) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if true {
|
||||
toSerialize["error"] = o.Error
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
type NullableRedfishError struct {
|
||||
value *RedfishError
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableRedfishError) Get() *RedfishError {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableRedfishError) Set(val *RedfishError) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableRedfishError) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableRedfishError) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableRedfishError(val *RedfishError) *NullableRedfishError {
|
||||
return &NullableRedfishError{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableRedfishError) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableRedfishError) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
|
@ -4,13 +4,170 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// RedfishErrorError struct for RedfishErrorError
|
||||
type RedfishErrorError struct {
|
||||
MessageExtendedInfo []Message `json:"@Message.ExtendedInfo,omitempty"`
|
||||
MessageExtendedInfo *[]Message `json:"@Message.ExtendedInfo,omitempty"`
|
||||
Code string `json:"code"`
|
||||
Message string `json:"message"`
|
||||
}
|
||||
|
||||
// NewRedfishErrorError instantiates a new RedfishErrorError object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewRedfishErrorError(code string, message string) *RedfishErrorError {
|
||||
this := RedfishErrorError{}
|
||||
this.Code = code
|
||||
this.Message = message
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewRedfishErrorErrorWithDefaults instantiates a new RedfishErrorError object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewRedfishErrorErrorWithDefaults() *RedfishErrorError {
|
||||
this := RedfishErrorError{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetMessageExtendedInfo returns the MessageExtendedInfo field value if set, zero value otherwise.
|
||||
func (o *RedfishErrorError) GetMessageExtendedInfo() []Message {
|
||||
if o == nil || o.MessageExtendedInfo == nil {
|
||||
var ret []Message
|
||||
return ret
|
||||
}
|
||||
return *o.MessageExtendedInfo
|
||||
}
|
||||
|
||||
// GetMessageExtendedInfoOk returns a tuple with the MessageExtendedInfo field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *RedfishErrorError) GetMessageExtendedInfoOk() (*[]Message, bool) {
|
||||
if o == nil || o.MessageExtendedInfo == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.MessageExtendedInfo, true
|
||||
}
|
||||
|
||||
// HasMessageExtendedInfo returns a boolean if a field has been set.
|
||||
func (o *RedfishErrorError) HasMessageExtendedInfo() bool {
|
||||
if o != nil && o.MessageExtendedInfo != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetMessageExtendedInfo gets a reference to the given []Message and assigns it to the MessageExtendedInfo field.
|
||||
func (o *RedfishErrorError) SetMessageExtendedInfo(v []Message) {
|
||||
o.MessageExtendedInfo = &v
|
||||
}
|
||||
|
||||
// GetCode returns the Code field value
|
||||
func (o *RedfishErrorError) GetCode() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.Code
|
||||
}
|
||||
|
||||
// GetCodeOk returns a tuple with the Code field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *RedfishErrorError) GetCodeOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Code, true
|
||||
}
|
||||
|
||||
// SetCode sets field value
|
||||
func (o *RedfishErrorError) SetCode(v string) {
|
||||
o.Code = v
|
||||
}
|
||||
|
||||
// GetMessage returns the Message field value
|
||||
func (o *RedfishErrorError) GetMessage() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.Message
|
||||
}
|
||||
|
||||
// GetMessageOk returns a tuple with the Message field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *RedfishErrorError) GetMessageOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Message, true
|
||||
}
|
||||
|
||||
// SetMessage sets field value
|
||||
func (o *RedfishErrorError) SetMessage(v string) {
|
||||
o.Message = v
|
||||
}
|
||||
|
||||
func (o RedfishErrorError) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if o.MessageExtendedInfo != nil {
|
||||
toSerialize["@Message.ExtendedInfo"] = o.MessageExtendedInfo
|
||||
}
|
||||
if true {
|
||||
toSerialize["code"] = o.Code
|
||||
}
|
||||
if true {
|
||||
toSerialize["message"] = o.Message
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
type NullableRedfishErrorError struct {
|
||||
value *RedfishErrorError
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableRedfishErrorError) Get() *RedfishErrorError {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableRedfishErrorError) Set(val *RedfishErrorError) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableRedfishErrorError) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableRedfishErrorError) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableRedfishErrorError(val *RedfishErrorError) *NullableRedfishErrorError {
|
||||
return &NullableRedfishErrorError{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableRedfishErrorError) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableRedfishErrorError) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
|
@ -4,11 +4,112 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// ResetRequestBody struct for ResetRequestBody
|
||||
type ResetRequestBody struct {
|
||||
ResetType ResetType `json:"ResetType,omitempty"`
|
||||
ResetType *ResetType `json:"ResetType,omitempty"`
|
||||
}
|
||||
|
||||
// NewResetRequestBody instantiates a new ResetRequestBody object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewResetRequestBody() *ResetRequestBody {
|
||||
this := ResetRequestBody{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewResetRequestBodyWithDefaults instantiates a new ResetRequestBody object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewResetRequestBodyWithDefaults() *ResetRequestBody {
|
||||
this := ResetRequestBody{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetResetType returns the ResetType field value if set, zero value otherwise.
|
||||
func (o *ResetRequestBody) GetResetType() ResetType {
|
||||
if o == nil || o.ResetType == nil {
|
||||
var ret ResetType
|
||||
return ret
|
||||
}
|
||||
return *o.ResetType
|
||||
}
|
||||
|
||||
// GetResetTypeOk returns a tuple with the ResetType field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ResetRequestBody) GetResetTypeOk() (*ResetType, bool) {
|
||||
if o == nil || o.ResetType == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.ResetType, true
|
||||
}
|
||||
|
||||
// HasResetType returns a boolean if a field has been set.
|
||||
func (o *ResetRequestBody) HasResetType() bool {
|
||||
if o != nil && o.ResetType != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetResetType gets a reference to the given ResetType and assigns it to the ResetType field.
|
||||
func (o *ResetRequestBody) SetResetType(v ResetType) {
|
||||
o.ResetType = &v
|
||||
}
|
||||
|
||||
func (o ResetRequestBody) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if o.ResetType != nil {
|
||||
toSerialize["ResetType"] = o.ResetType
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
type NullableResetRequestBody struct {
|
||||
value *ResetRequestBody
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableResetRequestBody) Get() *ResetRequestBody {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableResetRequestBody) Set(val *ResetRequestBody) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableResetRequestBody) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableResetRequestBody) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableResetRequestBody(val *ResetRequestBody) *NullableResetRequestBody {
|
||||
return &NullableResetRequestBody{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableResetRequestBody) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableResetRequestBody) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
|
@ -4,10 +4,17 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// ResetType the model 'ResetType'
|
||||
type ResetType string
|
||||
|
||||
@ -23,3 +30,62 @@ const (
|
||||
RESETTYPE_PUSH_POWER_BUTTON ResetType = "PushPowerButton"
|
||||
RESETTYPE_POWER_CYCLE ResetType = "PowerCycle"
|
||||
)
|
||||
|
||||
func (v *ResetType) UnmarshalJSON(src []byte) error {
|
||||
var value string
|
||||
err := json.Unmarshal(src, &value)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
enumTypeValue := ResetType(value)
|
||||
for _, existing := range []ResetType{ "On", "ForceOff", "GracefulShutdown", "GracefulRestart", "ForceRestart", "Nmi", "ForceOn", "PushPowerButton", "PowerCycle", } {
|
||||
if existing == enumTypeValue {
|
||||
*v = enumTypeValue
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
return fmt.Errorf("%+v is not a valid ResetType", value)
|
||||
}
|
||||
|
||||
// Ptr returns reference to ResetType value
|
||||
func (v ResetType) Ptr() *ResetType {
|
||||
return &v
|
||||
}
|
||||
|
||||
type NullableResetType struct {
|
||||
value *ResetType
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableResetType) Get() *ResetType {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableResetType) Set(val *ResetType) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableResetType) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableResetType) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableResetType(val *ResetType) *NullableResetType {
|
||||
return &NullableResetType{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableResetType) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableResetType) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
@ -4,25 +4,385 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// Root Root redfish path.
|
||||
type Root struct {
|
||||
// The name of the resource.
|
||||
Id string `json:"Id,omitempty"`
|
||||
Id *string `json:"Id,omitempty"`
|
||||
// The name of the resource.
|
||||
Name string `json:"Name"`
|
||||
// redfish version
|
||||
RedfishVersion string `json:"RedfishVersion,omitempty"`
|
||||
UUID string `json:"UUID,omitempty"`
|
||||
RedfishVersion *string `json:"RedfishVersion,omitempty"`
|
||||
UUID *string `json:"UUID,omitempty"`
|
||||
// The type of a resource.
|
||||
OdataType string `json:"@odata.type"`
|
||||
// The unique identifier for a resource.
|
||||
OdataId string `json:"@odata.id"`
|
||||
// redfish copyright
|
||||
RedfishCopyright string `json:"@Redfish.Copyright,omitempty"`
|
||||
Systems IdRef `json:"Systems,omitempty"`
|
||||
Managers IdRef `json:"Managers,omitempty"`
|
||||
RedfishCopyright *string `json:"@Redfish.Copyright,omitempty"`
|
||||
Systems *IdRef `json:"Systems,omitempty"`
|
||||
Managers *IdRef `json:"Managers,omitempty"`
|
||||
}
|
||||
|
||||
// NewRoot instantiates a new Root object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewRoot(name string, odataType string, odataId string) *Root {
|
||||
this := Root{}
|
||||
this.Name = name
|
||||
this.OdataType = odataType
|
||||
this.OdataId = odataId
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewRootWithDefaults instantiates a new Root object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewRootWithDefaults() *Root {
|
||||
this := Root{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetId returns the Id field value if set, zero value otherwise.
|
||||
func (o *Root) GetId() string {
|
||||
if o == nil || o.Id == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Id
|
||||
}
|
||||
|
||||
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Root) GetIdOk() (*string, bool) {
|
||||
if o == nil || o.Id == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Id, true
|
||||
}
|
||||
|
||||
// HasId returns a boolean if a field has been set.
|
||||
func (o *Root) HasId() bool {
|
||||
if o != nil && o.Id != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetId gets a reference to the given string and assigns it to the Id field.
|
||||
func (o *Root) SetId(v string) {
|
||||
o.Id = &v
|
||||
}
|
||||
|
||||
// GetName returns the Name field value
|
||||
func (o *Root) GetName() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.Name
|
||||
}
|
||||
|
||||
// GetNameOk returns a tuple with the Name field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Root) GetNameOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Name, true
|
||||
}
|
||||
|
||||
// SetName sets field value
|
||||
func (o *Root) SetName(v string) {
|
||||
o.Name = v
|
||||
}
|
||||
|
||||
// GetRedfishVersion returns the RedfishVersion field value if set, zero value otherwise.
|
||||
func (o *Root) GetRedfishVersion() string {
|
||||
if o == nil || o.RedfishVersion == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.RedfishVersion
|
||||
}
|
||||
|
||||
// GetRedfishVersionOk returns a tuple with the RedfishVersion field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Root) GetRedfishVersionOk() (*string, bool) {
|
||||
if o == nil || o.RedfishVersion == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.RedfishVersion, true
|
||||
}
|
||||
|
||||
// HasRedfishVersion returns a boolean if a field has been set.
|
||||
func (o *Root) HasRedfishVersion() bool {
|
||||
if o != nil && o.RedfishVersion != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetRedfishVersion gets a reference to the given string and assigns it to the RedfishVersion field.
|
||||
func (o *Root) SetRedfishVersion(v string) {
|
||||
o.RedfishVersion = &v
|
||||
}
|
||||
|
||||
// GetUUID returns the UUID field value if set, zero value otherwise.
|
||||
func (o *Root) GetUUID() string {
|
||||
if o == nil || o.UUID == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.UUID
|
||||
}
|
||||
|
||||
// GetUUIDOk returns a tuple with the UUID field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Root) GetUUIDOk() (*string, bool) {
|
||||
if o == nil || o.UUID == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.UUID, true
|
||||
}
|
||||
|
||||
// HasUUID returns a boolean if a field has been set.
|
||||
func (o *Root) HasUUID() bool {
|
||||
if o != nil && o.UUID != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetUUID gets a reference to the given string and assigns it to the UUID field.
|
||||
func (o *Root) SetUUID(v string) {
|
||||
o.UUID = &v
|
||||
}
|
||||
|
||||
// GetOdataType returns the OdataType field value
|
||||
func (o *Root) GetOdataType() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.OdataType
|
||||
}
|
||||
|
||||
// GetOdataTypeOk returns a tuple with the OdataType field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Root) GetOdataTypeOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.OdataType, true
|
||||
}
|
||||
|
||||
// SetOdataType sets field value
|
||||
func (o *Root) SetOdataType(v string) {
|
||||
o.OdataType = v
|
||||
}
|
||||
|
||||
// GetOdataId returns the OdataId field value
|
||||
func (o *Root) GetOdataId() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.OdataId
|
||||
}
|
||||
|
||||
// GetOdataIdOk returns a tuple with the OdataId field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Root) GetOdataIdOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.OdataId, true
|
||||
}
|
||||
|
||||
// SetOdataId sets field value
|
||||
func (o *Root) SetOdataId(v string) {
|
||||
o.OdataId = v
|
||||
}
|
||||
|
||||
// GetRedfishCopyright returns the RedfishCopyright field value if set, zero value otherwise.
|
||||
func (o *Root) GetRedfishCopyright() string {
|
||||
if o == nil || o.RedfishCopyright == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.RedfishCopyright
|
||||
}
|
||||
|
||||
// GetRedfishCopyrightOk returns a tuple with the RedfishCopyright field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Root) GetRedfishCopyrightOk() (*string, bool) {
|
||||
if o == nil || o.RedfishCopyright == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.RedfishCopyright, true
|
||||
}
|
||||
|
||||
// HasRedfishCopyright returns a boolean if a field has been set.
|
||||
func (o *Root) HasRedfishCopyright() bool {
|
||||
if o != nil && o.RedfishCopyright != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetRedfishCopyright gets a reference to the given string and assigns it to the RedfishCopyright field.
|
||||
func (o *Root) SetRedfishCopyright(v string) {
|
||||
o.RedfishCopyright = &v
|
||||
}
|
||||
|
||||
// GetSystems returns the Systems field value if set, zero value otherwise.
|
||||
func (o *Root) GetSystems() IdRef {
|
||||
if o == nil || o.Systems == nil {
|
||||
var ret IdRef
|
||||
return ret
|
||||
}
|
||||
return *o.Systems
|
||||
}
|
||||
|
||||
// GetSystemsOk returns a tuple with the Systems field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Root) GetSystemsOk() (*IdRef, bool) {
|
||||
if o == nil || o.Systems == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Systems, true
|
||||
}
|
||||
|
||||
// HasSystems returns a boolean if a field has been set.
|
||||
func (o *Root) HasSystems() bool {
|
||||
if o != nil && o.Systems != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetSystems gets a reference to the given IdRef and assigns it to the Systems field.
|
||||
func (o *Root) SetSystems(v IdRef) {
|
||||
o.Systems = &v
|
||||
}
|
||||
|
||||
// GetManagers returns the Managers field value if set, zero value otherwise.
|
||||
func (o *Root) GetManagers() IdRef {
|
||||
if o == nil || o.Managers == nil {
|
||||
var ret IdRef
|
||||
return ret
|
||||
}
|
||||
return *o.Managers
|
||||
}
|
||||
|
||||
// GetManagersOk returns a tuple with the Managers field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Root) GetManagersOk() (*IdRef, bool) {
|
||||
if o == nil || o.Managers == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Managers, true
|
||||
}
|
||||
|
||||
// HasManagers returns a boolean if a field has been set.
|
||||
func (o *Root) HasManagers() bool {
|
||||
if o != nil && o.Managers != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetManagers gets a reference to the given IdRef and assigns it to the Managers field.
|
||||
func (o *Root) SetManagers(v IdRef) {
|
||||
o.Managers = &v
|
||||
}
|
||||
|
||||
func (o Root) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if o.Id != nil {
|
||||
toSerialize["Id"] = o.Id
|
||||
}
|
||||
if true {
|
||||
toSerialize["Name"] = o.Name
|
||||
}
|
||||
if o.RedfishVersion != nil {
|
||||
toSerialize["RedfishVersion"] = o.RedfishVersion
|
||||
}
|
||||
if o.UUID != nil {
|
||||
toSerialize["UUID"] = o.UUID
|
||||
}
|
||||
if true {
|
||||
toSerialize["@odata.type"] = o.OdataType
|
||||
}
|
||||
if true {
|
||||
toSerialize["@odata.id"] = o.OdataId
|
||||
}
|
||||
if o.RedfishCopyright != nil {
|
||||
toSerialize["@Redfish.Copyright"] = o.RedfishCopyright
|
||||
}
|
||||
if o.Systems != nil {
|
||||
toSerialize["Systems"] = o.Systems
|
||||
}
|
||||
if o.Managers != nil {
|
||||
toSerialize["Managers"] = o.Managers
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
type NullableRoot struct {
|
||||
value *Root
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableRoot) Get() *Root {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableRoot) Set(val *Root) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableRoot) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableRoot) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableRoot(val *Root) *NullableRoot {
|
||||
return &NullableRoot{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableRoot) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableRoot) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
|
@ -4,13 +4,177 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// SimpleUpdateRequestBody struct for SimpleUpdateRequestBody
|
||||
type SimpleUpdateRequestBody struct {
|
||||
ImageURI string `json:"ImageURI"`
|
||||
Targets []string `json:"Targets,omitempty"`
|
||||
TransferProtocolType TransferProtocolType `json:"TransferProtocolType,omitempty"`
|
||||
Targets *[]string `json:"Targets,omitempty"`
|
||||
TransferProtocolType *TransferProtocolType `json:"TransferProtocolType,omitempty"`
|
||||
}
|
||||
|
||||
// NewSimpleUpdateRequestBody instantiates a new SimpleUpdateRequestBody object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewSimpleUpdateRequestBody(imageURI string) *SimpleUpdateRequestBody {
|
||||
this := SimpleUpdateRequestBody{}
|
||||
this.ImageURI = imageURI
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewSimpleUpdateRequestBodyWithDefaults instantiates a new SimpleUpdateRequestBody object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewSimpleUpdateRequestBodyWithDefaults() *SimpleUpdateRequestBody {
|
||||
this := SimpleUpdateRequestBody{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetImageURI returns the ImageURI field value
|
||||
func (o *SimpleUpdateRequestBody) GetImageURI() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.ImageURI
|
||||
}
|
||||
|
||||
// GetImageURIOk returns a tuple with the ImageURI field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SimpleUpdateRequestBody) GetImageURIOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.ImageURI, true
|
||||
}
|
||||
|
||||
// SetImageURI sets field value
|
||||
func (o *SimpleUpdateRequestBody) SetImageURI(v string) {
|
||||
o.ImageURI = v
|
||||
}
|
||||
|
||||
// GetTargets returns the Targets field value if set, zero value otherwise.
|
||||
func (o *SimpleUpdateRequestBody) GetTargets() []string {
|
||||
if o == nil || o.Targets == nil {
|
||||
var ret []string
|
||||
return ret
|
||||
}
|
||||
return *o.Targets
|
||||
}
|
||||
|
||||
// GetTargetsOk returns a tuple with the Targets field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SimpleUpdateRequestBody) GetTargetsOk() (*[]string, bool) {
|
||||
if o == nil || o.Targets == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Targets, true
|
||||
}
|
||||
|
||||
// HasTargets returns a boolean if a field has been set.
|
||||
func (o *SimpleUpdateRequestBody) HasTargets() bool {
|
||||
if o != nil && o.Targets != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetTargets gets a reference to the given []string and assigns it to the Targets field.
|
||||
func (o *SimpleUpdateRequestBody) SetTargets(v []string) {
|
||||
o.Targets = &v
|
||||
}
|
||||
|
||||
// GetTransferProtocolType returns the TransferProtocolType field value if set, zero value otherwise.
|
||||
func (o *SimpleUpdateRequestBody) GetTransferProtocolType() TransferProtocolType {
|
||||
if o == nil || o.TransferProtocolType == nil {
|
||||
var ret TransferProtocolType
|
||||
return ret
|
||||
}
|
||||
return *o.TransferProtocolType
|
||||
}
|
||||
|
||||
// GetTransferProtocolTypeOk returns a tuple with the TransferProtocolType field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SimpleUpdateRequestBody) GetTransferProtocolTypeOk() (*TransferProtocolType, bool) {
|
||||
if o == nil || o.TransferProtocolType == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.TransferProtocolType, true
|
||||
}
|
||||
|
||||
// HasTransferProtocolType returns a boolean if a field has been set.
|
||||
func (o *SimpleUpdateRequestBody) HasTransferProtocolType() bool {
|
||||
if o != nil && o.TransferProtocolType != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetTransferProtocolType gets a reference to the given TransferProtocolType and assigns it to the TransferProtocolType field.
|
||||
func (o *SimpleUpdateRequestBody) SetTransferProtocolType(v TransferProtocolType) {
|
||||
o.TransferProtocolType = &v
|
||||
}
|
||||
|
||||
func (o SimpleUpdateRequestBody) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if true {
|
||||
toSerialize["ImageURI"] = o.ImageURI
|
||||
}
|
||||
if o.Targets != nil {
|
||||
toSerialize["Targets"] = o.Targets
|
||||
}
|
||||
if o.TransferProtocolType != nil {
|
||||
toSerialize["TransferProtocolType"] = o.TransferProtocolType
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
type NullableSimpleUpdateRequestBody struct {
|
||||
value *SimpleUpdateRequestBody
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableSimpleUpdateRequestBody) Get() *SimpleUpdateRequestBody {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableSimpleUpdateRequestBody) Set(val *SimpleUpdateRequestBody) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableSimpleUpdateRequestBody) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableSimpleUpdateRequestBody) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableSimpleUpdateRequestBody(val *SimpleUpdateRequestBody) *NullableSimpleUpdateRequestBody {
|
||||
return &NullableSimpleUpdateRequestBody{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableSimpleUpdateRequestBody) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableSimpleUpdateRequestBody) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
|
@ -4,30 +4,701 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"time"
|
||||
)
|
||||
|
||||
// SoftwareInventory This schema defines an inventory of software components.
|
||||
type SoftwareInventory struct {
|
||||
OdataType string `json:"@odata.type"`
|
||||
OdataId string `json:"@odata.id"`
|
||||
OdataContext string `json:"@odata.context,omitempty"`
|
||||
OdataEtag string `json:"@odata.etag,omitempty"`
|
||||
Description *string `json:"Description,omitempty"`
|
||||
OdataContext *string `json:"@odata.context,omitempty"`
|
||||
OdataEtag *string `json:"@odata.etag,omitempty"`
|
||||
Description NullableString `json:"Description,omitempty"`
|
||||
Id string `json:"Id"`
|
||||
LowestSupportedVersion *string `json:"LowestSupportedVersion,omitempty"`
|
||||
Manufacturer *string `json:"Manufacturer,omitempty"`
|
||||
LowestSupportedVersion NullableString `json:"LowestSupportedVersion,omitempty"`
|
||||
Manufacturer NullableString `json:"Manufacturer,omitempty"`
|
||||
Name string `json:"Name"`
|
||||
RelatedItem []IdRef `json:"RelatedItem,omitempty"`
|
||||
RelatedItemodataCount *int32 `json:"RelatedItem@odata.count,omitempty"`
|
||||
ReleaseDate *time.Time `json:"ReleaseDate,omitempty"`
|
||||
SoftwareId string `json:"SoftwareId,omitempty"`
|
||||
Status Status `json:"Status,omitempty"`
|
||||
UefiDevicePaths []string `json:"UefiDevicePaths,omitempty"`
|
||||
Updateable *bool `json:"Updateable"`
|
||||
Version *string `json:"Version"`
|
||||
RelatedItem *[]IdRef `json:"RelatedItem,omitempty"`
|
||||
RelatedItemodataCount NullableInt32 `json:"RelatedItem@odata.count,omitempty"`
|
||||
ReleaseDate NullableTime `json:"ReleaseDate,omitempty"`
|
||||
SoftwareId *string `json:"SoftwareId,omitempty"`
|
||||
Status *Status `json:"Status,omitempty"`
|
||||
UefiDevicePaths *[]string `json:"UefiDevicePaths,omitempty"`
|
||||
Updateable NullableBool `json:"Updateable"`
|
||||
Version NullableString `json:"Version"`
|
||||
}
|
||||
|
||||
// NewSoftwareInventory instantiates a new SoftwareInventory object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewSoftwareInventory(odataType string, odataId string, id string, name string, updateable NullableBool, version NullableString) *SoftwareInventory {
|
||||
this := SoftwareInventory{}
|
||||
this.OdataType = odataType
|
||||
this.OdataId = odataId
|
||||
this.Id = id
|
||||
this.Name = name
|
||||
this.Updateable = updateable
|
||||
this.Version = version
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewSoftwareInventoryWithDefaults instantiates a new SoftwareInventory object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewSoftwareInventoryWithDefaults() *SoftwareInventory {
|
||||
this := SoftwareInventory{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetOdataType returns the OdataType field value
|
||||
func (o *SoftwareInventory) GetOdataType() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.OdataType
|
||||
}
|
||||
|
||||
// GetOdataTypeOk returns a tuple with the OdataType field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SoftwareInventory) GetOdataTypeOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.OdataType, true
|
||||
}
|
||||
|
||||
// SetOdataType sets field value
|
||||
func (o *SoftwareInventory) SetOdataType(v string) {
|
||||
o.OdataType = v
|
||||
}
|
||||
|
||||
// GetOdataId returns the OdataId field value
|
||||
func (o *SoftwareInventory) GetOdataId() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.OdataId
|
||||
}
|
||||
|
||||
// GetOdataIdOk returns a tuple with the OdataId field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SoftwareInventory) GetOdataIdOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.OdataId, true
|
||||
}
|
||||
|
||||
// SetOdataId sets field value
|
||||
func (o *SoftwareInventory) SetOdataId(v string) {
|
||||
o.OdataId = v
|
||||
}
|
||||
|
||||
// GetOdataContext returns the OdataContext field value if set, zero value otherwise.
|
||||
func (o *SoftwareInventory) GetOdataContext() string {
|
||||
if o == nil || o.OdataContext == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.OdataContext
|
||||
}
|
||||
|
||||
// GetOdataContextOk returns a tuple with the OdataContext field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SoftwareInventory) GetOdataContextOk() (*string, bool) {
|
||||
if o == nil || o.OdataContext == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.OdataContext, true
|
||||
}
|
||||
|
||||
// HasOdataContext returns a boolean if a field has been set.
|
||||
func (o *SoftwareInventory) HasOdataContext() bool {
|
||||
if o != nil && o.OdataContext != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetOdataContext gets a reference to the given string and assigns it to the OdataContext field.
|
||||
func (o *SoftwareInventory) SetOdataContext(v string) {
|
||||
o.OdataContext = &v
|
||||
}
|
||||
|
||||
// GetOdataEtag returns the OdataEtag field value if set, zero value otherwise.
|
||||
func (o *SoftwareInventory) GetOdataEtag() string {
|
||||
if o == nil || o.OdataEtag == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.OdataEtag
|
||||
}
|
||||
|
||||
// GetOdataEtagOk returns a tuple with the OdataEtag field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SoftwareInventory) GetOdataEtagOk() (*string, bool) {
|
||||
if o == nil || o.OdataEtag == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.OdataEtag, true
|
||||
}
|
||||
|
||||
// HasOdataEtag returns a boolean if a field has been set.
|
||||
func (o *SoftwareInventory) HasOdataEtag() bool {
|
||||
if o != nil && o.OdataEtag != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetOdataEtag gets a reference to the given string and assigns it to the OdataEtag field.
|
||||
func (o *SoftwareInventory) SetOdataEtag(v string) {
|
||||
o.OdataEtag = &v
|
||||
}
|
||||
|
||||
// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null).
|
||||
func (o *SoftwareInventory) GetDescription() string {
|
||||
if o == nil || o.Description.Get() == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Description.Get()
|
||||
}
|
||||
|
||||
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
||||
func (o *SoftwareInventory) GetDescriptionOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Description.Get(), o.Description.IsSet()
|
||||
}
|
||||
|
||||
// HasDescription returns a boolean if a field has been set.
|
||||
func (o *SoftwareInventory) HasDescription() bool {
|
||||
if o != nil && o.Description.IsSet() {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetDescription gets a reference to the given NullableString and assigns it to the Description field.
|
||||
func (o *SoftwareInventory) SetDescription(v string) {
|
||||
o.Description.Set(&v)
|
||||
}
|
||||
// SetDescriptionNil sets the value for Description to be an explicit nil
|
||||
func (o *SoftwareInventory) SetDescriptionNil() {
|
||||
o.Description.Set(nil)
|
||||
}
|
||||
|
||||
// UnsetDescription ensures that no value is present for Description, not even an explicit nil
|
||||
func (o *SoftwareInventory) UnsetDescription() {
|
||||
o.Description.Unset()
|
||||
}
|
||||
|
||||
// GetId returns the Id field value
|
||||
func (o *SoftwareInventory) GetId() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.Id
|
||||
}
|
||||
|
||||
// GetIdOk returns a tuple with the Id field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SoftwareInventory) GetIdOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Id, true
|
||||
}
|
||||
|
||||
// SetId sets field value
|
||||
func (o *SoftwareInventory) SetId(v string) {
|
||||
o.Id = v
|
||||
}
|
||||
|
||||
// GetLowestSupportedVersion returns the LowestSupportedVersion field value if set, zero value otherwise (both if not set or set to explicit null).
|
||||
func (o *SoftwareInventory) GetLowestSupportedVersion() string {
|
||||
if o == nil || o.LowestSupportedVersion.Get() == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.LowestSupportedVersion.Get()
|
||||
}
|
||||
|
||||
// GetLowestSupportedVersionOk returns a tuple with the LowestSupportedVersion field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
||||
func (o *SoftwareInventory) GetLowestSupportedVersionOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.LowestSupportedVersion.Get(), o.LowestSupportedVersion.IsSet()
|
||||
}
|
||||
|
||||
// HasLowestSupportedVersion returns a boolean if a field has been set.
|
||||
func (o *SoftwareInventory) HasLowestSupportedVersion() bool {
|
||||
if o != nil && o.LowestSupportedVersion.IsSet() {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetLowestSupportedVersion gets a reference to the given NullableString and assigns it to the LowestSupportedVersion field.
|
||||
func (o *SoftwareInventory) SetLowestSupportedVersion(v string) {
|
||||
o.LowestSupportedVersion.Set(&v)
|
||||
}
|
||||
// SetLowestSupportedVersionNil sets the value for LowestSupportedVersion to be an explicit nil
|
||||
func (o *SoftwareInventory) SetLowestSupportedVersionNil() {
|
||||
o.LowestSupportedVersion.Set(nil)
|
||||
}
|
||||
|
||||
// UnsetLowestSupportedVersion ensures that no value is present for LowestSupportedVersion, not even an explicit nil
|
||||
func (o *SoftwareInventory) UnsetLowestSupportedVersion() {
|
||||
o.LowestSupportedVersion.Unset()
|
||||
}
|
||||
|
||||
// GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null).
|
||||
func (o *SoftwareInventory) GetManufacturer() string {
|
||||
if o == nil || o.Manufacturer.Get() == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Manufacturer.Get()
|
||||
}
|
||||
|
||||
// GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
||||
func (o *SoftwareInventory) GetManufacturerOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Manufacturer.Get(), o.Manufacturer.IsSet()
|
||||
}
|
||||
|
||||
// HasManufacturer returns a boolean if a field has been set.
|
||||
func (o *SoftwareInventory) HasManufacturer() bool {
|
||||
if o != nil && o.Manufacturer.IsSet() {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetManufacturer gets a reference to the given NullableString and assigns it to the Manufacturer field.
|
||||
func (o *SoftwareInventory) SetManufacturer(v string) {
|
||||
o.Manufacturer.Set(&v)
|
||||
}
|
||||
// SetManufacturerNil sets the value for Manufacturer to be an explicit nil
|
||||
func (o *SoftwareInventory) SetManufacturerNil() {
|
||||
o.Manufacturer.Set(nil)
|
||||
}
|
||||
|
||||
// UnsetManufacturer ensures that no value is present for Manufacturer, not even an explicit nil
|
||||
func (o *SoftwareInventory) UnsetManufacturer() {
|
||||
o.Manufacturer.Unset()
|
||||
}
|
||||
|
||||
// GetName returns the Name field value
|
||||
func (o *SoftwareInventory) GetName() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.Name
|
||||
}
|
||||
|
||||
// GetNameOk returns a tuple with the Name field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SoftwareInventory) GetNameOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Name, true
|
||||
}
|
||||
|
||||
// SetName sets field value
|
||||
func (o *SoftwareInventory) SetName(v string) {
|
||||
o.Name = v
|
||||
}
|
||||
|
||||
// GetRelatedItem returns the RelatedItem field value if set, zero value otherwise.
|
||||
func (o *SoftwareInventory) GetRelatedItem() []IdRef {
|
||||
if o == nil || o.RelatedItem == nil {
|
||||
var ret []IdRef
|
||||
return ret
|
||||
}
|
||||
return *o.RelatedItem
|
||||
}
|
||||
|
||||
// GetRelatedItemOk returns a tuple with the RelatedItem field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SoftwareInventory) GetRelatedItemOk() (*[]IdRef, bool) {
|
||||
if o == nil || o.RelatedItem == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.RelatedItem, true
|
||||
}
|
||||
|
||||
// HasRelatedItem returns a boolean if a field has been set.
|
||||
func (o *SoftwareInventory) HasRelatedItem() bool {
|
||||
if o != nil && o.RelatedItem != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetRelatedItem gets a reference to the given []IdRef and assigns it to the RelatedItem field.
|
||||
func (o *SoftwareInventory) SetRelatedItem(v []IdRef) {
|
||||
o.RelatedItem = &v
|
||||
}
|
||||
|
||||
// GetRelatedItemodataCount returns the RelatedItemodataCount field value if set, zero value otherwise (both if not set or set to explicit null).
|
||||
func (o *SoftwareInventory) GetRelatedItemodataCount() int32 {
|
||||
if o == nil || o.RelatedItemodataCount.Get() == nil {
|
||||
var ret int32
|
||||
return ret
|
||||
}
|
||||
return *o.RelatedItemodataCount.Get()
|
||||
}
|
||||
|
||||
// GetRelatedItemodataCountOk returns a tuple with the RelatedItemodataCount field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
||||
func (o *SoftwareInventory) GetRelatedItemodataCountOk() (*int32, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.RelatedItemodataCount.Get(), o.RelatedItemodataCount.IsSet()
|
||||
}
|
||||
|
||||
// HasRelatedItemodataCount returns a boolean if a field has been set.
|
||||
func (o *SoftwareInventory) HasRelatedItemodataCount() bool {
|
||||
if o != nil && o.RelatedItemodataCount.IsSet() {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetRelatedItemodataCount gets a reference to the given NullableInt32 and assigns it to the RelatedItemodataCount field.
|
||||
func (o *SoftwareInventory) SetRelatedItemodataCount(v int32) {
|
||||
o.RelatedItemodataCount.Set(&v)
|
||||
}
|
||||
// SetRelatedItemodataCountNil sets the value for RelatedItemodataCount to be an explicit nil
|
||||
func (o *SoftwareInventory) SetRelatedItemodataCountNil() {
|
||||
o.RelatedItemodataCount.Set(nil)
|
||||
}
|
||||
|
||||
// UnsetRelatedItemodataCount ensures that no value is present for RelatedItemodataCount, not even an explicit nil
|
||||
func (o *SoftwareInventory) UnsetRelatedItemodataCount() {
|
||||
o.RelatedItemodataCount.Unset()
|
||||
}
|
||||
|
||||
// GetReleaseDate returns the ReleaseDate field value if set, zero value otherwise (both if not set or set to explicit null).
|
||||
func (o *SoftwareInventory) GetReleaseDate() time.Time {
|
||||
if o == nil || o.ReleaseDate.Get() == nil {
|
||||
var ret time.Time
|
||||
return ret
|
||||
}
|
||||
return *o.ReleaseDate.Get()
|
||||
}
|
||||
|
||||
// GetReleaseDateOk returns a tuple with the ReleaseDate field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
||||
func (o *SoftwareInventory) GetReleaseDateOk() (*time.Time, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.ReleaseDate.Get(), o.ReleaseDate.IsSet()
|
||||
}
|
||||
|
||||
// HasReleaseDate returns a boolean if a field has been set.
|
||||
func (o *SoftwareInventory) HasReleaseDate() bool {
|
||||
if o != nil && o.ReleaseDate.IsSet() {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetReleaseDate gets a reference to the given NullableTime and assigns it to the ReleaseDate field.
|
||||
func (o *SoftwareInventory) SetReleaseDate(v time.Time) {
|
||||
o.ReleaseDate.Set(&v)
|
||||
}
|
||||
// SetReleaseDateNil sets the value for ReleaseDate to be an explicit nil
|
||||
func (o *SoftwareInventory) SetReleaseDateNil() {
|
||||
o.ReleaseDate.Set(nil)
|
||||
}
|
||||
|
||||
// UnsetReleaseDate ensures that no value is present for ReleaseDate, not even an explicit nil
|
||||
func (o *SoftwareInventory) UnsetReleaseDate() {
|
||||
o.ReleaseDate.Unset()
|
||||
}
|
||||
|
||||
// GetSoftwareId returns the SoftwareId field value if set, zero value otherwise.
|
||||
func (o *SoftwareInventory) GetSoftwareId() string {
|
||||
if o == nil || o.SoftwareId == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.SoftwareId
|
||||
}
|
||||
|
||||
// GetSoftwareIdOk returns a tuple with the SoftwareId field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SoftwareInventory) GetSoftwareIdOk() (*string, bool) {
|
||||
if o == nil || o.SoftwareId == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.SoftwareId, true
|
||||
}
|
||||
|
||||
// HasSoftwareId returns a boolean if a field has been set.
|
||||
func (o *SoftwareInventory) HasSoftwareId() bool {
|
||||
if o != nil && o.SoftwareId != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetSoftwareId gets a reference to the given string and assigns it to the SoftwareId field.
|
||||
func (o *SoftwareInventory) SetSoftwareId(v string) {
|
||||
o.SoftwareId = &v
|
||||
}
|
||||
|
||||
// GetStatus returns the Status field value if set, zero value otherwise.
|
||||
func (o *SoftwareInventory) GetStatus() Status {
|
||||
if o == nil || o.Status == nil {
|
||||
var ret Status
|
||||
return ret
|
||||
}
|
||||
return *o.Status
|
||||
}
|
||||
|
||||
// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SoftwareInventory) GetStatusOk() (*Status, bool) {
|
||||
if o == nil || o.Status == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Status, true
|
||||
}
|
||||
|
||||
// HasStatus returns a boolean if a field has been set.
|
||||
func (o *SoftwareInventory) HasStatus() bool {
|
||||
if o != nil && o.Status != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetStatus gets a reference to the given Status and assigns it to the Status field.
|
||||
func (o *SoftwareInventory) SetStatus(v Status) {
|
||||
o.Status = &v
|
||||
}
|
||||
|
||||
// GetUefiDevicePaths returns the UefiDevicePaths field value if set, zero value otherwise.
|
||||
func (o *SoftwareInventory) GetUefiDevicePaths() []string {
|
||||
if o == nil || o.UefiDevicePaths == nil {
|
||||
var ret []string
|
||||
return ret
|
||||
}
|
||||
return *o.UefiDevicePaths
|
||||
}
|
||||
|
||||
// GetUefiDevicePathsOk returns a tuple with the UefiDevicePaths field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SoftwareInventory) GetUefiDevicePathsOk() (*[]string, bool) {
|
||||
if o == nil || o.UefiDevicePaths == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.UefiDevicePaths, true
|
||||
}
|
||||
|
||||
// HasUefiDevicePaths returns a boolean if a field has been set.
|
||||
func (o *SoftwareInventory) HasUefiDevicePaths() bool {
|
||||
if o != nil && o.UefiDevicePaths != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetUefiDevicePaths gets a reference to the given []string and assigns it to the UefiDevicePaths field.
|
||||
func (o *SoftwareInventory) SetUefiDevicePaths(v []string) {
|
||||
o.UefiDevicePaths = &v
|
||||
}
|
||||
|
||||
// GetUpdateable returns the Updateable field value
|
||||
// If the value is explicit nil, the zero value for bool will be returned
|
||||
func (o *SoftwareInventory) GetUpdateable() bool {
|
||||
if o == nil || o.Updateable.Get() == nil {
|
||||
var ret bool
|
||||
return ret
|
||||
}
|
||||
|
||||
return *o.Updateable.Get()
|
||||
}
|
||||
|
||||
// GetUpdateableOk returns a tuple with the Updateable field value
|
||||
// and a boolean to check if the value has been set.
|
||||
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
||||
func (o *SoftwareInventory) GetUpdateableOk() (*bool, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Updateable.Get(), o.Updateable.IsSet()
|
||||
}
|
||||
|
||||
// SetUpdateable sets field value
|
||||
func (o *SoftwareInventory) SetUpdateable(v bool) {
|
||||
o.Updateable.Set(&v)
|
||||
}
|
||||
|
||||
// GetVersion returns the Version field value
|
||||
// If the value is explicit nil, the zero value for string will be returned
|
||||
func (o *SoftwareInventory) GetVersion() string {
|
||||
if o == nil || o.Version.Get() == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return *o.Version.Get()
|
||||
}
|
||||
|
||||
// GetVersionOk returns a tuple with the Version field value
|
||||
// and a boolean to check if the value has been set.
|
||||
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
||||
func (o *SoftwareInventory) GetVersionOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Version.Get(), o.Version.IsSet()
|
||||
}
|
||||
|
||||
// SetVersion sets field value
|
||||
func (o *SoftwareInventory) SetVersion(v string) {
|
||||
o.Version.Set(&v)
|
||||
}
|
||||
|
||||
func (o SoftwareInventory) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if true {
|
||||
toSerialize["@odata.type"] = o.OdataType
|
||||
}
|
||||
if true {
|
||||
toSerialize["@odata.id"] = o.OdataId
|
||||
}
|
||||
if o.OdataContext != nil {
|
||||
toSerialize["@odata.context"] = o.OdataContext
|
||||
}
|
||||
if o.OdataEtag != nil {
|
||||
toSerialize["@odata.etag"] = o.OdataEtag
|
||||
}
|
||||
if o.Description.IsSet() {
|
||||
toSerialize["Description"] = o.Description.Get()
|
||||
}
|
||||
if true {
|
||||
toSerialize["Id"] = o.Id
|
||||
}
|
||||
if o.LowestSupportedVersion.IsSet() {
|
||||
toSerialize["LowestSupportedVersion"] = o.LowestSupportedVersion.Get()
|
||||
}
|
||||
if o.Manufacturer.IsSet() {
|
||||
toSerialize["Manufacturer"] = o.Manufacturer.Get()
|
||||
}
|
||||
if true {
|
||||
toSerialize["Name"] = o.Name
|
||||
}
|
||||
if o.RelatedItem != nil {
|
||||
toSerialize["RelatedItem"] = o.RelatedItem
|
||||
}
|
||||
if o.RelatedItemodataCount.IsSet() {
|
||||
toSerialize["RelatedItem@odata.count"] = o.RelatedItemodataCount.Get()
|
||||
}
|
||||
if o.ReleaseDate.IsSet() {
|
||||
toSerialize["ReleaseDate"] = o.ReleaseDate.Get()
|
||||
}
|
||||
if o.SoftwareId != nil {
|
||||
toSerialize["SoftwareId"] = o.SoftwareId
|
||||
}
|
||||
if o.Status != nil {
|
||||
toSerialize["Status"] = o.Status
|
||||
}
|
||||
if o.UefiDevicePaths != nil {
|
||||
toSerialize["UefiDevicePaths"] = o.UefiDevicePaths
|
||||
}
|
||||
if true {
|
||||
toSerialize["Updateable"] = o.Updateable.Get()
|
||||
}
|
||||
if true {
|
||||
toSerialize["Version"] = o.Version.Get()
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
type NullableSoftwareInventory struct {
|
||||
value *SoftwareInventory
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableSoftwareInventory) Get() *SoftwareInventory {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableSoftwareInventory) Set(val *SoftwareInventory) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableSoftwareInventory) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableSoftwareInventory) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableSoftwareInventory(val *SoftwareInventory) *NullableSoftwareInventory {
|
||||
return &NullableSoftwareInventory{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableSoftwareInventory) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableSoftwareInventory) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
|
@ -4,10 +4,17 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// State the model 'State'
|
||||
type State string
|
||||
|
||||
@ -25,3 +32,62 @@ const (
|
||||
STATE_QUIESCED State = "Quiesced"
|
||||
STATE_UPDATING State = "Updating"
|
||||
)
|
||||
|
||||
func (v *State) UnmarshalJSON(src []byte) error {
|
||||
var value string
|
||||
err := json.Unmarshal(src, &value)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
enumTypeValue := State(value)
|
||||
for _, existing := range []State{ "Enabled", "Disabled", "StandbyOffline", "StandbySpare", "InTest", "Starting", "Absent", "UnavailableOffline", "Deferring", "Quiesced", "Updating", } {
|
||||
if existing == enumTypeValue {
|
||||
*v = enumTypeValue
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
return fmt.Errorf("%+v is not a valid State", value)
|
||||
}
|
||||
|
||||
// Ptr returns reference to State value
|
||||
func (v State) Ptr() *State {
|
||||
return &v
|
||||
}
|
||||
|
||||
type NullableState struct {
|
||||
value *State
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableState) Get() *State {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableState) Set(val *State) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableState) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableState) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableState(val *State) *NullableState {
|
||||
return &NullableState{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableState) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableState) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
@ -4,13 +4,184 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// Status struct for Status
|
||||
type Status struct {
|
||||
Health Health `json:"Health,omitempty"`
|
||||
HealthRollup Health `json:"HealthRollup,omitempty"`
|
||||
State State `json:"State,omitempty"`
|
||||
Health *Health `json:"Health,omitempty"`
|
||||
HealthRollup *Health `json:"HealthRollup,omitempty"`
|
||||
State *State `json:"State,omitempty"`
|
||||
}
|
||||
|
||||
// NewStatus instantiates a new Status object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewStatus() *Status {
|
||||
this := Status{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewStatusWithDefaults instantiates a new Status object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewStatusWithDefaults() *Status {
|
||||
this := Status{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetHealth returns the Health field value if set, zero value otherwise.
|
||||
func (o *Status) GetHealth() Health {
|
||||
if o == nil || o.Health == nil {
|
||||
var ret Health
|
||||
return ret
|
||||
}
|
||||
return *o.Health
|
||||
}
|
||||
|
||||
// GetHealthOk returns a tuple with the Health field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Status) GetHealthOk() (*Health, bool) {
|
||||
if o == nil || o.Health == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Health, true
|
||||
}
|
||||
|
||||
// HasHealth returns a boolean if a field has been set.
|
||||
func (o *Status) HasHealth() bool {
|
||||
if o != nil && o.Health != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetHealth gets a reference to the given Health and assigns it to the Health field.
|
||||
func (o *Status) SetHealth(v Health) {
|
||||
o.Health = &v
|
||||
}
|
||||
|
||||
// GetHealthRollup returns the HealthRollup field value if set, zero value otherwise.
|
||||
func (o *Status) GetHealthRollup() Health {
|
||||
if o == nil || o.HealthRollup == nil {
|
||||
var ret Health
|
||||
return ret
|
||||
}
|
||||
return *o.HealthRollup
|
||||
}
|
||||
|
||||
// GetHealthRollupOk returns a tuple with the HealthRollup field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Status) GetHealthRollupOk() (*Health, bool) {
|
||||
if o == nil || o.HealthRollup == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.HealthRollup, true
|
||||
}
|
||||
|
||||
// HasHealthRollup returns a boolean if a field has been set.
|
||||
func (o *Status) HasHealthRollup() bool {
|
||||
if o != nil && o.HealthRollup != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetHealthRollup gets a reference to the given Health and assigns it to the HealthRollup field.
|
||||
func (o *Status) SetHealthRollup(v Health) {
|
||||
o.HealthRollup = &v
|
||||
}
|
||||
|
||||
// GetState returns the State field value if set, zero value otherwise.
|
||||
func (o *Status) GetState() State {
|
||||
if o == nil || o.State == nil {
|
||||
var ret State
|
||||
return ret
|
||||
}
|
||||
return *o.State
|
||||
}
|
||||
|
||||
// GetStateOk returns a tuple with the State field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Status) GetStateOk() (*State, bool) {
|
||||
if o == nil || o.State == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.State, true
|
||||
}
|
||||
|
||||
// HasState returns a boolean if a field has been set.
|
||||
func (o *Status) HasState() bool {
|
||||
if o != nil && o.State != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetState gets a reference to the given State and assigns it to the State field.
|
||||
func (o *Status) SetState(v State) {
|
||||
o.State = &v
|
||||
}
|
||||
|
||||
func (o Status) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if o.Health != nil {
|
||||
toSerialize["Health"] = o.Health
|
||||
}
|
||||
if o.HealthRollup != nil {
|
||||
toSerialize["HealthRollup"] = o.HealthRollup
|
||||
}
|
||||
if o.State != nil {
|
||||
toSerialize["State"] = o.State
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
type NullableStatus struct {
|
||||
value *Status
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableStatus) Get() *Status {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableStatus) Set(val *Status) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableStatus) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableStatus) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableStatus(val *Status) *NullableStatus {
|
||||
return &NullableStatus{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableStatus) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableStatus) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
|
@ -4,12 +4,148 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// SystemLinks struct for SystemLinks
|
||||
type SystemLinks struct {
|
||||
Chassis []IdRef `json:"Chassis,omitempty"`
|
||||
ManagedBy []IdRef `json:"ManagedBy,omitempty"`
|
||||
Chassis *[]IdRef `json:"Chassis,omitempty"`
|
||||
ManagedBy *[]IdRef `json:"ManagedBy,omitempty"`
|
||||
}
|
||||
|
||||
// NewSystemLinks instantiates a new SystemLinks object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewSystemLinks() *SystemLinks {
|
||||
this := SystemLinks{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewSystemLinksWithDefaults instantiates a new SystemLinks object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewSystemLinksWithDefaults() *SystemLinks {
|
||||
this := SystemLinks{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetChassis returns the Chassis field value if set, zero value otherwise.
|
||||
func (o *SystemLinks) GetChassis() []IdRef {
|
||||
if o == nil || o.Chassis == nil {
|
||||
var ret []IdRef
|
||||
return ret
|
||||
}
|
||||
return *o.Chassis
|
||||
}
|
||||
|
||||
// GetChassisOk returns a tuple with the Chassis field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SystemLinks) GetChassisOk() (*[]IdRef, bool) {
|
||||
if o == nil || o.Chassis == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Chassis, true
|
||||
}
|
||||
|
||||
// HasChassis returns a boolean if a field has been set.
|
||||
func (o *SystemLinks) HasChassis() bool {
|
||||
if o != nil && o.Chassis != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetChassis gets a reference to the given []IdRef and assigns it to the Chassis field.
|
||||
func (o *SystemLinks) SetChassis(v []IdRef) {
|
||||
o.Chassis = &v
|
||||
}
|
||||
|
||||
// GetManagedBy returns the ManagedBy field value if set, zero value otherwise.
|
||||
func (o *SystemLinks) GetManagedBy() []IdRef {
|
||||
if o == nil || o.ManagedBy == nil {
|
||||
var ret []IdRef
|
||||
return ret
|
||||
}
|
||||
return *o.ManagedBy
|
||||
}
|
||||
|
||||
// GetManagedByOk returns a tuple with the ManagedBy field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SystemLinks) GetManagedByOk() (*[]IdRef, bool) {
|
||||
if o == nil || o.ManagedBy == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.ManagedBy, true
|
||||
}
|
||||
|
||||
// HasManagedBy returns a boolean if a field has been set.
|
||||
func (o *SystemLinks) HasManagedBy() bool {
|
||||
if o != nil && o.ManagedBy != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetManagedBy gets a reference to the given []IdRef and assigns it to the ManagedBy field.
|
||||
func (o *SystemLinks) SetManagedBy(v []IdRef) {
|
||||
o.ManagedBy = &v
|
||||
}
|
||||
|
||||
func (o SystemLinks) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if o.Chassis != nil {
|
||||
toSerialize["Chassis"] = o.Chassis
|
||||
}
|
||||
if o.ManagedBy != nil {
|
||||
toSerialize["ManagedBy"] = o.ManagedBy
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
type NullableSystemLinks struct {
|
||||
value *SystemLinks
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableSystemLinks) Get() *SystemLinks {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableSystemLinks) Set(val *SystemLinks) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableSystemLinks) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableSystemLinks) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableSystemLinks(val *SystemLinks) *NullableSystemLinks {
|
||||
return &NullableSystemLinks{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableSystemLinks) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableSystemLinks) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
|
@ -4,42 +4,648 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"time"
|
||||
)
|
||||
|
||||
// Task This resource contains information about a specific Task scheduled by or being executed by a Redfish service's Task Service.
|
||||
type Task struct {
|
||||
// The OData description of a payload.
|
||||
OdataContext string `json:"@odata.context,omitempty"`
|
||||
OdataContext *string `json:"@odata.context,omitempty"`
|
||||
// The current ETag of the resource.
|
||||
OdataEtag string `json:"@odata.etag,omitempty"`
|
||||
OdataEtag *string `json:"@odata.etag,omitempty"`
|
||||
// The name of the resource.
|
||||
OdataId string `json:"@odata.id"`
|
||||
// The type of a resource.
|
||||
OdataType string `json:"@odata.type"`
|
||||
// description
|
||||
Description *string `json:"Description,omitempty"`
|
||||
Description NullableString `json:"Description,omitempty"`
|
||||
// The date-time stamp that the task was last completed.
|
||||
EndTime string `json:"EndTime,omitempty"`
|
||||
EndTime *string `json:"EndTime,omitempty"`
|
||||
// Indicates that the contents of the Payload should be hidden from view after the Task has been created. When set to True, the Payload object will not be returned on GET.
|
||||
HidePayload bool `json:"HidePayload,omitempty"`
|
||||
HidePayload *bool `json:"HidePayload,omitempty"`
|
||||
// The name of the resource.
|
||||
Id string `json:"Id"`
|
||||
// This is an array of messages associated with the task.
|
||||
Messages []Message `json:"Messages,omitempty"`
|
||||
Messages *[]Message `json:"Messages,omitempty"`
|
||||
// The name of the resource.
|
||||
Name string `json:"Name"`
|
||||
// This is the manufacturer/provider specific extension moniker used to divide the Oem object into sections.
|
||||
Oem string `json:"Oem,omitempty"`
|
||||
Payload Payload `json:"Payload,omitempty"`
|
||||
Oem *string `json:"Oem,omitempty"`
|
||||
Payload *Payload `json:"Payload,omitempty"`
|
||||
// The date-time stamp that the task was last started.
|
||||
StartTime time.Time `json:"StartTime,omitempty"`
|
||||
StartTime *time.Time `json:"StartTime,omitempty"`
|
||||
// The URI of the Task Monitor for this task.
|
||||
TaskMonitor string `json:"TaskMonitor,omitempty"`
|
||||
TaskState TaskState `json:"TaskState,omitempty"`
|
||||
TaskStatus Health `json:"TaskStatus,omitempty"`
|
||||
TaskMonitor *string `json:"TaskMonitor,omitempty"`
|
||||
TaskState *TaskState `json:"TaskState,omitempty"`
|
||||
TaskStatus *Health `json:"TaskStatus,omitempty"`
|
||||
}
|
||||
|
||||
// NewTask instantiates a new Task object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewTask(odataId string, odataType string, id string, name string) *Task {
|
||||
this := Task{}
|
||||
this.OdataId = odataId
|
||||
this.OdataType = odataType
|
||||
this.Id = id
|
||||
this.Name = name
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewTaskWithDefaults instantiates a new Task object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewTaskWithDefaults() *Task {
|
||||
this := Task{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetOdataContext returns the OdataContext field value if set, zero value otherwise.
|
||||
func (o *Task) GetOdataContext() string {
|
||||
if o == nil || o.OdataContext == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.OdataContext
|
||||
}
|
||||
|
||||
// GetOdataContextOk returns a tuple with the OdataContext field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Task) GetOdataContextOk() (*string, bool) {
|
||||
if o == nil || o.OdataContext == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.OdataContext, true
|
||||
}
|
||||
|
||||
// HasOdataContext returns a boolean if a field has been set.
|
||||
func (o *Task) HasOdataContext() bool {
|
||||
if o != nil && o.OdataContext != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetOdataContext gets a reference to the given string and assigns it to the OdataContext field.
|
||||
func (o *Task) SetOdataContext(v string) {
|
||||
o.OdataContext = &v
|
||||
}
|
||||
|
||||
// GetOdataEtag returns the OdataEtag field value if set, zero value otherwise.
|
||||
func (o *Task) GetOdataEtag() string {
|
||||
if o == nil || o.OdataEtag == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.OdataEtag
|
||||
}
|
||||
|
||||
// GetOdataEtagOk returns a tuple with the OdataEtag field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Task) GetOdataEtagOk() (*string, bool) {
|
||||
if o == nil || o.OdataEtag == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.OdataEtag, true
|
||||
}
|
||||
|
||||
// HasOdataEtag returns a boolean if a field has been set.
|
||||
func (o *Task) HasOdataEtag() bool {
|
||||
if o != nil && o.OdataEtag != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetOdataEtag gets a reference to the given string and assigns it to the OdataEtag field.
|
||||
func (o *Task) SetOdataEtag(v string) {
|
||||
o.OdataEtag = &v
|
||||
}
|
||||
|
||||
// GetOdataId returns the OdataId field value
|
||||
func (o *Task) GetOdataId() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.OdataId
|
||||
}
|
||||
|
||||
// GetOdataIdOk returns a tuple with the OdataId field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Task) GetOdataIdOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.OdataId, true
|
||||
}
|
||||
|
||||
// SetOdataId sets field value
|
||||
func (o *Task) SetOdataId(v string) {
|
||||
o.OdataId = v
|
||||
}
|
||||
|
||||
// GetOdataType returns the OdataType field value
|
||||
func (o *Task) GetOdataType() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.OdataType
|
||||
}
|
||||
|
||||
// GetOdataTypeOk returns a tuple with the OdataType field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Task) GetOdataTypeOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.OdataType, true
|
||||
}
|
||||
|
||||
// SetOdataType sets field value
|
||||
func (o *Task) SetOdataType(v string) {
|
||||
o.OdataType = v
|
||||
}
|
||||
|
||||
// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null).
|
||||
func (o *Task) GetDescription() string {
|
||||
if o == nil || o.Description.Get() == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Description.Get()
|
||||
}
|
||||
|
||||
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
||||
func (o *Task) GetDescriptionOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Description.Get(), o.Description.IsSet()
|
||||
}
|
||||
|
||||
// HasDescription returns a boolean if a field has been set.
|
||||
func (o *Task) HasDescription() bool {
|
||||
if o != nil && o.Description.IsSet() {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetDescription gets a reference to the given NullableString and assigns it to the Description field.
|
||||
func (o *Task) SetDescription(v string) {
|
||||
o.Description.Set(&v)
|
||||
}
|
||||
// SetDescriptionNil sets the value for Description to be an explicit nil
|
||||
func (o *Task) SetDescriptionNil() {
|
||||
o.Description.Set(nil)
|
||||
}
|
||||
|
||||
// UnsetDescription ensures that no value is present for Description, not even an explicit nil
|
||||
func (o *Task) UnsetDescription() {
|
||||
o.Description.Unset()
|
||||
}
|
||||
|
||||
// GetEndTime returns the EndTime field value if set, zero value otherwise.
|
||||
func (o *Task) GetEndTime() string {
|
||||
if o == nil || o.EndTime == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.EndTime
|
||||
}
|
||||
|
||||
// GetEndTimeOk returns a tuple with the EndTime field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Task) GetEndTimeOk() (*string, bool) {
|
||||
if o == nil || o.EndTime == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.EndTime, true
|
||||
}
|
||||
|
||||
// HasEndTime returns a boolean if a field has been set.
|
||||
func (o *Task) HasEndTime() bool {
|
||||
if o != nil && o.EndTime != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetEndTime gets a reference to the given string and assigns it to the EndTime field.
|
||||
func (o *Task) SetEndTime(v string) {
|
||||
o.EndTime = &v
|
||||
}
|
||||
|
||||
// GetHidePayload returns the HidePayload field value if set, zero value otherwise.
|
||||
func (o *Task) GetHidePayload() bool {
|
||||
if o == nil || o.HidePayload == nil {
|
||||
var ret bool
|
||||
return ret
|
||||
}
|
||||
return *o.HidePayload
|
||||
}
|
||||
|
||||
// GetHidePayloadOk returns a tuple with the HidePayload field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Task) GetHidePayloadOk() (*bool, bool) {
|
||||
if o == nil || o.HidePayload == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.HidePayload, true
|
||||
}
|
||||
|
||||
// HasHidePayload returns a boolean if a field has been set.
|
||||
func (o *Task) HasHidePayload() bool {
|
||||
if o != nil && o.HidePayload != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetHidePayload gets a reference to the given bool and assigns it to the HidePayload field.
|
||||
func (o *Task) SetHidePayload(v bool) {
|
||||
o.HidePayload = &v
|
||||
}
|
||||
|
||||
// GetId returns the Id field value
|
||||
func (o *Task) GetId() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.Id
|
||||
}
|
||||
|
||||
// GetIdOk returns a tuple with the Id field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Task) GetIdOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Id, true
|
||||
}
|
||||
|
||||
// SetId sets field value
|
||||
func (o *Task) SetId(v string) {
|
||||
o.Id = v
|
||||
}
|
||||
|
||||
// GetMessages returns the Messages field value if set, zero value otherwise.
|
||||
func (o *Task) GetMessages() []Message {
|
||||
if o == nil || o.Messages == nil {
|
||||
var ret []Message
|
||||
return ret
|
||||
}
|
||||
return *o.Messages
|
||||
}
|
||||
|
||||
// GetMessagesOk returns a tuple with the Messages field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Task) GetMessagesOk() (*[]Message, bool) {
|
||||
if o == nil || o.Messages == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Messages, true
|
||||
}
|
||||
|
||||
// HasMessages returns a boolean if a field has been set.
|
||||
func (o *Task) HasMessages() bool {
|
||||
if o != nil && o.Messages != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetMessages gets a reference to the given []Message and assigns it to the Messages field.
|
||||
func (o *Task) SetMessages(v []Message) {
|
||||
o.Messages = &v
|
||||
}
|
||||
|
||||
// GetName returns the Name field value
|
||||
func (o *Task) GetName() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.Name
|
||||
}
|
||||
|
||||
// GetNameOk returns a tuple with the Name field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Task) GetNameOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Name, true
|
||||
}
|
||||
|
||||
// SetName sets field value
|
||||
func (o *Task) SetName(v string) {
|
||||
o.Name = v
|
||||
}
|
||||
|
||||
// GetOem returns the Oem field value if set, zero value otherwise.
|
||||
func (o *Task) GetOem() string {
|
||||
if o == nil || o.Oem == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Oem
|
||||
}
|
||||
|
||||
// GetOemOk returns a tuple with the Oem field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Task) GetOemOk() (*string, bool) {
|
||||
if o == nil || o.Oem == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Oem, true
|
||||
}
|
||||
|
||||
// HasOem returns a boolean if a field has been set.
|
||||
func (o *Task) HasOem() bool {
|
||||
if o != nil && o.Oem != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetOem gets a reference to the given string and assigns it to the Oem field.
|
||||
func (o *Task) SetOem(v string) {
|
||||
o.Oem = &v
|
||||
}
|
||||
|
||||
// GetPayload returns the Payload field value if set, zero value otherwise.
|
||||
func (o *Task) GetPayload() Payload {
|
||||
if o == nil || o.Payload == nil {
|
||||
var ret Payload
|
||||
return ret
|
||||
}
|
||||
return *o.Payload
|
||||
}
|
||||
|
||||
// GetPayloadOk returns a tuple with the Payload field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Task) GetPayloadOk() (*Payload, bool) {
|
||||
if o == nil || o.Payload == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Payload, true
|
||||
}
|
||||
|
||||
// HasPayload returns a boolean if a field has been set.
|
||||
func (o *Task) HasPayload() bool {
|
||||
if o != nil && o.Payload != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetPayload gets a reference to the given Payload and assigns it to the Payload field.
|
||||
func (o *Task) SetPayload(v Payload) {
|
||||
o.Payload = &v
|
||||
}
|
||||
|
||||
// GetStartTime returns the StartTime field value if set, zero value otherwise.
|
||||
func (o *Task) GetStartTime() time.Time {
|
||||
if o == nil || o.StartTime == nil {
|
||||
var ret time.Time
|
||||
return ret
|
||||
}
|
||||
return *o.StartTime
|
||||
}
|
||||
|
||||
// GetStartTimeOk returns a tuple with the StartTime field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Task) GetStartTimeOk() (*time.Time, bool) {
|
||||
if o == nil || o.StartTime == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.StartTime, true
|
||||
}
|
||||
|
||||
// HasStartTime returns a boolean if a field has been set.
|
||||
func (o *Task) HasStartTime() bool {
|
||||
if o != nil && o.StartTime != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetStartTime gets a reference to the given time.Time and assigns it to the StartTime field.
|
||||
func (o *Task) SetStartTime(v time.Time) {
|
||||
o.StartTime = &v
|
||||
}
|
||||
|
||||
// GetTaskMonitor returns the TaskMonitor field value if set, zero value otherwise.
|
||||
func (o *Task) GetTaskMonitor() string {
|
||||
if o == nil || o.TaskMonitor == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.TaskMonitor
|
||||
}
|
||||
|
||||
// GetTaskMonitorOk returns a tuple with the TaskMonitor field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Task) GetTaskMonitorOk() (*string, bool) {
|
||||
if o == nil || o.TaskMonitor == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.TaskMonitor, true
|
||||
}
|
||||
|
||||
// HasTaskMonitor returns a boolean if a field has been set.
|
||||
func (o *Task) HasTaskMonitor() bool {
|
||||
if o != nil && o.TaskMonitor != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetTaskMonitor gets a reference to the given string and assigns it to the TaskMonitor field.
|
||||
func (o *Task) SetTaskMonitor(v string) {
|
||||
o.TaskMonitor = &v
|
||||
}
|
||||
|
||||
// GetTaskState returns the TaskState field value if set, zero value otherwise.
|
||||
func (o *Task) GetTaskState() TaskState {
|
||||
if o == nil || o.TaskState == nil {
|
||||
var ret TaskState
|
||||
return ret
|
||||
}
|
||||
return *o.TaskState
|
||||
}
|
||||
|
||||
// GetTaskStateOk returns a tuple with the TaskState field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Task) GetTaskStateOk() (*TaskState, bool) {
|
||||
if o == nil || o.TaskState == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.TaskState, true
|
||||
}
|
||||
|
||||
// HasTaskState returns a boolean if a field has been set.
|
||||
func (o *Task) HasTaskState() bool {
|
||||
if o != nil && o.TaskState != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetTaskState gets a reference to the given TaskState and assigns it to the TaskState field.
|
||||
func (o *Task) SetTaskState(v TaskState) {
|
||||
o.TaskState = &v
|
||||
}
|
||||
|
||||
// GetTaskStatus returns the TaskStatus field value if set, zero value otherwise.
|
||||
func (o *Task) GetTaskStatus() Health {
|
||||
if o == nil || o.TaskStatus == nil {
|
||||
var ret Health
|
||||
return ret
|
||||
}
|
||||
return *o.TaskStatus
|
||||
}
|
||||
|
||||
// GetTaskStatusOk returns a tuple with the TaskStatus field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Task) GetTaskStatusOk() (*Health, bool) {
|
||||
if o == nil || o.TaskStatus == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.TaskStatus, true
|
||||
}
|
||||
|
||||
// HasTaskStatus returns a boolean if a field has been set.
|
||||
func (o *Task) HasTaskStatus() bool {
|
||||
if o != nil && o.TaskStatus != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetTaskStatus gets a reference to the given Health and assigns it to the TaskStatus field.
|
||||
func (o *Task) SetTaskStatus(v Health) {
|
||||
o.TaskStatus = &v
|
||||
}
|
||||
|
||||
func (o Task) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if o.OdataContext != nil {
|
||||
toSerialize["@odata.context"] = o.OdataContext
|
||||
}
|
||||
if o.OdataEtag != nil {
|
||||
toSerialize["@odata.etag"] = o.OdataEtag
|
||||
}
|
||||
if true {
|
||||
toSerialize["@odata.id"] = o.OdataId
|
||||
}
|
||||
if true {
|
||||
toSerialize["@odata.type"] = o.OdataType
|
||||
}
|
||||
if o.Description.IsSet() {
|
||||
toSerialize["Description"] = o.Description.Get()
|
||||
}
|
||||
if o.EndTime != nil {
|
||||
toSerialize["EndTime"] = o.EndTime
|
||||
}
|
||||
if o.HidePayload != nil {
|
||||
toSerialize["HidePayload"] = o.HidePayload
|
||||
}
|
||||
if true {
|
||||
toSerialize["Id"] = o.Id
|
||||
}
|
||||
if o.Messages != nil {
|
||||
toSerialize["Messages"] = o.Messages
|
||||
}
|
||||
if true {
|
||||
toSerialize["Name"] = o.Name
|
||||
}
|
||||
if o.Oem != nil {
|
||||
toSerialize["Oem"] = o.Oem
|
||||
}
|
||||
if o.Payload != nil {
|
||||
toSerialize["Payload"] = o.Payload
|
||||
}
|
||||
if o.StartTime != nil {
|
||||
toSerialize["StartTime"] = o.StartTime
|
||||
}
|
||||
if o.TaskMonitor != nil {
|
||||
toSerialize["TaskMonitor"] = o.TaskMonitor
|
||||
}
|
||||
if o.TaskState != nil {
|
||||
toSerialize["TaskState"] = o.TaskState
|
||||
}
|
||||
if o.TaskStatus != nil {
|
||||
toSerialize["TaskStatus"] = o.TaskStatus
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
type NullableTask struct {
|
||||
value *Task
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableTask) Get() *Task {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableTask) Set(val *Task) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableTask) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableTask) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableTask(val *Task) *NullableTask {
|
||||
return &NullableTask{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableTask) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableTask) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
|
@ -4,10 +4,17 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// TaskState the model 'TaskState'
|
||||
type TaskState string
|
||||
|
||||
@ -27,3 +34,62 @@ const (
|
||||
TASKSTATE_CANCELLING TaskState = "Cancelling"
|
||||
TASKSTATE_CANCELLED TaskState = "Cancelled"
|
||||
)
|
||||
|
||||
func (v *TaskState) UnmarshalJSON(src []byte) error {
|
||||
var value string
|
||||
err := json.Unmarshal(src, &value)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
enumTypeValue := TaskState(value)
|
||||
for _, existing := range []TaskState{ "New", "Starting", "Running", "Suspended", "Interrupted", "Pending", "Stopping", "Completed", "Killed", "Exception", "Service", "Cancelling", "Cancelled", } {
|
||||
if existing == enumTypeValue {
|
||||
*v = enumTypeValue
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
return fmt.Errorf("%+v is not a valid TaskState", value)
|
||||
}
|
||||
|
||||
// Ptr returns reference to TaskState value
|
||||
func (v TaskState) Ptr() *TaskState {
|
||||
return &v
|
||||
}
|
||||
|
||||
type NullableTaskState struct {
|
||||
value *TaskState
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableTaskState) Get() *TaskState {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableTaskState) Set(val *TaskState) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableTaskState) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableTaskState) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableTaskState(val *TaskState) *NullableTaskState {
|
||||
return &NullableTaskState{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableTaskState) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableTaskState) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
@ -4,10 +4,17 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// TransferMethod the model 'TransferMethod'
|
||||
type TransferMethod string
|
||||
|
||||
@ -16,3 +23,62 @@ const (
|
||||
TRANSFERMETHOD_STREAM TransferMethod = "Stream"
|
||||
TRANSFERMETHOD_UPLOAD TransferMethod = "Upload"
|
||||
)
|
||||
|
||||
func (v *TransferMethod) UnmarshalJSON(src []byte) error {
|
||||
var value string
|
||||
err := json.Unmarshal(src, &value)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
enumTypeValue := TransferMethod(value)
|
||||
for _, existing := range []TransferMethod{ "Stream", "Upload", } {
|
||||
if existing == enumTypeValue {
|
||||
*v = enumTypeValue
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
return fmt.Errorf("%+v is not a valid TransferMethod", value)
|
||||
}
|
||||
|
||||
// Ptr returns reference to TransferMethod value
|
||||
func (v TransferMethod) Ptr() *TransferMethod {
|
||||
return &v
|
||||
}
|
||||
|
||||
type NullableTransferMethod struct {
|
||||
value *TransferMethod
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableTransferMethod) Get() *TransferMethod {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableTransferMethod) Set(val *TransferMethod) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableTransferMethod) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableTransferMethod) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableTransferMethod(val *TransferMethod) *NullableTransferMethod {
|
||||
return &NullableTransferMethod{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableTransferMethod) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableTransferMethod) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
@ -4,10 +4,17 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// TransferProtocolType the model 'TransferProtocolType'
|
||||
type TransferProtocolType string
|
||||
|
||||
@ -22,3 +29,62 @@ const (
|
||||
TRANSFERPROTOCOLTYPE_SCP TransferProtocolType = "SCP"
|
||||
TRANSFERPROTOCOLTYPE_TFTP TransferProtocolType = "TFTP"
|
||||
)
|
||||
|
||||
func (v *TransferProtocolType) UnmarshalJSON(src []byte) error {
|
||||
var value string
|
||||
err := json.Unmarshal(src, &value)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
enumTypeValue := TransferProtocolType(value)
|
||||
for _, existing := range []TransferProtocolType{ "CIFS", "FTP", "SFTP", "HTTP", "HTTPS", "NFS", "SCP", "TFTP", } {
|
||||
if existing == enumTypeValue {
|
||||
*v = enumTypeValue
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
return fmt.Errorf("%+v is not a valid TransferProtocolType", value)
|
||||
}
|
||||
|
||||
// Ptr returns reference to TransferProtocolType value
|
||||
func (v TransferProtocolType) Ptr() *TransferProtocolType {
|
||||
return &v
|
||||
}
|
||||
|
||||
type NullableTransferProtocolType struct {
|
||||
value *TransferProtocolType
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableTransferProtocolType) Get() *TransferProtocolType {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableTransferProtocolType) Set(val *TransferProtocolType) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableTransferProtocolType) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableTransferProtocolType) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableTransferProtocolType(val *TransferProtocolType) *NullableTransferProtocolType {
|
||||
return &NullableTransferProtocolType{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableTransferProtocolType) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableTransferProtocolType) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
@ -4,15 +4,21 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// UpdateService Redfish Update Service.
|
||||
type UpdateService struct {
|
||||
FirmwareInventory FirmwareInventory `json:"FirmwareInventory,omitempty"`
|
||||
FirmwareInventory *FirmwareInventory `json:"FirmwareInventory,omitempty"`
|
||||
// The name of the resource.
|
||||
Id string `json:"Id,omitempty"`
|
||||
Id *string `json:"Id,omitempty"`
|
||||
// The name of the resource.
|
||||
Name string `json:"Name"`
|
||||
// The type of a resource.
|
||||
@ -20,10 +26,419 @@ type UpdateService struct {
|
||||
// The unique identifier for a resource.
|
||||
OdataId string `json:"@odata.id"`
|
||||
// The OData description of a payload.
|
||||
OdataContext string `json:"@odata.context,omitempty"`
|
||||
OdataContext *string `json:"@odata.context,omitempty"`
|
||||
// description
|
||||
Description *string `json:"Description,omitempty"`
|
||||
HttpPushUri string `json:"HttpPushUri,omitempty"`
|
||||
ServiceEnabled *bool `json:"ServiceEnabled,omitempty"`
|
||||
Actions UpdateServiceActions `json:"Actions,omitempty"`
|
||||
Description NullableString `json:"Description,omitempty"`
|
||||
HttpPushUri *string `json:"HttpPushUri,omitempty"`
|
||||
ServiceEnabled NullableBool `json:"ServiceEnabled,omitempty"`
|
||||
Actions *UpdateServiceActions `json:"Actions,omitempty"`
|
||||
}
|
||||
|
||||
// NewUpdateService instantiates a new UpdateService object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewUpdateService(name string, odataType string, odataId string) *UpdateService {
|
||||
this := UpdateService{}
|
||||
this.Name = name
|
||||
this.OdataType = odataType
|
||||
this.OdataId = odataId
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewUpdateServiceWithDefaults instantiates a new UpdateService object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewUpdateServiceWithDefaults() *UpdateService {
|
||||
this := UpdateService{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetFirmwareInventory returns the FirmwareInventory field value if set, zero value otherwise.
|
||||
func (o *UpdateService) GetFirmwareInventory() FirmwareInventory {
|
||||
if o == nil || o.FirmwareInventory == nil {
|
||||
var ret FirmwareInventory
|
||||
return ret
|
||||
}
|
||||
return *o.FirmwareInventory
|
||||
}
|
||||
|
||||
// GetFirmwareInventoryOk returns a tuple with the FirmwareInventory field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *UpdateService) GetFirmwareInventoryOk() (*FirmwareInventory, bool) {
|
||||
if o == nil || o.FirmwareInventory == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.FirmwareInventory, true
|
||||
}
|
||||
|
||||
// HasFirmwareInventory returns a boolean if a field has been set.
|
||||
func (o *UpdateService) HasFirmwareInventory() bool {
|
||||
if o != nil && o.FirmwareInventory != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetFirmwareInventory gets a reference to the given FirmwareInventory and assigns it to the FirmwareInventory field.
|
||||
func (o *UpdateService) SetFirmwareInventory(v FirmwareInventory) {
|
||||
o.FirmwareInventory = &v
|
||||
}
|
||||
|
||||
// GetId returns the Id field value if set, zero value otherwise.
|
||||
func (o *UpdateService) GetId() string {
|
||||
if o == nil || o.Id == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Id
|
||||
}
|
||||
|
||||
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *UpdateService) GetIdOk() (*string, bool) {
|
||||
if o == nil || o.Id == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Id, true
|
||||
}
|
||||
|
||||
// HasId returns a boolean if a field has been set.
|
||||
func (o *UpdateService) HasId() bool {
|
||||
if o != nil && o.Id != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetId gets a reference to the given string and assigns it to the Id field.
|
||||
func (o *UpdateService) SetId(v string) {
|
||||
o.Id = &v
|
||||
}
|
||||
|
||||
// GetName returns the Name field value
|
||||
func (o *UpdateService) GetName() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.Name
|
||||
}
|
||||
|
||||
// GetNameOk returns a tuple with the Name field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *UpdateService) GetNameOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Name, true
|
||||
}
|
||||
|
||||
// SetName sets field value
|
||||
func (o *UpdateService) SetName(v string) {
|
||||
o.Name = v
|
||||
}
|
||||
|
||||
// GetOdataType returns the OdataType field value
|
||||
func (o *UpdateService) GetOdataType() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.OdataType
|
||||
}
|
||||
|
||||
// GetOdataTypeOk returns a tuple with the OdataType field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *UpdateService) GetOdataTypeOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.OdataType, true
|
||||
}
|
||||
|
||||
// SetOdataType sets field value
|
||||
func (o *UpdateService) SetOdataType(v string) {
|
||||
o.OdataType = v
|
||||
}
|
||||
|
||||
// GetOdataId returns the OdataId field value
|
||||
func (o *UpdateService) GetOdataId() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.OdataId
|
||||
}
|
||||
|
||||
// GetOdataIdOk returns a tuple with the OdataId field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *UpdateService) GetOdataIdOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.OdataId, true
|
||||
}
|
||||
|
||||
// SetOdataId sets field value
|
||||
func (o *UpdateService) SetOdataId(v string) {
|
||||
o.OdataId = v
|
||||
}
|
||||
|
||||
// GetOdataContext returns the OdataContext field value if set, zero value otherwise.
|
||||
func (o *UpdateService) GetOdataContext() string {
|
||||
if o == nil || o.OdataContext == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.OdataContext
|
||||
}
|
||||
|
||||
// GetOdataContextOk returns a tuple with the OdataContext field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *UpdateService) GetOdataContextOk() (*string, bool) {
|
||||
if o == nil || o.OdataContext == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.OdataContext, true
|
||||
}
|
||||
|
||||
// HasOdataContext returns a boolean if a field has been set.
|
||||
func (o *UpdateService) HasOdataContext() bool {
|
||||
if o != nil && o.OdataContext != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetOdataContext gets a reference to the given string and assigns it to the OdataContext field.
|
||||
func (o *UpdateService) SetOdataContext(v string) {
|
||||
o.OdataContext = &v
|
||||
}
|
||||
|
||||
// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null).
|
||||
func (o *UpdateService) GetDescription() string {
|
||||
if o == nil || o.Description.Get() == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Description.Get()
|
||||
}
|
||||
|
||||
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
||||
func (o *UpdateService) GetDescriptionOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Description.Get(), o.Description.IsSet()
|
||||
}
|
||||
|
||||
// HasDescription returns a boolean if a field has been set.
|
||||
func (o *UpdateService) HasDescription() bool {
|
||||
if o != nil && o.Description.IsSet() {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetDescription gets a reference to the given NullableString and assigns it to the Description field.
|
||||
func (o *UpdateService) SetDescription(v string) {
|
||||
o.Description.Set(&v)
|
||||
}
|
||||
// SetDescriptionNil sets the value for Description to be an explicit nil
|
||||
func (o *UpdateService) SetDescriptionNil() {
|
||||
o.Description.Set(nil)
|
||||
}
|
||||
|
||||
// UnsetDescription ensures that no value is present for Description, not even an explicit nil
|
||||
func (o *UpdateService) UnsetDescription() {
|
||||
o.Description.Unset()
|
||||
}
|
||||
|
||||
// GetHttpPushUri returns the HttpPushUri field value if set, zero value otherwise.
|
||||
func (o *UpdateService) GetHttpPushUri() string {
|
||||
if o == nil || o.HttpPushUri == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.HttpPushUri
|
||||
}
|
||||
|
||||
// GetHttpPushUriOk returns a tuple with the HttpPushUri field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *UpdateService) GetHttpPushUriOk() (*string, bool) {
|
||||
if o == nil || o.HttpPushUri == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.HttpPushUri, true
|
||||
}
|
||||
|
||||
// HasHttpPushUri returns a boolean if a field has been set.
|
||||
func (o *UpdateService) HasHttpPushUri() bool {
|
||||
if o != nil && o.HttpPushUri != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetHttpPushUri gets a reference to the given string and assigns it to the HttpPushUri field.
|
||||
func (o *UpdateService) SetHttpPushUri(v string) {
|
||||
o.HttpPushUri = &v
|
||||
}
|
||||
|
||||
// GetServiceEnabled returns the ServiceEnabled field value if set, zero value otherwise (both if not set or set to explicit null).
|
||||
func (o *UpdateService) GetServiceEnabled() bool {
|
||||
if o == nil || o.ServiceEnabled.Get() == nil {
|
||||
var ret bool
|
||||
return ret
|
||||
}
|
||||
return *o.ServiceEnabled.Get()
|
||||
}
|
||||
|
||||
// GetServiceEnabledOk returns a tuple with the ServiceEnabled field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
||||
func (o *UpdateService) GetServiceEnabledOk() (*bool, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.ServiceEnabled.Get(), o.ServiceEnabled.IsSet()
|
||||
}
|
||||
|
||||
// HasServiceEnabled returns a boolean if a field has been set.
|
||||
func (o *UpdateService) HasServiceEnabled() bool {
|
||||
if o != nil && o.ServiceEnabled.IsSet() {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetServiceEnabled gets a reference to the given NullableBool and assigns it to the ServiceEnabled field.
|
||||
func (o *UpdateService) SetServiceEnabled(v bool) {
|
||||
o.ServiceEnabled.Set(&v)
|
||||
}
|
||||
// SetServiceEnabledNil sets the value for ServiceEnabled to be an explicit nil
|
||||
func (o *UpdateService) SetServiceEnabledNil() {
|
||||
o.ServiceEnabled.Set(nil)
|
||||
}
|
||||
|
||||
// UnsetServiceEnabled ensures that no value is present for ServiceEnabled, not even an explicit nil
|
||||
func (o *UpdateService) UnsetServiceEnabled() {
|
||||
o.ServiceEnabled.Unset()
|
||||
}
|
||||
|
||||
// GetActions returns the Actions field value if set, zero value otherwise.
|
||||
func (o *UpdateService) GetActions() UpdateServiceActions {
|
||||
if o == nil || o.Actions == nil {
|
||||
var ret UpdateServiceActions
|
||||
return ret
|
||||
}
|
||||
return *o.Actions
|
||||
}
|
||||
|
||||
// GetActionsOk returns a tuple with the Actions field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *UpdateService) GetActionsOk() (*UpdateServiceActions, bool) {
|
||||
if o == nil || o.Actions == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Actions, true
|
||||
}
|
||||
|
||||
// HasActions returns a boolean if a field has been set.
|
||||
func (o *UpdateService) HasActions() bool {
|
||||
if o != nil && o.Actions != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetActions gets a reference to the given UpdateServiceActions and assigns it to the Actions field.
|
||||
func (o *UpdateService) SetActions(v UpdateServiceActions) {
|
||||
o.Actions = &v
|
||||
}
|
||||
|
||||
func (o UpdateService) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if o.FirmwareInventory != nil {
|
||||
toSerialize["FirmwareInventory"] = o.FirmwareInventory
|
||||
}
|
||||
if o.Id != nil {
|
||||
toSerialize["Id"] = o.Id
|
||||
}
|
||||
if true {
|
||||
toSerialize["Name"] = o.Name
|
||||
}
|
||||
if true {
|
||||
toSerialize["@odata.type"] = o.OdataType
|
||||
}
|
||||
if true {
|
||||
toSerialize["@odata.id"] = o.OdataId
|
||||
}
|
||||
if o.OdataContext != nil {
|
||||
toSerialize["@odata.context"] = o.OdataContext
|
||||
}
|
||||
if o.Description.IsSet() {
|
||||
toSerialize["Description"] = o.Description.Get()
|
||||
}
|
||||
if o.HttpPushUri != nil {
|
||||
toSerialize["HttpPushUri"] = o.HttpPushUri
|
||||
}
|
||||
if o.ServiceEnabled.IsSet() {
|
||||
toSerialize["ServiceEnabled"] = o.ServiceEnabled.Get()
|
||||
}
|
||||
if o.Actions != nil {
|
||||
toSerialize["Actions"] = o.Actions
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
type NullableUpdateService struct {
|
||||
value *UpdateService
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableUpdateService) Get() *UpdateService {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableUpdateService) Set(val *UpdateService) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableUpdateService) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableUpdateService) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableUpdateService(val *UpdateService) *NullableUpdateService {
|
||||
return &NullableUpdateService{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableUpdateService) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableUpdateService) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
|
@ -4,12 +4,148 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// UpdateServiceActions struct for UpdateServiceActions
|
||||
type UpdateServiceActions struct {
|
||||
UpdateServiceSimpleUpdate VirtualMediaActionsVirtualMediaEjectMedia `json:"#UpdateService.SimpleUpdate,omitempty"`
|
||||
UpdateServiceStartUpdate VirtualMediaActionsVirtualMediaEjectMedia `json:"#UpdateService.StartUpdate,omitempty"`
|
||||
UpdateServiceSimpleUpdate *VirtualMediaActionsVirtualMediaEjectMedia `json:"#UpdateService.SimpleUpdate,omitempty"`
|
||||
UpdateServiceStartUpdate *VirtualMediaActionsVirtualMediaEjectMedia `json:"#UpdateService.StartUpdate,omitempty"`
|
||||
}
|
||||
|
||||
// NewUpdateServiceActions instantiates a new UpdateServiceActions object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewUpdateServiceActions() *UpdateServiceActions {
|
||||
this := UpdateServiceActions{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewUpdateServiceActionsWithDefaults instantiates a new UpdateServiceActions object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewUpdateServiceActionsWithDefaults() *UpdateServiceActions {
|
||||
this := UpdateServiceActions{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetUpdateServiceSimpleUpdate returns the UpdateServiceSimpleUpdate field value if set, zero value otherwise.
|
||||
func (o *UpdateServiceActions) GetUpdateServiceSimpleUpdate() VirtualMediaActionsVirtualMediaEjectMedia {
|
||||
if o == nil || o.UpdateServiceSimpleUpdate == nil {
|
||||
var ret VirtualMediaActionsVirtualMediaEjectMedia
|
||||
return ret
|
||||
}
|
||||
return *o.UpdateServiceSimpleUpdate
|
||||
}
|
||||
|
||||
// GetUpdateServiceSimpleUpdateOk returns a tuple with the UpdateServiceSimpleUpdate field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *UpdateServiceActions) GetUpdateServiceSimpleUpdateOk() (*VirtualMediaActionsVirtualMediaEjectMedia, bool) {
|
||||
if o == nil || o.UpdateServiceSimpleUpdate == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.UpdateServiceSimpleUpdate, true
|
||||
}
|
||||
|
||||
// HasUpdateServiceSimpleUpdate returns a boolean if a field has been set.
|
||||
func (o *UpdateServiceActions) HasUpdateServiceSimpleUpdate() bool {
|
||||
if o != nil && o.UpdateServiceSimpleUpdate != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetUpdateServiceSimpleUpdate gets a reference to the given VirtualMediaActionsVirtualMediaEjectMedia and assigns it to the UpdateServiceSimpleUpdate field.
|
||||
func (o *UpdateServiceActions) SetUpdateServiceSimpleUpdate(v VirtualMediaActionsVirtualMediaEjectMedia) {
|
||||
o.UpdateServiceSimpleUpdate = &v
|
||||
}
|
||||
|
||||
// GetUpdateServiceStartUpdate returns the UpdateServiceStartUpdate field value if set, zero value otherwise.
|
||||
func (o *UpdateServiceActions) GetUpdateServiceStartUpdate() VirtualMediaActionsVirtualMediaEjectMedia {
|
||||
if o == nil || o.UpdateServiceStartUpdate == nil {
|
||||
var ret VirtualMediaActionsVirtualMediaEjectMedia
|
||||
return ret
|
||||
}
|
||||
return *o.UpdateServiceStartUpdate
|
||||
}
|
||||
|
||||
// GetUpdateServiceStartUpdateOk returns a tuple with the UpdateServiceStartUpdate field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *UpdateServiceActions) GetUpdateServiceStartUpdateOk() (*VirtualMediaActionsVirtualMediaEjectMedia, bool) {
|
||||
if o == nil || o.UpdateServiceStartUpdate == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.UpdateServiceStartUpdate, true
|
||||
}
|
||||
|
||||
// HasUpdateServiceStartUpdate returns a boolean if a field has been set.
|
||||
func (o *UpdateServiceActions) HasUpdateServiceStartUpdate() bool {
|
||||
if o != nil && o.UpdateServiceStartUpdate != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetUpdateServiceStartUpdate gets a reference to the given VirtualMediaActionsVirtualMediaEjectMedia and assigns it to the UpdateServiceStartUpdate field.
|
||||
func (o *UpdateServiceActions) SetUpdateServiceStartUpdate(v VirtualMediaActionsVirtualMediaEjectMedia) {
|
||||
o.UpdateServiceStartUpdate = &v
|
||||
}
|
||||
|
||||
func (o UpdateServiceActions) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if o.UpdateServiceSimpleUpdate != nil {
|
||||
toSerialize["#UpdateService.SimpleUpdate"] = o.UpdateServiceSimpleUpdate
|
||||
}
|
||||
if o.UpdateServiceStartUpdate != nil {
|
||||
toSerialize["#UpdateService.StartUpdate"] = o.UpdateServiceStartUpdate
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
type NullableUpdateServiceActions struct {
|
||||
value *UpdateServiceActions
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableUpdateServiceActions) Get() *UpdateServiceActions {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableUpdateServiceActions) Set(val *UpdateServiceActions) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableUpdateServiceActions) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableUpdateServiceActions) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableUpdateServiceActions(val *UpdateServiceActions) *NullableUpdateServiceActions {
|
||||
return &NullableUpdateServiceActions{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableUpdateServiceActions) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableUpdateServiceActions) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
|
@ -4,14 +4,20 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// VirtualMedia Redfish virtual media resource for manager.
|
||||
type VirtualMedia struct {
|
||||
// The name of the resource.
|
||||
Id string `json:"Id,omitempty"`
|
||||
Id *string `json:"Id,omitempty"`
|
||||
// The name of the resource.
|
||||
Name string `json:"Name"`
|
||||
// The type of a resource.
|
||||
@ -19,20 +25,759 @@ type VirtualMedia struct {
|
||||
// The unique identifier for a resource.
|
||||
OdataId string `json:"@odata.id"`
|
||||
// The OData description of a payload.
|
||||
OdataContext string `json:"@odata.context,omitempty"`
|
||||
OdataContext *string `json:"@odata.context,omitempty"`
|
||||
// redfish copyright
|
||||
RedfishCopyright string `json:"@Redfish.Copyright,omitempty"`
|
||||
RedfishCopyright *string `json:"@Redfish.Copyright,omitempty"`
|
||||
// description
|
||||
Description *string `json:"Description,omitempty"`
|
||||
Image *string `json:"Image,omitempty"`
|
||||
ImageName *string `json:"ImageName,omitempty"`
|
||||
Inserted *bool `json:"Inserted,omitempty"`
|
||||
ConnectedVia ConnectedVia `json:"ConnectedVia,omitempty"`
|
||||
MediaTypes []string `json:"MediaTypes,omitempty"`
|
||||
WriteProtected *bool `json:"WriteProtected,omitempty"`
|
||||
UserName *string `json:"UserName,omitempty"`
|
||||
Password *string `json:"Password,omitempty"`
|
||||
TransferMethod TransferMethod `json:"TransferMethod,omitempty"`
|
||||
TransferProtocolType TransferProtocolType `json:"TransferProtocolType,omitempty"`
|
||||
Actions VirtualMediaActions `json:"Actions,omitempty"`
|
||||
Description NullableString `json:"Description,omitempty"`
|
||||
Image NullableString `json:"Image,omitempty"`
|
||||
ImageName NullableString `json:"ImageName,omitempty"`
|
||||
Inserted NullableBool `json:"Inserted,omitempty"`
|
||||
ConnectedVia *ConnectedVia `json:"ConnectedVia,omitempty"`
|
||||
MediaTypes *[]string `json:"MediaTypes,omitempty"`
|
||||
WriteProtected NullableBool `json:"WriteProtected,omitempty"`
|
||||
UserName NullableString `json:"UserName,omitempty"`
|
||||
Password NullableString `json:"Password,omitempty"`
|
||||
TransferMethod *TransferMethod `json:"TransferMethod,omitempty"`
|
||||
TransferProtocolType *TransferProtocolType `json:"TransferProtocolType,omitempty"`
|
||||
Actions *VirtualMediaActions `json:"Actions,omitempty"`
|
||||
}
|
||||
|
||||
// NewVirtualMedia instantiates a new VirtualMedia object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewVirtualMedia(name string, odataType string, odataId string) *VirtualMedia {
|
||||
this := VirtualMedia{}
|
||||
this.Name = name
|
||||
this.OdataType = odataType
|
||||
this.OdataId = odataId
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewVirtualMediaWithDefaults instantiates a new VirtualMedia object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewVirtualMediaWithDefaults() *VirtualMedia {
|
||||
this := VirtualMedia{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetId returns the Id field value if set, zero value otherwise.
|
||||
func (o *VirtualMedia) GetId() string {
|
||||
if o == nil || o.Id == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Id
|
||||
}
|
||||
|
||||
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *VirtualMedia) GetIdOk() (*string, bool) {
|
||||
if o == nil || o.Id == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Id, true
|
||||
}
|
||||
|
||||
// HasId returns a boolean if a field has been set.
|
||||
func (o *VirtualMedia) HasId() bool {
|
||||
if o != nil && o.Id != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetId gets a reference to the given string and assigns it to the Id field.
|
||||
func (o *VirtualMedia) SetId(v string) {
|
||||
o.Id = &v
|
||||
}
|
||||
|
||||
// GetName returns the Name field value
|
||||
func (o *VirtualMedia) GetName() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.Name
|
||||
}
|
||||
|
||||
// GetNameOk returns a tuple with the Name field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *VirtualMedia) GetNameOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Name, true
|
||||
}
|
||||
|
||||
// SetName sets field value
|
||||
func (o *VirtualMedia) SetName(v string) {
|
||||
o.Name = v
|
||||
}
|
||||
|
||||
// GetOdataType returns the OdataType field value
|
||||
func (o *VirtualMedia) GetOdataType() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.OdataType
|
||||
}
|
||||
|
||||
// GetOdataTypeOk returns a tuple with the OdataType field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *VirtualMedia) GetOdataTypeOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.OdataType, true
|
||||
}
|
||||
|
||||
// SetOdataType sets field value
|
||||
func (o *VirtualMedia) SetOdataType(v string) {
|
||||
o.OdataType = v
|
||||
}
|
||||
|
||||
// GetOdataId returns the OdataId field value
|
||||
func (o *VirtualMedia) GetOdataId() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.OdataId
|
||||
}
|
||||
|
||||
// GetOdataIdOk returns a tuple with the OdataId field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *VirtualMedia) GetOdataIdOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.OdataId, true
|
||||
}
|
||||
|
||||
// SetOdataId sets field value
|
||||
func (o *VirtualMedia) SetOdataId(v string) {
|
||||
o.OdataId = v
|
||||
}
|
||||
|
||||
// GetOdataContext returns the OdataContext field value if set, zero value otherwise.
|
||||
func (o *VirtualMedia) GetOdataContext() string {
|
||||
if o == nil || o.OdataContext == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.OdataContext
|
||||
}
|
||||
|
||||
// GetOdataContextOk returns a tuple with the OdataContext field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *VirtualMedia) GetOdataContextOk() (*string, bool) {
|
||||
if o == nil || o.OdataContext == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.OdataContext, true
|
||||
}
|
||||
|
||||
// HasOdataContext returns a boolean if a field has been set.
|
||||
func (o *VirtualMedia) HasOdataContext() bool {
|
||||
if o != nil && o.OdataContext != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetOdataContext gets a reference to the given string and assigns it to the OdataContext field.
|
||||
func (o *VirtualMedia) SetOdataContext(v string) {
|
||||
o.OdataContext = &v
|
||||
}
|
||||
|
||||
// GetRedfishCopyright returns the RedfishCopyright field value if set, zero value otherwise.
|
||||
func (o *VirtualMedia) GetRedfishCopyright() string {
|
||||
if o == nil || o.RedfishCopyright == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.RedfishCopyright
|
||||
}
|
||||
|
||||
// GetRedfishCopyrightOk returns a tuple with the RedfishCopyright field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *VirtualMedia) GetRedfishCopyrightOk() (*string, bool) {
|
||||
if o == nil || o.RedfishCopyright == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.RedfishCopyright, true
|
||||
}
|
||||
|
||||
// HasRedfishCopyright returns a boolean if a field has been set.
|
||||
func (o *VirtualMedia) HasRedfishCopyright() bool {
|
||||
if o != nil && o.RedfishCopyright != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetRedfishCopyright gets a reference to the given string and assigns it to the RedfishCopyright field.
|
||||
func (o *VirtualMedia) SetRedfishCopyright(v string) {
|
||||
o.RedfishCopyright = &v
|
||||
}
|
||||
|
||||
// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null).
|
||||
func (o *VirtualMedia) GetDescription() string {
|
||||
if o == nil || o.Description.Get() == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Description.Get()
|
||||
}
|
||||
|
||||
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
||||
func (o *VirtualMedia) GetDescriptionOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Description.Get(), o.Description.IsSet()
|
||||
}
|
||||
|
||||
// HasDescription returns a boolean if a field has been set.
|
||||
func (o *VirtualMedia) HasDescription() bool {
|
||||
if o != nil && o.Description.IsSet() {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetDescription gets a reference to the given NullableString and assigns it to the Description field.
|
||||
func (o *VirtualMedia) SetDescription(v string) {
|
||||
o.Description.Set(&v)
|
||||
}
|
||||
// SetDescriptionNil sets the value for Description to be an explicit nil
|
||||
func (o *VirtualMedia) SetDescriptionNil() {
|
||||
o.Description.Set(nil)
|
||||
}
|
||||
|
||||
// UnsetDescription ensures that no value is present for Description, not even an explicit nil
|
||||
func (o *VirtualMedia) UnsetDescription() {
|
||||
o.Description.Unset()
|
||||
}
|
||||
|
||||
// GetImage returns the Image field value if set, zero value otherwise (both if not set or set to explicit null).
|
||||
func (o *VirtualMedia) GetImage() string {
|
||||
if o == nil || o.Image.Get() == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Image.Get()
|
||||
}
|
||||
|
||||
// GetImageOk returns a tuple with the Image field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
||||
func (o *VirtualMedia) GetImageOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Image.Get(), o.Image.IsSet()
|
||||
}
|
||||
|
||||
// HasImage returns a boolean if a field has been set.
|
||||
func (o *VirtualMedia) HasImage() bool {
|
||||
if o != nil && o.Image.IsSet() {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetImage gets a reference to the given NullableString and assigns it to the Image field.
|
||||
func (o *VirtualMedia) SetImage(v string) {
|
||||
o.Image.Set(&v)
|
||||
}
|
||||
// SetImageNil sets the value for Image to be an explicit nil
|
||||
func (o *VirtualMedia) SetImageNil() {
|
||||
o.Image.Set(nil)
|
||||
}
|
||||
|
||||
// UnsetImage ensures that no value is present for Image, not even an explicit nil
|
||||
func (o *VirtualMedia) UnsetImage() {
|
||||
o.Image.Unset()
|
||||
}
|
||||
|
||||
// GetImageName returns the ImageName field value if set, zero value otherwise (both if not set or set to explicit null).
|
||||
func (o *VirtualMedia) GetImageName() string {
|
||||
if o == nil || o.ImageName.Get() == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.ImageName.Get()
|
||||
}
|
||||
|
||||
// GetImageNameOk returns a tuple with the ImageName field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
||||
func (o *VirtualMedia) GetImageNameOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.ImageName.Get(), o.ImageName.IsSet()
|
||||
}
|
||||
|
||||
// HasImageName returns a boolean if a field has been set.
|
||||
func (o *VirtualMedia) HasImageName() bool {
|
||||
if o != nil && o.ImageName.IsSet() {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetImageName gets a reference to the given NullableString and assigns it to the ImageName field.
|
||||
func (o *VirtualMedia) SetImageName(v string) {
|
||||
o.ImageName.Set(&v)
|
||||
}
|
||||
// SetImageNameNil sets the value for ImageName to be an explicit nil
|
||||
func (o *VirtualMedia) SetImageNameNil() {
|
||||
o.ImageName.Set(nil)
|
||||
}
|
||||
|
||||
// UnsetImageName ensures that no value is present for ImageName, not even an explicit nil
|
||||
func (o *VirtualMedia) UnsetImageName() {
|
||||
o.ImageName.Unset()
|
||||
}
|
||||
|
||||
// GetInserted returns the Inserted field value if set, zero value otherwise (both if not set or set to explicit null).
|
||||
func (o *VirtualMedia) GetInserted() bool {
|
||||
if o == nil || o.Inserted.Get() == nil {
|
||||
var ret bool
|
||||
return ret
|
||||
}
|
||||
return *o.Inserted.Get()
|
||||
}
|
||||
|
||||
// GetInsertedOk returns a tuple with the Inserted field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
||||
func (o *VirtualMedia) GetInsertedOk() (*bool, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Inserted.Get(), o.Inserted.IsSet()
|
||||
}
|
||||
|
||||
// HasInserted returns a boolean if a field has been set.
|
||||
func (o *VirtualMedia) HasInserted() bool {
|
||||
if o != nil && o.Inserted.IsSet() {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetInserted gets a reference to the given NullableBool and assigns it to the Inserted field.
|
||||
func (o *VirtualMedia) SetInserted(v bool) {
|
||||
o.Inserted.Set(&v)
|
||||
}
|
||||
// SetInsertedNil sets the value for Inserted to be an explicit nil
|
||||
func (o *VirtualMedia) SetInsertedNil() {
|
||||
o.Inserted.Set(nil)
|
||||
}
|
||||
|
||||
// UnsetInserted ensures that no value is present for Inserted, not even an explicit nil
|
||||
func (o *VirtualMedia) UnsetInserted() {
|
||||
o.Inserted.Unset()
|
||||
}
|
||||
|
||||
// GetConnectedVia returns the ConnectedVia field value if set, zero value otherwise.
|
||||
func (o *VirtualMedia) GetConnectedVia() ConnectedVia {
|
||||
if o == nil || o.ConnectedVia == nil {
|
||||
var ret ConnectedVia
|
||||
return ret
|
||||
}
|
||||
return *o.ConnectedVia
|
||||
}
|
||||
|
||||
// GetConnectedViaOk returns a tuple with the ConnectedVia field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *VirtualMedia) GetConnectedViaOk() (*ConnectedVia, bool) {
|
||||
if o == nil || o.ConnectedVia == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.ConnectedVia, true
|
||||
}
|
||||
|
||||
// HasConnectedVia returns a boolean if a field has been set.
|
||||
func (o *VirtualMedia) HasConnectedVia() bool {
|
||||
if o != nil && o.ConnectedVia != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetConnectedVia gets a reference to the given ConnectedVia and assigns it to the ConnectedVia field.
|
||||
func (o *VirtualMedia) SetConnectedVia(v ConnectedVia) {
|
||||
o.ConnectedVia = &v
|
||||
}
|
||||
|
||||
// GetMediaTypes returns the MediaTypes field value if set, zero value otherwise.
|
||||
func (o *VirtualMedia) GetMediaTypes() []string {
|
||||
if o == nil || o.MediaTypes == nil {
|
||||
var ret []string
|
||||
return ret
|
||||
}
|
||||
return *o.MediaTypes
|
||||
}
|
||||
|
||||
// GetMediaTypesOk returns a tuple with the MediaTypes field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *VirtualMedia) GetMediaTypesOk() (*[]string, bool) {
|
||||
if o == nil || o.MediaTypes == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.MediaTypes, true
|
||||
}
|
||||
|
||||
// HasMediaTypes returns a boolean if a field has been set.
|
||||
func (o *VirtualMedia) HasMediaTypes() bool {
|
||||
if o != nil && o.MediaTypes != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetMediaTypes gets a reference to the given []string and assigns it to the MediaTypes field.
|
||||
func (o *VirtualMedia) SetMediaTypes(v []string) {
|
||||
o.MediaTypes = &v
|
||||
}
|
||||
|
||||
// GetWriteProtected returns the WriteProtected field value if set, zero value otherwise (both if not set or set to explicit null).
|
||||
func (o *VirtualMedia) GetWriteProtected() bool {
|
||||
if o == nil || o.WriteProtected.Get() == nil {
|
||||
var ret bool
|
||||
return ret
|
||||
}
|
||||
return *o.WriteProtected.Get()
|
||||
}
|
||||
|
||||
// GetWriteProtectedOk returns a tuple with the WriteProtected field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
||||
func (o *VirtualMedia) GetWriteProtectedOk() (*bool, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.WriteProtected.Get(), o.WriteProtected.IsSet()
|
||||
}
|
||||
|
||||
// HasWriteProtected returns a boolean if a field has been set.
|
||||
func (o *VirtualMedia) HasWriteProtected() bool {
|
||||
if o != nil && o.WriteProtected.IsSet() {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetWriteProtected gets a reference to the given NullableBool and assigns it to the WriteProtected field.
|
||||
func (o *VirtualMedia) SetWriteProtected(v bool) {
|
||||
o.WriteProtected.Set(&v)
|
||||
}
|
||||
// SetWriteProtectedNil sets the value for WriteProtected to be an explicit nil
|
||||
func (o *VirtualMedia) SetWriteProtectedNil() {
|
||||
o.WriteProtected.Set(nil)
|
||||
}
|
||||
|
||||
// UnsetWriteProtected ensures that no value is present for WriteProtected, not even an explicit nil
|
||||
func (o *VirtualMedia) UnsetWriteProtected() {
|
||||
o.WriteProtected.Unset()
|
||||
}
|
||||
|
||||
// GetUserName returns the UserName field value if set, zero value otherwise (both if not set or set to explicit null).
|
||||
func (o *VirtualMedia) GetUserName() string {
|
||||
if o == nil || o.UserName.Get() == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.UserName.Get()
|
||||
}
|
||||
|
||||
// GetUserNameOk returns a tuple with the UserName field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
||||
func (o *VirtualMedia) GetUserNameOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.UserName.Get(), o.UserName.IsSet()
|
||||
}
|
||||
|
||||
// HasUserName returns a boolean if a field has been set.
|
||||
func (o *VirtualMedia) HasUserName() bool {
|
||||
if o != nil && o.UserName.IsSet() {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetUserName gets a reference to the given NullableString and assigns it to the UserName field.
|
||||
func (o *VirtualMedia) SetUserName(v string) {
|
||||
o.UserName.Set(&v)
|
||||
}
|
||||
// SetUserNameNil sets the value for UserName to be an explicit nil
|
||||
func (o *VirtualMedia) SetUserNameNil() {
|
||||
o.UserName.Set(nil)
|
||||
}
|
||||
|
||||
// UnsetUserName ensures that no value is present for UserName, not even an explicit nil
|
||||
func (o *VirtualMedia) UnsetUserName() {
|
||||
o.UserName.Unset()
|
||||
}
|
||||
|
||||
// GetPassword returns the Password field value if set, zero value otherwise (both if not set or set to explicit null).
|
||||
func (o *VirtualMedia) GetPassword() string {
|
||||
if o == nil || o.Password.Get() == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Password.Get()
|
||||
}
|
||||
|
||||
// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
||||
func (o *VirtualMedia) GetPasswordOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Password.Get(), o.Password.IsSet()
|
||||
}
|
||||
|
||||
// HasPassword returns a boolean if a field has been set.
|
||||
func (o *VirtualMedia) HasPassword() bool {
|
||||
if o != nil && o.Password.IsSet() {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetPassword gets a reference to the given NullableString and assigns it to the Password field.
|
||||
func (o *VirtualMedia) SetPassword(v string) {
|
||||
o.Password.Set(&v)
|
||||
}
|
||||
// SetPasswordNil sets the value for Password to be an explicit nil
|
||||
func (o *VirtualMedia) SetPasswordNil() {
|
||||
o.Password.Set(nil)
|
||||
}
|
||||
|
||||
// UnsetPassword ensures that no value is present for Password, not even an explicit nil
|
||||
func (o *VirtualMedia) UnsetPassword() {
|
||||
o.Password.Unset()
|
||||
}
|
||||
|
||||
// GetTransferMethod returns the TransferMethod field value if set, zero value otherwise.
|
||||
func (o *VirtualMedia) GetTransferMethod() TransferMethod {
|
||||
if o == nil || o.TransferMethod == nil {
|
||||
var ret TransferMethod
|
||||
return ret
|
||||
}
|
||||
return *o.TransferMethod
|
||||
}
|
||||
|
||||
// GetTransferMethodOk returns a tuple with the TransferMethod field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *VirtualMedia) GetTransferMethodOk() (*TransferMethod, bool) {
|
||||
if o == nil || o.TransferMethod == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.TransferMethod, true
|
||||
}
|
||||
|
||||
// HasTransferMethod returns a boolean if a field has been set.
|
||||
func (o *VirtualMedia) HasTransferMethod() bool {
|
||||
if o != nil && o.TransferMethod != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetTransferMethod gets a reference to the given TransferMethod and assigns it to the TransferMethod field.
|
||||
func (o *VirtualMedia) SetTransferMethod(v TransferMethod) {
|
||||
o.TransferMethod = &v
|
||||
}
|
||||
|
||||
// GetTransferProtocolType returns the TransferProtocolType field value if set, zero value otherwise.
|
||||
func (o *VirtualMedia) GetTransferProtocolType() TransferProtocolType {
|
||||
if o == nil || o.TransferProtocolType == nil {
|
||||
var ret TransferProtocolType
|
||||
return ret
|
||||
}
|
||||
return *o.TransferProtocolType
|
||||
}
|
||||
|
||||
// GetTransferProtocolTypeOk returns a tuple with the TransferProtocolType field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *VirtualMedia) GetTransferProtocolTypeOk() (*TransferProtocolType, bool) {
|
||||
if o == nil || o.TransferProtocolType == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.TransferProtocolType, true
|
||||
}
|
||||
|
||||
// HasTransferProtocolType returns a boolean if a field has been set.
|
||||
func (o *VirtualMedia) HasTransferProtocolType() bool {
|
||||
if o != nil && o.TransferProtocolType != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetTransferProtocolType gets a reference to the given TransferProtocolType and assigns it to the TransferProtocolType field.
|
||||
func (o *VirtualMedia) SetTransferProtocolType(v TransferProtocolType) {
|
||||
o.TransferProtocolType = &v
|
||||
}
|
||||
|
||||
// GetActions returns the Actions field value if set, zero value otherwise.
|
||||
func (o *VirtualMedia) GetActions() VirtualMediaActions {
|
||||
if o == nil || o.Actions == nil {
|
||||
var ret VirtualMediaActions
|
||||
return ret
|
||||
}
|
||||
return *o.Actions
|
||||
}
|
||||
|
||||
// GetActionsOk returns a tuple with the Actions field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *VirtualMedia) GetActionsOk() (*VirtualMediaActions, bool) {
|
||||
if o == nil || o.Actions == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Actions, true
|
||||
}
|
||||
|
||||
// HasActions returns a boolean if a field has been set.
|
||||
func (o *VirtualMedia) HasActions() bool {
|
||||
if o != nil && o.Actions != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetActions gets a reference to the given VirtualMediaActions and assigns it to the Actions field.
|
||||
func (o *VirtualMedia) SetActions(v VirtualMediaActions) {
|
||||
o.Actions = &v
|
||||
}
|
||||
|
||||
func (o VirtualMedia) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if o.Id != nil {
|
||||
toSerialize["Id"] = o.Id
|
||||
}
|
||||
if true {
|
||||
toSerialize["Name"] = o.Name
|
||||
}
|
||||
if true {
|
||||
toSerialize["@odata.type"] = o.OdataType
|
||||
}
|
||||
if true {
|
||||
toSerialize["@odata.id"] = o.OdataId
|
||||
}
|
||||
if o.OdataContext != nil {
|
||||
toSerialize["@odata.context"] = o.OdataContext
|
||||
}
|
||||
if o.RedfishCopyright != nil {
|
||||
toSerialize["@Redfish.Copyright"] = o.RedfishCopyright
|
||||
}
|
||||
if o.Description.IsSet() {
|
||||
toSerialize["Description"] = o.Description.Get()
|
||||
}
|
||||
if o.Image.IsSet() {
|
||||
toSerialize["Image"] = o.Image.Get()
|
||||
}
|
||||
if o.ImageName.IsSet() {
|
||||
toSerialize["ImageName"] = o.ImageName.Get()
|
||||
}
|
||||
if o.Inserted.IsSet() {
|
||||
toSerialize["Inserted"] = o.Inserted.Get()
|
||||
}
|
||||
if o.ConnectedVia != nil {
|
||||
toSerialize["ConnectedVia"] = o.ConnectedVia
|
||||
}
|
||||
if o.MediaTypes != nil {
|
||||
toSerialize["MediaTypes"] = o.MediaTypes
|
||||
}
|
||||
if o.WriteProtected.IsSet() {
|
||||
toSerialize["WriteProtected"] = o.WriteProtected.Get()
|
||||
}
|
||||
if o.UserName.IsSet() {
|
||||
toSerialize["UserName"] = o.UserName.Get()
|
||||
}
|
||||
if o.Password.IsSet() {
|
||||
toSerialize["Password"] = o.Password.Get()
|
||||
}
|
||||
if o.TransferMethod != nil {
|
||||
toSerialize["TransferMethod"] = o.TransferMethod
|
||||
}
|
||||
if o.TransferProtocolType != nil {
|
||||
toSerialize["TransferProtocolType"] = o.TransferProtocolType
|
||||
}
|
||||
if o.Actions != nil {
|
||||
toSerialize["Actions"] = o.Actions
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
type NullableVirtualMedia struct {
|
||||
value *VirtualMedia
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableVirtualMedia) Get() *VirtualMedia {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableVirtualMedia) Set(val *VirtualMedia) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableVirtualMedia) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableVirtualMedia) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableVirtualMedia(val *VirtualMedia) *NullableVirtualMedia {
|
||||
return &NullableVirtualMedia{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableVirtualMedia) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableVirtualMedia) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
|
@ -4,12 +4,148 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// VirtualMediaActions struct for VirtualMediaActions
|
||||
type VirtualMediaActions struct {
|
||||
VirtualMediaEjectMedia VirtualMediaActionsVirtualMediaEjectMedia `json:"#VirtualMedia.EjectMedia,omitempty"`
|
||||
VirtualMediaInsertMedia VirtualMediaActionsVirtualMediaEjectMedia `json:"#VirtualMedia.InsertMedia,omitempty"`
|
||||
VirtualMediaEjectMedia *VirtualMediaActionsVirtualMediaEjectMedia `json:"#VirtualMedia.EjectMedia,omitempty"`
|
||||
VirtualMediaInsertMedia *VirtualMediaActionsVirtualMediaEjectMedia `json:"#VirtualMedia.InsertMedia,omitempty"`
|
||||
}
|
||||
|
||||
// NewVirtualMediaActions instantiates a new VirtualMediaActions object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewVirtualMediaActions() *VirtualMediaActions {
|
||||
this := VirtualMediaActions{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewVirtualMediaActionsWithDefaults instantiates a new VirtualMediaActions object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewVirtualMediaActionsWithDefaults() *VirtualMediaActions {
|
||||
this := VirtualMediaActions{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetVirtualMediaEjectMedia returns the VirtualMediaEjectMedia field value if set, zero value otherwise.
|
||||
func (o *VirtualMediaActions) GetVirtualMediaEjectMedia() VirtualMediaActionsVirtualMediaEjectMedia {
|
||||
if o == nil || o.VirtualMediaEjectMedia == nil {
|
||||
var ret VirtualMediaActionsVirtualMediaEjectMedia
|
||||
return ret
|
||||
}
|
||||
return *o.VirtualMediaEjectMedia
|
||||
}
|
||||
|
||||
// GetVirtualMediaEjectMediaOk returns a tuple with the VirtualMediaEjectMedia field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *VirtualMediaActions) GetVirtualMediaEjectMediaOk() (*VirtualMediaActionsVirtualMediaEjectMedia, bool) {
|
||||
if o == nil || o.VirtualMediaEjectMedia == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.VirtualMediaEjectMedia, true
|
||||
}
|
||||
|
||||
// HasVirtualMediaEjectMedia returns a boolean if a field has been set.
|
||||
func (o *VirtualMediaActions) HasVirtualMediaEjectMedia() bool {
|
||||
if o != nil && o.VirtualMediaEjectMedia != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetVirtualMediaEjectMedia gets a reference to the given VirtualMediaActionsVirtualMediaEjectMedia and assigns it to the VirtualMediaEjectMedia field.
|
||||
func (o *VirtualMediaActions) SetVirtualMediaEjectMedia(v VirtualMediaActionsVirtualMediaEjectMedia) {
|
||||
o.VirtualMediaEjectMedia = &v
|
||||
}
|
||||
|
||||
// GetVirtualMediaInsertMedia returns the VirtualMediaInsertMedia field value if set, zero value otherwise.
|
||||
func (o *VirtualMediaActions) GetVirtualMediaInsertMedia() VirtualMediaActionsVirtualMediaEjectMedia {
|
||||
if o == nil || o.VirtualMediaInsertMedia == nil {
|
||||
var ret VirtualMediaActionsVirtualMediaEjectMedia
|
||||
return ret
|
||||
}
|
||||
return *o.VirtualMediaInsertMedia
|
||||
}
|
||||
|
||||
// GetVirtualMediaInsertMediaOk returns a tuple with the VirtualMediaInsertMedia field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *VirtualMediaActions) GetVirtualMediaInsertMediaOk() (*VirtualMediaActionsVirtualMediaEjectMedia, bool) {
|
||||
if o == nil || o.VirtualMediaInsertMedia == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.VirtualMediaInsertMedia, true
|
||||
}
|
||||
|
||||
// HasVirtualMediaInsertMedia returns a boolean if a field has been set.
|
||||
func (o *VirtualMediaActions) HasVirtualMediaInsertMedia() bool {
|
||||
if o != nil && o.VirtualMediaInsertMedia != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetVirtualMediaInsertMedia gets a reference to the given VirtualMediaActionsVirtualMediaEjectMedia and assigns it to the VirtualMediaInsertMedia field.
|
||||
func (o *VirtualMediaActions) SetVirtualMediaInsertMedia(v VirtualMediaActionsVirtualMediaEjectMedia) {
|
||||
o.VirtualMediaInsertMedia = &v
|
||||
}
|
||||
|
||||
func (o VirtualMediaActions) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if o.VirtualMediaEjectMedia != nil {
|
||||
toSerialize["#VirtualMedia.EjectMedia"] = o.VirtualMediaEjectMedia
|
||||
}
|
||||
if o.VirtualMediaInsertMedia != nil {
|
||||
toSerialize["#VirtualMedia.InsertMedia"] = o.VirtualMediaInsertMedia
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
type NullableVirtualMediaActions struct {
|
||||
value *VirtualMediaActions
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableVirtualMediaActions) Get() *VirtualMediaActions {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableVirtualMediaActions) Set(val *VirtualMediaActions) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableVirtualMediaActions) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableVirtualMediaActions) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableVirtualMediaActions(val *VirtualMediaActions) *NullableVirtualMediaActions {
|
||||
return &NullableVirtualMediaActions{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableVirtualMediaActions) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableVirtualMediaActions) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
|
@ -4,12 +4,113 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// VirtualMediaActionsVirtualMediaEjectMedia struct for VirtualMediaActionsVirtualMediaEjectMedia
|
||||
type VirtualMediaActionsVirtualMediaEjectMedia struct {
|
||||
// The unique identifier for a resource.
|
||||
Target string `json:"target,omitempty"`
|
||||
Target *string `json:"target,omitempty"`
|
||||
}
|
||||
|
||||
// NewVirtualMediaActionsVirtualMediaEjectMedia instantiates a new VirtualMediaActionsVirtualMediaEjectMedia object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewVirtualMediaActionsVirtualMediaEjectMedia() *VirtualMediaActionsVirtualMediaEjectMedia {
|
||||
this := VirtualMediaActionsVirtualMediaEjectMedia{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewVirtualMediaActionsVirtualMediaEjectMediaWithDefaults instantiates a new VirtualMediaActionsVirtualMediaEjectMedia object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewVirtualMediaActionsVirtualMediaEjectMediaWithDefaults() *VirtualMediaActionsVirtualMediaEjectMedia {
|
||||
this := VirtualMediaActionsVirtualMediaEjectMedia{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetTarget returns the Target field value if set, zero value otherwise.
|
||||
func (o *VirtualMediaActionsVirtualMediaEjectMedia) GetTarget() string {
|
||||
if o == nil || o.Target == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Target
|
||||
}
|
||||
|
||||
// GetTargetOk returns a tuple with the Target field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *VirtualMediaActionsVirtualMediaEjectMedia) GetTargetOk() (*string, bool) {
|
||||
if o == nil || o.Target == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Target, true
|
||||
}
|
||||
|
||||
// HasTarget returns a boolean if a field has been set.
|
||||
func (o *VirtualMediaActionsVirtualMediaEjectMedia) HasTarget() bool {
|
||||
if o != nil && o.Target != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetTarget gets a reference to the given string and assigns it to the Target field.
|
||||
func (o *VirtualMediaActionsVirtualMediaEjectMedia) SetTarget(v string) {
|
||||
o.Target = &v
|
||||
}
|
||||
|
||||
func (o VirtualMediaActionsVirtualMediaEjectMedia) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if o.Target != nil {
|
||||
toSerialize["target"] = o.Target
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
type NullableVirtualMediaActionsVirtualMediaEjectMedia struct {
|
||||
value *VirtualMediaActionsVirtualMediaEjectMedia
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableVirtualMediaActionsVirtualMediaEjectMedia) Get() *VirtualMediaActionsVirtualMediaEjectMedia {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableVirtualMediaActionsVirtualMediaEjectMedia) Set(val *VirtualMediaActionsVirtualMediaEjectMedia) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableVirtualMediaActionsVirtualMediaEjectMedia) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableVirtualMediaActionsVirtualMediaEjectMedia) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableVirtualMediaActionsVirtualMediaEjectMedia(val *VirtualMediaActionsVirtualMediaEjectMedia) *NullableVirtualMediaActionsVirtualMediaEjectMedia {
|
||||
return &NullableVirtualMediaActionsVirtualMediaEjectMedia{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableVirtualMediaActionsVirtualMediaEjectMedia) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableVirtualMediaActionsVirtualMediaEjectMedia) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
|
@ -4,10 +4,17 @@
|
||||
* Partial Redfish OAPI specification for a limited client
|
||||
*
|
||||
* API version: 0.0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package client
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// VolumeType the model 'VolumeType'
|
||||
type VolumeType string
|
||||
|
||||
@ -20,3 +27,62 @@ const (
|
||||
VOLUMETYPE_SPANNED_MIRRORS VolumeType = "SpannedMirrors"
|
||||
VOLUMETYPE_SPANNED_STRIPES_WITH_PARITY VolumeType = "SpannedStripesWithParity"
|
||||
)
|
||||
|
||||
func (v *VolumeType) UnmarshalJSON(src []byte) error {
|
||||
var value string
|
||||
err := json.Unmarshal(src, &value)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
enumTypeValue := VolumeType(value)
|
||||
for _, existing := range []VolumeType{ "RawDevice", "NonRedundant", "Mirrored", "StripedWithParity", "SpannedMirrors", "SpannedStripesWithParity", } {
|
||||
if existing == enumTypeValue {
|
||||
*v = enumTypeValue
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
return fmt.Errorf("%+v is not a valid VolumeType", value)
|
||||
}
|
||||
|
||||
// Ptr returns reference to VolumeType value
|
||||
func (v VolumeType) Ptr() *VolumeType {
|
||||
return &v
|
||||
}
|
||||
|
||||
type NullableVolumeType struct {
|
||||
value *VolumeType
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableVolumeType) Get() *VolumeType {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableVolumeType) Set(val *VolumeType) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableVolumeType) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableVolumeType) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableVolumeType(val *VolumeType) *NullableVolumeType {
|
||||
return &NullableVolumeType{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableVolumeType) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableVolumeType) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user