go-redfish/client/model_computer_system_actions.go
James Gu c442eb5bcb Upgrade openapi generator to v5.1.0
Upgraded openapi generator version to 5.1.0 for the support of nullable
values for optional fields; Added missing "Disabled" enum value to the
BootSourceOverrideEnabled model in the openapi schema.

Signed-off-by: James Gu <james.gu@att.com>
Change-Id: Ia3e0b018be13079d2085ef61ed2e797bcfd25fd7
2021-05-05 10:18:32 -04:00

116 lines
3.3 KiB
Go

/*
* 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"
)
// ComputerSystemActions struct for ComputerSystemActions
type ComputerSystemActions struct {
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)
}