-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_xml_ns0_enclave_running_attestation_approval.go
188 lines (156 loc) · 6.82 KB
/
model_xml_ns0_enclave_running_attestation_approval.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
/*
* madana-api
*
* <h1>Using the madana-api</h1> <p>This documentation contains a Quickstart Guide, relating client functionality and information about the available endpoints and used datamodels. </p> <p> The madana-api and its implementations are still in heavy development. This means that there may be problems in our protocols, or there may be mistakes in our implementations. We take security vulnerabilities very seriously. If you discover a security issue, please bring it to our attention right away! If you find a vulnerability that may affect live deployments -- for example, by exposing a remote execution exploit -- please send your report privately to info@madana.io. Please DO NOT file a public issue. If the issue is a protocol weakness that cannot be immediately exploited or something not yet deployed, just discuss it openly </p> <br> <p> Note: Not all functionality might be acessible without having accquired and api-license token. For more information visit <a href=\"https://www.madana.io\">www.madana.io</a> </p> <br>
*
* API version: 0.5.0-master.56
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package madanaapiclient
import (
"encoding/json"
)
// XmlNs0EnclaveRunningAttestationApproval
type XmlNs0EnclaveRunningAttestationApproval struct {
EnclaveProcess *XmlNs0EnclaveProcess `json:"enclaveProcess,omitempty"`
NodeInfo *XmlNs0NodeInfo `json:"nodeInfo,omitempty"`
//
Approved *string `json:"approved,omitempty"`
}
// NewXmlNs0EnclaveRunningAttestationApproval instantiates a new XmlNs0EnclaveRunningAttestationApproval 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 NewXmlNs0EnclaveRunningAttestationApproval() *XmlNs0EnclaveRunningAttestationApproval {
this := XmlNs0EnclaveRunningAttestationApproval{}
return &this
}
// NewXmlNs0EnclaveRunningAttestationApprovalWithDefaults instantiates a new XmlNs0EnclaveRunningAttestationApproval 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 NewXmlNs0EnclaveRunningAttestationApprovalWithDefaults() *XmlNs0EnclaveRunningAttestationApproval {
this := XmlNs0EnclaveRunningAttestationApproval{}
return &this
}
// GetEnclaveProcess returns the EnclaveProcess field value if set, zero value otherwise.
func (o *XmlNs0EnclaveRunningAttestationApproval) GetEnclaveProcess() XmlNs0EnclaveProcess {
if o == nil || o.EnclaveProcess == nil {
var ret XmlNs0EnclaveProcess
return ret
}
return *o.EnclaveProcess
}
// GetEnclaveProcessOk returns a tuple with the EnclaveProcess field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *XmlNs0EnclaveRunningAttestationApproval) GetEnclaveProcessOk() (*XmlNs0EnclaveProcess, bool) {
if o == nil || o.EnclaveProcess == nil {
return nil, false
}
return o.EnclaveProcess, true
}
// HasEnclaveProcess returns a boolean if a field has been set.
func (o *XmlNs0EnclaveRunningAttestationApproval) HasEnclaveProcess() bool {
if o != nil && o.EnclaveProcess != nil {
return true
}
return false
}
// SetEnclaveProcess gets a reference to the given XmlNs0EnclaveProcess and assigns it to the EnclaveProcess field.
func (o *XmlNs0EnclaveRunningAttestationApproval) SetEnclaveProcess(v XmlNs0EnclaveProcess) {
o.EnclaveProcess = &v
}
// GetNodeInfo returns the NodeInfo field value if set, zero value otherwise.
func (o *XmlNs0EnclaveRunningAttestationApproval) GetNodeInfo() XmlNs0NodeInfo {
if o == nil || o.NodeInfo == nil {
var ret XmlNs0NodeInfo
return ret
}
return *o.NodeInfo
}
// GetNodeInfoOk returns a tuple with the NodeInfo field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *XmlNs0EnclaveRunningAttestationApproval) GetNodeInfoOk() (*XmlNs0NodeInfo, bool) {
if o == nil || o.NodeInfo == nil {
return nil, false
}
return o.NodeInfo, true
}
// HasNodeInfo returns a boolean if a field has been set.
func (o *XmlNs0EnclaveRunningAttestationApproval) HasNodeInfo() bool {
if o != nil && o.NodeInfo != nil {
return true
}
return false
}
// SetNodeInfo gets a reference to the given XmlNs0NodeInfo and assigns it to the NodeInfo field.
func (o *XmlNs0EnclaveRunningAttestationApproval) SetNodeInfo(v XmlNs0NodeInfo) {
o.NodeInfo = &v
}
// GetApproved returns the Approved field value if set, zero value otherwise.
func (o *XmlNs0EnclaveRunningAttestationApproval) GetApproved() string {
if o == nil || o.Approved == nil {
var ret string
return ret
}
return *o.Approved
}
// GetApprovedOk returns a tuple with the Approved field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *XmlNs0EnclaveRunningAttestationApproval) GetApprovedOk() (*string, bool) {
if o == nil || o.Approved == nil {
return nil, false
}
return o.Approved, true
}
// HasApproved returns a boolean if a field has been set.
func (o *XmlNs0EnclaveRunningAttestationApproval) HasApproved() bool {
if o != nil && o.Approved != nil {
return true
}
return false
}
// SetApproved gets a reference to the given string and assigns it to the Approved field.
func (o *XmlNs0EnclaveRunningAttestationApproval) SetApproved(v string) {
o.Approved = &v
}
func (o XmlNs0EnclaveRunningAttestationApproval) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.EnclaveProcess != nil {
toSerialize["enclaveProcess"] = o.EnclaveProcess
}
if o.NodeInfo != nil {
toSerialize["nodeInfo"] = o.NodeInfo
}
if o.Approved != nil {
toSerialize["approved"] = o.Approved
}
return json.Marshal(toSerialize)
}
type NullableXmlNs0EnclaveRunningAttestationApproval struct {
value *XmlNs0EnclaveRunningAttestationApproval
isSet bool
}
func (v NullableXmlNs0EnclaveRunningAttestationApproval) Get() *XmlNs0EnclaveRunningAttestationApproval {
return v.value
}
func (v *NullableXmlNs0EnclaveRunningAttestationApproval) Set(val *XmlNs0EnclaveRunningAttestationApproval) {
v.value = val
v.isSet = true
}
func (v NullableXmlNs0EnclaveRunningAttestationApproval) IsSet() bool {
return v.isSet
}
func (v *NullableXmlNs0EnclaveRunningAttestationApproval) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableXmlNs0EnclaveRunningAttestationApproval(val *XmlNs0EnclaveRunningAttestationApproval) *NullableXmlNs0EnclaveRunningAttestationApproval {
return &NullableXmlNs0EnclaveRunningAttestationApproval{value: val, isSet: true}
}
func (v NullableXmlNs0EnclaveRunningAttestationApproval) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableXmlNs0EnclaveRunningAttestationApproval) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}