Files
sdk/model_licensing_fingerprint_request.go

155 lines
4.7 KiB
Go

/*
Hanzo Cloud API
The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
API version: v1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package hanzoai
import (
"encoding/json"
)
// checks if the LicensingFingerprintRequest type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &LicensingFingerprintRequest{}
// LicensingFingerprintRequest struct for LicensingFingerprintRequest
type LicensingFingerprintRequest struct {
// Signals is the host material the client agent collected. Which fields actually participate in the binding is deliberately unspecified — send everything available and let the server decide.
Signals *LicensingDeviceSignals `json:"signals,omitempty"`
AdditionalProperties map[string]interface{}
}
type _LicensingFingerprintRequest LicensingFingerprintRequest
// NewLicensingFingerprintRequest instantiates a new LicensingFingerprintRequest 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 NewLicensingFingerprintRequest() *LicensingFingerprintRequest {
this := LicensingFingerprintRequest{}
return &this
}
// NewLicensingFingerprintRequestWithDefaults instantiates a new LicensingFingerprintRequest 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 NewLicensingFingerprintRequestWithDefaults() *LicensingFingerprintRequest {
this := LicensingFingerprintRequest{}
return &this
}
// GetSignals returns the Signals field value if set, zero value otherwise.
func (o *LicensingFingerprintRequest) GetSignals() LicensingDeviceSignals {
if o == nil || IsNil(o.Signals) {
var ret LicensingDeviceSignals
return ret
}
return *o.Signals
}
// GetSignalsOk returns a tuple with the Signals field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LicensingFingerprintRequest) GetSignalsOk() (*LicensingDeviceSignals, bool) {
if o == nil || IsNil(o.Signals) {
return nil, false
}
return o.Signals, true
}
// HasSignals returns a boolean if a field has been set.
func (o *LicensingFingerprintRequest) HasSignals() bool {
if o != nil && !IsNil(o.Signals) {
return true
}
return false
}
// SetSignals gets a reference to the given LicensingDeviceSignals and assigns it to the Signals field.
func (o *LicensingFingerprintRequest) SetSignals(v LicensingDeviceSignals) {
o.Signals = &v
}
func (o LicensingFingerprintRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o LicensingFingerprintRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Signals) {
toSerialize["signals"] = o.Signals
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return toSerialize, nil
}
func (o *LicensingFingerprintRequest) UnmarshalJSON(data []byte) (err error) {
varLicensingFingerprintRequest := _LicensingFingerprintRequest{}
err = json.Unmarshal(data, &varLicensingFingerprintRequest)
if err != nil {
return err
}
*o = LicensingFingerprintRequest(varLicensingFingerprintRequest)
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "signals")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullableLicensingFingerprintRequest struct {
value *LicensingFingerprintRequest
isSet bool
}
func (v NullableLicensingFingerprintRequest) Get() *LicensingFingerprintRequest {
return v.value
}
func (v *NullableLicensingFingerprintRequest) Set(val *LicensingFingerprintRequest) {
v.value = val
v.isSet = true
}
func (v NullableLicensingFingerprintRequest) IsSet() bool {
return v.isSet
}
func (v *NullableLicensingFingerprintRequest) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableLicensingFingerprintRequest(val *LicensingFingerprintRequest) *NullableLicensingFingerprintRequest {
return &NullableLicensingFingerprintRequest{value: val, isSet: true}
}
func (v NullableLicensingFingerprintRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableLicensingFingerprintRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}