226 lines
5.8 KiB
Go
226 lines
5.8 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"
|
|
)
|
|
|
|
// TelegrafAllOfLinks struct for TelegrafAllOfLinks
|
|
type TelegrafAllOfLinks struct {
|
|
// URI of resource.
|
|
Self *string `json:"self,omitempty" yaml:"self,omitempty"`
|
|
// URI of resource.
|
|
Labels *string `json:"labels,omitempty" yaml:"labels,omitempty"`
|
|
// URI of resource.
|
|
Members *string `json:"members,omitempty" yaml:"members,omitempty"`
|
|
// URI of resource.
|
|
Owners *string `json:"owners,omitempty" yaml:"owners,omitempty"`
|
|
}
|
|
|
|
// NewTelegrafAllOfLinks instantiates a new TelegrafAllOfLinks 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 NewTelegrafAllOfLinks() *TelegrafAllOfLinks {
|
|
this := TelegrafAllOfLinks{}
|
|
return &this
|
|
}
|
|
|
|
// NewTelegrafAllOfLinksWithDefaults instantiates a new TelegrafAllOfLinks 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 NewTelegrafAllOfLinksWithDefaults() *TelegrafAllOfLinks {
|
|
this := TelegrafAllOfLinks{}
|
|
return &this
|
|
}
|
|
|
|
// GetSelf returns the Self field value if set, zero value otherwise.
|
|
func (o *TelegrafAllOfLinks) GetSelf() string {
|
|
if o == nil || o.Self == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Self
|
|
}
|
|
|
|
// GetSelfOk returns a tuple with the Self field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *TelegrafAllOfLinks) GetSelfOk() (*string, bool) {
|
|
if o == nil || o.Self == nil {
|
|
return nil, false
|
|
}
|
|
return o.Self, true
|
|
}
|
|
|
|
// HasSelf returns a boolean if a field has been set.
|
|
func (o *TelegrafAllOfLinks) HasSelf() bool {
|
|
if o != nil && o.Self != nil {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSelf gets a reference to the given string and assigns it to the Self field.
|
|
func (o *TelegrafAllOfLinks) SetSelf(v string) {
|
|
o.Self = &v
|
|
}
|
|
|
|
// GetLabels returns the Labels field value if set, zero value otherwise.
|
|
func (o *TelegrafAllOfLinks) GetLabels() string {
|
|
if o == nil || o.Labels == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Labels
|
|
}
|
|
|
|
// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *TelegrafAllOfLinks) GetLabelsOk() (*string, bool) {
|
|
if o == nil || o.Labels == nil {
|
|
return nil, false
|
|
}
|
|
return o.Labels, true
|
|
}
|
|
|
|
// HasLabels returns a boolean if a field has been set.
|
|
func (o *TelegrafAllOfLinks) HasLabels() bool {
|
|
if o != nil && o.Labels != nil {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetLabels gets a reference to the given string and assigns it to the Labels field.
|
|
func (o *TelegrafAllOfLinks) SetLabels(v string) {
|
|
o.Labels = &v
|
|
}
|
|
|
|
// GetMembers returns the Members field value if set, zero value otherwise.
|
|
func (o *TelegrafAllOfLinks) GetMembers() string {
|
|
if o == nil || o.Members == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Members
|
|
}
|
|
|
|
// GetMembersOk returns a tuple with the Members field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *TelegrafAllOfLinks) GetMembersOk() (*string, bool) {
|
|
if o == nil || o.Members == nil {
|
|
return nil, false
|
|
}
|
|
return o.Members, true
|
|
}
|
|
|
|
// HasMembers returns a boolean if a field has been set.
|
|
func (o *TelegrafAllOfLinks) HasMembers() bool {
|
|
if o != nil && o.Members != nil {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetMembers gets a reference to the given string and assigns it to the Members field.
|
|
func (o *TelegrafAllOfLinks) SetMembers(v string) {
|
|
o.Members = &v
|
|
}
|
|
|
|
// GetOwners returns the Owners field value if set, zero value otherwise.
|
|
func (o *TelegrafAllOfLinks) GetOwners() string {
|
|
if o == nil || o.Owners == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Owners
|
|
}
|
|
|
|
// GetOwnersOk returns a tuple with the Owners field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *TelegrafAllOfLinks) GetOwnersOk() (*string, bool) {
|
|
if o == nil || o.Owners == nil {
|
|
return nil, false
|
|
}
|
|
return o.Owners, true
|
|
}
|
|
|
|
// HasOwners returns a boolean if a field has been set.
|
|
func (o *TelegrafAllOfLinks) HasOwners() bool {
|
|
if o != nil && o.Owners != nil {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetOwners gets a reference to the given string and assigns it to the Owners field.
|
|
func (o *TelegrafAllOfLinks) SetOwners(v string) {
|
|
o.Owners = &v
|
|
}
|
|
|
|
func (o TelegrafAllOfLinks) MarshalJSON() ([]byte, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if o.Self != nil {
|
|
toSerialize["self"] = o.Self
|
|
}
|
|
if o.Labels != nil {
|
|
toSerialize["labels"] = o.Labels
|
|
}
|
|
if o.Members != nil {
|
|
toSerialize["members"] = o.Members
|
|
}
|
|
if o.Owners != nil {
|
|
toSerialize["owners"] = o.Owners
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
type NullableTelegrafAllOfLinks struct {
|
|
value *TelegrafAllOfLinks
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableTelegrafAllOfLinks) Get() *TelegrafAllOfLinks {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableTelegrafAllOfLinks) Set(val *TelegrafAllOfLinks) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableTelegrafAllOfLinks) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableTelegrafAllOfLinks) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableTelegrafAllOfLinks(val *TelegrafAllOfLinks) *NullableTelegrafAllOfLinks {
|
|
return &NullableTelegrafAllOfLinks{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableTelegrafAllOfLinks) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableTelegrafAllOfLinks) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|