-
Notifications
You must be signed in to change notification settings - Fork 568
Expand file tree
/
Copy pathmodel_hibernate_request.go
More file actions
187 lines (155 loc) · 5.08 KB
/
model_hibernate_request.go
File metadata and controls
187 lines (155 loc) · 5.08 KB
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
/*
Devtron Labs
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
API version: 1.0.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
import (
"encoding/json"
)
// HibernateRequest struct for HibernateRequest
type HibernateRequest struct {
// helm app id
AppId *string `json:"appId,omitempty"`
Resources *[]HibernateTargetObject `json:"resources,omitempty"`
// confirmation name - should match app name for additional confirmation
ConfirmationName *string `json:"confirmationName,omitempty"`
}
// NewHibernateRequest instantiates a new HibernateRequest 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 NewHibernateRequest() *HibernateRequest {
this := HibernateRequest{}
return &this
}
// NewHibernateRequestWithDefaults instantiates a new HibernateRequest 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 NewHibernateRequestWithDefaults() *HibernateRequest {
this := HibernateRequest{}
return &this
}
// GetAppId returns the AppId field value if set, zero value otherwise.
func (o *HibernateRequest) GetAppId() string {
if o == nil || o.AppId == nil {
var ret string
return ret
}
return *o.AppId
}
// GetAppIdOk returns a tuple with the AppId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *HibernateRequest) GetAppIdOk() (*string, bool) {
if o == nil || o.AppId == nil {
return nil, false
}
return o.AppId, true
}
// HasAppId returns a boolean if a field has been set.
func (o *HibernateRequest) HasAppId() bool {
if o != nil && o.AppId != nil {
return true
}
return false
}
// SetAppId gets a reference to the given string and assigns it to the AppId field.
func (o *HibernateRequest) SetAppId(v string) {
o.AppId = &v
}
// GetResources returns the Resources field value if set, zero value otherwise.
func (o *HibernateRequest) GetResources() []HibernateTargetObject {
if o == nil || o.Resources == nil {
var ret []HibernateTargetObject
return ret
}
return *o.Resources
}
// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *HibernateRequest) GetResourcesOk() (*[]HibernateTargetObject, bool) {
if o == nil || o.Resources == nil {
return nil, false
}
return o.Resources, true
}
// HasResources returns a boolean if a field has been set.
func (o *HibernateRequest) HasResources() bool {
if o != nil && o.Resources != nil {
return true
}
return false
}
// SetResources gets a reference to the given []HibernateTargetObject and assigns it to the Resources field.
func (o *HibernateRequest) SetResources(v []HibernateTargetObject) {
o.Resources = &v
}
// GetConfirmationName returns the ConfirmationName field value if set, zero value otherwise.
func (o *HibernateRequest) GetConfirmationName() string {
if o == nil || o.ConfirmationName == nil {
var ret string
return ret
}
return *o.ConfirmationName
}
// GetConfirmationNameOk returns a tuple with the ConfirmationName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *HibernateRequest) GetConfirmationNameOk() (*string, bool) {
if o == nil || o.ConfirmationName == nil {
return nil, false
}
return o.ConfirmationName, true
}
// HasConfirmationName returns a boolean if a field has been set.
func (o *HibernateRequest) HasConfirmationName() bool {
if o != nil && o.ConfirmationName != nil {
return true
}
return false
}
// SetConfirmationName gets a reference to the given string and assigns it to the ConfirmationName field.
func (o *HibernateRequest) SetConfirmationName(v string) {
o.ConfirmationName = &v
}
func (o HibernateRequest) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.AppId != nil {
toSerialize["appId"] = o.AppId
}
if o.Resources != nil {
toSerialize["resources"] = o.Resources
}
if o.ConfirmationName != nil {
toSerialize["confirmationName"] = o.ConfirmationName
}
return json.Marshal(toSerialize)
}
type NullableHibernateRequest struct {
value *HibernateRequest
isSet bool
}
func (v NullableHibernateRequest) Get() *HibernateRequest {
return v.value
}
func (v *NullableHibernateRequest) Set(val *HibernateRequest) {
v.value = val
v.isSet = true
}
func (v NullableHibernateRequest) IsSet() bool {
return v.isSet
}
func (v *NullableHibernateRequest) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableHibernateRequest(val *HibernateRequest) *NullableHibernateRequest {
return &NullableHibernateRequest{value: val, isSet: true}
}
func (v NullableHibernateRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableHibernateRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}