470a7752c6
Change-Id: Iec4e59341fd8a976b6aeda30d0671839643b04bf
116 lines
3.1 KiB
Go
116 lines
3.1 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"
|
|
)
|
|
|
|
// IDRACResetRequestBody struct for IDRACResetRequestBody
|
|
type IDRACResetRequestBody struct {
|
|
ResetType *IDRACResetType `json:"ResetType,omitempty"`
|
|
}
|
|
|
|
// NewIDRACResetRequestBody instantiates a new IDRACResetRequestBody 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 NewIDRACResetRequestBody() *IDRACResetRequestBody {
|
|
this := IDRACResetRequestBody{}
|
|
return &this
|
|
}
|
|
|
|
// NewIDRACResetRequestBodyWithDefaults instantiates a new IDRACResetRequestBody 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 NewIDRACResetRequestBodyWithDefaults() *IDRACResetRequestBody {
|
|
this := IDRACResetRequestBody{}
|
|
return &this
|
|
}
|
|
|
|
// GetResetType returns the ResetType field value if set, zero value otherwise.
|
|
func (o *IDRACResetRequestBody) GetResetType() IDRACResetType {
|
|
if o == nil || o.ResetType == nil {
|
|
var ret IDRACResetType
|
|
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 *IDRACResetRequestBody) GetResetTypeOk() (*IDRACResetType, 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 *IDRACResetRequestBody) HasResetType() bool {
|
|
if o != nil && o.ResetType != nil {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetResetType gets a reference to the given IDRACResetType and assigns it to the ResetType field.
|
|
func (o *IDRACResetRequestBody) SetResetType(v IDRACResetType) {
|
|
o.ResetType = &v
|
|
}
|
|
|
|
func (o IDRACResetRequestBody) MarshalJSON() ([]byte, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if o.ResetType != nil {
|
|
toSerialize["ResetType"] = o.ResetType
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
type NullableIDRACResetRequestBody struct {
|
|
value *IDRACResetRequestBody
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableIDRACResetRequestBody) Get() *IDRACResetRequestBody {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableIDRACResetRequestBody) Set(val *IDRACResetRequestBody) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableIDRACResetRequestBody) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableIDRACResetRequestBody) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableIDRACResetRequestBody(val *IDRACResetRequestBody) *NullableIDRACResetRequestBody {
|
|
return &NullableIDRACResetRequestBody{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableIDRACResetRequestBody) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableIDRACResetRequestBody) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|
|
|
|
|