-
Notifications
You must be signed in to change notification settings - Fork 1
/
model_provisioned_virtual_machine_search_request_model.go
287 lines (240 loc) · 11.5 KB
/
model_provisioned_virtual_machine_search_request_model.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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
/*
Citrix Virtual Apps and Desktops Rest API for Developer Portal
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
API version: devportal-onprem-ga
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package citrixorchestration
import (
"encoding/json"
)
// checks if the ProvisionedVirtualMachineSearchRequestModel type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ProvisionedVirtualMachineSearchRequestModel{}
// ProvisionedVirtualMachineSearchRequestModel Request model for defining provisioned virtual machine.
type ProvisionedVirtualMachineSearchRequestModel struct {
// Basic search string. Specify a string which will match if contained within some string property of the machine.
BasicSearchString NullableString `json:"BasicSearchString,omitempty"`
// List of advanced search filters.
SearchFilters []ProvisionedVirtualMachineSearchFilterRequestModel `json:"SearchFilters,omitempty"`
// List of advanced search filter groups.
SearchFilterGroups []ProvisionedVirtualMachineSearchFilterGroupRequestModel `json:"SearchFilterGroups,omitempty"`
SearchFilterGroupsType *ProvisionedVirtualMachineSearchFilterGroupsType `json:"SearchFilterGroupsType,omitempty"`
// Sort criteria for the results, multiple sorting criteria can be specified here.
SortCriteriaItems []ProvisionedVirtualMachineSortCriteriaRequestModel `json:"SortCriteriaItems,omitempty"`
}
// NewProvisionedVirtualMachineSearchRequestModel instantiates a new ProvisionedVirtualMachineSearchRequestModel 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 NewProvisionedVirtualMachineSearchRequestModel() *ProvisionedVirtualMachineSearchRequestModel {
this := ProvisionedVirtualMachineSearchRequestModel{}
return &this
}
// NewProvisionedVirtualMachineSearchRequestModelWithDefaults instantiates a new ProvisionedVirtualMachineSearchRequestModel 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 NewProvisionedVirtualMachineSearchRequestModelWithDefaults() *ProvisionedVirtualMachineSearchRequestModel {
this := ProvisionedVirtualMachineSearchRequestModel{}
return &this
}
// GetBasicSearchString returns the BasicSearchString field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ProvisionedVirtualMachineSearchRequestModel) GetBasicSearchString() string {
if o == nil || IsNil(o.BasicSearchString.Get()) {
var ret string
return ret
}
return *o.BasicSearchString.Get()
}
// GetBasicSearchStringOk returns a tuple with the BasicSearchString field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *ProvisionedVirtualMachineSearchRequestModel) GetBasicSearchStringOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.BasicSearchString.Get(), o.BasicSearchString.IsSet()
}
// HasBasicSearchString returns a boolean if a field has been set.
func (o *ProvisionedVirtualMachineSearchRequestModel) HasBasicSearchString() bool {
if o != nil && o.BasicSearchString.IsSet() {
return true
}
return false
}
// SetBasicSearchString gets a reference to the given NullableString and assigns it to the BasicSearchString field.
func (o *ProvisionedVirtualMachineSearchRequestModel) SetBasicSearchString(v string) {
o.BasicSearchString.Set(&v)
}
// SetBasicSearchStringNil sets the value for BasicSearchString to be an explicit nil
func (o *ProvisionedVirtualMachineSearchRequestModel) SetBasicSearchStringNil() {
o.BasicSearchString.Set(nil)
}
// UnsetBasicSearchString ensures that no value is present for BasicSearchString, not even an explicit nil
func (o *ProvisionedVirtualMachineSearchRequestModel) UnsetBasicSearchString() {
o.BasicSearchString.Unset()
}
// GetSearchFilters returns the SearchFilters field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ProvisionedVirtualMachineSearchRequestModel) GetSearchFilters() []ProvisionedVirtualMachineSearchFilterRequestModel {
if o == nil {
var ret []ProvisionedVirtualMachineSearchFilterRequestModel
return ret
}
return o.SearchFilters
}
// GetSearchFiltersOk returns a tuple with the SearchFilters field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *ProvisionedVirtualMachineSearchRequestModel) GetSearchFiltersOk() ([]ProvisionedVirtualMachineSearchFilterRequestModel, bool) {
if o == nil || IsNil(o.SearchFilters) {
return nil, false
}
return o.SearchFilters, true
}
// HasSearchFilters returns a boolean if a field has been set.
func (o *ProvisionedVirtualMachineSearchRequestModel) HasSearchFilters() bool {
if o != nil && IsNil(o.SearchFilters) {
return true
}
return false
}
// SetSearchFilters gets a reference to the given []ProvisionedVirtualMachineSearchFilterRequestModel and assigns it to the SearchFilters field.
func (o *ProvisionedVirtualMachineSearchRequestModel) SetSearchFilters(v []ProvisionedVirtualMachineSearchFilterRequestModel) {
o.SearchFilters = v
}
// GetSearchFilterGroups returns the SearchFilterGroups field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ProvisionedVirtualMachineSearchRequestModel) GetSearchFilterGroups() []ProvisionedVirtualMachineSearchFilterGroupRequestModel {
if o == nil {
var ret []ProvisionedVirtualMachineSearchFilterGroupRequestModel
return ret
}
return o.SearchFilterGroups
}
// GetSearchFilterGroupsOk returns a tuple with the SearchFilterGroups field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *ProvisionedVirtualMachineSearchRequestModel) GetSearchFilterGroupsOk() ([]ProvisionedVirtualMachineSearchFilterGroupRequestModel, bool) {
if o == nil || IsNil(o.SearchFilterGroups) {
return nil, false
}
return o.SearchFilterGroups, true
}
// HasSearchFilterGroups returns a boolean if a field has been set.
func (o *ProvisionedVirtualMachineSearchRequestModel) HasSearchFilterGroups() bool {
if o != nil && IsNil(o.SearchFilterGroups) {
return true
}
return false
}
// SetSearchFilterGroups gets a reference to the given []ProvisionedVirtualMachineSearchFilterGroupRequestModel and assigns it to the SearchFilterGroups field.
func (o *ProvisionedVirtualMachineSearchRequestModel) SetSearchFilterGroups(v []ProvisionedVirtualMachineSearchFilterGroupRequestModel) {
o.SearchFilterGroups = v
}
// GetSearchFilterGroupsType returns the SearchFilterGroupsType field value if set, zero value otherwise.
func (o *ProvisionedVirtualMachineSearchRequestModel) GetSearchFilterGroupsType() ProvisionedVirtualMachineSearchFilterGroupsType {
if o == nil || IsNil(o.SearchFilterGroupsType) {
var ret ProvisionedVirtualMachineSearchFilterGroupsType
return ret
}
return *o.SearchFilterGroupsType
}
// GetSearchFilterGroupsTypeOk returns a tuple with the SearchFilterGroupsType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProvisionedVirtualMachineSearchRequestModel) GetSearchFilterGroupsTypeOk() (*ProvisionedVirtualMachineSearchFilterGroupsType, bool) {
if o == nil || IsNil(o.SearchFilterGroupsType) {
return nil, false
}
return o.SearchFilterGroupsType, true
}
// HasSearchFilterGroupsType returns a boolean if a field has been set.
func (o *ProvisionedVirtualMachineSearchRequestModel) HasSearchFilterGroupsType() bool {
if o != nil && !IsNil(o.SearchFilterGroupsType) {
return true
}
return false
}
// SetSearchFilterGroupsType gets a reference to the given ProvisionedVirtualMachineSearchFilterGroupsType and assigns it to the SearchFilterGroupsType field.
func (o *ProvisionedVirtualMachineSearchRequestModel) SetSearchFilterGroupsType(v ProvisionedVirtualMachineSearchFilterGroupsType) {
o.SearchFilterGroupsType = &v
}
// GetSortCriteriaItems returns the SortCriteriaItems field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ProvisionedVirtualMachineSearchRequestModel) GetSortCriteriaItems() []ProvisionedVirtualMachineSortCriteriaRequestModel {
if o == nil {
var ret []ProvisionedVirtualMachineSortCriteriaRequestModel
return ret
}
return o.SortCriteriaItems
}
// GetSortCriteriaItemsOk returns a tuple with the SortCriteriaItems field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *ProvisionedVirtualMachineSearchRequestModel) GetSortCriteriaItemsOk() ([]ProvisionedVirtualMachineSortCriteriaRequestModel, bool) {
if o == nil || IsNil(o.SortCriteriaItems) {
return nil, false
}
return o.SortCriteriaItems, true
}
// HasSortCriteriaItems returns a boolean if a field has been set.
func (o *ProvisionedVirtualMachineSearchRequestModel) HasSortCriteriaItems() bool {
if o != nil && IsNil(o.SortCriteriaItems) {
return true
}
return false
}
// SetSortCriteriaItems gets a reference to the given []ProvisionedVirtualMachineSortCriteriaRequestModel and assigns it to the SortCriteriaItems field.
func (o *ProvisionedVirtualMachineSearchRequestModel) SetSortCriteriaItems(v []ProvisionedVirtualMachineSortCriteriaRequestModel) {
o.SortCriteriaItems = v
}
func (o ProvisionedVirtualMachineSearchRequestModel) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o ProvisionedVirtualMachineSearchRequestModel) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if o.BasicSearchString.IsSet() {
toSerialize["BasicSearchString"] = o.BasicSearchString.Get()
}
if o.SearchFilters != nil {
toSerialize["SearchFilters"] = o.SearchFilters
}
if o.SearchFilterGroups != nil {
toSerialize["SearchFilterGroups"] = o.SearchFilterGroups
}
if !IsNil(o.SearchFilterGroupsType) {
toSerialize["SearchFilterGroupsType"] = o.SearchFilterGroupsType
}
if o.SortCriteriaItems != nil {
toSerialize["SortCriteriaItems"] = o.SortCriteriaItems
}
return toSerialize, nil
}
type NullableProvisionedVirtualMachineSearchRequestModel struct {
value *ProvisionedVirtualMachineSearchRequestModel
isSet bool
}
func (v NullableProvisionedVirtualMachineSearchRequestModel) Get() *ProvisionedVirtualMachineSearchRequestModel {
return v.value
}
func (v *NullableProvisionedVirtualMachineSearchRequestModel) Set(val *ProvisionedVirtualMachineSearchRequestModel) {
v.value = val
v.isSet = true
}
func (v NullableProvisionedVirtualMachineSearchRequestModel) IsSet() bool {
return v.isSet
}
func (v *NullableProvisionedVirtualMachineSearchRequestModel) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableProvisionedVirtualMachineSearchRequestModel(val *ProvisionedVirtualMachineSearchRequestModel) *NullableProvisionedVirtualMachineSearchRequestModel {
return &NullableProvisionedVirtualMachineSearchRequestModel{value: val, isSet: true}
}
func (v NullableProvisionedVirtualMachineSearchRequestModel) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableProvisionedVirtualMachineSearchRequestModel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}