forked from ViRb3/wgcf
/
model_get_source_device_200_response_config.go
195 lines (162 loc) 路 5.68 KB
/
model_get_source_device_200_response_config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
/*
* untitled API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* API version: 536
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
import (
"encoding/json"
)
// GetSourceDevice200ResponseConfig struct for GetSourceDevice200ResponseConfig
type GetSourceDevice200ResponseConfig struct {
ClientId string `json:"client_id"`
Interface GetSourceDevice200ResponseConfigInterface `json:"interface"`
Peers []GetSourceDevice200ResponseConfigPeers `json:"peers"`
Services GetSourceDevice200ResponseConfigServices `json:"services"`
}
// NewGetSourceDevice200ResponseConfig instantiates a new GetSourceDevice200ResponseConfig 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 NewGetSourceDevice200ResponseConfig(clientId string, interface_ GetSourceDevice200ResponseConfigInterface, peers []GetSourceDevice200ResponseConfigPeers, services GetSourceDevice200ResponseConfigServices, ) *GetSourceDevice200ResponseConfig {
this := GetSourceDevice200ResponseConfig{}
this.ClientId = clientId
this.Interface = interface_
this.Peers = peers
this.Services = services
return &this
}
// NewGetSourceDevice200ResponseConfigWithDefaults instantiates a new GetSourceDevice200ResponseConfig 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 NewGetSourceDevice200ResponseConfigWithDefaults() *GetSourceDevice200ResponseConfig {
this := GetSourceDevice200ResponseConfig{}
return &this
}
// GetClientId returns the ClientId field value
func (o *GetSourceDevice200ResponseConfig) GetClientId() string {
if o == nil {
var ret string
return ret
}
return o.ClientId
}
// GetClientIdOk returns a tuple with the ClientId field value
// and a boolean to check if the value has been set.
func (o *GetSourceDevice200ResponseConfig) GetClientIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.ClientId, true
}
// SetClientId sets field value
func (o *GetSourceDevice200ResponseConfig) SetClientId(v string) {
o.ClientId = v
}
// GetInterface returns the Interface field value
func (o *GetSourceDevice200ResponseConfig) GetInterface() GetSourceDevice200ResponseConfigInterface {
if o == nil {
var ret GetSourceDevice200ResponseConfigInterface
return ret
}
return o.Interface
}
// GetInterfaceOk returns a tuple with the Interface field value
// and a boolean to check if the value has been set.
func (o *GetSourceDevice200ResponseConfig) GetInterfaceOk() (*GetSourceDevice200ResponseConfigInterface, bool) {
if o == nil {
return nil, false
}
return &o.Interface, true
}
// SetInterface sets field value
func (o *GetSourceDevice200ResponseConfig) SetInterface(v GetSourceDevice200ResponseConfigInterface) {
o.Interface = v
}
// GetPeers returns the Peers field value
func (o *GetSourceDevice200ResponseConfig) GetPeers() []GetSourceDevice200ResponseConfigPeers {
if o == nil {
var ret []GetSourceDevice200ResponseConfigPeers
return ret
}
return o.Peers
}
// GetPeersOk returns a tuple with the Peers field value
// and a boolean to check if the value has been set.
func (o *GetSourceDevice200ResponseConfig) GetPeersOk() (*[]GetSourceDevice200ResponseConfigPeers, bool) {
if o == nil {
return nil, false
}
return &o.Peers, true
}
// SetPeers sets field value
func (o *GetSourceDevice200ResponseConfig) SetPeers(v []GetSourceDevice200ResponseConfigPeers) {
o.Peers = v
}
// GetServices returns the Services field value
func (o *GetSourceDevice200ResponseConfig) GetServices() GetSourceDevice200ResponseConfigServices {
if o == nil {
var ret GetSourceDevice200ResponseConfigServices
return ret
}
return o.Services
}
// GetServicesOk returns a tuple with the Services field value
// and a boolean to check if the value has been set.
func (o *GetSourceDevice200ResponseConfig) GetServicesOk() (*GetSourceDevice200ResponseConfigServices, bool) {
if o == nil {
return nil, false
}
return &o.Services, true
}
// SetServices sets field value
func (o *GetSourceDevice200ResponseConfig) SetServices(v GetSourceDevice200ResponseConfigServices) {
o.Services = v
}
func (o GetSourceDevice200ResponseConfig) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if true {
toSerialize["client_id"] = o.ClientId
}
if true {
toSerialize["interface"] = o.Interface
}
if true {
toSerialize["peers"] = o.Peers
}
if true {
toSerialize["services"] = o.Services
}
return json.Marshal(toSerialize)
}
type NullableGetSourceDevice200ResponseConfig struct {
value *GetSourceDevice200ResponseConfig
isSet bool
}
func (v NullableGetSourceDevice200ResponseConfig) Get() *GetSourceDevice200ResponseConfig {
return v.value
}
func (v *NullableGetSourceDevice200ResponseConfig) Set(val *GetSourceDevice200ResponseConfig) {
v.value = val
v.isSet = true
}
func (v NullableGetSourceDevice200ResponseConfig) IsSet() bool {
return v.isSet
}
func (v *NullableGetSourceDevice200ResponseConfig) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableGetSourceDevice200ResponseConfig(val *GetSourceDevice200ResponseConfig) *NullableGetSourceDevice200ResponseConfig {
return &NullableGetSourceDevice200ResponseConfig{value: val, isSet: true}
}
func (v NullableGetSourceDevice200ResponseConfig) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableGetSourceDevice200ResponseConfig) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}