/
model_models_ssl_ssl_scan_result.go
561 lines (473 loc) · 17.5 KB
/
model_models_ssl_ssl_scan_result.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
/*
Copyright 2023 Keyfactor
Licensed under the Apache License, Version 2.0 (the License); you may
not use this file except in compliance with the License. You may obtain a
copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless
required by applicable law or agreed to in writing, software distributed
under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES
OR CONDITIONS OF ANY KIND, either express or implied. See the License for
the specific language governing permissions and limitations under the
License.
Keyfactor API Reference and Utility
<p>This page provides a utility through which the Keyfactor API endpoints can be called and results returned. It is intended to be used primarily for validation, testing and workflow development. It also serves secondarily as documentation for the API.</p> <p>If you would like to view documentation containing details on the Keyfactor API and endpoints, please refer to the Web API section of the Keyfactor Command documentation.</p>
API version: 1.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package command
import (
"encoding/json"
)
// checks if the ModelsSSLSslScanResult type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ModelsSSLSslScanResult{}
// ModelsSSLSslScanResult struct for ModelsSSLSslScanResult
type ModelsSSLSslScanResult struct {
EndpointId *string `json:"endpointId,omitempty"`
ReverseDNS NullableString `json:"reverseDNS,omitempty"`
SniName NullableString `json:"sniName,omitempty"`
IpAddress NullableString `json:"ipAddress,omitempty"`
Port *int32 `json:"port,omitempty"`
CertificateFound *bool `json:"certificateFound,omitempty"`
AgentPoolName NullableString `json:"agentPoolName,omitempty"`
NetworkName NullableString `json:"networkName,omitempty"`
MonitorStatus *bool `json:"monitorStatus,omitempty"`
CertificateCN NullableString `json:"certificateCN,omitempty"`
Reviewed *bool `json:"reviewed,omitempty"`
}
// NewModelsSSLSslScanResult instantiates a new ModelsSSLSslScanResult 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 NewModelsSSLSslScanResult() *ModelsSSLSslScanResult {
this := ModelsSSLSslScanResult{}
return &this
}
// NewModelsSSLSslScanResultWithDefaults instantiates a new ModelsSSLSslScanResult 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 NewModelsSSLSslScanResultWithDefaults() *ModelsSSLSslScanResult {
this := ModelsSSLSslScanResult{}
return &this
}
// GetEndpointId returns the EndpointId field value if set, zero value otherwise.
func (o *ModelsSSLSslScanResult) GetEndpointId() string {
if o == nil || isNil(o.EndpointId) {
var ret string
return ret
}
return *o.EndpointId
}
// GetEndpointIdOk returns a tuple with the EndpointId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ModelsSSLSslScanResult) GetEndpointIdOk() (*string, bool) {
if o == nil || isNil(o.EndpointId) {
return nil, false
}
return o.EndpointId, true
}
// HasEndpointId returns a boolean if a field has been set.
func (o *ModelsSSLSslScanResult) HasEndpointId() bool {
if o != nil && !isNil(o.EndpointId) {
return true
}
return false
}
// SetEndpointId gets a reference to the given string and assigns it to the EndpointId field.
func (o *ModelsSSLSslScanResult) SetEndpointId(v string) {
o.EndpointId = &v
}
// GetReverseDNS returns the ReverseDNS field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ModelsSSLSslScanResult) GetReverseDNS() string {
if o == nil || isNil(o.ReverseDNS.Get()) {
var ret string
return ret
}
return *o.ReverseDNS.Get()
}
// GetReverseDNSOk returns a tuple with the ReverseDNS 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 *ModelsSSLSslScanResult) GetReverseDNSOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ReverseDNS.Get(), o.ReverseDNS.IsSet()
}
// HasReverseDNS returns a boolean if a field has been set.
func (o *ModelsSSLSslScanResult) HasReverseDNS() bool {
if o != nil && o.ReverseDNS.IsSet() {
return true
}
return false
}
// SetReverseDNS gets a reference to the given NullableString and assigns it to the ReverseDNS field.
func (o *ModelsSSLSslScanResult) SetReverseDNS(v string) {
o.ReverseDNS.Set(&v)
}
// SetReverseDNSNil sets the value for ReverseDNS to be an explicit nil
func (o *ModelsSSLSslScanResult) SetReverseDNSNil() {
o.ReverseDNS.Set(nil)
}
// UnsetReverseDNS ensures that no value is present for ReverseDNS, not even an explicit nil
func (o *ModelsSSLSslScanResult) UnsetReverseDNS() {
o.ReverseDNS.Unset()
}
// GetSniName returns the SniName field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ModelsSSLSslScanResult) GetSniName() string {
if o == nil || isNil(o.SniName.Get()) {
var ret string
return ret
}
return *o.SniName.Get()
}
// GetSniNameOk returns a tuple with the SniName 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 *ModelsSSLSslScanResult) GetSniNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.SniName.Get(), o.SniName.IsSet()
}
// HasSniName returns a boolean if a field has been set.
func (o *ModelsSSLSslScanResult) HasSniName() bool {
if o != nil && o.SniName.IsSet() {
return true
}
return false
}
// SetSniName gets a reference to the given NullableString and assigns it to the SniName field.
func (o *ModelsSSLSslScanResult) SetSniName(v string) {
o.SniName.Set(&v)
}
// SetSniNameNil sets the value for SniName to be an explicit nil
func (o *ModelsSSLSslScanResult) SetSniNameNil() {
o.SniName.Set(nil)
}
// UnsetSniName ensures that no value is present for SniName, not even an explicit nil
func (o *ModelsSSLSslScanResult) UnsetSniName() {
o.SniName.Unset()
}
// GetIpAddress returns the IpAddress field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ModelsSSLSslScanResult) GetIpAddress() string {
if o == nil || isNil(o.IpAddress.Get()) {
var ret string
return ret
}
return *o.IpAddress.Get()
}
// GetIpAddressOk returns a tuple with the IpAddress 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 *ModelsSSLSslScanResult) GetIpAddressOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.IpAddress.Get(), o.IpAddress.IsSet()
}
// HasIpAddress returns a boolean if a field has been set.
func (o *ModelsSSLSslScanResult) HasIpAddress() bool {
if o != nil && o.IpAddress.IsSet() {
return true
}
return false
}
// SetIpAddress gets a reference to the given NullableString and assigns it to the IpAddress field.
func (o *ModelsSSLSslScanResult) SetIpAddress(v string) {
o.IpAddress.Set(&v)
}
// SetIpAddressNil sets the value for IpAddress to be an explicit nil
func (o *ModelsSSLSslScanResult) SetIpAddressNil() {
o.IpAddress.Set(nil)
}
// UnsetIpAddress ensures that no value is present for IpAddress, not even an explicit nil
func (o *ModelsSSLSslScanResult) UnsetIpAddress() {
o.IpAddress.Unset()
}
// GetPort returns the Port field value if set, zero value otherwise.
func (o *ModelsSSLSslScanResult) GetPort() int32 {
if o == nil || isNil(o.Port) {
var ret int32
return ret
}
return *o.Port
}
// GetPortOk returns a tuple with the Port field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ModelsSSLSslScanResult) GetPortOk() (*int32, bool) {
if o == nil || isNil(o.Port) {
return nil, false
}
return o.Port, true
}
// HasPort returns a boolean if a field has been set.
func (o *ModelsSSLSslScanResult) HasPort() bool {
if o != nil && !isNil(o.Port) {
return true
}
return false
}
// SetPort gets a reference to the given int32 and assigns it to the Port field.
func (o *ModelsSSLSslScanResult) SetPort(v int32) {
o.Port = &v
}
// GetCertificateFound returns the CertificateFound field value if set, zero value otherwise.
func (o *ModelsSSLSslScanResult) GetCertificateFound() bool {
if o == nil || isNil(o.CertificateFound) {
var ret bool
return ret
}
return *o.CertificateFound
}
// GetCertificateFoundOk returns a tuple with the CertificateFound field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ModelsSSLSslScanResult) GetCertificateFoundOk() (*bool, bool) {
if o == nil || isNil(o.CertificateFound) {
return nil, false
}
return o.CertificateFound, true
}
// HasCertificateFound returns a boolean if a field has been set.
func (o *ModelsSSLSslScanResult) HasCertificateFound() bool {
if o != nil && !isNil(o.CertificateFound) {
return true
}
return false
}
// SetCertificateFound gets a reference to the given bool and assigns it to the CertificateFound field.
func (o *ModelsSSLSslScanResult) SetCertificateFound(v bool) {
o.CertificateFound = &v
}
// GetAgentPoolName returns the AgentPoolName field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ModelsSSLSslScanResult) GetAgentPoolName() string {
if o == nil || isNil(o.AgentPoolName.Get()) {
var ret string
return ret
}
return *o.AgentPoolName.Get()
}
// GetAgentPoolNameOk returns a tuple with the AgentPoolName 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 *ModelsSSLSslScanResult) GetAgentPoolNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.AgentPoolName.Get(), o.AgentPoolName.IsSet()
}
// HasAgentPoolName returns a boolean if a field has been set.
func (o *ModelsSSLSslScanResult) HasAgentPoolName() bool {
if o != nil && o.AgentPoolName.IsSet() {
return true
}
return false
}
// SetAgentPoolName gets a reference to the given NullableString and assigns it to the AgentPoolName field.
func (o *ModelsSSLSslScanResult) SetAgentPoolName(v string) {
o.AgentPoolName.Set(&v)
}
// SetAgentPoolNameNil sets the value for AgentPoolName to be an explicit nil
func (o *ModelsSSLSslScanResult) SetAgentPoolNameNil() {
o.AgentPoolName.Set(nil)
}
// UnsetAgentPoolName ensures that no value is present for AgentPoolName, not even an explicit nil
func (o *ModelsSSLSslScanResult) UnsetAgentPoolName() {
o.AgentPoolName.Unset()
}
// GetNetworkName returns the NetworkName field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ModelsSSLSslScanResult) GetNetworkName() string {
if o == nil || isNil(o.NetworkName.Get()) {
var ret string
return ret
}
return *o.NetworkName.Get()
}
// GetNetworkNameOk returns a tuple with the NetworkName 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 *ModelsSSLSslScanResult) GetNetworkNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.NetworkName.Get(), o.NetworkName.IsSet()
}
// HasNetworkName returns a boolean if a field has been set.
func (o *ModelsSSLSslScanResult) HasNetworkName() bool {
if o != nil && o.NetworkName.IsSet() {
return true
}
return false
}
// SetNetworkName gets a reference to the given NullableString and assigns it to the NetworkName field.
func (o *ModelsSSLSslScanResult) SetNetworkName(v string) {
o.NetworkName.Set(&v)
}
// SetNetworkNameNil sets the value for NetworkName to be an explicit nil
func (o *ModelsSSLSslScanResult) SetNetworkNameNil() {
o.NetworkName.Set(nil)
}
// UnsetNetworkName ensures that no value is present for NetworkName, not even an explicit nil
func (o *ModelsSSLSslScanResult) UnsetNetworkName() {
o.NetworkName.Unset()
}
// GetMonitorStatus returns the MonitorStatus field value if set, zero value otherwise.
func (o *ModelsSSLSslScanResult) GetMonitorStatus() bool {
if o == nil || isNil(o.MonitorStatus) {
var ret bool
return ret
}
return *o.MonitorStatus
}
// GetMonitorStatusOk returns a tuple with the MonitorStatus field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ModelsSSLSslScanResult) GetMonitorStatusOk() (*bool, bool) {
if o == nil || isNil(o.MonitorStatus) {
return nil, false
}
return o.MonitorStatus, true
}
// HasMonitorStatus returns a boolean if a field has been set.
func (o *ModelsSSLSslScanResult) HasMonitorStatus() bool {
if o != nil && !isNil(o.MonitorStatus) {
return true
}
return false
}
// SetMonitorStatus gets a reference to the given bool and assigns it to the MonitorStatus field.
func (o *ModelsSSLSslScanResult) SetMonitorStatus(v bool) {
o.MonitorStatus = &v
}
// GetCertificateCN returns the CertificateCN field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ModelsSSLSslScanResult) GetCertificateCN() string {
if o == nil || isNil(o.CertificateCN.Get()) {
var ret string
return ret
}
return *o.CertificateCN.Get()
}
// GetCertificateCNOk returns a tuple with the CertificateCN 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 *ModelsSSLSslScanResult) GetCertificateCNOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.CertificateCN.Get(), o.CertificateCN.IsSet()
}
// HasCertificateCN returns a boolean if a field has been set.
func (o *ModelsSSLSslScanResult) HasCertificateCN() bool {
if o != nil && o.CertificateCN.IsSet() {
return true
}
return false
}
// SetCertificateCN gets a reference to the given NullableString and assigns it to the CertificateCN field.
func (o *ModelsSSLSslScanResult) SetCertificateCN(v string) {
o.CertificateCN.Set(&v)
}
// SetCertificateCNNil sets the value for CertificateCN to be an explicit nil
func (o *ModelsSSLSslScanResult) SetCertificateCNNil() {
o.CertificateCN.Set(nil)
}
// UnsetCertificateCN ensures that no value is present for CertificateCN, not even an explicit nil
func (o *ModelsSSLSslScanResult) UnsetCertificateCN() {
o.CertificateCN.Unset()
}
// GetReviewed returns the Reviewed field value if set, zero value otherwise.
func (o *ModelsSSLSslScanResult) GetReviewed() bool {
if o == nil || isNil(o.Reviewed) {
var ret bool
return ret
}
return *o.Reviewed
}
// GetReviewedOk returns a tuple with the Reviewed field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ModelsSSLSslScanResult) GetReviewedOk() (*bool, bool) {
if o == nil || isNil(o.Reviewed) {
return nil, false
}
return o.Reviewed, true
}
// HasReviewed returns a boolean if a field has been set.
func (o *ModelsSSLSslScanResult) HasReviewed() bool {
if o != nil && !isNil(o.Reviewed) {
return true
}
return false
}
// SetReviewed gets a reference to the given bool and assigns it to the Reviewed field.
func (o *ModelsSSLSslScanResult) SetReviewed(v bool) {
o.Reviewed = &v
}
func (o ModelsSSLSslScanResult) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o ModelsSSLSslScanResult) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !isNil(o.EndpointId) {
toSerialize["endpointId"] = o.EndpointId
}
if o.ReverseDNS.IsSet() {
toSerialize["reverseDNS"] = o.ReverseDNS.Get()
}
if o.SniName.IsSet() {
toSerialize["sniName"] = o.SniName.Get()
}
if o.IpAddress.IsSet() {
toSerialize["ipAddress"] = o.IpAddress.Get()
}
if !isNil(o.Port) {
toSerialize["port"] = o.Port
}
if !isNil(o.CertificateFound) {
toSerialize["certificateFound"] = o.CertificateFound
}
if o.AgentPoolName.IsSet() {
toSerialize["agentPoolName"] = o.AgentPoolName.Get()
}
if o.NetworkName.IsSet() {
toSerialize["networkName"] = o.NetworkName.Get()
}
if !isNil(o.MonitorStatus) {
toSerialize["monitorStatus"] = o.MonitorStatus
}
if o.CertificateCN.IsSet() {
toSerialize["certificateCN"] = o.CertificateCN.Get()
}
if !isNil(o.Reviewed) {
toSerialize["reviewed"] = o.Reviewed
}
return toSerialize, nil
}
type NullableModelsSSLSslScanResult struct {
value *ModelsSSLSslScanResult
isSet bool
}
func (v NullableModelsSSLSslScanResult) Get() *ModelsSSLSslScanResult {
return v.value
}
func (v *NullableModelsSSLSslScanResult) Set(val *ModelsSSLSslScanResult) {
v.value = val
v.isSet = true
}
func (v NullableModelsSSLSslScanResult) IsSet() bool {
return v.isSet
}
func (v *NullableModelsSSLSslScanResult) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableModelsSSLSslScanResult(val *ModelsSSLSslScanResult) *NullableModelsSSLSslScanResult {
return &NullableModelsSSLSslScanResult{value: val, isSet: true}
}
func (v NullableModelsSSLSslScanResult) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableModelsSSLSslScanResult) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}