From c442eb5bcb3ed2ef2a31fa234890c64c6428eeae Mon Sep 17 00:00:00 2001 From: James Gu Date: Wed, 5 May 2021 10:18:32 -0400 Subject: [PATCH] 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 Change-Id: Ia3e0b018be13079d2085ef61ed2e797bcfd25fd7 --- Makefile | 2 +- api/mocks/RedfishAPI.go | 1086 +++++++++------ api/service_interface.go | 78 +- api_generator.go | 2 +- client/.openapi-generator/FILES | 100 ++ client/.openapi-generator/VERSION | 2 +- client/README.md | 68 +- client/api/openapi.yaml | 59 +- client/api_default.go | 1240 +++++++++++------ client/client.go | 28 +- client/configuration.go | 181 ++- client/docs/Boot.md | 101 +- client/docs/BootSource.md | 35 +- client/docs/BootSourceOverrideEnabled.md | 11 +- client/docs/Collection.md | 247 +++- client/docs/ComputerSystem.md | 587 +++++++- client/docs/ComputerSystemActions.md | 47 +- client/docs/ComputerSystemReset.md | 74 +- client/docs/ConnectedVia.md | 13 +- client/docs/CreateVirtualDiskRequestBody.md | 82 +- client/docs/DefaultApi.md | 882 ++++++++++-- client/docs/FirmwareInventory.md | 47 +- client/docs/Health.md | 11 +- client/docs/IdRef.md | 47 +- .../docs/{IndicatorLed.md => IndicatorLED.md} | 15 +- client/docs/InlineObject.md | 47 +- client/docs/InsertMediaRequestBody.md | 202 ++- client/docs/Manager.md | 562 +++++++- client/docs/ManagerLinks.md | 128 +- client/docs/ManagerType.md | 17 +- client/docs/MemorySummary.md | 121 +- client/docs/Message.md | 175 ++- client/docs/Payload.md | 128 +- client/docs/PowerState.md | 13 +- client/docs/ProcessorSummary.md | 84 +- client/docs/RedfishError.md | 42 +- client/docs/RedfishErrorError.md | 87 +- client/docs/ResetRequestBody.md | 47 +- client/docs/ResetType.md | 23 +- client/docs/Root.md | 242 +++- client/docs/SimpleUpdateRequestBody.md | 94 +- client/docs/SoftwareInventory.md | 511 ++++++- client/docs/State.md | 27 +- client/docs/Status.md | 101 +- client/docs/SystemLinks.md | 74 +- client/docs/Task.md | 434 +++++- client/docs/TaskState.md | 31 +- client/docs/TransferMethod.md | 9 +- client/docs/TransferProtocolType.md | 21 +- client/docs/UpdateService.md | 289 +++- client/docs/UpdateServiceActions.md | 74 +- client/docs/VirtualMedia.md | 555 +++++++- client/docs/VirtualMediaActions.md | 74 +- ...rtualMediaActionsVirtualMediaEjectMedia.md | 47 +- client/docs/VolumeType.md | 17 +- client/go.mod | 9 +- client/go.sum | 2 - client/model_boot.go | 179 ++- client/model_boot_source.go | 68 +- client/model_boot_source_override_enabled.go | 69 +- client/model_collection.go | 375 ++++- client/model_computer_system.go | 845 ++++++++++- client/model_computer_system_actions.go | 105 +- client/model_computer_system_reset.go | 142 +- client/model_connected_via.go | 68 +- .../model_create_virtual_disk_request_body.go | 152 +- client/model_firmware_inventory.go | 105 +- client/model_health.go | 68 +- client/model_id_ref.go | 105 +- client/model_indicator_led.go | 80 +- client/model_inline_object.go | 103 +- client/model_insert_media_request_body.go | 318 ++++- client/model_manager.go | 794 ++++++++++- client/model_manager_links.go | 216 ++- client/model_manager_type.go | 68 +- client/model_memory_summary.go | 199 ++- client/model_message.go | 281 +++- client/model_payload.go | 216 ++- client/model_power_state.go | 68 +- client/model_processor_summary.go | 152 +- client/model_redfish_error.go | 96 +- client/model_redfish_error_error.go | 161 ++- client/model_reset_request_body.go | 105 +- client/model_reset_type.go | 68 +- client/model_root.go | 374 ++++- client/model_simple_update_request_body.go | 170 ++- client/model_software_inventory.go | 699 +++++++++- client/model_state.go | 68 +- client/model_status.go | 179 ++- client/model_system_links.go | 142 +- client/model_task.go | 632 ++++++++- client/model_task_state.go | 68 +- client/model_transfer_method.go | 68 +- client/model_transfer_protocol_type.go | 68 +- client/model_update_service.go | 431 +++++- client/model_update_service_actions.go | 142 +- client/model_virtual_media.go | 777 ++++++++++- client/model_virtual_media_actions.go | 142 +- ...edia_actions__virtual_media_eject_media.go | 105 +- client/model_volume_type.go | 68 +- client/response.go | 3 +- client/utils.go | 328 +++++ go.mod | 9 + go.sum | 557 ++++++++ spec/openapi.yaml | 5 +- 105 files changed, 18228 insertions(+), 1345 deletions(-) create mode 100644 client/.openapi-generator/FILES rename client/docs/{IndicatorLed.md => IndicatorLED.md} (53%) create mode 100644 client/utils.go create mode 100644 go.mod create mode 100644 go.sum diff --git a/Makefile b/Makefile index b13385b..b61fbaf 100644 --- a/Makefile +++ b/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" \ diff --git a/api/mocks/RedfishAPI.go b/api/mocks/RedfishAPI.go index 7d89661..e4e8d77 100644 --- a/api/mocks/RedfishAPI.go +++ b/api/mocks/RedfishAPI.go @@ -1,4 +1,4 @@ -// Code generated by mockery v1.0.0. DO NOT EDIT. +// Code generated by mockery v0.0.0-dev. DO NOT EDIT. package mocks @@ -17,102 +17,33 @@ type RedfishAPI struct { mock.Mock } -// CreateVirtualDisk provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *RedfishAPI) CreateVirtualDisk(_a0 context.Context, _a1 string, _a2 string, _a3 client.CreateVirtualDiskRequestBody) (client.RedfishError, *http.Response, error) { - ret := _m.Called(_a0, _a1, _a2, _a3) - - var r0 client.RedfishError - if rf, ok := ret.Get(0).(func(context.Context, string, string, client.CreateVirtualDiskRequestBody) client.RedfishError); ok { - r0 = rf(_a0, _a1, _a2, _a3) - } else { - r0 = ret.Get(0).(client.RedfishError) - } - - var r1 *http.Response - if rf, ok := ret.Get(1).(func(context.Context, string, string, client.CreateVirtualDiskRequestBody) *http.Response); ok { - r1 = rf(_a0, _a1, _a2, _a3) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*http.Response) - } - } - - var r2 error - if rf, ok := ret.Get(2).(func(context.Context, string, string, client.CreateVirtualDiskRequestBody) error); ok { - r2 = rf(_a0, _a1, _a2, _a3) - } else { - r2 = ret.Error(2) - } - - return r0, r1, r2 -} - -// DeleteVirtualdisk provides a mock function with given fields: _a0, _a1, _a2 -func (_m *RedfishAPI) DeleteVirtualdisk(_a0 context.Context, _a1 string, _a2 string) (*http.Response, error) { +// CreateVirtualDisk provides a mock function with given fields: _a0, _a1, _a2 +func (_m *RedfishAPI) CreateVirtualDisk(_a0 context.Context, _a1 string, _a2 string) client.ApiCreateVirtualDiskRequest { ret := _m.Called(_a0, _a1, _a2) - var r0 *http.Response - if rf, ok := ret.Get(0).(func(context.Context, string, string) *http.Response); ok { + var r0 client.ApiCreateVirtualDiskRequest + if rf, ok := ret.Get(0).(func(context.Context, string, string) client.ApiCreateVirtualDiskRequest); ok { r0 = rf(_a0, _a1, _a2) } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*http.Response) - } + r0 = ret.Get(0).(client.ApiCreateVirtualDiskRequest) } - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, string) error); ok { - r1 = rf(_a0, _a1, _a2) - } else { - r1 = ret.Error(1) - } - - return r0, r1 + return r0 } -// EjectVirtualMedia provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *RedfishAPI) EjectVirtualMedia(_a0 context.Context, _a1 string, _a2 string, _a3 map[string]interface{}) (client.RedfishError, *http.Response, error) { - ret := _m.Called(_a0, _a1, _a2, _a3) +// CreateVirtualDiskExecute provides a mock function with given fields: _a0 +func (_m *RedfishAPI) CreateVirtualDiskExecute(_a0 client.ApiCreateVirtualDiskRequest) (client.RedfishError, *http.Response, error) { + ret := _m.Called(_a0) var r0 client.RedfishError - if rf, ok := ret.Get(0).(func(context.Context, string, string, map[string]interface{}) client.RedfishError); ok { - r0 = rf(_a0, _a1, _a2, _a3) + if rf, ok := ret.Get(0).(func(client.ApiCreateVirtualDiskRequest) client.RedfishError); ok { + r0 = rf(_a0) } else { r0 = ret.Get(0).(client.RedfishError) } var r1 *http.Response - if rf, ok := ret.Get(1).(func(context.Context, string, string, map[string]interface{}) *http.Response); ok { - r1 = rf(_a0, _a1, _a2, _a3) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*http.Response) - } - } - - var r2 error - if rf, ok := ret.Get(2).(func(context.Context, string, string, map[string]interface{}) error); ok { - r2 = rf(_a0, _a1, _a2, _a3) - } else { - r2 = ret.Error(2) - } - - return r0, r1, r2 -} - -// FirmwareInventory provides a mock function with given fields: _a0 -func (_m *RedfishAPI) FirmwareInventory(_a0 context.Context) (client.Collection, *http.Response, error) { - ret := _m.Called(_a0) - - var r0 client.Collection - if rf, ok := ret.Get(0).(func(context.Context) client.Collection); ok { - r0 = rf(_a0) - } else { - r0 = ret.Get(0).(client.Collection) - } - - var r1 *http.Response - if rf, ok := ret.Get(1).(func(context.Context) *http.Response); ok { + if rf, ok := ret.Get(1).(func(client.ApiCreateVirtualDiskRequest) *http.Response); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { @@ -121,7 +52,7 @@ func (_m *RedfishAPI) FirmwareInventory(_a0 context.Context) (client.Collection, } var r2 error - if rf, ok := ret.Get(2).(func(context.Context) error); ok { + if rf, ok := ret.Get(2).(func(client.ApiCreateVirtualDiskRequest) error); ok { r2 = rf(_a0) } else { r2 = ret.Error(2) @@ -130,109 +61,70 @@ func (_m *RedfishAPI) FirmwareInventory(_a0 context.Context) (client.Collection, return r0, r1, r2 } -// FirmwareInventoryDownloadImage provides a mock function with given fields: _a0, _a1 -func (_m *RedfishAPI) FirmwareInventoryDownloadImage(_a0 context.Context, _a1 *client.FirmwareInventoryDownloadImageOpts) (client.RedfishError, *http.Response, error) { - ret := _m.Called(_a0, _a1) +// DeleteVirtualdisk provides a mock function with given fields: _a0, _a1, _a2 +func (_m *RedfishAPI) DeleteVirtualdisk(_a0 context.Context, _a1 string, _a2 string) client.ApiDeleteVirtualdiskRequest { + ret := _m.Called(_a0, _a1, _a2) + + var r0 client.ApiDeleteVirtualdiskRequest + if rf, ok := ret.Get(0).(func(context.Context, string, string) client.ApiDeleteVirtualdiskRequest); ok { + r0 = rf(_a0, _a1, _a2) + } else { + r0 = ret.Get(0).(client.ApiDeleteVirtualdiskRequest) + } + + return r0 +} + +// DeleteVirtualdiskExecute provides a mock function with given fields: _a0 +func (_m *RedfishAPI) DeleteVirtualdiskExecute(_a0 client.ApiDeleteVirtualdiskRequest) (*http.Response, error) { + ret := _m.Called(_a0) + + var r0 *http.Response + if rf, ok := ret.Get(0).(func(client.ApiDeleteVirtualdiskRequest) *http.Response); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(client.ApiDeleteVirtualdiskRequest) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// EjectVirtualMedia provides a mock function with given fields: _a0, _a1, _a2 +func (_m *RedfishAPI) EjectVirtualMedia(_a0 context.Context, _a1 string, _a2 string) client.ApiEjectVirtualMediaRequest { + ret := _m.Called(_a0, _a1, _a2) + + var r0 client.ApiEjectVirtualMediaRequest + if rf, ok := ret.Get(0).(func(context.Context, string, string) client.ApiEjectVirtualMediaRequest); ok { + r0 = rf(_a0, _a1, _a2) + } else { + r0 = ret.Get(0).(client.ApiEjectVirtualMediaRequest) + } + + return r0 +} + +// EjectVirtualMediaExecute provides a mock function with given fields: _a0 +func (_m *RedfishAPI) EjectVirtualMediaExecute(_a0 client.ApiEjectVirtualMediaRequest) (client.RedfishError, *http.Response, error) { + ret := _m.Called(_a0) var r0 client.RedfishError - if rf, ok := ret.Get(0).(func(context.Context, *client.FirmwareInventoryDownloadImageOpts) client.RedfishError); ok { - r0 = rf(_a0, _a1) + if rf, ok := ret.Get(0).(func(client.ApiEjectVirtualMediaRequest) client.RedfishError); ok { + r0 = rf(_a0) } else { r0 = ret.Get(0).(client.RedfishError) } var r1 *http.Response - if rf, ok := ret.Get(1).(func(context.Context, *client.FirmwareInventoryDownloadImageOpts) *http.Response); ok { - r1 = rf(_a0, _a1) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*http.Response) - } - } - - var r2 error - if rf, ok := ret.Get(2).(func(context.Context, *client.FirmwareInventoryDownloadImageOpts) error); ok { - r2 = rf(_a0, _a1) - } else { - r2 = ret.Error(2) - } - - return r0, r1, r2 -} - -// GetManager provides a mock function with given fields: _a0, _a1 -func (_m *RedfishAPI) GetManager(_a0 context.Context, _a1 string) (client.Manager, *http.Response, error) { - ret := _m.Called(_a0, _a1) - - var r0 client.Manager - if rf, ok := ret.Get(0).(func(context.Context, string) client.Manager); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Get(0).(client.Manager) - } - - var r1 *http.Response - if rf, ok := ret.Get(1).(func(context.Context, string) *http.Response); ok { - r1 = rf(_a0, _a1) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*http.Response) - } - } - - var r2 error - if rf, ok := ret.Get(2).(func(context.Context, string) error); ok { - r2 = rf(_a0, _a1) - } else { - r2 = ret.Error(2) - } - - return r0, r1, r2 -} - -// GetManagerVirtualMedia provides a mock function with given fields: _a0, _a1, _a2 -func (_m *RedfishAPI) GetManagerVirtualMedia(_a0 context.Context, _a1 string, _a2 string) (client.VirtualMedia, *http.Response, error) { - ret := _m.Called(_a0, _a1, _a2) - - var r0 client.VirtualMedia - if rf, ok := ret.Get(0).(func(context.Context, string, string) client.VirtualMedia); ok { - r0 = rf(_a0, _a1, _a2) - } else { - r0 = ret.Get(0).(client.VirtualMedia) - } - - var r1 *http.Response - if rf, ok := ret.Get(1).(func(context.Context, string, string) *http.Response); ok { - r1 = rf(_a0, _a1, _a2) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*http.Response) - } - } - - var r2 error - if rf, ok := ret.Get(2).(func(context.Context, string, string) error); ok { - r2 = rf(_a0, _a1, _a2) - } else { - r2 = ret.Error(2) - } - - return r0, r1, r2 -} - -// GetRoot provides a mock function with given fields: _a0 -func (_m *RedfishAPI) GetRoot(_a0 context.Context) (client.Root, *http.Response, error) { - ret := _m.Called(_a0) - - var r0 client.Root - if rf, ok := ret.Get(0).(func(context.Context) client.Root); ok { - r0 = rf(_a0) - } else { - r0 = ret.Get(0).(client.Root) - } - - var r1 *http.Response - if rf, ok := ret.Get(1).(func(context.Context) *http.Response); ok { + if rf, ok := ret.Get(1).(func(client.ApiEjectVirtualMediaRequest) *http.Response); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { @@ -241,7 +133,227 @@ func (_m *RedfishAPI) GetRoot(_a0 context.Context) (client.Root, *http.Response, } var r2 error - if rf, ok := ret.Get(2).(func(context.Context) error); ok { + if rf, ok := ret.Get(2).(func(client.ApiEjectVirtualMediaRequest) error); ok { + r2 = rf(_a0) + } else { + r2 = ret.Error(2) + } + + return r0, r1, r2 +} + +// FirmwareInventory provides a mock function with given fields: _a0 +func (_m *RedfishAPI) FirmwareInventory(_a0 context.Context) client.ApiFirmwareInventoryRequest { + ret := _m.Called(_a0) + + var r0 client.ApiFirmwareInventoryRequest + if rf, ok := ret.Get(0).(func(context.Context) client.ApiFirmwareInventoryRequest); ok { + r0 = rf(_a0) + } else { + r0 = ret.Get(0).(client.ApiFirmwareInventoryRequest) + } + + return r0 +} + +// FirmwareInventoryDownloadImage provides a mock function with given fields: _a0 +func (_m *RedfishAPI) FirmwareInventoryDownloadImage(_a0 context.Context) client.ApiFirmwareInventoryDownloadImageRequest { + ret := _m.Called(_a0) + + var r0 client.ApiFirmwareInventoryDownloadImageRequest + if rf, ok := ret.Get(0).(func(context.Context) client.ApiFirmwareInventoryDownloadImageRequest); ok { + r0 = rf(_a0) + } else { + r0 = ret.Get(0).(client.ApiFirmwareInventoryDownloadImageRequest) + } + + return r0 +} + +// FirmwareInventoryDownloadImageExecute provides a mock function with given fields: _a0 +func (_m *RedfishAPI) FirmwareInventoryDownloadImageExecute(_a0 client.ApiFirmwareInventoryDownloadImageRequest) (client.RedfishError, *http.Response, error) { + ret := _m.Called(_a0) + + var r0 client.RedfishError + if rf, ok := ret.Get(0).(func(client.ApiFirmwareInventoryDownloadImageRequest) client.RedfishError); ok { + r0 = rf(_a0) + } else { + r0 = ret.Get(0).(client.RedfishError) + } + + var r1 *http.Response + if rf, ok := ret.Get(1).(func(client.ApiFirmwareInventoryDownloadImageRequest) *http.Response); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*http.Response) + } + } + + var r2 error + if rf, ok := ret.Get(2).(func(client.ApiFirmwareInventoryDownloadImageRequest) error); ok { + r2 = rf(_a0) + } else { + r2 = ret.Error(2) + } + + return r0, r1, r2 +} + +// FirmwareInventoryExecute provides a mock function with given fields: _a0 +func (_m *RedfishAPI) FirmwareInventoryExecute(_a0 client.ApiFirmwareInventoryRequest) (client.Collection, *http.Response, error) { + ret := _m.Called(_a0) + + var r0 client.Collection + if rf, ok := ret.Get(0).(func(client.ApiFirmwareInventoryRequest) client.Collection); ok { + r0 = rf(_a0) + } else { + r0 = ret.Get(0).(client.Collection) + } + + var r1 *http.Response + if rf, ok := ret.Get(1).(func(client.ApiFirmwareInventoryRequest) *http.Response); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*http.Response) + } + } + + var r2 error + if rf, ok := ret.Get(2).(func(client.ApiFirmwareInventoryRequest) error); ok { + r2 = rf(_a0) + } else { + r2 = ret.Error(2) + } + + return r0, r1, r2 +} + +// GetManager provides a mock function with given fields: _a0, _a1 +func (_m *RedfishAPI) GetManager(_a0 context.Context, _a1 string) client.ApiGetManagerRequest { + ret := _m.Called(_a0, _a1) + + var r0 client.ApiGetManagerRequest + if rf, ok := ret.Get(0).(func(context.Context, string) client.ApiGetManagerRequest); ok { + r0 = rf(_a0, _a1) + } else { + r0 = ret.Get(0).(client.ApiGetManagerRequest) + } + + return r0 +} + +// GetManagerExecute provides a mock function with given fields: _a0 +func (_m *RedfishAPI) GetManagerExecute(_a0 client.ApiGetManagerRequest) (client.Manager, *http.Response, error) { + ret := _m.Called(_a0) + + var r0 client.Manager + if rf, ok := ret.Get(0).(func(client.ApiGetManagerRequest) client.Manager); ok { + r0 = rf(_a0) + } else { + r0 = ret.Get(0).(client.Manager) + } + + var r1 *http.Response + if rf, ok := ret.Get(1).(func(client.ApiGetManagerRequest) *http.Response); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*http.Response) + } + } + + var r2 error + if rf, ok := ret.Get(2).(func(client.ApiGetManagerRequest) error); ok { + r2 = rf(_a0) + } else { + r2 = ret.Error(2) + } + + return r0, r1, r2 +} + +// GetManagerVirtualMedia provides a mock function with given fields: _a0, _a1, _a2 +func (_m *RedfishAPI) GetManagerVirtualMedia(_a0 context.Context, _a1 string, _a2 string) client.ApiGetManagerVirtualMediaRequest { + ret := _m.Called(_a0, _a1, _a2) + + var r0 client.ApiGetManagerVirtualMediaRequest + if rf, ok := ret.Get(0).(func(context.Context, string, string) client.ApiGetManagerVirtualMediaRequest); ok { + r0 = rf(_a0, _a1, _a2) + } else { + r0 = ret.Get(0).(client.ApiGetManagerVirtualMediaRequest) + } + + return r0 +} + +// GetManagerVirtualMediaExecute provides a mock function with given fields: _a0 +func (_m *RedfishAPI) GetManagerVirtualMediaExecute(_a0 client.ApiGetManagerVirtualMediaRequest) (client.VirtualMedia, *http.Response, error) { + ret := _m.Called(_a0) + + var r0 client.VirtualMedia + if rf, ok := ret.Get(0).(func(client.ApiGetManagerVirtualMediaRequest) client.VirtualMedia); ok { + r0 = rf(_a0) + } else { + r0 = ret.Get(0).(client.VirtualMedia) + } + + var r1 *http.Response + if rf, ok := ret.Get(1).(func(client.ApiGetManagerVirtualMediaRequest) *http.Response); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*http.Response) + } + } + + var r2 error + if rf, ok := ret.Get(2).(func(client.ApiGetManagerVirtualMediaRequest) error); ok { + r2 = rf(_a0) + } else { + r2 = ret.Error(2) + } + + return r0, r1, r2 +} + +// GetRoot provides a mock function with given fields: _a0 +func (_m *RedfishAPI) GetRoot(_a0 context.Context) client.ApiGetRootRequest { + ret := _m.Called(_a0) + + var r0 client.ApiGetRootRequest + if rf, ok := ret.Get(0).(func(context.Context) client.ApiGetRootRequest); ok { + r0 = rf(_a0) + } else { + r0 = ret.Get(0).(client.ApiGetRootRequest) + } + + return r0 +} + +// GetRootExecute provides a mock function with given fields: _a0 +func (_m *RedfishAPI) GetRootExecute(_a0 client.ApiGetRootRequest) (client.Root, *http.Response, error) { + ret := _m.Called(_a0) + + var r0 client.Root + if rf, ok := ret.Get(0).(func(client.ApiGetRootRequest) client.Root); ok { + r0 = rf(_a0) + } else { + r0 = ret.Get(0).(client.Root) + } + + var r1 *http.Response + if rf, ok := ret.Get(1).(func(client.ApiGetRootRequest) *http.Response); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*http.Response) + } + } + + var r2 error + if rf, ok := ret.Get(2).(func(client.ApiGetRootRequest) error); ok { r2 = rf(_a0) } else { r2 = ret.Error(2) @@ -251,108 +363,32 @@ func (_m *RedfishAPI) GetRoot(_a0 context.Context) (client.Root, *http.Response, } // GetSoftwareInventory provides a mock function with given fields: _a0, _a1 -func (_m *RedfishAPI) GetSoftwareInventory(_a0 context.Context, _a1 string) (client.SoftwareInventory, *http.Response, error) { +func (_m *RedfishAPI) GetSoftwareInventory(_a0 context.Context, _a1 string) client.ApiGetSoftwareInventoryRequest { ret := _m.Called(_a0, _a1) - var r0 client.SoftwareInventory - if rf, ok := ret.Get(0).(func(context.Context, string) client.SoftwareInventory); ok { + var r0 client.ApiGetSoftwareInventoryRequest + if rf, ok := ret.Get(0).(func(context.Context, string) client.ApiGetSoftwareInventoryRequest); ok { r0 = rf(_a0, _a1) + } else { + r0 = ret.Get(0).(client.ApiGetSoftwareInventoryRequest) + } + + return r0 +} + +// GetSoftwareInventoryExecute provides a mock function with given fields: _a0 +func (_m *RedfishAPI) GetSoftwareInventoryExecute(_a0 client.ApiGetSoftwareInventoryRequest) (client.SoftwareInventory, *http.Response, error) { + ret := _m.Called(_a0) + + var r0 client.SoftwareInventory + if rf, ok := ret.Get(0).(func(client.ApiGetSoftwareInventoryRequest) client.SoftwareInventory); ok { + r0 = rf(_a0) } else { r0 = ret.Get(0).(client.SoftwareInventory) } var r1 *http.Response - if rf, ok := ret.Get(1).(func(context.Context, string) *http.Response); ok { - r1 = rf(_a0, _a1) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*http.Response) - } - } - - var r2 error - if rf, ok := ret.Get(2).(func(context.Context, string) error); ok { - r2 = rf(_a0, _a1) - } else { - r2 = ret.Error(2) - } - - return r0, r1, r2 -} - -// GetSystem provides a mock function with given fields: _a0, _a1 -func (_m *RedfishAPI) GetSystem(_a0 context.Context, _a1 string) (client.ComputerSystem, *http.Response, error) { - ret := _m.Called(_a0, _a1) - - var r0 client.ComputerSystem - if rf, ok := ret.Get(0).(func(context.Context, string) client.ComputerSystem); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Get(0).(client.ComputerSystem) - } - - var r1 *http.Response - if rf, ok := ret.Get(1).(func(context.Context, string) *http.Response); ok { - r1 = rf(_a0, _a1) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*http.Response) - } - } - - var r2 error - if rf, ok := ret.Get(2).(func(context.Context, string) error); ok { - r2 = rf(_a0, _a1) - } else { - r2 = ret.Error(2) - } - - return r0, r1, r2 -} - -// GetTask provides a mock function with given fields: _a0, _a1 -func (_m *RedfishAPI) GetTask(_a0 context.Context, _a1 string) (client.Task, *http.Response, error) { - ret := _m.Called(_a0, _a1) - - var r0 client.Task - if rf, ok := ret.Get(0).(func(context.Context, string) client.Task); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Get(0).(client.Task) - } - - var r1 *http.Response - if rf, ok := ret.Get(1).(func(context.Context, string) *http.Response); ok { - r1 = rf(_a0, _a1) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*http.Response) - } - } - - var r2 error - if rf, ok := ret.Get(2).(func(context.Context, string) error); ok { - r2 = rf(_a0, _a1) - } else { - r2 = ret.Error(2) - } - - return r0, r1, r2 -} - -// GetTaskList provides a mock function with given fields: _a0 -func (_m *RedfishAPI) GetTaskList(_a0 context.Context) (client.Collection, *http.Response, error) { - ret := _m.Called(_a0) - - var r0 client.Collection - if rf, ok := ret.Get(0).(func(context.Context) client.Collection); ok { - r0 = rf(_a0) - } else { - r0 = ret.Get(0).(client.Collection) - } - - var r1 *http.Response - if rf, ok := ret.Get(1).(func(context.Context) *http.Response); ok { + if rf, ok := ret.Get(1).(func(client.ApiGetSoftwareInventoryRequest) *http.Response); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { @@ -361,7 +397,139 @@ func (_m *RedfishAPI) GetTaskList(_a0 context.Context) (client.Collection, *http } var r2 error - if rf, ok := ret.Get(2).(func(context.Context) error); ok { + if rf, ok := ret.Get(2).(func(client.ApiGetSoftwareInventoryRequest) error); ok { + r2 = rf(_a0) + } else { + r2 = ret.Error(2) + } + + return r0, r1, r2 +} + +// GetSystem provides a mock function with given fields: _a0, _a1 +func (_m *RedfishAPI) GetSystem(_a0 context.Context, _a1 string) client.ApiGetSystemRequest { + ret := _m.Called(_a0, _a1) + + var r0 client.ApiGetSystemRequest + if rf, ok := ret.Get(0).(func(context.Context, string) client.ApiGetSystemRequest); ok { + r0 = rf(_a0, _a1) + } else { + r0 = ret.Get(0).(client.ApiGetSystemRequest) + } + + return r0 +} + +// GetSystemExecute provides a mock function with given fields: _a0 +func (_m *RedfishAPI) GetSystemExecute(_a0 client.ApiGetSystemRequest) (client.ComputerSystem, *http.Response, error) { + ret := _m.Called(_a0) + + var r0 client.ComputerSystem + if rf, ok := ret.Get(0).(func(client.ApiGetSystemRequest) client.ComputerSystem); ok { + r0 = rf(_a0) + } else { + r0 = ret.Get(0).(client.ComputerSystem) + } + + var r1 *http.Response + if rf, ok := ret.Get(1).(func(client.ApiGetSystemRequest) *http.Response); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*http.Response) + } + } + + var r2 error + if rf, ok := ret.Get(2).(func(client.ApiGetSystemRequest) error); ok { + r2 = rf(_a0) + } else { + r2 = ret.Error(2) + } + + return r0, r1, r2 +} + +// GetTask provides a mock function with given fields: _a0, _a1 +func (_m *RedfishAPI) GetTask(_a0 context.Context, _a1 string) client.ApiGetTaskRequest { + ret := _m.Called(_a0, _a1) + + var r0 client.ApiGetTaskRequest + if rf, ok := ret.Get(0).(func(context.Context, string) client.ApiGetTaskRequest); ok { + r0 = rf(_a0, _a1) + } else { + r0 = ret.Get(0).(client.ApiGetTaskRequest) + } + + return r0 +} + +// GetTaskExecute provides a mock function with given fields: _a0 +func (_m *RedfishAPI) GetTaskExecute(_a0 client.ApiGetTaskRequest) (client.Task, *http.Response, error) { + ret := _m.Called(_a0) + + var r0 client.Task + if rf, ok := ret.Get(0).(func(client.ApiGetTaskRequest) client.Task); ok { + r0 = rf(_a0) + } else { + r0 = ret.Get(0).(client.Task) + } + + var r1 *http.Response + if rf, ok := ret.Get(1).(func(client.ApiGetTaskRequest) *http.Response); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*http.Response) + } + } + + var r2 error + if rf, ok := ret.Get(2).(func(client.ApiGetTaskRequest) error); ok { + r2 = rf(_a0) + } else { + r2 = ret.Error(2) + } + + return r0, r1, r2 +} + +// GetTaskList provides a mock function with given fields: _a0 +func (_m *RedfishAPI) GetTaskList(_a0 context.Context) client.ApiGetTaskListRequest { + ret := _m.Called(_a0) + + var r0 client.ApiGetTaskListRequest + if rf, ok := ret.Get(0).(func(context.Context) client.ApiGetTaskListRequest); ok { + r0 = rf(_a0) + } else { + r0 = ret.Get(0).(client.ApiGetTaskListRequest) + } + + return r0 +} + +// GetTaskListExecute provides a mock function with given fields: _a0 +func (_m *RedfishAPI) GetTaskListExecute(_a0 client.ApiGetTaskListRequest) (client.Collection, *http.Response, error) { + ret := _m.Called(_a0) + + var r0 client.Collection + if rf, ok := ret.Get(0).(func(client.ApiGetTaskListRequest) client.Collection); ok { + r0 = rf(_a0) + } else { + r0 = ret.Get(0).(client.Collection) + } + + var r1 *http.Response + if rf, ok := ret.Get(1).(func(client.ApiGetTaskListRequest) *http.Response); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*http.Response) + } + } + + var r2 error + if rf, ok := ret.Get(2).(func(client.ApiGetTaskListRequest) error); ok { r2 = rf(_a0) } else { r2 = ret.Error(2) @@ -371,108 +539,32 @@ func (_m *RedfishAPI) GetTaskList(_a0 context.Context) (client.Collection, *http } // GetVolumes provides a mock function with given fields: _a0, _a1, _a2 -func (_m *RedfishAPI) GetVolumes(_a0 context.Context, _a1 string, _a2 string) (client.Collection, *http.Response, error) { +func (_m *RedfishAPI) GetVolumes(_a0 context.Context, _a1 string, _a2 string) client.ApiGetVolumesRequest { ret := _m.Called(_a0, _a1, _a2) - var r0 client.Collection - if rf, ok := ret.Get(0).(func(context.Context, string, string) client.Collection); ok { + var r0 client.ApiGetVolumesRequest + if rf, ok := ret.Get(0).(func(context.Context, string, string) client.ApiGetVolumesRequest); ok { r0 = rf(_a0, _a1, _a2) } else { - r0 = ret.Get(0).(client.Collection) + r0 = ret.Get(0).(client.ApiGetVolumesRequest) } - var r1 *http.Response - if rf, ok := ret.Get(1).(func(context.Context, string, string) *http.Response); ok { - r1 = rf(_a0, _a1, _a2) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*http.Response) - } - } - - var r2 error - if rf, ok := ret.Get(2).(func(context.Context, string, string) error); ok { - r2 = rf(_a0, _a1, _a2) - } else { - r2 = ret.Error(2) - } - - return r0, r1, r2 + return r0 } -// InsertVirtualMedia provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *RedfishAPI) InsertVirtualMedia(_a0 context.Context, _a1 string, _a2 string, _a3 client.InsertMediaRequestBody) (client.RedfishError, *http.Response, error) { - ret := _m.Called(_a0, _a1, _a2, _a3) - - var r0 client.RedfishError - if rf, ok := ret.Get(0).(func(context.Context, string, string, client.InsertMediaRequestBody) client.RedfishError); ok { - r0 = rf(_a0, _a1, _a2, _a3) - } else { - r0 = ret.Get(0).(client.RedfishError) - } - - var r1 *http.Response - if rf, ok := ret.Get(1).(func(context.Context, string, string, client.InsertMediaRequestBody) *http.Response); ok { - r1 = rf(_a0, _a1, _a2, _a3) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*http.Response) - } - } - - var r2 error - if rf, ok := ret.Get(2).(func(context.Context, string, string, client.InsertMediaRequestBody) error); ok { - r2 = rf(_a0, _a1, _a2, _a3) - } else { - r2 = ret.Error(2) - } - - return r0, r1, r2 -} - -// ListManagerVirtualMedia provides a mock function with given fields: _a0, _a1 -func (_m *RedfishAPI) ListManagerVirtualMedia(_a0 context.Context, _a1 string) (client.Collection, *http.Response, error) { - ret := _m.Called(_a0, _a1) - - var r0 client.Collection - if rf, ok := ret.Get(0).(func(context.Context, string) client.Collection); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Get(0).(client.Collection) - } - - var r1 *http.Response - if rf, ok := ret.Get(1).(func(context.Context, string) *http.Response); ok { - r1 = rf(_a0, _a1) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*http.Response) - } - } - - var r2 error - if rf, ok := ret.Get(2).(func(context.Context, string) error); ok { - r2 = rf(_a0, _a1) - } else { - r2 = ret.Error(2) - } - - return r0, r1, r2 -} - -// ListManagers provides a mock function with given fields: _a0 -func (_m *RedfishAPI) ListManagers(_a0 context.Context) (client.Collection, *http.Response, error) { +// GetVolumesExecute provides a mock function with given fields: _a0 +func (_m *RedfishAPI) GetVolumesExecute(_a0 client.ApiGetVolumesRequest) (client.Collection, *http.Response, error) { ret := _m.Called(_a0) var r0 client.Collection - if rf, ok := ret.Get(0).(func(context.Context) client.Collection); ok { + if rf, ok := ret.Get(0).(func(client.ApiGetVolumesRequest) client.Collection); ok { r0 = rf(_a0) } else { r0 = ret.Get(0).(client.Collection) } var r1 *http.Response - if rf, ok := ret.Get(1).(func(context.Context) *http.Response); ok { + if rf, ok := ret.Get(1).(func(client.ApiGetVolumesRequest) *http.Response); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { @@ -481,7 +573,139 @@ func (_m *RedfishAPI) ListManagers(_a0 context.Context) (client.Collection, *htt } var r2 error - if rf, ok := ret.Get(2).(func(context.Context) error); ok { + if rf, ok := ret.Get(2).(func(client.ApiGetVolumesRequest) error); ok { + r2 = rf(_a0) + } else { + r2 = ret.Error(2) + } + + return r0, r1, r2 +} + +// InsertVirtualMedia provides a mock function with given fields: _a0, _a1, _a2 +func (_m *RedfishAPI) InsertVirtualMedia(_a0 context.Context, _a1 string, _a2 string) client.ApiInsertVirtualMediaRequest { + ret := _m.Called(_a0, _a1, _a2) + + var r0 client.ApiInsertVirtualMediaRequest + if rf, ok := ret.Get(0).(func(context.Context, string, string) client.ApiInsertVirtualMediaRequest); ok { + r0 = rf(_a0, _a1, _a2) + } else { + r0 = ret.Get(0).(client.ApiInsertVirtualMediaRequest) + } + + return r0 +} + +// InsertVirtualMediaExecute provides a mock function with given fields: _a0 +func (_m *RedfishAPI) InsertVirtualMediaExecute(_a0 client.ApiInsertVirtualMediaRequest) (client.RedfishError, *http.Response, error) { + ret := _m.Called(_a0) + + var r0 client.RedfishError + if rf, ok := ret.Get(0).(func(client.ApiInsertVirtualMediaRequest) client.RedfishError); ok { + r0 = rf(_a0) + } else { + r0 = ret.Get(0).(client.RedfishError) + } + + var r1 *http.Response + if rf, ok := ret.Get(1).(func(client.ApiInsertVirtualMediaRequest) *http.Response); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*http.Response) + } + } + + var r2 error + if rf, ok := ret.Get(2).(func(client.ApiInsertVirtualMediaRequest) error); ok { + r2 = rf(_a0) + } else { + r2 = ret.Error(2) + } + + return r0, r1, r2 +} + +// ListManagerVirtualMedia provides a mock function with given fields: _a0, _a1 +func (_m *RedfishAPI) ListManagerVirtualMedia(_a0 context.Context, _a1 string) client.ApiListManagerVirtualMediaRequest { + ret := _m.Called(_a0, _a1) + + var r0 client.ApiListManagerVirtualMediaRequest + if rf, ok := ret.Get(0).(func(context.Context, string) client.ApiListManagerVirtualMediaRequest); ok { + r0 = rf(_a0, _a1) + } else { + r0 = ret.Get(0).(client.ApiListManagerVirtualMediaRequest) + } + + return r0 +} + +// ListManagerVirtualMediaExecute provides a mock function with given fields: _a0 +func (_m *RedfishAPI) ListManagerVirtualMediaExecute(_a0 client.ApiListManagerVirtualMediaRequest) (client.Collection, *http.Response, error) { + ret := _m.Called(_a0) + + var r0 client.Collection + if rf, ok := ret.Get(0).(func(client.ApiListManagerVirtualMediaRequest) client.Collection); ok { + r0 = rf(_a0) + } else { + r0 = ret.Get(0).(client.Collection) + } + + var r1 *http.Response + if rf, ok := ret.Get(1).(func(client.ApiListManagerVirtualMediaRequest) *http.Response); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*http.Response) + } + } + + var r2 error + if rf, ok := ret.Get(2).(func(client.ApiListManagerVirtualMediaRequest) error); ok { + r2 = rf(_a0) + } else { + r2 = ret.Error(2) + } + + return r0, r1, r2 +} + +// ListManagers provides a mock function with given fields: _a0 +func (_m *RedfishAPI) ListManagers(_a0 context.Context) client.ApiListManagersRequest { + ret := _m.Called(_a0) + + var r0 client.ApiListManagersRequest + if rf, ok := ret.Get(0).(func(context.Context) client.ApiListManagersRequest); ok { + r0 = rf(_a0) + } else { + r0 = ret.Get(0).(client.ApiListManagersRequest) + } + + return r0 +} + +// ListManagersExecute provides a mock function with given fields: _a0 +func (_m *RedfishAPI) ListManagersExecute(_a0 client.ApiListManagersRequest) (client.Collection, *http.Response, error) { + ret := _m.Called(_a0) + + var r0 client.Collection + if rf, ok := ret.Get(0).(func(client.ApiListManagersRequest) client.Collection); ok { + r0 = rf(_a0) + } else { + r0 = ret.Get(0).(client.Collection) + } + + var r1 *http.Response + if rf, ok := ret.Get(1).(func(client.ApiListManagersRequest) *http.Response); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*http.Response) + } + } + + var r2 error + if rf, ok := ret.Get(2).(func(client.ApiListManagersRequest) error); ok { r2 = rf(_a0) } else { r2 = ret.Error(2) @@ -491,18 +715,32 @@ func (_m *RedfishAPI) ListManagers(_a0 context.Context) (client.Collection, *htt } // ListSystems provides a mock function with given fields: _a0 -func (_m *RedfishAPI) ListSystems(_a0 context.Context) (client.Collection, *http.Response, error) { +func (_m *RedfishAPI) ListSystems(_a0 context.Context) client.ApiListSystemsRequest { + ret := _m.Called(_a0) + + var r0 client.ApiListSystemsRequest + if rf, ok := ret.Get(0).(func(context.Context) client.ApiListSystemsRequest); ok { + r0 = rf(_a0) + } else { + r0 = ret.Get(0).(client.ApiListSystemsRequest) + } + + return r0 +} + +// ListSystemsExecute provides a mock function with given fields: _a0 +func (_m *RedfishAPI) ListSystemsExecute(_a0 client.ApiListSystemsRequest) (client.Collection, *http.Response, error) { ret := _m.Called(_a0) var r0 client.Collection - if rf, ok := ret.Get(0).(func(context.Context) client.Collection); ok { + if rf, ok := ret.Get(0).(func(client.ApiListSystemsRequest) client.Collection); ok { r0 = rf(_a0) } else { r0 = ret.Get(0).(client.Collection) } var r1 *http.Response - if rf, ok := ret.Get(1).(func(context.Context) *http.Response); ok { + if rf, ok := ret.Get(1).(func(client.ApiListSystemsRequest) *http.Response); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { @@ -511,7 +749,7 @@ func (_m *RedfishAPI) ListSystems(_a0 context.Context) (client.Collection, *http } var r2 error - if rf, ok := ret.Get(2).(func(context.Context) error); ok { + if rf, ok := ret.Get(2).(func(client.ApiListSystemsRequest) error); ok { r2 = rf(_a0) } else { r2 = ret.Error(2) @@ -520,20 +758,34 @@ func (_m *RedfishAPI) ListSystems(_a0 context.Context) (client.Collection, *http return r0, r1, r2 } -// ResetSystem provides a mock function with given fields: _a0, _a1, _a2 -func (_m *RedfishAPI) ResetSystem(_a0 context.Context, _a1 string, _a2 client.ResetRequestBody) (client.RedfishError, *http.Response, error) { - ret := _m.Called(_a0, _a1, _a2) +// ResetSystem provides a mock function with given fields: _a0, _a1 +func (_m *RedfishAPI) ResetSystem(_a0 context.Context, _a1 string) client.ApiResetSystemRequest { + ret := _m.Called(_a0, _a1) + + var r0 client.ApiResetSystemRequest + if rf, ok := ret.Get(0).(func(context.Context, string) client.ApiResetSystemRequest); ok { + r0 = rf(_a0, _a1) + } else { + r0 = ret.Get(0).(client.ApiResetSystemRequest) + } + + return r0 +} + +// ResetSystemExecute provides a mock function with given fields: _a0 +func (_m *RedfishAPI) ResetSystemExecute(_a0 client.ApiResetSystemRequest) (client.RedfishError, *http.Response, error) { + ret := _m.Called(_a0) var r0 client.RedfishError - if rf, ok := ret.Get(0).(func(context.Context, string, client.ResetRequestBody) client.RedfishError); ok { - r0 = rf(_a0, _a1, _a2) + if rf, ok := ret.Get(0).(func(client.ApiResetSystemRequest) client.RedfishError); ok { + r0 = rf(_a0) } else { r0 = ret.Get(0).(client.RedfishError) } var r1 *http.Response - if rf, ok := ret.Get(1).(func(context.Context, string, client.ResetRequestBody) *http.Response); ok { - r1 = rf(_a0, _a1, _a2) + if rf, ok := ret.Get(1).(func(client.ApiResetSystemRequest) *http.Response); ok { + r1 = rf(_a0) } else { if ret.Get(1) != nil { r1 = ret.Get(1).(*http.Response) @@ -541,8 +793,8 @@ func (_m *RedfishAPI) ResetSystem(_a0 context.Context, _a1 string, _a2 client.Re } var r2 error - if rf, ok := ret.Get(2).(func(context.Context, string, client.ResetRequestBody) error); ok { - r2 = rf(_a0, _a1, _a2) + if rf, ok := ret.Get(2).(func(client.ApiResetSystemRequest) error); ok { + r2 = rf(_a0) } else { r2 = ret.Error(2) } @@ -550,20 +802,34 @@ func (_m *RedfishAPI) ResetSystem(_a0 context.Context, _a1 string, _a2 client.Re return r0, r1, r2 } -// SetSystem provides a mock function with given fields: _a0, _a1, _a2 -func (_m *RedfishAPI) SetSystem(_a0 context.Context, _a1 string, _a2 client.ComputerSystem) (client.ComputerSystem, *http.Response, error) { - ret := _m.Called(_a0, _a1, _a2) +// SetSystem provides a mock function with given fields: _a0, _a1 +func (_m *RedfishAPI) SetSystem(_a0 context.Context, _a1 string) client.ApiSetSystemRequest { + ret := _m.Called(_a0, _a1) + + var r0 client.ApiSetSystemRequest + if rf, ok := ret.Get(0).(func(context.Context, string) client.ApiSetSystemRequest); ok { + r0 = rf(_a0, _a1) + } else { + r0 = ret.Get(0).(client.ApiSetSystemRequest) + } + + return r0 +} + +// SetSystemExecute provides a mock function with given fields: _a0 +func (_m *RedfishAPI) SetSystemExecute(_a0 client.ApiSetSystemRequest) (client.ComputerSystem, *http.Response, error) { + ret := _m.Called(_a0) var r0 client.ComputerSystem - if rf, ok := ret.Get(0).(func(context.Context, string, client.ComputerSystem) client.ComputerSystem); ok { - r0 = rf(_a0, _a1, _a2) + if rf, ok := ret.Get(0).(func(client.ApiSetSystemRequest) client.ComputerSystem); ok { + r0 = rf(_a0) } else { r0 = ret.Get(0).(client.ComputerSystem) } var r1 *http.Response - if rf, ok := ret.Get(1).(func(context.Context, string, client.ComputerSystem) *http.Response); ok { - r1 = rf(_a0, _a1, _a2) + if rf, ok := ret.Get(1).(func(client.ApiSetSystemRequest) *http.Response); ok { + r1 = rf(_a0) } else { if ret.Get(1) != nil { r1 = ret.Get(1).(*http.Response) @@ -571,8 +837,8 @@ func (_m *RedfishAPI) SetSystem(_a0 context.Context, _a1 string, _a2 client.Comp } var r2 error - if rf, ok := ret.Get(2).(func(context.Context, string, client.ComputerSystem) error); ok { - r2 = rf(_a0, _a1, _a2) + if rf, ok := ret.Get(2).(func(client.ApiSetSystemRequest) error); ok { + r2 = rf(_a0) } else { r2 = ret.Error(2) } @@ -581,18 +847,32 @@ func (_m *RedfishAPI) SetSystem(_a0 context.Context, _a1 string, _a2 client.Comp } // UpdateService provides a mock function with given fields: _a0 -func (_m *RedfishAPI) UpdateService(_a0 context.Context) (client.UpdateService, *http.Response, error) { +func (_m *RedfishAPI) UpdateService(_a0 context.Context) client.ApiUpdateServiceRequest { + ret := _m.Called(_a0) + + var r0 client.ApiUpdateServiceRequest + if rf, ok := ret.Get(0).(func(context.Context) client.ApiUpdateServiceRequest); ok { + r0 = rf(_a0) + } else { + r0 = ret.Get(0).(client.ApiUpdateServiceRequest) + } + + return r0 +} + +// UpdateServiceExecute provides a mock function with given fields: _a0 +func (_m *RedfishAPI) UpdateServiceExecute(_a0 client.ApiUpdateServiceRequest) (client.UpdateService, *http.Response, error) { ret := _m.Called(_a0) var r0 client.UpdateService - if rf, ok := ret.Get(0).(func(context.Context) client.UpdateService); ok { + if rf, ok := ret.Get(0).(func(client.ApiUpdateServiceRequest) client.UpdateService); ok { r0 = rf(_a0) } else { r0 = ret.Get(0).(client.UpdateService) } var r1 *http.Response - if rf, ok := ret.Get(1).(func(context.Context) *http.Response); ok { + if rf, ok := ret.Get(1).(func(client.ApiUpdateServiceRequest) *http.Response); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { @@ -601,7 +881,7 @@ func (_m *RedfishAPI) UpdateService(_a0 context.Context) (client.UpdateService, } var r2 error - if rf, ok := ret.Get(2).(func(context.Context) error); ok { + if rf, ok := ret.Get(2).(func(client.ApiUpdateServiceRequest) error); ok { r2 = rf(_a0) } else { r2 = ret.Error(2) @@ -610,20 +890,34 @@ func (_m *RedfishAPI) UpdateService(_a0 context.Context) (client.UpdateService, return r0, r1, r2 } -// UpdateServiceSimpleUpdate provides a mock function with given fields: _a0, _a1 -func (_m *RedfishAPI) UpdateServiceSimpleUpdate(_a0 context.Context, _a1 client.SimpleUpdateRequestBody) (client.RedfishError, *http.Response, error) { - ret := _m.Called(_a0, _a1) +// UpdateServiceSimpleUpdate provides a mock function with given fields: _a0 +func (_m *RedfishAPI) UpdateServiceSimpleUpdate(_a0 context.Context) client.ApiUpdateServiceSimpleUpdateRequest { + ret := _m.Called(_a0) + + var r0 client.ApiUpdateServiceSimpleUpdateRequest + if rf, ok := ret.Get(0).(func(context.Context) client.ApiUpdateServiceSimpleUpdateRequest); ok { + r0 = rf(_a0) + } else { + r0 = ret.Get(0).(client.ApiUpdateServiceSimpleUpdateRequest) + } + + return r0 +} + +// UpdateServiceSimpleUpdateExecute provides a mock function with given fields: _a0 +func (_m *RedfishAPI) UpdateServiceSimpleUpdateExecute(_a0 client.ApiUpdateServiceSimpleUpdateRequest) (client.RedfishError, *http.Response, error) { + ret := _m.Called(_a0) var r0 client.RedfishError - if rf, ok := ret.Get(0).(func(context.Context, client.SimpleUpdateRequestBody) client.RedfishError); ok { - r0 = rf(_a0, _a1) + if rf, ok := ret.Get(0).(func(client.ApiUpdateServiceSimpleUpdateRequest) client.RedfishError); ok { + r0 = rf(_a0) } else { r0 = ret.Get(0).(client.RedfishError) } var r1 *http.Response - if rf, ok := ret.Get(1).(func(context.Context, client.SimpleUpdateRequestBody) *http.Response); ok { - r1 = rf(_a0, _a1) + if rf, ok := ret.Get(1).(func(client.ApiUpdateServiceSimpleUpdateRequest) *http.Response); ok { + r1 = rf(_a0) } else { if ret.Get(1) != nil { r1 = ret.Get(1).(*http.Response) @@ -631,8 +925,8 @@ func (_m *RedfishAPI) UpdateServiceSimpleUpdate(_a0 context.Context, _a1 client. } var r2 error - if rf, ok := ret.Get(2).(func(context.Context, client.SimpleUpdateRequestBody) error); ok { - r2 = rf(_a0, _a1) + if rf, ok := ret.Get(2).(func(client.ApiUpdateServiceSimpleUpdateRequest) error); ok { + r2 = rf(_a0) } else { r2 = ret.Error(2) } diff --git a/api/service_interface.go b/api/service_interface.go index 38762b8..cddb58f 100644 --- a/api/service_interface.go +++ b/api/service_interface.go @@ -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, diff --git a/api_generator.go b/api_generator.go index 18aacc8..8bdd08e 100644 --- a/api_generator.go +++ b/api_generator.go @@ -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 { ` diff --git a/client/.openapi-generator/FILES b/client/.openapi-generator/FILES new file mode 100644 index 0000000..401cdfa --- /dev/null +++ b/client/.openapi-generator/FILES @@ -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 diff --git a/client/.openapi-generator/VERSION b/client/.openapi-generator/VERSION index 078bf8b..acf69b4 100644 --- a/client/.openapi-generator/VERSION +++ b/client/.openapi-generator/VERSION @@ -1 +1 @@ -4.2.2 \ No newline at end of file +5.1.0 \ No newline at end of file diff --git a/client/README.md b/client/README.md index dec5ea9..93a56aa 100644 --- a/client/README.md +++ b/client/README.md @@ -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 diff --git a/client/api/openapi.yaml b/client/api/openapi.yaml index e54a1fb..8605fb5 100644 --- a/client/api/openapi.yaml +++ b/client/api/openapi.yaml @@ -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 diff --git a/client/api_default.go b/client/api_default.go index 2604ef3..d6fc1fd 100644 --- a/client/api_default.go +++ b/client/api_default.go @@ -4,20 +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 ( + "bytes" _context "context" _ioutil "io/ioutil" _nethttp "net/http" _neturl "net/url" - "fmt" "strings" "os" - "github.com/antihax/optional" ) // Linger please @@ -28,15 +28,44 @@ var ( // DefaultApiService DefaultApi service type DefaultApiService service +type ApiCreateVirtualDiskRequest struct { + ctx _context.Context + ApiService *DefaultApiService + computerSystemId string + storageControllerId string + createVirtualDiskRequestBody *CreateVirtualDiskRequestBody +} + +func (r ApiCreateVirtualDiskRequest) CreateVirtualDiskRequestBody(createVirtualDiskRequestBody CreateVirtualDiskRequestBody) ApiCreateVirtualDiskRequest { + r.createVirtualDiskRequestBody = &createVirtualDiskRequestBody + return r +} + +func (r ApiCreateVirtualDiskRequest) Execute() (RedfishError, *_nethttp.Response, error) { + return r.ApiService.CreateVirtualDiskExecute(r) +} + /* -CreateVirtualDisk Method for CreateVirtualDisk + * CreateVirtualDisk Method for CreateVirtualDisk * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param computerSystemId System ID * @param storageControllerId Storage Controller ID - * @param createVirtualDiskRequestBody -@return RedfishError -*/ -func (a *DefaultApiService) CreateVirtualDisk(ctx _context.Context, computerSystemId string, storageControllerId string, createVirtualDiskRequestBody CreateVirtualDiskRequestBody) (RedfishError, *_nethttp.Response, error) { + * @return ApiCreateVirtualDiskRequest + */ +func (a *DefaultApiService) CreateVirtualDisk(ctx _context.Context, computerSystemId string, storageControllerId string) ApiCreateVirtualDiskRequest { + return ApiCreateVirtualDiskRequest{ + ApiService: a, + ctx: ctx, + computerSystemId: computerSystemId, + storageControllerId: storageControllerId, + } +} + +/* + * Execute executes the request + * @return RedfishError + */ +func (a *DefaultApiService) CreateVirtualDiskExecute(r ApiCreateVirtualDiskRequest) (RedfishError, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost localVarPostBody interface{} @@ -46,14 +75,21 @@ func (a *DefaultApiService) CreateVirtualDisk(ctx _context.Context, computerSyst localVarReturnValue RedfishError ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/redfish/v1/Systems/{ComputerSystemId}/Storage/{StorageControllerId}/Volumes" - localVarPath = strings.Replace(localVarPath, "{"+"ComputerSystemId"+"}", _neturl.QueryEscape(fmt.Sprintf("%v", computerSystemId)), -1) - localVarPath = strings.Replace(localVarPath, "{"+"StorageControllerId"+"}", _neturl.QueryEscape(fmt.Sprintf("%v", storageControllerId)), -1) + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.CreateVirtualDisk") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/redfish/v1/Systems/{ComputerSystemId}/Storage/{StorageControllerId}/Volumes" + localVarPath = strings.Replace(localVarPath, "{"+"ComputerSystemId"+"}", _neturl.PathEscape(parameterToString(r.computerSystemId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"StorageControllerId"+"}", _neturl.PathEscape(parameterToString(r.storageControllerId, "")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} + if r.createVirtualDiskRequestBody == nil { + return localVarReturnValue, nil, reportError("createVirtualDiskRequestBody is required and must be specified") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} @@ -73,19 +109,20 @@ func (a *DefaultApiService) CreateVirtualDisk(ctx _context.Context, computerSyst localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = &createVirtualDiskRequestBody - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + localVarPostBody = r.createVirtualDiskRequestBody + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -94,16 +131,6 @@ func (a *DefaultApiService) CreateVirtualDisk(ctx _context.Context, computerSyst newErr := GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 200 { - var v RedfishError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr } var v RedfishError err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) @@ -127,13 +154,38 @@ func (a *DefaultApiService) CreateVirtualDisk(ctx _context.Context, computerSyst return localVarReturnValue, localVarHTTPResponse, nil } +type ApiDeleteVirtualdiskRequest struct { + ctx _context.Context + ApiService *DefaultApiService + computerSystemId string + storageId string +} + + +func (r ApiDeleteVirtualdiskRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.DeleteVirtualdiskExecute(r) +} + /* -DeleteVirtualdisk Method for DeleteVirtualdisk + * DeleteVirtualdisk Method for DeleteVirtualdisk * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param computerSystemId System ID * @param storageId Storage ID -*/ -func (a *DefaultApiService) DeleteVirtualdisk(ctx _context.Context, computerSystemId string, storageId string) (*_nethttp.Response, error) { + * @return ApiDeleteVirtualdiskRequest + */ +func (a *DefaultApiService) DeleteVirtualdisk(ctx _context.Context, computerSystemId string, storageId string) ApiDeleteVirtualdiskRequest { + return ApiDeleteVirtualdiskRequest{ + ApiService: a, + ctx: ctx, + computerSystemId: computerSystemId, + storageId: storageId, + } +} + +/* + * Execute executes the request + */ +func (a *DefaultApiService) DeleteVirtualdiskExecute(r ApiDeleteVirtualdiskRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodDelete localVarPostBody interface{} @@ -142,11 +194,14 @@ func (a *DefaultApiService) DeleteVirtualdisk(ctx _context.Context, computerSyst localVarFileBytes []byte ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/redfish/v1/Systems/{ComputerSystemId}/Storage/Volumes/{StorageId}" - localVarPath = strings.Replace(localVarPath, "{"+"ComputerSystemId"+"}", _neturl.QueryEscape(fmt.Sprintf("%v", computerSystemId)), -1) - //localVarPath = strings.Replace(localVarPath, "{"+"StorageId"+"}", _neturl.QueryEscape(fmt.Sprintf("%v", storageId)), -1) - localVarPath = strings.Replace(localVarPath, "{"+"StorageId"+"}", fmt.Sprintf("%v", storageId), -1) + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.DeleteVirtualdisk") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/redfish/v1/Systems/{ComputerSystemId}/Storage/Volumes/{StorageId}" + localVarPath = strings.Replace(localVarPath, "{"+"ComputerSystemId"+"}", _neturl.PathEscape(parameterToString(r.computerSystemId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"StorageId"+"}", _neturl.PathEscape(parameterToString(r.storageId, "")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -169,18 +224,19 @@ func (a *DefaultApiService) DeleteVirtualdisk(ctx _context.Context, computerSyst if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarHTTPResponse, err } @@ -203,15 +259,44 @@ func (a *DefaultApiService) DeleteVirtualdisk(ctx _context.Context, computerSyst return localVarHTTPResponse, nil } +type ApiEjectVirtualMediaRequest struct { + ctx _context.Context + ApiService *DefaultApiService + managerId string + virtualMediaId string + body *map[string]interface{} +} + +func (r ApiEjectVirtualMediaRequest) Body(body map[string]interface{}) ApiEjectVirtualMediaRequest { + r.body = &body + return r +} + +func (r ApiEjectVirtualMediaRequest) Execute() (RedfishError, *_nethttp.Response, error) { + return r.ApiService.EjectVirtualMediaExecute(r) +} + /* -EjectVirtualMedia Method for EjectVirtualMedia + * EjectVirtualMedia Method for EjectVirtualMedia * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param managerId ID of resource * @param virtualMediaId ID of resource - * @param body -@return RedfishError -*/ -func (a *DefaultApiService) EjectVirtualMedia(ctx _context.Context, managerId string, virtualMediaId string, body map[string]interface{}) (RedfishError, *_nethttp.Response, error) { + * @return ApiEjectVirtualMediaRequest + */ +func (a *DefaultApiService) EjectVirtualMedia(ctx _context.Context, managerId string, virtualMediaId string) ApiEjectVirtualMediaRequest { + return ApiEjectVirtualMediaRequest{ + ApiService: a, + ctx: ctx, + managerId: managerId, + virtualMediaId: virtualMediaId, + } +} + +/* + * Execute executes the request + * @return RedfishError + */ +func (a *DefaultApiService) EjectVirtualMediaExecute(r ApiEjectVirtualMediaRequest) (RedfishError, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost localVarPostBody interface{} @@ -221,14 +306,21 @@ func (a *DefaultApiService) EjectVirtualMedia(ctx _context.Context, managerId st localVarReturnValue RedfishError ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/redfish/v1/Managers/{managerId}/VirtualMedia/{virtualMediaId}/Actions/VirtualMedia.EjectMedia" - localVarPath = strings.Replace(localVarPath, "{"+"managerId"+"}", _neturl.QueryEscape(fmt.Sprintf("%v", managerId)), -1) - localVarPath = strings.Replace(localVarPath, "{"+"virtualMediaId"+"}", _neturl.QueryEscape(fmt.Sprintf("%v", virtualMediaId)), -1) + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.EjectVirtualMedia") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/redfish/v1/Managers/{managerId}/VirtualMedia/{virtualMediaId}/Actions/VirtualMedia.EjectMedia" + localVarPath = strings.Replace(localVarPath, "{"+"managerId"+"}", _neturl.PathEscape(parameterToString(r.managerId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"virtualMediaId"+"}", _neturl.PathEscape(parameterToString(r.virtualMediaId, "")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} @@ -248,19 +340,20 @@ func (a *DefaultApiService) EjectVirtualMedia(ctx _context.Context, managerId st localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = &body - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -269,16 +362,6 @@ func (a *DefaultApiService) EjectVirtualMedia(ctx _context.Context, managerId st newErr := GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 200 { - var v RedfishError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr } var v RedfishError err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) @@ -302,12 +385,33 @@ func (a *DefaultApiService) EjectVirtualMedia(ctx _context.Context, managerId st return localVarReturnValue, localVarHTTPResponse, nil } +type ApiFirmwareInventoryRequest struct { + ctx _context.Context + ApiService *DefaultApiService +} + + +func (r ApiFirmwareInventoryRequest) Execute() (Collection, *_nethttp.Response, error) { + return r.ApiService.FirmwareInventoryExecute(r) +} + /* -FirmwareInventory Method for FirmwareInventory + * FirmwareInventory Method for FirmwareInventory * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). -@return Collection -*/ -func (a *DefaultApiService) FirmwareInventory(ctx _context.Context) (Collection, *_nethttp.Response, error) { + * @return ApiFirmwareInventoryRequest + */ +func (a *DefaultApiService) FirmwareInventory(ctx _context.Context) ApiFirmwareInventoryRequest { + return ApiFirmwareInventoryRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return Collection + */ +func (a *DefaultApiService) FirmwareInventoryExecute(r ApiFirmwareInventoryRequest) (Collection, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} @@ -317,8 +421,12 @@ func (a *DefaultApiService) FirmwareInventory(ctx _context.Context) (Collection, localVarReturnValue Collection ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/redfish/v1/UpdateService/FirmwareInventory" + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.FirmwareInventory") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/redfish/v1/UpdateService/FirmwareInventory" localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -341,18 +449,19 @@ func (a *DefaultApiService) FirmwareInventory(ctx _context.Context) (Collection, if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -362,15 +471,6 @@ func (a *DefaultApiService) FirmwareInventory(ctx _context.Context) (Collection, body: localVarBody, error: localVarHTTPResponse.Status, } - if localVarHTTPResponse.StatusCode == 200 { - var v Collection - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -386,19 +486,38 @@ func (a *DefaultApiService) FirmwareInventory(ctx _context.Context) (Collection, return localVarReturnValue, localVarHTTPResponse, nil } -// FirmwareInventoryDownloadImageOpts Optional parameters for the method 'FirmwareInventoryDownloadImage' -type FirmwareInventoryDownloadImageOpts struct { - SoftwareImage optional.Interface +type ApiFirmwareInventoryDownloadImageRequest struct { + ctx _context.Context + ApiService *DefaultApiService + softwareImage **os.File +} + +func (r ApiFirmwareInventoryDownloadImageRequest) SoftwareImage(softwareImage *os.File) ApiFirmwareInventoryDownloadImageRequest { + r.softwareImage = &softwareImage + return r +} + +func (r ApiFirmwareInventoryDownloadImageRequest) Execute() (RedfishError, *_nethttp.Response, error) { + return r.ApiService.FirmwareInventoryDownloadImageExecute(r) } /* -FirmwareInventoryDownloadImage Method for FirmwareInventoryDownloadImage + * FirmwareInventoryDownloadImage Method for FirmwareInventoryDownloadImage * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param optional nil or *FirmwareInventoryDownloadImageOpts - Optional Parameters: - * @param "SoftwareImage" (optional.Interface of *os.File) - -@return RedfishError -*/ -func (a *DefaultApiService) FirmwareInventoryDownloadImage(ctx _context.Context, localVarOptionals *FirmwareInventoryDownloadImageOpts) (RedfishError, *_nethttp.Response, error) { + * @return ApiFirmwareInventoryDownloadImageRequest + */ +func (a *DefaultApiService) FirmwareInventoryDownloadImage(ctx _context.Context) ApiFirmwareInventoryDownloadImageRequest { + return ApiFirmwareInventoryDownloadImageRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return RedfishError + */ +func (a *DefaultApiService) FirmwareInventoryDownloadImageExecute(r ApiFirmwareInventoryDownloadImageRequest) (RedfishError, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost localVarPostBody interface{} @@ -408,8 +527,12 @@ func (a *DefaultApiService) FirmwareInventoryDownloadImage(ctx _context.Context, localVarReturnValue RedfishError ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/redfish/v1/UpdateService/FirmwareInventory" + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.FirmwareInventoryDownloadImage") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/redfish/v1/UpdateService/FirmwareInventory" localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -434,12 +557,8 @@ func (a *DefaultApiService) FirmwareInventoryDownloadImage(ctx _context.Context, } localVarFormFileName = "softwareImage" var localVarFile *os.File - if localVarOptionals != nil && localVarOptionals.SoftwareImage.IsSet() { - localVarFileOk := false - localVarFile, localVarFileOk = localVarOptionals.SoftwareImage.Value().(*os.File) - if !localVarFileOk { - return localVarReturnValue, nil, reportError("softwareImage should be *os.File") - } + if r.softwareImage != nil { + localVarFile = *r.softwareImage } if localVarFile != nil { fbs, _ := _ioutil.ReadAll(localVarFile) @@ -447,18 +566,19 @@ func (a *DefaultApiService) FirmwareInventoryDownloadImage(ctx _context.Context, localVarFileName = localVarFile.Name() localVarFile.Close() } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -467,16 +587,6 @@ func (a *DefaultApiService) FirmwareInventoryDownloadImage(ctx _context.Context, newErr := GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 200 { - var v RedfishError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr } var v RedfishError err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) @@ -500,13 +610,36 @@ func (a *DefaultApiService) FirmwareInventoryDownloadImage(ctx _context.Context, return localVarReturnValue, localVarHTTPResponse, nil } +type ApiGetManagerRequest struct { + ctx _context.Context + ApiService *DefaultApiService + managerId string +} + + +func (r ApiGetManagerRequest) Execute() (Manager, *_nethttp.Response, error) { + return r.ApiService.GetManagerExecute(r) +} + /* -GetManager Method for GetManager + * GetManager Method for GetManager * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param managerId ID of resource -@return Manager -*/ -func (a *DefaultApiService) GetManager(ctx _context.Context, managerId string) (Manager, *_nethttp.Response, error) { + * @return ApiGetManagerRequest + */ +func (a *DefaultApiService) GetManager(ctx _context.Context, managerId string) ApiGetManagerRequest { + return ApiGetManagerRequest{ + ApiService: a, + ctx: ctx, + managerId: managerId, + } +} + +/* + * Execute executes the request + * @return Manager + */ +func (a *DefaultApiService) GetManagerExecute(r ApiGetManagerRequest) (Manager, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} @@ -516,9 +649,13 @@ func (a *DefaultApiService) GetManager(ctx _context.Context, managerId string) ( localVarReturnValue Manager ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/redfish/v1/Managers/{managerId}" - localVarPath = strings.Replace(localVarPath, "{"+"managerId"+"}", _neturl.QueryEscape(fmt.Sprintf("%v", managerId)), -1) + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetManager") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/redfish/v1/Managers/{managerId}" + localVarPath = strings.Replace(localVarPath, "{"+"managerId"+"}", _neturl.PathEscape(parameterToString(r.managerId, "")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -541,18 +678,19 @@ func (a *DefaultApiService) GetManager(ctx _context.Context, managerId string) ( if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -561,16 +699,6 @@ func (a *DefaultApiService) GetManager(ctx _context.Context, managerId string) ( newErr := GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 200 { - var v Manager - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr } var v RedfishError err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) @@ -594,14 +722,39 @@ func (a *DefaultApiService) GetManager(ctx _context.Context, managerId string) ( return localVarReturnValue, localVarHTTPResponse, nil } +type ApiGetManagerVirtualMediaRequest struct { + ctx _context.Context + ApiService *DefaultApiService + managerId string + virtualMediaId string +} + + +func (r ApiGetManagerVirtualMediaRequest) Execute() (VirtualMedia, *_nethttp.Response, error) { + return r.ApiService.GetManagerVirtualMediaExecute(r) +} + /* -GetManagerVirtualMedia Method for GetManagerVirtualMedia + * GetManagerVirtualMedia Method for GetManagerVirtualMedia * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param managerId ID of resource * @param virtualMediaId ID of resource -@return VirtualMedia -*/ -func (a *DefaultApiService) GetManagerVirtualMedia(ctx _context.Context, managerId string, virtualMediaId string) (VirtualMedia, *_nethttp.Response, error) { + * @return ApiGetManagerVirtualMediaRequest + */ +func (a *DefaultApiService) GetManagerVirtualMedia(ctx _context.Context, managerId string, virtualMediaId string) ApiGetManagerVirtualMediaRequest { + return ApiGetManagerVirtualMediaRequest{ + ApiService: a, + ctx: ctx, + managerId: managerId, + virtualMediaId: virtualMediaId, + } +} + +/* + * Execute executes the request + * @return VirtualMedia + */ +func (a *DefaultApiService) GetManagerVirtualMediaExecute(r ApiGetManagerVirtualMediaRequest) (VirtualMedia, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} @@ -611,10 +764,14 @@ func (a *DefaultApiService) GetManagerVirtualMedia(ctx _context.Context, manager localVarReturnValue VirtualMedia ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/redfish/v1/Managers/{managerId}/VirtualMedia/{virtualMediaId}" - localVarPath = strings.Replace(localVarPath, "{"+"managerId"+"}", _neturl.QueryEscape(fmt.Sprintf("%v", managerId)), -1) - localVarPath = strings.Replace(localVarPath, "{"+"virtualMediaId"+"}", _neturl.QueryEscape(fmt.Sprintf("%v", virtualMediaId)), -1) + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetManagerVirtualMedia") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/redfish/v1/Managers/{managerId}/VirtualMedia/{virtualMediaId}" + localVarPath = strings.Replace(localVarPath, "{"+"managerId"+"}", _neturl.PathEscape(parameterToString(r.managerId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"virtualMediaId"+"}", _neturl.PathEscape(parameterToString(r.virtualMediaId, "")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -637,18 +794,19 @@ func (a *DefaultApiService) GetManagerVirtualMedia(ctx _context.Context, manager if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -657,16 +815,6 @@ func (a *DefaultApiService) GetManagerVirtualMedia(ctx _context.Context, manager newErr := GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 200 { - var v VirtualMedia - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr } var v RedfishError err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) @@ -690,12 +838,33 @@ func (a *DefaultApiService) GetManagerVirtualMedia(ctx _context.Context, manager return localVarReturnValue, localVarHTTPResponse, nil } +type ApiGetRootRequest struct { + ctx _context.Context + ApiService *DefaultApiService +} + + +func (r ApiGetRootRequest) Execute() (Root, *_nethttp.Response, error) { + return r.ApiService.GetRootExecute(r) +} + /* -GetRoot Method for GetRoot + * GetRoot Method for GetRoot * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). -@return Root -*/ -func (a *DefaultApiService) GetRoot(ctx _context.Context) (Root, *_nethttp.Response, error) { + * @return ApiGetRootRequest + */ +func (a *DefaultApiService) GetRoot(ctx _context.Context) ApiGetRootRequest { + return ApiGetRootRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return Root + */ +func (a *DefaultApiService) GetRootExecute(r ApiGetRootRequest) (Root, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} @@ -705,8 +874,12 @@ func (a *DefaultApiService) GetRoot(ctx _context.Context) (Root, *_nethttp.Respo localVarReturnValue Root ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/redfish/v1" + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetRoot") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/redfish/v1" localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -729,18 +902,19 @@ func (a *DefaultApiService) GetRoot(ctx _context.Context) (Root, *_nethttp.Respo if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -750,15 +924,6 @@ func (a *DefaultApiService) GetRoot(ctx _context.Context) (Root, *_nethttp.Respo body: localVarBody, error: localVarHTTPResponse.Status, } - if localVarHTTPResponse.StatusCode == 200 { - var v Root - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -774,13 +939,36 @@ func (a *DefaultApiService) GetRoot(ctx _context.Context) (Root, *_nethttp.Respo return localVarReturnValue, localVarHTTPResponse, nil } +type ApiGetSoftwareInventoryRequest struct { + ctx _context.Context + ApiService *DefaultApiService + softwareId string +} + + +func (r ApiGetSoftwareInventoryRequest) Execute() (SoftwareInventory, *_nethttp.Response, error) { + return r.ApiService.GetSoftwareInventoryExecute(r) +} + /* -GetSoftwareInventory Method for GetSoftwareInventory + * GetSoftwareInventory Method for GetSoftwareInventory * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param softwareId ID of resource -@return SoftwareInventory -*/ -func (a *DefaultApiService) GetSoftwareInventory(ctx _context.Context, softwareId string) (SoftwareInventory, *_nethttp.Response, error) { + * @return ApiGetSoftwareInventoryRequest + */ +func (a *DefaultApiService) GetSoftwareInventory(ctx _context.Context, softwareId string) ApiGetSoftwareInventoryRequest { + return ApiGetSoftwareInventoryRequest{ + ApiService: a, + ctx: ctx, + softwareId: softwareId, + } +} + +/* + * Execute executes the request + * @return SoftwareInventory + */ +func (a *DefaultApiService) GetSoftwareInventoryExecute(r ApiGetSoftwareInventoryRequest) (SoftwareInventory, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} @@ -790,9 +978,13 @@ func (a *DefaultApiService) GetSoftwareInventory(ctx _context.Context, softwareI localVarReturnValue SoftwareInventory ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/redfish/v1/UpdateService/FirmwareInventory/{softwareId}" - localVarPath = strings.Replace(localVarPath, "{"+"softwareId"+"}", _neturl.QueryEscape(fmt.Sprintf("%v", softwareId)), -1) + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetSoftwareInventory") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/redfish/v1/UpdateService/FirmwareInventory/{softwareId}" + localVarPath = strings.Replace(localVarPath, "{"+"softwareId"+"}", _neturl.PathEscape(parameterToString(r.softwareId, "")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -815,18 +1007,19 @@ func (a *DefaultApiService) GetSoftwareInventory(ctx _context.Context, softwareI if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -835,16 +1028,6 @@ func (a *DefaultApiService) GetSoftwareInventory(ctx _context.Context, softwareI newErr := GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 200 { - var v SoftwareInventory - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr } var v RedfishError err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) @@ -868,13 +1051,36 @@ func (a *DefaultApiService) GetSoftwareInventory(ctx _context.Context, softwareI return localVarReturnValue, localVarHTTPResponse, nil } +type ApiGetSystemRequest struct { + ctx _context.Context + ApiService *DefaultApiService + systemId string +} + + +func (r ApiGetSystemRequest) Execute() (ComputerSystem, *_nethttp.Response, error) { + return r.ApiService.GetSystemExecute(r) +} + /* -GetSystem Method for GetSystem + * GetSystem Method for GetSystem * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param systemId ID of resource -@return ComputerSystem -*/ -func (a *DefaultApiService) GetSystem(ctx _context.Context, systemId string) (ComputerSystem, *_nethttp.Response, error) { + * @return ApiGetSystemRequest + */ +func (a *DefaultApiService) GetSystem(ctx _context.Context, systemId string) ApiGetSystemRequest { + return ApiGetSystemRequest{ + ApiService: a, + ctx: ctx, + systemId: systemId, + } +} + +/* + * Execute executes the request + * @return ComputerSystem + */ +func (a *DefaultApiService) GetSystemExecute(r ApiGetSystemRequest) (ComputerSystem, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} @@ -884,9 +1090,13 @@ func (a *DefaultApiService) GetSystem(ctx _context.Context, systemId string) (Co localVarReturnValue ComputerSystem ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/redfish/v1/Systems/{systemId}" - localVarPath = strings.Replace(localVarPath, "{"+"systemId"+"}", _neturl.QueryEscape(fmt.Sprintf("%v", systemId)), -1) + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetSystem") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/redfish/v1/Systems/{systemId}" + localVarPath = strings.Replace(localVarPath, "{"+"systemId"+"}", _neturl.PathEscape(parameterToString(r.systemId, "")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -909,18 +1119,19 @@ func (a *DefaultApiService) GetSystem(ctx _context.Context, systemId string) (Co if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -929,16 +1140,6 @@ func (a *DefaultApiService) GetSystem(ctx _context.Context, systemId string) (Co newErr := GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 200 { - var v ComputerSystem - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr } var v RedfishError err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) @@ -962,13 +1163,36 @@ func (a *DefaultApiService) GetSystem(ctx _context.Context, systemId string) (Co return localVarReturnValue, localVarHTTPResponse, nil } +type ApiGetTaskRequest struct { + ctx _context.Context + ApiService *DefaultApiService + taskId string +} + + +func (r ApiGetTaskRequest) Execute() (Task, *_nethttp.Response, error) { + return r.ApiService.GetTaskExecute(r) +} + /* -GetTask Method for GetTask + * GetTask Method for GetTask * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param taskId Task ID -@return Task -*/ -func (a *DefaultApiService) GetTask(ctx _context.Context, taskId string) (Task, *_nethttp.Response, error) { + * @return ApiGetTaskRequest + */ +func (a *DefaultApiService) GetTask(ctx _context.Context, taskId string) ApiGetTaskRequest { + return ApiGetTaskRequest{ + ApiService: a, + ctx: ctx, + taskId: taskId, + } +} + +/* + * Execute executes the request + * @return Task + */ +func (a *DefaultApiService) GetTaskExecute(r ApiGetTaskRequest) (Task, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} @@ -978,9 +1202,13 @@ func (a *DefaultApiService) GetTask(ctx _context.Context, taskId string) (Task, localVarReturnValue Task ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/redfish/v1/TaskService/Tasks/{taskId}" - localVarPath = strings.Replace(localVarPath, "{"+"taskId"+"}", _neturl.QueryEscape(fmt.Sprintf("%v", taskId)), -1) + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetTask") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/redfish/v1/TaskService/Tasks/{taskId}" + localVarPath = strings.Replace(localVarPath, "{"+"taskId"+"}", _neturl.PathEscape(parameterToString(r.taskId, "")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -1003,18 +1231,19 @@ func (a *DefaultApiService) GetTask(ctx _context.Context, taskId string) (Task, if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -1023,16 +1252,6 @@ func (a *DefaultApiService) GetTask(ctx _context.Context, taskId string) (Task, newErr := GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 200 { - var v Task - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr } var v RedfishError err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) @@ -1056,12 +1275,33 @@ func (a *DefaultApiService) GetTask(ctx _context.Context, taskId string) (Task, return localVarReturnValue, localVarHTTPResponse, nil } +type ApiGetTaskListRequest struct { + ctx _context.Context + ApiService *DefaultApiService +} + + +func (r ApiGetTaskListRequest) Execute() (Collection, *_nethttp.Response, error) { + return r.ApiService.GetTaskListExecute(r) +} + /* -GetTaskList Method for GetTaskList + * GetTaskList Method for GetTaskList * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). -@return Collection -*/ -func (a *DefaultApiService) GetTaskList(ctx _context.Context) (Collection, *_nethttp.Response, error) { + * @return ApiGetTaskListRequest + */ +func (a *DefaultApiService) GetTaskList(ctx _context.Context) ApiGetTaskListRequest { + return ApiGetTaskListRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return Collection + */ +func (a *DefaultApiService) GetTaskListExecute(r ApiGetTaskListRequest) (Collection, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} @@ -1071,8 +1311,12 @@ func (a *DefaultApiService) GetTaskList(ctx _context.Context) (Collection, *_net localVarReturnValue Collection ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/redfish/v1/TaskService/Tasks" + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetTaskList") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/redfish/v1/TaskService/Tasks" localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -1095,18 +1339,19 @@ func (a *DefaultApiService) GetTaskList(ctx _context.Context) (Collection, *_net if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -1116,15 +1361,6 @@ func (a *DefaultApiService) GetTaskList(ctx _context.Context) (Collection, *_net body: localVarBody, error: localVarHTTPResponse.Status, } - if localVarHTTPResponse.StatusCode == 200 { - var v Collection - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1140,14 +1376,39 @@ func (a *DefaultApiService) GetTaskList(ctx _context.Context) (Collection, *_net return localVarReturnValue, localVarHTTPResponse, nil } +type ApiGetVolumesRequest struct { + ctx _context.Context + ApiService *DefaultApiService + computerSystemId string + storageControllerId string +} + + +func (r ApiGetVolumesRequest) Execute() (Collection, *_nethttp.Response, error) { + return r.ApiService.GetVolumesExecute(r) +} + /* -GetVolumes Method for GetVolumes + * GetVolumes Method for GetVolumes * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param computerSystemId System ID * @param storageControllerId Storage Controller ID -@return Collection -*/ -func (a *DefaultApiService) GetVolumes(ctx _context.Context, computerSystemId string, storageControllerId string) (Collection, *_nethttp.Response, error) { + * @return ApiGetVolumesRequest + */ +func (a *DefaultApiService) GetVolumes(ctx _context.Context, computerSystemId string, storageControllerId string) ApiGetVolumesRequest { + return ApiGetVolumesRequest{ + ApiService: a, + ctx: ctx, + computerSystemId: computerSystemId, + storageControllerId: storageControllerId, + } +} + +/* + * Execute executes the request + * @return Collection + */ +func (a *DefaultApiService) GetVolumesExecute(r ApiGetVolumesRequest) (Collection, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} @@ -1157,10 +1418,14 @@ func (a *DefaultApiService) GetVolumes(ctx _context.Context, computerSystemId st localVarReturnValue Collection ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/redfish/v1/Systems/{ComputerSystemId}/Storage/{StorageControllerId}/Volumes" - localVarPath = strings.Replace(localVarPath, "{"+"ComputerSystemId"+"}", _neturl.QueryEscape(fmt.Sprintf("%v", computerSystemId)), -1) - localVarPath = strings.Replace(localVarPath, "{"+"StorageControllerId"+"}", _neturl.QueryEscape(fmt.Sprintf("%v", storageControllerId)), -1) + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetVolumes") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/redfish/v1/Systems/{ComputerSystemId}/Storage/{StorageControllerId}/Volumes" + localVarPath = strings.Replace(localVarPath, "{"+"ComputerSystemId"+"}", _neturl.PathEscape(parameterToString(r.computerSystemId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"StorageControllerId"+"}", _neturl.PathEscape(parameterToString(r.storageControllerId, "")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -1183,18 +1448,19 @@ func (a *DefaultApiService) GetVolumes(ctx _context.Context, computerSystemId st if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -1203,16 +1469,6 @@ func (a *DefaultApiService) GetVolumes(ctx _context.Context, computerSystemId st newErr := GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 200 { - var v Collection - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr } var v RedfishError err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) @@ -1236,15 +1492,44 @@ func (a *DefaultApiService) GetVolumes(ctx _context.Context, computerSystemId st return localVarReturnValue, localVarHTTPResponse, nil } +type ApiInsertVirtualMediaRequest struct { + ctx _context.Context + ApiService *DefaultApiService + managerId string + virtualMediaId string + insertMediaRequestBody *InsertMediaRequestBody +} + +func (r ApiInsertVirtualMediaRequest) InsertMediaRequestBody(insertMediaRequestBody InsertMediaRequestBody) ApiInsertVirtualMediaRequest { + r.insertMediaRequestBody = &insertMediaRequestBody + return r +} + +func (r ApiInsertVirtualMediaRequest) Execute() (RedfishError, *_nethttp.Response, error) { + return r.ApiService.InsertVirtualMediaExecute(r) +} + /* -InsertVirtualMedia Method for InsertVirtualMedia + * InsertVirtualMedia Method for InsertVirtualMedia * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param managerId ID of resource * @param virtualMediaId ID of resource - * @param insertMediaRequestBody -@return RedfishError -*/ -func (a *DefaultApiService) InsertVirtualMedia(ctx _context.Context, managerId string, virtualMediaId string, insertMediaRequestBody InsertMediaRequestBody) (RedfishError, *_nethttp.Response, error) { + * @return ApiInsertVirtualMediaRequest + */ +func (a *DefaultApiService) InsertVirtualMedia(ctx _context.Context, managerId string, virtualMediaId string) ApiInsertVirtualMediaRequest { + return ApiInsertVirtualMediaRequest{ + ApiService: a, + ctx: ctx, + managerId: managerId, + virtualMediaId: virtualMediaId, + } +} + +/* + * Execute executes the request + * @return RedfishError + */ +func (a *DefaultApiService) InsertVirtualMediaExecute(r ApiInsertVirtualMediaRequest) (RedfishError, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost localVarPostBody interface{} @@ -1254,14 +1539,21 @@ func (a *DefaultApiService) InsertVirtualMedia(ctx _context.Context, managerId s localVarReturnValue RedfishError ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/redfish/v1/Managers/{managerId}/VirtualMedia/{virtualMediaId}/Actions/VirtualMedia.InsertMedia" - localVarPath = strings.Replace(localVarPath, "{"+"managerId"+"}", _neturl.QueryEscape(fmt.Sprintf("%v", managerId)), -1) - localVarPath = strings.Replace(localVarPath, "{"+"virtualMediaId"+"}", _neturl.QueryEscape(fmt.Sprintf("%v", virtualMediaId)), -1) + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.InsertVirtualMedia") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/redfish/v1/Managers/{managerId}/VirtualMedia/{virtualMediaId}/Actions/VirtualMedia.InsertMedia" + localVarPath = strings.Replace(localVarPath, "{"+"managerId"+"}", _neturl.PathEscape(parameterToString(r.managerId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"virtualMediaId"+"}", _neturl.PathEscape(parameterToString(r.virtualMediaId, "")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} + if r.insertMediaRequestBody == nil { + return localVarReturnValue, nil, reportError("insertMediaRequestBody is required and must be specified") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} @@ -1281,19 +1573,20 @@ func (a *DefaultApiService) InsertVirtualMedia(ctx _context.Context, managerId s localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = &insertMediaRequestBody - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + localVarPostBody = r.insertMediaRequestBody + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -1302,16 +1595,6 @@ func (a *DefaultApiService) InsertVirtualMedia(ctx _context.Context, managerId s newErr := GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 200 { - var v RedfishError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr } var v RedfishError err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) @@ -1335,13 +1618,36 @@ func (a *DefaultApiService) InsertVirtualMedia(ctx _context.Context, managerId s return localVarReturnValue, localVarHTTPResponse, nil } +type ApiListManagerVirtualMediaRequest struct { + ctx _context.Context + ApiService *DefaultApiService + managerId string +} + + +func (r ApiListManagerVirtualMediaRequest) Execute() (Collection, *_nethttp.Response, error) { + return r.ApiService.ListManagerVirtualMediaExecute(r) +} + /* -ListManagerVirtualMedia Method for ListManagerVirtualMedia + * ListManagerVirtualMedia Method for ListManagerVirtualMedia * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param managerId ID of resource -@return Collection -*/ -func (a *DefaultApiService) ListManagerVirtualMedia(ctx _context.Context, managerId string) (Collection, *_nethttp.Response, error) { + * @return ApiListManagerVirtualMediaRequest + */ +func (a *DefaultApiService) ListManagerVirtualMedia(ctx _context.Context, managerId string) ApiListManagerVirtualMediaRequest { + return ApiListManagerVirtualMediaRequest{ + ApiService: a, + ctx: ctx, + managerId: managerId, + } +} + +/* + * Execute executes the request + * @return Collection + */ +func (a *DefaultApiService) ListManagerVirtualMediaExecute(r ApiListManagerVirtualMediaRequest) (Collection, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} @@ -1351,9 +1657,13 @@ func (a *DefaultApiService) ListManagerVirtualMedia(ctx _context.Context, manage localVarReturnValue Collection ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/redfish/v1/Managers/{managerId}/VirtualMedia" - localVarPath = strings.Replace(localVarPath, "{"+"managerId"+"}", _neturl.QueryEscape(fmt.Sprintf("%v", managerId)), -1) + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ListManagerVirtualMedia") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/redfish/v1/Managers/{managerId}/VirtualMedia" + localVarPath = strings.Replace(localVarPath, "{"+"managerId"+"}", _neturl.PathEscape(parameterToString(r.managerId, "")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -1376,18 +1686,19 @@ func (a *DefaultApiService) ListManagerVirtualMedia(ctx _context.Context, manage if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -1396,16 +1707,6 @@ func (a *DefaultApiService) ListManagerVirtualMedia(ctx _context.Context, manage newErr := GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 200 { - var v Collection - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr } var v RedfishError err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) @@ -1429,12 +1730,33 @@ func (a *DefaultApiService) ListManagerVirtualMedia(ctx _context.Context, manage return localVarReturnValue, localVarHTTPResponse, nil } +type ApiListManagersRequest struct { + ctx _context.Context + ApiService *DefaultApiService +} + + +func (r ApiListManagersRequest) Execute() (Collection, *_nethttp.Response, error) { + return r.ApiService.ListManagersExecute(r) +} + /* -ListManagers Method for ListManagers + * ListManagers Method for ListManagers * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). -@return Collection -*/ -func (a *DefaultApiService) ListManagers(ctx _context.Context) (Collection, *_nethttp.Response, error) { + * @return ApiListManagersRequest + */ +func (a *DefaultApiService) ListManagers(ctx _context.Context) ApiListManagersRequest { + return ApiListManagersRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return Collection + */ +func (a *DefaultApiService) ListManagersExecute(r ApiListManagersRequest) (Collection, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} @@ -1444,8 +1766,12 @@ func (a *DefaultApiService) ListManagers(ctx _context.Context) (Collection, *_ne localVarReturnValue Collection ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/redfish/v1/Managers" + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ListManagers") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/redfish/v1/Managers" localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -1468,18 +1794,19 @@ func (a *DefaultApiService) ListManagers(ctx _context.Context) (Collection, *_ne if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -1489,15 +1816,6 @@ func (a *DefaultApiService) ListManagers(ctx _context.Context) (Collection, *_ne body: localVarBody, error: localVarHTTPResponse.Status, } - if localVarHTTPResponse.StatusCode == 200 { - var v Collection - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1513,12 +1831,33 @@ func (a *DefaultApiService) ListManagers(ctx _context.Context) (Collection, *_ne return localVarReturnValue, localVarHTTPResponse, nil } +type ApiListSystemsRequest struct { + ctx _context.Context + ApiService *DefaultApiService +} + + +func (r ApiListSystemsRequest) Execute() (Collection, *_nethttp.Response, error) { + return r.ApiService.ListSystemsExecute(r) +} + /* -ListSystems Method for ListSystems + * ListSystems Method for ListSystems * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). -@return Collection -*/ -func (a *DefaultApiService) ListSystems(ctx _context.Context) (Collection, *_nethttp.Response, error) { + * @return ApiListSystemsRequest + */ +func (a *DefaultApiService) ListSystems(ctx _context.Context) ApiListSystemsRequest { + return ApiListSystemsRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return Collection + */ +func (a *DefaultApiService) ListSystemsExecute(r ApiListSystemsRequest) (Collection, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} @@ -1528,8 +1867,12 @@ func (a *DefaultApiService) ListSystems(ctx _context.Context) (Collection, *_net localVarReturnValue Collection ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/redfish/v1/Systems" + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ListSystems") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/redfish/v1/Systems" localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -1552,18 +1895,19 @@ func (a *DefaultApiService) ListSystems(ctx _context.Context) (Collection, *_net if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -1573,15 +1917,6 @@ func (a *DefaultApiService) ListSystems(ctx _context.Context) (Collection, *_net body: localVarBody, error: localVarHTTPResponse.Status, } - if localVarHTTPResponse.StatusCode == 200 { - var v Collection - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1597,14 +1932,41 @@ func (a *DefaultApiService) ListSystems(ctx _context.Context) (Collection, *_net return localVarReturnValue, localVarHTTPResponse, nil } +type ApiResetSystemRequest struct { + ctx _context.Context + ApiService *DefaultApiService + computerSystemId string + resetRequestBody *ResetRequestBody +} + +func (r ApiResetSystemRequest) ResetRequestBody(resetRequestBody ResetRequestBody) ApiResetSystemRequest { + r.resetRequestBody = &resetRequestBody + return r +} + +func (r ApiResetSystemRequest) Execute() (RedfishError, *_nethttp.Response, error) { + return r.ApiService.ResetSystemExecute(r) +} + /* -ResetSystem Method for ResetSystem + * ResetSystem Method for ResetSystem * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param computerSystemId - * @param resetRequestBody -@return RedfishError -*/ -func (a *DefaultApiService) ResetSystem(ctx _context.Context, computerSystemId string, resetRequestBody ResetRequestBody) (RedfishError, *_nethttp.Response, error) { + * @return ApiResetSystemRequest + */ +func (a *DefaultApiService) ResetSystem(ctx _context.Context, computerSystemId string) ApiResetSystemRequest { + return ApiResetSystemRequest{ + ApiService: a, + ctx: ctx, + computerSystemId: computerSystemId, + } +} + +/* + * Execute executes the request + * @return RedfishError + */ +func (a *DefaultApiService) ResetSystemExecute(r ApiResetSystemRequest) (RedfishError, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost localVarPostBody interface{} @@ -1614,13 +1976,20 @@ func (a *DefaultApiService) ResetSystem(ctx _context.Context, computerSystemId s localVarReturnValue RedfishError ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/redfish/v1/Systems/{ComputerSystemId}/Actions/ComputerSystem.Reset" - localVarPath = strings.Replace(localVarPath, "{"+"ComputerSystemId"+"}", _neturl.QueryEscape(fmt.Sprintf("%v", computerSystemId)), -1) + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ResetSystem") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/redfish/v1/Systems/{ComputerSystemId}/Actions/ComputerSystem.Reset" + localVarPath = strings.Replace(localVarPath, "{"+"ComputerSystemId"+"}", _neturl.PathEscape(parameterToString(r.computerSystemId, "")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} + if r.resetRequestBody == nil { + return localVarReturnValue, nil, reportError("resetRequestBody is required and must be specified") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} @@ -1640,19 +2009,20 @@ func (a *DefaultApiService) ResetSystem(ctx _context.Context, computerSystemId s localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = &resetRequestBody - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + localVarPostBody = r.resetRequestBody + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -1661,16 +2031,6 @@ func (a *DefaultApiService) ResetSystem(ctx _context.Context, computerSystemId s newErr := GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 200 { - var v RedfishError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr } var v RedfishError err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) @@ -1694,14 +2054,41 @@ func (a *DefaultApiService) ResetSystem(ctx _context.Context, computerSystemId s return localVarReturnValue, localVarHTTPResponse, nil } +type ApiSetSystemRequest struct { + ctx _context.Context + ApiService *DefaultApiService + systemId string + computerSystem *ComputerSystem +} + +func (r ApiSetSystemRequest) ComputerSystem(computerSystem ComputerSystem) ApiSetSystemRequest { + r.computerSystem = &computerSystem + return r +} + +func (r ApiSetSystemRequest) Execute() (ComputerSystem, *_nethttp.Response, error) { + return r.ApiService.SetSystemExecute(r) +} + /* -SetSystem Method for SetSystem + * SetSystem Method for SetSystem * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param systemId ID of resource - * @param computerSystem -@return ComputerSystem -*/ -func (a *DefaultApiService) SetSystem(ctx _context.Context, systemId string, computerSystem ComputerSystem) (ComputerSystem, *_nethttp.Response, error) { + * @return ApiSetSystemRequest + */ +func (a *DefaultApiService) SetSystem(ctx _context.Context, systemId string) ApiSetSystemRequest { + return ApiSetSystemRequest{ + ApiService: a, + ctx: ctx, + systemId: systemId, + } +} + +/* + * Execute executes the request + * @return ComputerSystem + */ +func (a *DefaultApiService) SetSystemExecute(r ApiSetSystemRequest) (ComputerSystem, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPatch localVarPostBody interface{} @@ -1711,13 +2098,20 @@ func (a *DefaultApiService) SetSystem(ctx _context.Context, systemId string, com localVarReturnValue ComputerSystem ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/redfish/v1/Systems/{systemId}" - localVarPath = strings.Replace(localVarPath, "{"+"systemId"+"}", _neturl.QueryEscape(fmt.Sprintf("%v", systemId)), -1) + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.SetSystem") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/redfish/v1/Systems/{systemId}" + localVarPath = strings.Replace(localVarPath, "{"+"systemId"+"}", _neturl.PathEscape(parameterToString(r.systemId, "")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} + if r.computerSystem == nil { + return localVarReturnValue, nil, reportError("computerSystem is required and must be specified") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} @@ -1737,19 +2131,20 @@ func (a *DefaultApiService) SetSystem(ctx _context.Context, systemId string, com localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = &computerSystem - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + localVarPostBody = r.computerSystem + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -1758,16 +2153,6 @@ func (a *DefaultApiService) SetSystem(ctx _context.Context, systemId string, com newErr := GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 200 { - var v ComputerSystem - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr } var v RedfishError err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) @@ -1791,12 +2176,33 @@ func (a *DefaultApiService) SetSystem(ctx _context.Context, systemId string, com return localVarReturnValue, localVarHTTPResponse, nil } +type ApiUpdateServiceRequest struct { + ctx _context.Context + ApiService *DefaultApiService +} + + +func (r ApiUpdateServiceRequest) Execute() (UpdateService, *_nethttp.Response, error) { + return r.ApiService.UpdateServiceExecute(r) +} + /* -UpdateService Method for UpdateService + * UpdateService Method for UpdateService * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). -@return UpdateService -*/ -func (a *DefaultApiService) UpdateService(ctx _context.Context) (UpdateService, *_nethttp.Response, error) { + * @return ApiUpdateServiceRequest + */ +func (a *DefaultApiService) UpdateService(ctx _context.Context) ApiUpdateServiceRequest { + return ApiUpdateServiceRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return UpdateService + */ +func (a *DefaultApiService) UpdateServiceExecute(r ApiUpdateServiceRequest) (UpdateService, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} @@ -1806,8 +2212,12 @@ func (a *DefaultApiService) UpdateService(ctx _context.Context) (UpdateService, localVarReturnValue UpdateService ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/redfish/v1/UpdateService" + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.UpdateService") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/redfish/v1/UpdateService" localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -1830,18 +2240,19 @@ func (a *DefaultApiService) UpdateService(ctx _context.Context) (UpdateService, if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -1850,16 +2261,6 @@ func (a *DefaultApiService) UpdateService(ctx _context.Context) (UpdateService, newErr := GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 200 { - var v UpdateService - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr } var v RedfishError err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) @@ -1883,13 +2284,38 @@ func (a *DefaultApiService) UpdateService(ctx _context.Context) (UpdateService, return localVarReturnValue, localVarHTTPResponse, nil } +type ApiUpdateServiceSimpleUpdateRequest struct { + ctx _context.Context + ApiService *DefaultApiService + simpleUpdateRequestBody *SimpleUpdateRequestBody +} + +func (r ApiUpdateServiceSimpleUpdateRequest) SimpleUpdateRequestBody(simpleUpdateRequestBody SimpleUpdateRequestBody) ApiUpdateServiceSimpleUpdateRequest { + r.simpleUpdateRequestBody = &simpleUpdateRequestBody + return r +} + +func (r ApiUpdateServiceSimpleUpdateRequest) Execute() (RedfishError, *_nethttp.Response, error) { + return r.ApiService.UpdateServiceSimpleUpdateExecute(r) +} + /* -UpdateServiceSimpleUpdate Method for UpdateServiceSimpleUpdate + * UpdateServiceSimpleUpdate Method for UpdateServiceSimpleUpdate * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param simpleUpdateRequestBody -@return RedfishError -*/ -func (a *DefaultApiService) UpdateServiceSimpleUpdate(ctx _context.Context, simpleUpdateRequestBody SimpleUpdateRequestBody) (RedfishError, *_nethttp.Response, error) { + * @return ApiUpdateServiceSimpleUpdateRequest + */ +func (a *DefaultApiService) UpdateServiceSimpleUpdate(ctx _context.Context) ApiUpdateServiceSimpleUpdateRequest { + return ApiUpdateServiceSimpleUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return RedfishError + */ +func (a *DefaultApiService) UpdateServiceSimpleUpdateExecute(r ApiUpdateServiceSimpleUpdateRequest) (RedfishError, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost localVarPostBody interface{} @@ -1899,12 +2325,19 @@ func (a *DefaultApiService) UpdateServiceSimpleUpdate(ctx _context.Context, simp localVarReturnValue RedfishError ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/redfish/v1/UpdateService/Actions/UpdateService.SimpleUpdate" + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.UpdateServiceSimpleUpdate") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/redfish/v1/UpdateService/Actions/UpdateService.SimpleUpdate" localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} + if r.simpleUpdateRequestBody == nil { + return localVarReturnValue, nil, reportError("simpleUpdateRequestBody is required and must be specified") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} @@ -1924,19 +2357,20 @@ func (a *DefaultApiService) UpdateServiceSimpleUpdate(ctx _context.Context, simp localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = &simpleUpdateRequestBody - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + localVarPostBody = r.simpleUpdateRequestBody + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -1945,16 +2379,6 @@ func (a *DefaultApiService) UpdateServiceSimpleUpdate(ctx _context.Context, simp newErr := GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 200 { - var v RedfishError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr } var v RedfishError err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) diff --git a/client/client.go b/client/client.go index 562490d..1f4145d 100644 --- a/client/client.go +++ b/client/client.go @@ -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,13 +157,12 @@ 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 { - dump, err := httputil.DumpRequestOut(request, true) + dump, err := httputil.DumpRequestOut(request, true) if err != nil { - return nil, err + return nil, err } log.Printf("\n%s\n", string(dump)) } @@ -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 { diff --git a/client/configuration.go b/client/configuration.go index 9b29fff..83e5b4f 100644 --- a/client/configuration.go +++ b/client/configuration.go @@ -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"` - HTTPClient *http.Client + 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, + 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) +} diff --git a/client/docs/Boot.md b/client/docs/Boot.md index 4bd4c12..b8a5a6b 100644 --- a/client/docs/Boot.md +++ b/client/docs/Boot.md @@ -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) diff --git a/client/docs/BootSource.md b/client/docs/BootSource.md index b7771af..59dea00 100644 --- a/client/docs/BootSource.md +++ b/client/docs/BootSource.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) diff --git a/client/docs/BootSourceOverrideEnabled.md b/client/docs/BootSourceOverrideEnabled.md index 14e9563..8ba5d53 100644 --- a/client/docs/BootSourceOverrideEnabled.md +++ b/client/docs/BootSourceOverrideEnabled.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) diff --git a/client/docs/Collection.md b/client/docs/Collection.md index 5bc223d..6aeb416 100644 --- a/client/docs/Collection.md +++ b/client/docs/Collection.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) diff --git a/client/docs/ComputerSystem.md b/client/docs/ComputerSystem.md index c3beb4f..3d19fa1 100644 --- a/client/docs/ComputerSystem.md +++ b/client/docs/ComputerSystem.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) diff --git a/client/docs/ComputerSystemActions.md b/client/docs/ComputerSystemActions.md index 7e6bb63..d72b8fd 100644 --- a/client/docs/ComputerSystemActions.md +++ b/client/docs/ComputerSystemActions.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) diff --git a/client/docs/ComputerSystemReset.md b/client/docs/ComputerSystemReset.md index 80da261..494ec11 100644 --- a/client/docs/ComputerSystemReset.md +++ b/client/docs/ComputerSystemReset.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) diff --git a/client/docs/ConnectedVia.md b/client/docs/ConnectedVia.md index b7db877..0e25cd0 100644 --- a/client/docs/ConnectedVia.md +++ b/client/docs/ConnectedVia.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) diff --git a/client/docs/CreateVirtualDiskRequestBody.md b/client/docs/CreateVirtualDiskRequestBody.md index 99905f2..b24b67f 100644 --- a/client/docs/CreateVirtualDiskRequestBody.md +++ b/client/docs/CreateVirtualDiskRequestBody.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) diff --git a/client/docs/DefaultApi.md b/client/docs/DefaultApi.md index cf33ba5..09ada52 100644 --- a/client/docs/DefaultApi.md +++ b/client/docs/DefaultApi.md @@ -30,19 +30,58 @@ Method | HTTP request | Description ## CreateVirtualDisk -> RedfishError CreateVirtualDisk(ctx, computerSystemId, storageControllerId, createVirtualDiskRequestBody) +> RedfishError CreateVirtualDisk(ctx, computerSystemId, storageControllerId).CreateVirtualDiskRequestBody(createVirtualDiskRequestBody).Execute() -### Required Parameters +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + computerSystemId := "computerSystemId_example" // string | System ID + storageControllerId := "storageControllerId_example" // string | Storage Controller ID + createVirtualDiskRequestBody := *openapiclient.NewCreateVirtualDiskRequestBody(openapiclient.VolumeType("RawDevice"), "Name_example", []openapiclient.IdRef{*openapiclient.NewIdRef()}) // CreateVirtualDiskRequestBody | + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.CreateVirtualDisk(context.Background(), computerSystemId, storageControllerId).CreateVirtualDiskRequestBody(createVirtualDiskRequestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.CreateVirtualDisk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateVirtualDisk`: RedfishError + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.CreateVirtualDisk`: %v\n", resp) +} +``` + +### Path Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**computerSystemId** | **string**| System ID | -**storageControllerId** | **string**| Storage Controller ID | -**createVirtualDiskRequestBody** | [**CreateVirtualDiskRequestBody**](CreateVirtualDiskRequestBody.md)| | +**computerSystemId** | **string** | System ID | +**storageControllerId** | **string** | Storage Controller ID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateVirtualDiskRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **createVirtualDiskRequestBody** | [**CreateVirtualDiskRequestBody**](CreateVirtualDiskRequestBody.md) | | ### Return type @@ -64,18 +103,54 @@ No authorization required ## DeleteVirtualdisk -> DeleteVirtualdisk(ctx, computerSystemId, storageId) +> DeleteVirtualdisk(ctx, computerSystemId, storageId).Execute() -### Required Parameters +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + computerSystemId := "computerSystemId_example" // string | System ID + storageId := "storageId_example" // string | Storage ID + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.DeleteVirtualdisk(context.Background(), computerSystemId, storageId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.DeleteVirtualdisk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**computerSystemId** | **string**| System ID | -**storageId** | **string**| Storage ID | +**computerSystemId** | **string** | System ID | +**storageId** | **string** | Storage ID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteVirtualdiskRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + ### Return type @@ -97,19 +172,58 @@ No authorization required ## EjectVirtualMedia -> RedfishError EjectVirtualMedia(ctx, managerId, virtualMediaId, body) +> RedfishError EjectVirtualMedia(ctx, managerId, virtualMediaId).Body(body).Execute() -### Required Parameters +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + managerId := "managerId_example" // string | ID of resource + virtualMediaId := "virtualMediaId_example" // string | ID of resource + body := map[string]interface{}(Object) // map[string]interface{} | + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.EjectVirtualMedia(context.Background(), managerId, virtualMediaId).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.EjectVirtualMedia``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `EjectVirtualMedia`: RedfishError + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.EjectVirtualMedia`: %v\n", resp) +} +``` + +### Path Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**managerId** | **string**| ID of resource | -**virtualMediaId** | **string**| ID of resource | -**body** | **map[string]interface{}**| | +**managerId** | **string** | ID of resource | +**virtualMediaId** | **string** | ID of resource | + +### Other Parameters + +Other parameters are passed through a pointer to a apiEjectVirtualMediaRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | ### Return type @@ -131,14 +245,45 @@ No authorization required ## FirmwareInventory -> Collection FirmwareInventory(ctx, ) +> Collection FirmwareInventory(ctx).Execute() -### Required Parameters +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.FirmwareInventory(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.FirmwareInventory``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `FirmwareInventory`: Collection + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.FirmwareInventory`: %v\n", resp) +} +``` + +### Path Parameters This endpoint does not need any parameter. +### Other Parameters + +Other parameters are passed through a pointer to a apiFirmwareInventoryRequest struct via the builder pattern + + ### Return type [**Collection**](Collection.md) @@ -159,26 +304,49 @@ No authorization required ## FirmwareInventoryDownloadImage -> RedfishError FirmwareInventoryDownloadImage(ctx, optional) +> RedfishError FirmwareInventoryDownloadImage(ctx).SoftwareImage(softwareImage).Execute() -### Required Parameters +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + softwareImage := os.NewFile(1234, "some_file") // *os.File | (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.FirmwareInventoryDownloadImage(context.Background()).SoftwareImage(softwareImage).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.FirmwareInventoryDownloadImage``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `FirmwareInventoryDownloadImage`: RedfishError + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.FirmwareInventoryDownloadImage`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiFirmwareInventoryDownloadImageRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **optional** | ***FirmwareInventoryDownloadImageOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a FirmwareInventoryDownloadImageOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **softwareImage** | **optional.Interface of *os.File****optional.*os.File**| | + **softwareImage** | ***os.File** | | ### Return type @@ -200,17 +368,53 @@ No authorization required ## GetManager -> Manager GetManager(ctx, managerId) +> Manager GetManager(ctx, managerId).Execute() -### Required Parameters +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + managerId := "managerId_example" // string | ID of resource + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.GetManager(context.Background(), managerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetManager``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetManager`: Manager + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetManager`: %v\n", resp) +} +``` + +### Path Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**managerId** | **string**| ID of resource | +**managerId** | **string** | ID of resource | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetManagerRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + ### Return type @@ -232,18 +436,56 @@ No authorization required ## GetManagerVirtualMedia -> VirtualMedia GetManagerVirtualMedia(ctx, managerId, virtualMediaId) +> VirtualMedia GetManagerVirtualMedia(ctx, managerId, virtualMediaId).Execute() -### Required Parameters +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + managerId := "managerId_example" // string | ID of resource + virtualMediaId := "virtualMediaId_example" // string | ID of resource + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.GetManagerVirtualMedia(context.Background(), managerId, virtualMediaId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetManagerVirtualMedia``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetManagerVirtualMedia`: VirtualMedia + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetManagerVirtualMedia`: %v\n", resp) +} +``` + +### Path Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**managerId** | **string**| ID of resource | -**virtualMediaId** | **string**| ID of resource | +**managerId** | **string** | ID of resource | +**virtualMediaId** | **string** | ID of resource | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetManagerVirtualMediaRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + ### Return type @@ -265,14 +507,45 @@ No authorization required ## GetRoot -> Root GetRoot(ctx, ) +> Root GetRoot(ctx).Execute() -### Required Parameters +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.GetRoot(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetRoot``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoot`: Root + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetRoot`: %v\n", resp) +} +``` + +### Path Parameters This endpoint does not need any parameter. +### Other Parameters + +Other parameters are passed through a pointer to a apiGetRootRequest struct via the builder pattern + + ### Return type [**Root**](Root.md) @@ -293,17 +566,53 @@ No authorization required ## GetSoftwareInventory -> SoftwareInventory GetSoftwareInventory(ctx, softwareId) +> SoftwareInventory GetSoftwareInventory(ctx, softwareId).Execute() -### Required Parameters +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + softwareId := "softwareId_example" // string | ID of resource + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.GetSoftwareInventory(context.Background(), softwareId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetSoftwareInventory``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSoftwareInventory`: SoftwareInventory + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetSoftwareInventory`: %v\n", resp) +} +``` + +### Path Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**softwareId** | **string**| ID of resource | +**softwareId** | **string** | ID of resource | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSoftwareInventoryRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + ### Return type @@ -325,17 +634,53 @@ No authorization required ## GetSystem -> ComputerSystem GetSystem(ctx, systemId) +> ComputerSystem GetSystem(ctx, systemId).Execute() -### Required Parameters +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + systemId := "systemId_example" // string | ID of resource + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.GetSystem(context.Background(), systemId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetSystem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSystem`: ComputerSystem + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetSystem`: %v\n", resp) +} +``` + +### Path Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**systemId** | **string**| ID of resource | +**systemId** | **string** | ID of resource | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSystemRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + ### Return type @@ -357,17 +702,53 @@ No authorization required ## GetTask -> Task GetTask(ctx, taskId) +> Task GetTask(ctx, taskId).Execute() -### Required Parameters +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + taskId := "taskId_example" // string | Task ID + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.GetTask(context.Background(), taskId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetTask``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTask`: Task + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetTask`: %v\n", resp) +} +``` + +### Path Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**taskId** | **string**| Task ID | +**taskId** | **string** | Task ID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetTaskRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + ### Return type @@ -389,14 +770,45 @@ No authorization required ## GetTaskList -> Collection GetTaskList(ctx, ) +> Collection GetTaskList(ctx).Execute() -### Required Parameters +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.GetTaskList(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetTaskList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTaskList`: Collection + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetTaskList`: %v\n", resp) +} +``` + +### Path Parameters This endpoint does not need any parameter. +### Other Parameters + +Other parameters are passed through a pointer to a apiGetTaskListRequest struct via the builder pattern + + ### Return type [**Collection**](Collection.md) @@ -417,18 +829,56 @@ No authorization required ## GetVolumes -> Collection GetVolumes(ctx, computerSystemId, storageControllerId) +> Collection GetVolumes(ctx, computerSystemId, storageControllerId).Execute() -### Required Parameters +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + computerSystemId := "computerSystemId_example" // string | System ID + storageControllerId := "storageControllerId_example" // string | Storage Controller ID + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.GetVolumes(context.Background(), computerSystemId, storageControllerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetVolumes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetVolumes`: Collection + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetVolumes`: %v\n", resp) +} +``` + +### Path Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**computerSystemId** | **string**| System ID | -**storageControllerId** | **string**| Storage Controller ID | +**computerSystemId** | **string** | System ID | +**storageControllerId** | **string** | Storage Controller ID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetVolumesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + ### Return type @@ -450,19 +900,58 @@ No authorization required ## InsertVirtualMedia -> RedfishError InsertVirtualMedia(ctx, managerId, virtualMediaId, insertMediaRequestBody) +> RedfishError InsertVirtualMedia(ctx, managerId, virtualMediaId).InsertMediaRequestBody(insertMediaRequestBody).Execute() -### Required Parameters +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + managerId := "managerId_example" // string | ID of resource + virtualMediaId := "virtualMediaId_example" // string | ID of resource + insertMediaRequestBody := *openapiclient.NewInsertMediaRequestBody("Image_example") // InsertMediaRequestBody | + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.InsertVirtualMedia(context.Background(), managerId, virtualMediaId).InsertMediaRequestBody(insertMediaRequestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.InsertVirtualMedia``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InsertVirtualMedia`: RedfishError + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.InsertVirtualMedia`: %v\n", resp) +} +``` + +### Path Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**managerId** | **string**| ID of resource | -**virtualMediaId** | **string**| ID of resource | -**insertMediaRequestBody** | [**InsertMediaRequestBody**](InsertMediaRequestBody.md)| | +**managerId** | **string** | ID of resource | +**virtualMediaId** | **string** | ID of resource | + +### Other Parameters + +Other parameters are passed through a pointer to a apiInsertVirtualMediaRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **insertMediaRequestBody** | [**InsertMediaRequestBody**](InsertMediaRequestBody.md) | | ### Return type @@ -484,17 +973,53 @@ No authorization required ## ListManagerVirtualMedia -> Collection ListManagerVirtualMedia(ctx, managerId) +> Collection ListManagerVirtualMedia(ctx, managerId).Execute() -### Required Parameters +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + managerId := "managerId_example" // string | ID of resource + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ListManagerVirtualMedia(context.Background(), managerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ListManagerVirtualMedia``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListManagerVirtualMedia`: Collection + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ListManagerVirtualMedia`: %v\n", resp) +} +``` + +### Path Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**managerId** | **string**| ID of resource | +**managerId** | **string** | ID of resource | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListManagerVirtualMediaRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + ### Return type @@ -516,14 +1041,45 @@ No authorization required ## ListManagers -> Collection ListManagers(ctx, ) +> Collection ListManagers(ctx).Execute() -### Required Parameters +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ListManagers(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ListManagers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListManagers`: Collection + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ListManagers`: %v\n", resp) +} +``` + +### Path Parameters This endpoint does not need any parameter. +### Other Parameters + +Other parameters are passed through a pointer to a apiListManagersRequest struct via the builder pattern + + ### Return type [**Collection**](Collection.md) @@ -544,14 +1100,45 @@ No authorization required ## ListSystems -> Collection ListSystems(ctx, ) +> Collection ListSystems(ctx).Execute() -### Required Parameters +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ListSystems(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ListSystems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListSystems`: Collection + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ListSystems`: %v\n", resp) +} +``` + +### Path Parameters This endpoint does not need any parameter. +### Other Parameters + +Other parameters are passed through a pointer to a apiListSystemsRequest struct via the builder pattern + + ### Return type [**Collection**](Collection.md) @@ -572,18 +1159,55 @@ No authorization required ## ResetSystem -> RedfishError ResetSystem(ctx, computerSystemId, resetRequestBody) +> RedfishError ResetSystem(ctx, computerSystemId).ResetRequestBody(resetRequestBody).Execute() -### Required Parameters +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + computerSystemId := "computerSystemId_example" // string | + resetRequestBody := *openapiclient.NewResetRequestBody() // ResetRequestBody | + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ResetSystem(context.Background(), computerSystemId).ResetRequestBody(resetRequestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ResetSystem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ResetSystem`: RedfishError + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ResetSystem`: %v\n", resp) +} +``` + +### Path Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**computerSystemId** | **string**| | -**resetRequestBody** | [**ResetRequestBody**](ResetRequestBody.md)| | +**computerSystemId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiResetSystemRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **resetRequestBody** | [**ResetRequestBody**](ResetRequestBody.md) | | ### Return type @@ -605,18 +1229,55 @@ No authorization required ## SetSystem -> ComputerSystem SetSystem(ctx, systemId, computerSystem) +> ComputerSystem SetSystem(ctx, systemId).ComputerSystem(computerSystem).Execute() -### Required Parameters +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + systemId := "systemId_example" // string | ID of resource + computerSystem := *openapiclient.NewComputerSystem() // ComputerSystem | + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.SetSystem(context.Background(), systemId).ComputerSystem(computerSystem).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.SetSystem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetSystem`: ComputerSystem + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.SetSystem`: %v\n", resp) +} +``` + +### Path Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**systemId** | **string**| ID of resource | -**computerSystem** | [**ComputerSystem**](ComputerSystem.md)| | +**systemId** | **string** | ID of resource | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSetSystemRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **computerSystem** | [**ComputerSystem**](ComputerSystem.md) | | ### Return type @@ -638,14 +1299,45 @@ No authorization required ## UpdateService -> UpdateService UpdateService(ctx, ) +> UpdateService UpdateService(ctx).Execute() -### Required Parameters +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.UpdateService(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.UpdateService``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateService`: UpdateService + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.UpdateService`: %v\n", resp) +} +``` + +### Path Parameters This endpoint does not need any parameter. +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateServiceRequest struct via the builder pattern + + ### Return type [**UpdateService**](UpdateService.md) @@ -666,17 +1358,49 @@ No authorization required ## UpdateServiceSimpleUpdate -> RedfishError UpdateServiceSimpleUpdate(ctx, simpleUpdateRequestBody) +> RedfishError UpdateServiceSimpleUpdate(ctx).SimpleUpdateRequestBody(simpleUpdateRequestBody).Execute() -### Required Parameters +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + simpleUpdateRequestBody := *openapiclient.NewSimpleUpdateRequestBody("ImageURI_example") // SimpleUpdateRequestBody | + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.UpdateServiceSimpleUpdate(context.Background()).SimpleUpdateRequestBody(simpleUpdateRequestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.UpdateServiceSimpleUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateServiceSimpleUpdate`: RedfishError + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.UpdateServiceSimpleUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateServiceSimpleUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**simpleUpdateRequestBody** | [**SimpleUpdateRequestBody**](SimpleUpdateRequestBody.md)| | + **simpleUpdateRequestBody** | [**SimpleUpdateRequestBody**](SimpleUpdateRequestBody.md) | | ### Return type diff --git a/client/docs/FirmwareInventory.md b/client/docs/FirmwareInventory.md index 31e2183..40edaaa 100644 --- a/client/docs/FirmwareInventory.md +++ b/client/docs/FirmwareInventory.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 + +### 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) diff --git a/client/docs/Health.md b/client/docs/Health.md index 265c7f5..92bad98 100644 --- a/client/docs/Health.md +++ b/client/docs/Health.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) diff --git a/client/docs/IdRef.md b/client/docs/IdRef.md index d5f6949..0c86e19 100644 --- a/client/docs/IdRef.md +++ b/client/docs/IdRef.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) diff --git a/client/docs/IndicatorLed.md b/client/docs/IndicatorLED.md similarity index 53% rename from client/docs/IndicatorLed.md rename to client/docs/IndicatorLED.md index ccbcb55..58c6691 100644 --- a/client/docs/IndicatorLed.md +++ b/client/docs/IndicatorLED.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) diff --git a/client/docs/InlineObject.md b/client/docs/InlineObject.md index 7c48feb..d1716e2 100644 --- a/client/docs/InlineObject.md +++ b/client/docs/InlineObject.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) diff --git a/client/docs/InsertMediaRequestBody.md b/client/docs/InsertMediaRequestBody.md index ca02bb4..6847600 100644 --- a/client/docs/InsertMediaRequestBody.md +++ b/client/docs/InsertMediaRequestBody.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) diff --git a/client/docs/Manager.md b/client/docs/Manager.md index 6f9f47a..f0f1772 100644 --- a/client/docs/Manager.md +++ b/client/docs/Manager.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) diff --git a/client/docs/ManagerLinks.md b/client/docs/ManagerLinks.md index d6a18ba..30a40a6 100644 --- a/client/docs/ManagerLinks.md +++ b/client/docs/ManagerLinks.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) diff --git a/client/docs/ManagerType.md b/client/docs/ManagerType.md index 2d1d375..2a34c95 100644 --- a/client/docs/ManagerType.md +++ b/client/docs/ManagerType.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) diff --git a/client/docs/MemorySummary.md b/client/docs/MemorySummary.md index d361f40..b46ab4e 100644 --- a/client/docs/MemorySummary.md +++ b/client/docs/MemorySummary.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) diff --git a/client/docs/Message.md b/client/docs/Message.md index 7c12b75..249328a 100644 --- a/client/docs/Message.md +++ b/client/docs/Message.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) diff --git a/client/docs/Payload.md b/client/docs/Payload.md index 6319f61..12311ac 100644 --- a/client/docs/Payload.md +++ b/client/docs/Payload.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) diff --git a/client/docs/PowerState.md b/client/docs/PowerState.md index 512c3f0..b1f6dd7 100644 --- a/client/docs/PowerState.md +++ b/client/docs/PowerState.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) diff --git a/client/docs/ProcessorSummary.md b/client/docs/ProcessorSummary.md index 32ad43b..62e31ee 100644 --- a/client/docs/ProcessorSummary.md +++ b/client/docs/ProcessorSummary.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) diff --git a/client/docs/RedfishError.md b/client/docs/RedfishError.md index 677cb1d..0d0bf3e 100644 --- a/client/docs/RedfishError.md +++ b/client/docs/RedfishError.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) diff --git a/client/docs/RedfishErrorError.md b/client/docs/RedfishErrorError.md index 7f21a01..7210d50 100644 --- a/client/docs/RedfishErrorError.md +++ b/client/docs/RedfishErrorError.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) diff --git a/client/docs/ResetRequestBody.md b/client/docs/ResetRequestBody.md index b274fce..1ceb4d1 100644 --- a/client/docs/ResetRequestBody.md +++ b/client/docs/ResetRequestBody.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) diff --git a/client/docs/ResetType.md b/client/docs/ResetType.md index 8236f86..2b5c038 100644 --- a/client/docs/ResetType.md +++ b/client/docs/ResetType.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) diff --git a/client/docs/Root.md b/client/docs/Root.md index 2a6ca38..55fa6af 100644 --- a/client/docs/Root.md +++ b/client/docs/Root.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) diff --git a/client/docs/SimpleUpdateRequestBody.md b/client/docs/SimpleUpdateRequestBody.md index 4a72892..f4ee9c2 100644 --- a/client/docs/SimpleUpdateRequestBody.md +++ b/client/docs/SimpleUpdateRequestBody.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) diff --git a/client/docs/SoftwareInventory.md b/client/docs/SoftwareInventory.md index 1c9d477..bdd936d 100644 --- a/client/docs/SoftwareInventory.md +++ b/client/docs/SoftwareInventory.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) diff --git a/client/docs/State.md b/client/docs/State.md index fbb82fc..76f7d8c 100644 --- a/client/docs/State.md +++ b/client/docs/State.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) diff --git a/client/docs/Status.md b/client/docs/Status.md index 6a79d5f..9c4bd63 100644 --- a/client/docs/Status.md +++ b/client/docs/Status.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) diff --git a/client/docs/SystemLinks.md b/client/docs/SystemLinks.md index 6b1d61d..d0cc4e5 100644 --- a/client/docs/SystemLinks.md +++ b/client/docs/SystemLinks.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) diff --git a/client/docs/Task.md b/client/docs/Task.md index cd1c90a..a3ebbfc 100644 --- a/client/docs/Task.md +++ b/client/docs/Task.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) diff --git a/client/docs/TaskState.md b/client/docs/TaskState.md index ade7224..821755b 100644 --- a/client/docs/TaskState.md +++ b/client/docs/TaskState.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) diff --git a/client/docs/TransferMethod.md b/client/docs/TransferMethod.md index 6d521fd..b0cf706 100644 --- a/client/docs/TransferMethod.md +++ b/client/docs/TransferMethod.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) diff --git a/client/docs/TransferProtocolType.md b/client/docs/TransferProtocolType.md index 86088d0..0e9460f 100644 --- a/client/docs/TransferProtocolType.md +++ b/client/docs/TransferProtocolType.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) diff --git a/client/docs/UpdateService.md b/client/docs/UpdateService.md index c751d49..dc9affc 100644 --- a/client/docs/UpdateService.md +++ b/client/docs/UpdateService.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) diff --git a/client/docs/UpdateServiceActions.md b/client/docs/UpdateServiceActions.md index 43c2c79..b713cf9 100644 --- a/client/docs/UpdateServiceActions.md +++ b/client/docs/UpdateServiceActions.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) diff --git a/client/docs/VirtualMedia.md b/client/docs/VirtualMedia.md index 580b331..55872d8 100644 --- a/client/docs/VirtualMedia.md +++ b/client/docs/VirtualMedia.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) diff --git a/client/docs/VirtualMediaActions.md b/client/docs/VirtualMediaActions.md index 8229eeb..f563365 100644 --- a/client/docs/VirtualMediaActions.md +++ b/client/docs/VirtualMediaActions.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) diff --git a/client/docs/VirtualMediaActionsVirtualMediaEjectMedia.md b/client/docs/VirtualMediaActionsVirtualMediaEjectMedia.md index cb81a51..ec733a8 100644 --- a/client/docs/VirtualMediaActionsVirtualMediaEjectMedia.md +++ b/client/docs/VirtualMediaActionsVirtualMediaEjectMedia.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) diff --git a/client/docs/VolumeType.md b/client/docs/VolumeType.md index 441e41e..302c5de 100644 --- a/client/docs/VolumeType.md +++ b/client/docs/VolumeType.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) diff --git a/client/go.mod b/client/go.mod index 7462b26..b4a2489 100644 --- a/client/go.mod +++ b/client/go.mod @@ -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 +) diff --git a/client/go.sum b/client/go.sum index ce55b3c..734252e 100644 --- a/client/go.sum +++ b/client/go.sum @@ -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= diff --git a/client/model_boot.go b/client/model_boot.go index 7db170c..7773a56 100644 --- a/client/model_boot.go +++ b/client/model_boot.go @@ -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) +} + + diff --git a/client/model_boot_source.go b/client/model_boot_source.go index 90734bb..cab60f8 100644 --- a/client/model_boot_source.go +++ b/client/model_boot_source.go @@ -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) +} + diff --git a/client/model_boot_source_override_enabled.go b/client/model_boot_source_override_enabled.go index 043d94f..78d7d77 100644 --- a/client/model_boot_source_override_enabled.go +++ b/client/model_boot_source_override_enabled.go @@ -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) +} + diff --git a/client/model_collection.go b/client/model_collection.go index e8b2a4b..313da60 100644 --- a/client/model_collection.go +++ b/client/model_collection.go @@ -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) +} + + diff --git a/client/model_computer_system.go b/client/model_computer_system.go index 2430ddb..0a61536 100644 --- a/client/model_computer_system.go +++ b/client/model_computer_system.go @@ -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) +} + + diff --git a/client/model_computer_system_actions.go b/client/model_computer_system_actions.go index c31a7c6..def7064 100644 --- a/client/model_computer_system_actions.go +++ b/client/model_computer_system_actions.go @@ -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) +} + + diff --git a/client/model_computer_system_reset.go b/client/model_computer_system_reset.go index 42e2d2d..c326401 100644 --- a/client/model_computer_system_reset.go +++ b/client/model_computer_system_reset.go @@ -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) +} + + diff --git a/client/model_connected_via.go b/client/model_connected_via.go index afa89c6..4160b0c 100644 --- a/client/model_connected_via.go +++ b/client/model_connected_via.go @@ -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) +} + diff --git a/client/model_create_virtual_disk_request_body.go b/client/model_create_virtual_disk_request_body.go index 414869a..41e015b 100644 --- a/client/model_create_virtual_disk_request_body.go +++ b/client/model_create_virtual_disk_request_body.go @@ -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) +} + + diff --git a/client/model_firmware_inventory.go b/client/model_firmware_inventory.go index 959e273..8248964 100644 --- a/client/model_firmware_inventory.go +++ b/client/model_firmware_inventory.go @@ -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) +} + + diff --git a/client/model_health.go b/client/model_health.go index c8bc768..2a91f90 100644 --- a/client/model_health.go +++ b/client/model_health.go @@ -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) +} + diff --git a/client/model_id_ref.go b/client/model_id_ref.go index f0dc9e7..c539d0a 100644 --- a/client/model_id_ref.go +++ b/client/model_id_ref.go @@ -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) +} + + diff --git a/client/model_indicator_led.go b/client/model_indicator_led.go index 74522d5..a4de841 100644 --- a/client/model_indicator_led.go +++ b/client/model_indicator_led.go @@ -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) +} + diff --git a/client/model_inline_object.go b/client/model_inline_object.go index 1927ae1..e072dbc 100644 --- a/client/model_inline_object.go +++ b/client/model_inline_object.go @@ -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) +} + + diff --git a/client/model_insert_media_request_body.go b/client/model_insert_media_request_body.go index ae7ed86..b7020a5 100644 --- a/client/model_insert_media_request_body.go +++ b/client/model_insert_media_request_body.go @@ -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) +} + + diff --git a/client/model_manager.go b/client/model_manager.go index 7deaa5f..40b6bbb 100644 --- a/client/model_manager.go +++ b/client/model_manager.go @@ -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) +} + + diff --git a/client/model_manager_links.go b/client/model_manager_links.go index 9121962..4e4ffd3 100644 --- a/client/model_manager_links.go +++ b/client/model_manager_links.go @@ -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) +} + + diff --git a/client/model_manager_type.go b/client/model_manager_type.go index a44f446..ab87a21 100644 --- a/client/model_manager_type.go +++ b/client/model_manager_type.go @@ -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) +} + diff --git a/client/model_memory_summary.go b/client/model_memory_summary.go index ca29822..22d9d02 100644 --- a/client/model_memory_summary.go +++ b/client/model_memory_summary.go @@ -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) +} + + diff --git a/client/model_message.go b/client/model_message.go index d6e5df5..f1f842d 100644 --- a/client/model_message.go +++ b/client/model_message.go @@ -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) +} + + diff --git a/client/model_payload.go b/client/model_payload.go index 418b664..c456d29 100644 --- a/client/model_payload.go +++ b/client/model_payload.go @@ -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) +} + + diff --git a/client/model_power_state.go b/client/model_power_state.go index 8120f77..f5eae8a 100644 --- a/client/model_power_state.go +++ b/client/model_power_state.go @@ -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) +} + diff --git a/client/model_processor_summary.go b/client/model_processor_summary.go index 68617d7..17dfc65 100644 --- a/client/model_processor_summary.go +++ b/client/model_processor_summary.go @@ -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) +} + + diff --git a/client/model_redfish_error.go b/client/model_redfish_error.go index b13660b..ecda691 100644 --- a/client/model_redfish_error.go +++ b/client/model_redfish_error.go @@ -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) +} + + diff --git a/client/model_redfish_error_error.go b/client/model_redfish_error_error.go index cb451b9..ef298a3 100644 --- a/client/model_redfish_error_error.go +++ b/client/model_redfish_error_error.go @@ -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) +} + + diff --git a/client/model_reset_request_body.go b/client/model_reset_request_body.go index 9d8a377..b04a821 100644 --- a/client/model_reset_request_body.go +++ b/client/model_reset_request_body.go @@ -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) +} + + diff --git a/client/model_reset_type.go b/client/model_reset_type.go index b571bc0..23164e5 100644 --- a/client/model_reset_type.go +++ b/client/model_reset_type.go @@ -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) +} + diff --git a/client/model_root.go b/client/model_root.go index 78eea0e..118ea08 100644 --- a/client/model_root.go +++ b/client/model_root.go @@ -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) +} + + diff --git a/client/model_simple_update_request_body.go b/client/model_simple_update_request_body.go index 4077c80..80cd343 100644 --- a/client/model_simple_update_request_body.go +++ b/client/model_simple_update_request_body.go @@ -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) +} + + diff --git a/client/model_software_inventory.go b/client/model_software_inventory.go index 4e0b643..a1162fe 100644 --- a/client/model_software_inventory.go +++ b/client/model_software_inventory.go @@ -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) +} + + diff --git a/client/model_state.go b/client/model_state.go index 3bc1c8a..6f067b0 100644 --- a/client/model_state.go +++ b/client/model_state.go @@ -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) +} + diff --git a/client/model_status.go b/client/model_status.go index deec424..a73f0ad 100644 --- a/client/model_status.go +++ b/client/model_status.go @@ -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) +} + + diff --git a/client/model_system_links.go b/client/model_system_links.go index c5ef998..f1d0445 100644 --- a/client/model_system_links.go +++ b/client/model_system_links.go @@ -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) +} + + diff --git a/client/model_task.go b/client/model_task.go index e401e41..a43e00d 100644 --- a/client/model_task.go +++ b/client/model_task.go @@ -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) +} + + diff --git a/client/model_task_state.go b/client/model_task_state.go index 79bc93d..d29aa2d 100644 --- a/client/model_task_state.go +++ b/client/model_task_state.go @@ -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) +} + diff --git a/client/model_transfer_method.go b/client/model_transfer_method.go index 2431e2c..f29fe77 100644 --- a/client/model_transfer_method.go +++ b/client/model_transfer_method.go @@ -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) +} + diff --git a/client/model_transfer_protocol_type.go b/client/model_transfer_protocol_type.go index 00d9ec4..67acb2b 100644 --- a/client/model_transfer_protocol_type.go +++ b/client/model_transfer_protocol_type.go @@ -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) +} + diff --git a/client/model_update_service.go b/client/model_update_service.go index c079720..9446b8c 100644 --- a/client/model_update_service.go +++ b/client/model_update_service.go @@ -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) +} + + diff --git a/client/model_update_service_actions.go b/client/model_update_service_actions.go index a8b2d11..8b417be 100644 --- a/client/model_update_service_actions.go +++ b/client/model_update_service_actions.go @@ -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) +} + + diff --git a/client/model_virtual_media.go b/client/model_virtual_media.go index 06ebdf1..cea97c1 100644 --- a/client/model_virtual_media.go +++ b/client/model_virtual_media.go @@ -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) +} + + diff --git a/client/model_virtual_media_actions.go b/client/model_virtual_media_actions.go index 4fa7ab7..7cef5bc 100644 --- a/client/model_virtual_media_actions.go +++ b/client/model_virtual_media_actions.go @@ -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) +} + + diff --git a/client/model_virtual_media_actions__virtual_media_eject_media.go b/client/model_virtual_media_actions__virtual_media_eject_media.go index 69c1f0b..58c8f34 100644 --- a/client/model_virtual_media_actions__virtual_media_eject_media.go +++ b/client/model_virtual_media_actions__virtual_media_eject_media.go @@ -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) +} + + diff --git a/client/model_volume_type.go b/client/model_volume_type.go index 3992d0d..606e2ab 100644 --- a/client/model_volume_type.go +++ b/client/model_volume_type.go @@ -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) +} + diff --git a/client/response.go b/client/response.go index 2e3c64d..c0d93a1 100644 --- a/client/response.go +++ b/client/response.go @@ -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 ( diff --git a/client/utils.go b/client/utils.go new file mode 100644 index 0000000..82050cd --- /dev/null +++ b/client/utils.go @@ -0,0 +1,328 @@ +/* + * Redfish OAPI specification + * + * Partial Redfish OAPI specification for a limited client + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..eda7b7a --- /dev/null +++ b/go.mod @@ -0,0 +1,9 @@ +module opendev.org/airship/redfish + +go 1.16 + +require ( + github.com/stretchr/testify v1.7.0 + github.com/vektra/mockery/v2 v2.7.4 // indirect + opendev.org/airship/go-redfish/client v0.0.0-20200625173456-c8df18b52664 +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..e1c3c30 --- /dev/null +++ b/go.sum @@ -0,0 +1,557 @@ +cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= +cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= +cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= +cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= +cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= +cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= +cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= +cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= +cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= +cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= +cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= +cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= +cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= +cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= +cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= +cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= +cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= +cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= +cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= +cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= +cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= +cloud.google.com/go/firestore v1.1.0/go.mod h1:ulACoGHTpvq5r8rxGJ4ddJZBZqakUQqClKRT5SZwBmk= +cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= +cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= +cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= +cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= +cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= +cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= +cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= +cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= +cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= +dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= +github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= +github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= +github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= +github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= +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/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= +github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= +github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= +github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= +github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= +github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= +github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= +github.com/bketelsen/crypt v0.0.3-0.20200106085610-5cbc8cc4026c/go.mod h1:MKsuJmJgSg28kpZDP6UIiPt0e0Oz0kqKNGyRaWEPv84= +github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= +github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= +github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= +github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= +github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= +github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= +github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= +github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= +github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= +github.com/coreos/etcd v3.3.13+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= +github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= +github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= +github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= +github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= +github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= +github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= +github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no= +github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= +github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= +github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= +github.com/fsnotify/fsnotify v1.4.7 h1:IXs+QLmnXW2CcXuY+8Mzv/fWEsPGWxqefPtCP5CnV9I= +github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= +github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= +github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= +github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= +github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= +github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= +github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= +github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= +github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= +github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= +github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= +github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= +github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= +github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= +github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= +github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= +github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= +github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= +github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= +github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= +github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= +github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= +github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= +github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= +github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= +github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= +github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= +github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= +github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q= +github.com/hashicorp/consul/sdk v0.1.1/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= +github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= +github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= +github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= +github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= +github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= +github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= +github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= +github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= +github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= +github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= +github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= +github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= +github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ= +github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I= +github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= +github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM= +github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= +github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= +github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= +github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= +github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= +github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= +github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= +github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= +github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= +github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= +github.com/magiconair/properties v1.8.1 h1:ZC2Vc7/ZFkGmsVC9KvOjumD+G5lXy2RtTKyzRKO2BQ4= +github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= +github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= +github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= +github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= +github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= +github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= +github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= +github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= +github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= +github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= +github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg= +github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= +github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= +github.com/mitchellh/mapstructure v1.1.2 h1:fmNYVwqnSfB9mZU6OS2O6GsXM+wcskZDuKQzvN1EDeE= +github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= +github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= +github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= +github.com/pelletier/go-toml v1.2.0 h1:T5zMGML61Wp+FlcbWjRDT7yAxhJNAiPPLOFECq181zc= +github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= +github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I= +github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= +github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= +github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso= +github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= +github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/common v0.0.0-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= +github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= +github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= +github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= +github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= +github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= +github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= +github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ= +github.com/rs/zerolog v1.18.0 h1:CbAm3kP2Tptby1i9sYy2MGRg0uxIN9cyDb59Ys7W8z8= +github.com/rs/zerolog v1.18.0/go.mod h1:9nvC1axdVrAHcu/s9taAVfBuIdTZLVQmKQyvrUjF5+I= +github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= +github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= +github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= +github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= +github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= +github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= +github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= +github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= +github.com/spf13/afero v1.1.2 h1:m8/z1t7/fwjysjQRYbP0RD+bUIF/8tJwPdEZsI83ACI= +github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= +github.com/spf13/cast v1.3.0 h1:oget//CVOEoFewqQxwr0Ej5yjygnqGkvggSE/gB35Q8= +github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= +github.com/spf13/cobra v1.0.0 h1:6m/oheQuQ13N9ks4hubMG6BnvwOeaJrqSPLahSnczz8= +github.com/spf13/cobra v1.0.0/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE= +github.com/spf13/jwalterweatherman v1.0.0 h1:XHEdyB+EcvlqZamSM4ZOMGlc93t6AcsBEu9Gc1vn7yk= +github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= +github.com/spf13/pflag v1.0.3 h1:zPAT6CGy6wXeQ7NtTnaTerfKOsV6V6F8agHXFiazDkg= +github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= +github.com/spf13/viper v1.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE= +github.com/spf13/viper v1.7.0 h1:xVKxvI7ouOI5I+U9s2eeiUfMaWBVoXA3AWskkrqK0VM= +github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= +github.com/stretchr/objx v0.1.0 h1:4G4v2dO3VZwixGIRoQ5Lfboy6nUhCyYzaqnIAPPhYs4= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.1.1 h1:2vfRuCMp5sSVIDSqO8oNnWJq7mPa6KVP3iPIwFBuy8A= +github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= +github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/subosito/gotenv v1.2.0 h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s= +github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= +github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= +github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc= +github.com/vektra/mockery/v2 v2.7.4 h1:GCtKjWqi6rC0hauletxdCYXR0XdAzsjVWlRdPBdpXbg= +github.com/vektra/mockery/v2 v2.7.4/go.mod h1:2gU4Cf/f8YyC8oEaSXfCnZBMxMjMl/Ko205rlP0fO90= +github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= +github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= +github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/zenazn/goji v0.9.0/go.mod h1:7S9M489iMyHBNxwZnk9/EHS098H4/F6TATF2mIxtB1Q= +go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= +go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= +go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= +go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= +go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= +go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= +golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI= +golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= +golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= +golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= +golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= +golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= +golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= +golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= +golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= +golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= +golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= +golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= +golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= +golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.3.0 h1:RM4zey1++hCTbCVQfnWeKs9/IEsaBLA8vTkd0WVtmH4= +golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190522155817-f3200d17e092/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= +golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200226121028-0de0cce0169b h1:0mm1VjtFUOIlE1SbDlwjYaDxZVDP2S5ou6y0gSgXHu8= +golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200822124328-c89045814202 h1:VvcQYSHwXgi7W+TpUR6A9g6Up98WAHf3f/ulnJ62IyA= +golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 h1:SVwTIAaPC2U/AvvLNZ2a7OVsmBpC8L5BlwK1whH3hm0= +golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99 h1:5vD4XjIc0X5+kHZjx4UecYdjA6mJo+XXNoaW0EjU5Os= +golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200803210538-64077c9b5642 h1:B6caxRw+hozq68X2MY7jEpZh/cr4/aHLv9xU8Kkadrw= +golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/text v0.3.3 h1:cokOdA+Jmi5PJGXLlLllQSgYigAEfHXJAERHVMaCc2k= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= +golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20190828213141-aed303cbaa74/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191112195655-aa38f8e97acc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200323144430-8dcfad9e016e/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= +golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= +golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200825202427-b303f430e36d h1:W07d4xkoAUSNOkOzdzXCdFGxT7o2rW4q8M34tB2i//k= +golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= +google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= +google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= +google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= +google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= +google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= +google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= +google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= +google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= +google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= +google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= +google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= +google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= +google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= +google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= +google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= +google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= +google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= +google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= +google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= +google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= +google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= +google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= +google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= +gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= +gopkg.in/ini.v1 v1.51.0 h1:AQvPpx3LzTDM0AjnIRlVFwFFGC+npRopjZxLJj6gdno= +gopkg.in/ini.v1 v1.51.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= +gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= +gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= +gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.4 h1:/eiJrUcujPVeJ3xlSWaiNi3uSVmDGBK1pDHUHAnao1I= +gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= +honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +opendev.org/airship/go-redfish/client v0.0.0-20200625173456-c8df18b52664 h1:3j0o7HHlXMSUDhqUD03f25Jdaur/4g/41eM1wYx/IQI= +opendev.org/airship/go-redfish/client v0.0.0-20200625173456-c8df18b52664/go.mod h1:s0hwuUpBsRXOrhN0NR+fNVivXGyWgHKpqtyq7qYjpew= +rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= +rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= +rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= diff --git a/spec/openapi.yaml b/spec/openapi.yaml index 84207a9..a6a0c73 100644 --- a/spec/openapi.yaml +++ b/spec/openapi.yaml @@ -548,6 +548,7 @@ components: enum: - Once - Continuous + - Disabled type: string State: enum: @@ -1102,10 +1103,6 @@ components: $ref: '#/components/schemas/SystemLinks' Actions: $ref: '#/components/schemas/ComputerSystem_Actions' - required: - - '@odata.id' - - '@odata.type' - - Name type: object Manager: additionalProperties: false