114 lines
2.6 KiB
Go
114 lines
2.6 KiB
Go
/*
|
|
* Subset of Influx API covered by Influx CLI
|
|
*
|
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
*
|
|
* API version: 2.0.0
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package api
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// DBRPGet struct for DBRPGet
|
|
type DBRPGet struct {
|
|
Content *DBRP `json:"content,omitempty" yaml:"content,omitempty"`
|
|
}
|
|
|
|
// NewDBRPGet instantiates a new DBRPGet 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 NewDBRPGet() *DBRPGet {
|
|
this := DBRPGet{}
|
|
return &this
|
|
}
|
|
|
|
// NewDBRPGetWithDefaults instantiates a new DBRPGet 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 NewDBRPGetWithDefaults() *DBRPGet {
|
|
this := DBRPGet{}
|
|
return &this
|
|
}
|
|
|
|
// GetContent returns the Content field value if set, zero value otherwise.
|
|
func (o *DBRPGet) GetContent() DBRP {
|
|
if o == nil || o.Content == nil {
|
|
var ret DBRP
|
|
return ret
|
|
}
|
|
return *o.Content
|
|
}
|
|
|
|
// GetContentOk returns a tuple with the Content field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *DBRPGet) GetContentOk() (*DBRP, bool) {
|
|
if o == nil || o.Content == nil {
|
|
return nil, false
|
|
}
|
|
return o.Content, true
|
|
}
|
|
|
|
// HasContent returns a boolean if a field has been set.
|
|
func (o *DBRPGet) HasContent() bool {
|
|
if o != nil && o.Content != nil {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetContent gets a reference to the given DBRP and assigns it to the Content field.
|
|
func (o *DBRPGet) SetContent(v DBRP) {
|
|
o.Content = &v
|
|
}
|
|
|
|
func (o DBRPGet) MarshalJSON() ([]byte, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if o.Content != nil {
|
|
toSerialize["content"] = o.Content
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
type NullableDBRPGet struct {
|
|
value *DBRPGet
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableDBRPGet) Get() *DBRPGet {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableDBRPGet) Set(val *DBRPGet) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableDBRPGet) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableDBRPGet) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableDBRPGet(val *DBRPGet) *NullableDBRPGet {
|
|
return &NullableDBRPGet{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableDBRPGet) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableDBRPGet) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|