forked from Dynatrace/dynatrace-configuration-as-code-core
/
model_process_group.go
636 lines (542 loc) · 19 KB
/
model_process_group.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
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
/*
Dynatrace Environment API
Documentation of the Dynatrace Environment API v1. To read about use cases and examples, see [Dynatrace Documentation](https://dt-url.net/xc03k3c). Notes about compatibility: * Operations marked as early adopter or preview may be changed in non-compatible ways, although we try to avoid this. * We may add new enum constants without incrementing the API version; thus, clients need to handle unknown enum constants gracefully.
API version: 1.0.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package environment
import (
"encoding/json"
)
// checks if the ProcessGroup type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ProcessGroup{}
// ProcessGroup Parameters of a process group.
type ProcessGroup struct {
AzureHostName *string `json:"azureHostName,omitempty"`
AzureSiteName *string `json:"azureSiteName,omitempty"`
// The customized name of the entity
CustomizedName *string `json:"customizedName,omitempty"`
// The discovered name of the entity
DiscoveredName *string `json:"discoveredName,omitempty"`
// The name of the Dynatrace entity as displayed in the UI.
DisplayName *string `json:"displayName,omitempty"`
// The Dynatrace entity ID of the required entity.
EntityId *string `json:"entityId,omitempty"`
// The timestamp of when the entity was first detected, in UTC milliseconds
FirstSeenTimestamp *int64 `json:"firstSeenTimestamp,omitempty"`
FromRelationships *ProcessGroupFromRelationships `json:"fromRelationships,omitempty"`
// The timestamp of when the entity was last detected, in UTC milliseconds
LastSeenTimestamp *int64 `json:"lastSeenTimestamp,omitempty"`
ListenPorts []int32 `json:"listenPorts,omitempty"`
// The management zones that the entity is part of.
ManagementZones []EntityShortRepresentation `json:"managementZones,omitempty"`
Metadata *ProcessGroupMetadata `json:"metadata,omitempty"`
SoftwareTechnologies []TechnologyInfo `json:"softwareTechnologies,omitempty"`
// The list of entity tags.
Tags []TagInfo `json:"tags,omitempty"`
ToRelationships *ProcessGroupToRelationships `json:"toRelationships,omitempty"`
}
// NewProcessGroup instantiates a new ProcessGroup 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 NewProcessGroup() *ProcessGroup {
this := ProcessGroup{}
return &this
}
// NewProcessGroupWithDefaults instantiates a new ProcessGroup 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 NewProcessGroupWithDefaults() *ProcessGroup {
this := ProcessGroup{}
return &this
}
// GetAzureHostName returns the AzureHostName field value if set, zero value otherwise.
func (o *ProcessGroup) GetAzureHostName() string {
if o == nil || IsNil(o.AzureHostName) {
var ret string
return ret
}
return *o.AzureHostName
}
// GetAzureHostNameOk returns a tuple with the AzureHostName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProcessGroup) GetAzureHostNameOk() (*string, bool) {
if o == nil || IsNil(o.AzureHostName) {
return nil, false
}
return o.AzureHostName, true
}
// HasAzureHostName returns a boolean if a field has been set.
func (o *ProcessGroup) HasAzureHostName() bool {
if o != nil && !IsNil(o.AzureHostName) {
return true
}
return false
}
// SetAzureHostName gets a reference to the given string and assigns it to the AzureHostName field.
func (o *ProcessGroup) SetAzureHostName(v string) {
o.AzureHostName = &v
}
// GetAzureSiteName returns the AzureSiteName field value if set, zero value otherwise.
func (o *ProcessGroup) GetAzureSiteName() string {
if o == nil || IsNil(o.AzureSiteName) {
var ret string
return ret
}
return *o.AzureSiteName
}
// GetAzureSiteNameOk returns a tuple with the AzureSiteName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProcessGroup) GetAzureSiteNameOk() (*string, bool) {
if o == nil || IsNil(o.AzureSiteName) {
return nil, false
}
return o.AzureSiteName, true
}
// HasAzureSiteName returns a boolean if a field has been set.
func (o *ProcessGroup) HasAzureSiteName() bool {
if o != nil && !IsNil(o.AzureSiteName) {
return true
}
return false
}
// SetAzureSiteName gets a reference to the given string and assigns it to the AzureSiteName field.
func (o *ProcessGroup) SetAzureSiteName(v string) {
o.AzureSiteName = &v
}
// GetCustomizedName returns the CustomizedName field value if set, zero value otherwise.
func (o *ProcessGroup) GetCustomizedName() string {
if o == nil || IsNil(o.CustomizedName) {
var ret string
return ret
}
return *o.CustomizedName
}
// GetCustomizedNameOk returns a tuple with the CustomizedName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProcessGroup) GetCustomizedNameOk() (*string, bool) {
if o == nil || IsNil(o.CustomizedName) {
return nil, false
}
return o.CustomizedName, true
}
// HasCustomizedName returns a boolean if a field has been set.
func (o *ProcessGroup) HasCustomizedName() bool {
if o != nil && !IsNil(o.CustomizedName) {
return true
}
return false
}
// SetCustomizedName gets a reference to the given string and assigns it to the CustomizedName field.
func (o *ProcessGroup) SetCustomizedName(v string) {
o.CustomizedName = &v
}
// GetDiscoveredName returns the DiscoveredName field value if set, zero value otherwise.
func (o *ProcessGroup) GetDiscoveredName() string {
if o == nil || IsNil(o.DiscoveredName) {
var ret string
return ret
}
return *o.DiscoveredName
}
// GetDiscoveredNameOk returns a tuple with the DiscoveredName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProcessGroup) GetDiscoveredNameOk() (*string, bool) {
if o == nil || IsNil(o.DiscoveredName) {
return nil, false
}
return o.DiscoveredName, true
}
// HasDiscoveredName returns a boolean if a field has been set.
func (o *ProcessGroup) HasDiscoveredName() bool {
if o != nil && !IsNil(o.DiscoveredName) {
return true
}
return false
}
// SetDiscoveredName gets a reference to the given string and assigns it to the DiscoveredName field.
func (o *ProcessGroup) SetDiscoveredName(v string) {
o.DiscoveredName = &v
}
// GetDisplayName returns the DisplayName field value if set, zero value otherwise.
func (o *ProcessGroup) GetDisplayName() string {
if o == nil || IsNil(o.DisplayName) {
var ret string
return ret
}
return *o.DisplayName
}
// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProcessGroup) GetDisplayNameOk() (*string, bool) {
if o == nil || IsNil(o.DisplayName) {
return nil, false
}
return o.DisplayName, true
}
// HasDisplayName returns a boolean if a field has been set.
func (o *ProcessGroup) HasDisplayName() bool {
if o != nil && !IsNil(o.DisplayName) {
return true
}
return false
}
// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.
func (o *ProcessGroup) SetDisplayName(v string) {
o.DisplayName = &v
}
// GetEntityId returns the EntityId field value if set, zero value otherwise.
func (o *ProcessGroup) GetEntityId() string {
if o == nil || IsNil(o.EntityId) {
var ret string
return ret
}
return *o.EntityId
}
// GetEntityIdOk returns a tuple with the EntityId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProcessGroup) GetEntityIdOk() (*string, bool) {
if o == nil || IsNil(o.EntityId) {
return nil, false
}
return o.EntityId, true
}
// HasEntityId returns a boolean if a field has been set.
func (o *ProcessGroup) HasEntityId() bool {
if o != nil && !IsNil(o.EntityId) {
return true
}
return false
}
// SetEntityId gets a reference to the given string and assigns it to the EntityId field.
func (o *ProcessGroup) SetEntityId(v string) {
o.EntityId = &v
}
// GetFirstSeenTimestamp returns the FirstSeenTimestamp field value if set, zero value otherwise.
func (o *ProcessGroup) GetFirstSeenTimestamp() int64 {
if o == nil || IsNil(o.FirstSeenTimestamp) {
var ret int64
return ret
}
return *o.FirstSeenTimestamp
}
// GetFirstSeenTimestampOk returns a tuple with the FirstSeenTimestamp field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProcessGroup) GetFirstSeenTimestampOk() (*int64, bool) {
if o == nil || IsNil(o.FirstSeenTimestamp) {
return nil, false
}
return o.FirstSeenTimestamp, true
}
// HasFirstSeenTimestamp returns a boolean if a field has been set.
func (o *ProcessGroup) HasFirstSeenTimestamp() bool {
if o != nil && !IsNil(o.FirstSeenTimestamp) {
return true
}
return false
}
// SetFirstSeenTimestamp gets a reference to the given int64 and assigns it to the FirstSeenTimestamp field.
func (o *ProcessGroup) SetFirstSeenTimestamp(v int64) {
o.FirstSeenTimestamp = &v
}
// GetFromRelationships returns the FromRelationships field value if set, zero value otherwise.
func (o *ProcessGroup) GetFromRelationships() ProcessGroupFromRelationships {
if o == nil || IsNil(o.FromRelationships) {
var ret ProcessGroupFromRelationships
return ret
}
return *o.FromRelationships
}
// GetFromRelationshipsOk returns a tuple with the FromRelationships field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProcessGroup) GetFromRelationshipsOk() (*ProcessGroupFromRelationships, bool) {
if o == nil || IsNil(o.FromRelationships) {
return nil, false
}
return o.FromRelationships, true
}
// HasFromRelationships returns a boolean if a field has been set.
func (o *ProcessGroup) HasFromRelationships() bool {
if o != nil && !IsNil(o.FromRelationships) {
return true
}
return false
}
// SetFromRelationships gets a reference to the given ProcessGroupFromRelationships and assigns it to the FromRelationships field.
func (o *ProcessGroup) SetFromRelationships(v ProcessGroupFromRelationships) {
o.FromRelationships = &v
}
// GetLastSeenTimestamp returns the LastSeenTimestamp field value if set, zero value otherwise.
func (o *ProcessGroup) GetLastSeenTimestamp() int64 {
if o == nil || IsNil(o.LastSeenTimestamp) {
var ret int64
return ret
}
return *o.LastSeenTimestamp
}
// GetLastSeenTimestampOk returns a tuple with the LastSeenTimestamp field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProcessGroup) GetLastSeenTimestampOk() (*int64, bool) {
if o == nil || IsNil(o.LastSeenTimestamp) {
return nil, false
}
return o.LastSeenTimestamp, true
}
// HasLastSeenTimestamp returns a boolean if a field has been set.
func (o *ProcessGroup) HasLastSeenTimestamp() bool {
if o != nil && !IsNil(o.LastSeenTimestamp) {
return true
}
return false
}
// SetLastSeenTimestamp gets a reference to the given int64 and assigns it to the LastSeenTimestamp field.
func (o *ProcessGroup) SetLastSeenTimestamp(v int64) {
o.LastSeenTimestamp = &v
}
// GetListenPorts returns the ListenPorts field value if set, zero value otherwise.
func (o *ProcessGroup) GetListenPorts() []int32 {
if o == nil || IsNil(o.ListenPorts) {
var ret []int32
return ret
}
return o.ListenPorts
}
// GetListenPortsOk returns a tuple with the ListenPorts field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProcessGroup) GetListenPortsOk() ([]int32, bool) {
if o == nil || IsNil(o.ListenPorts) {
return nil, false
}
return o.ListenPorts, true
}
// HasListenPorts returns a boolean if a field has been set.
func (o *ProcessGroup) HasListenPorts() bool {
if o != nil && !IsNil(o.ListenPorts) {
return true
}
return false
}
// SetListenPorts gets a reference to the given []int32 and assigns it to the ListenPorts field.
func (o *ProcessGroup) SetListenPorts(v []int32) {
o.ListenPorts = v
}
// GetManagementZones returns the ManagementZones field value if set, zero value otherwise.
func (o *ProcessGroup) GetManagementZones() []EntityShortRepresentation {
if o == nil || IsNil(o.ManagementZones) {
var ret []EntityShortRepresentation
return ret
}
return o.ManagementZones
}
// GetManagementZonesOk returns a tuple with the ManagementZones field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProcessGroup) GetManagementZonesOk() ([]EntityShortRepresentation, bool) {
if o == nil || IsNil(o.ManagementZones) {
return nil, false
}
return o.ManagementZones, true
}
// HasManagementZones returns a boolean if a field has been set.
func (o *ProcessGroup) HasManagementZones() bool {
if o != nil && !IsNil(o.ManagementZones) {
return true
}
return false
}
// SetManagementZones gets a reference to the given []EntityShortRepresentation and assigns it to the ManagementZones field.
func (o *ProcessGroup) SetManagementZones(v []EntityShortRepresentation) {
o.ManagementZones = v
}
// GetMetadata returns the Metadata field value if set, zero value otherwise.
func (o *ProcessGroup) GetMetadata() ProcessGroupMetadata {
if o == nil || IsNil(o.Metadata) {
var ret ProcessGroupMetadata
return ret
}
return *o.Metadata
}
// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProcessGroup) GetMetadataOk() (*ProcessGroupMetadata, bool) {
if o == nil || IsNil(o.Metadata) {
return nil, false
}
return o.Metadata, true
}
// HasMetadata returns a boolean if a field has been set.
func (o *ProcessGroup) HasMetadata() bool {
if o != nil && !IsNil(o.Metadata) {
return true
}
return false
}
// SetMetadata gets a reference to the given ProcessGroupMetadata and assigns it to the Metadata field.
func (o *ProcessGroup) SetMetadata(v ProcessGroupMetadata) {
o.Metadata = &v
}
// GetSoftwareTechnologies returns the SoftwareTechnologies field value if set, zero value otherwise.
func (o *ProcessGroup) GetSoftwareTechnologies() []TechnologyInfo {
if o == nil || IsNil(o.SoftwareTechnologies) {
var ret []TechnologyInfo
return ret
}
return o.SoftwareTechnologies
}
// GetSoftwareTechnologiesOk returns a tuple with the SoftwareTechnologies field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProcessGroup) GetSoftwareTechnologiesOk() ([]TechnologyInfo, bool) {
if o == nil || IsNil(o.SoftwareTechnologies) {
return nil, false
}
return o.SoftwareTechnologies, true
}
// HasSoftwareTechnologies returns a boolean if a field has been set.
func (o *ProcessGroup) HasSoftwareTechnologies() bool {
if o != nil && !IsNil(o.SoftwareTechnologies) {
return true
}
return false
}
// SetSoftwareTechnologies gets a reference to the given []TechnologyInfo and assigns it to the SoftwareTechnologies field.
func (o *ProcessGroup) SetSoftwareTechnologies(v []TechnologyInfo) {
o.SoftwareTechnologies = v
}
// GetTags returns the Tags field value if set, zero value otherwise.
func (o *ProcessGroup) GetTags() []TagInfo {
if o == nil || IsNil(o.Tags) {
var ret []TagInfo
return ret
}
return o.Tags
}
// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProcessGroup) GetTagsOk() ([]TagInfo, bool) {
if o == nil || IsNil(o.Tags) {
return nil, false
}
return o.Tags, true
}
// HasTags returns a boolean if a field has been set.
func (o *ProcessGroup) HasTags() bool {
if o != nil && !IsNil(o.Tags) {
return true
}
return false
}
// SetTags gets a reference to the given []TagInfo and assigns it to the Tags field.
func (o *ProcessGroup) SetTags(v []TagInfo) {
o.Tags = v
}
// GetToRelationships returns the ToRelationships field value if set, zero value otherwise.
func (o *ProcessGroup) GetToRelationships() ProcessGroupToRelationships {
if o == nil || IsNil(o.ToRelationships) {
var ret ProcessGroupToRelationships
return ret
}
return *o.ToRelationships
}
// GetToRelationshipsOk returns a tuple with the ToRelationships field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProcessGroup) GetToRelationshipsOk() (*ProcessGroupToRelationships, bool) {
if o == nil || IsNil(o.ToRelationships) {
return nil, false
}
return o.ToRelationships, true
}
// HasToRelationships returns a boolean if a field has been set.
func (o *ProcessGroup) HasToRelationships() bool {
if o != nil && !IsNil(o.ToRelationships) {
return true
}
return false
}
// SetToRelationships gets a reference to the given ProcessGroupToRelationships and assigns it to the ToRelationships field.
func (o *ProcessGroup) SetToRelationships(v ProcessGroupToRelationships) {
o.ToRelationships = &v
}
func (o ProcessGroup) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o ProcessGroup) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.AzureHostName) {
toSerialize["azureHostName"] = o.AzureHostName
}
if !IsNil(o.AzureSiteName) {
toSerialize["azureSiteName"] = o.AzureSiteName
}
if !IsNil(o.CustomizedName) {
toSerialize["customizedName"] = o.CustomizedName
}
if !IsNil(o.DiscoveredName) {
toSerialize["discoveredName"] = o.DiscoveredName
}
if !IsNil(o.DisplayName) {
toSerialize["displayName"] = o.DisplayName
}
if !IsNil(o.EntityId) {
toSerialize["entityId"] = o.EntityId
}
if !IsNil(o.FirstSeenTimestamp) {
toSerialize["firstSeenTimestamp"] = o.FirstSeenTimestamp
}
if !IsNil(o.FromRelationships) {
toSerialize["fromRelationships"] = o.FromRelationships
}
if !IsNil(o.LastSeenTimestamp) {
toSerialize["lastSeenTimestamp"] = o.LastSeenTimestamp
}
if !IsNil(o.ListenPorts) {
toSerialize["listenPorts"] = o.ListenPorts
}
if !IsNil(o.ManagementZones) {
toSerialize["managementZones"] = o.ManagementZones
}
if !IsNil(o.Metadata) {
toSerialize["metadata"] = o.Metadata
}
if !IsNil(o.SoftwareTechnologies) {
toSerialize["softwareTechnologies"] = o.SoftwareTechnologies
}
if !IsNil(o.Tags) {
toSerialize["tags"] = o.Tags
}
if !IsNil(o.ToRelationships) {
toSerialize["toRelationships"] = o.ToRelationships
}
return toSerialize, nil
}
type NullableProcessGroup struct {
value *ProcessGroup
isSet bool
}
func (v NullableProcessGroup) Get() *ProcessGroup {
return v.value
}
func (v *NullableProcessGroup) Set(val *ProcessGroup) {
v.value = val
v.isSet = true
}
func (v NullableProcessGroup) IsSet() bool {
return v.isSet
}
func (v *NullableProcessGroup) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableProcessGroup(val *ProcessGroup) *NullableProcessGroup {
return &NullableProcessGroup{value: val, isSet: true}
}
func (v NullableProcessGroup) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableProcessGroup) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}