@@ -48,6 +48,7 @@ type AddonInstallation struct {
48
48
creationTimestamp time.Time
49
49
csvName string
50
50
deletedTimestamp time.Time
51
+ desiredVersion string
51
52
operatorVersion string
52
53
parameters * AddonInstallationParameters
53
54
state AddonInstallationState
@@ -251,12 +252,35 @@ func (o *AddonInstallation) GetDeletedTimestamp() (value time.Time, ok bool) {
251
252
return
252
253
}
253
254
255
+ // DesiredVersion returns the value of the 'desired_version' attribute, or
256
+ // the zero value of the type if the attribute doesn't have a value.
257
+ //
258
+ // Version of the next scheduled upgrade
259
+ func (o * AddonInstallation ) DesiredVersion () string {
260
+ if o != nil && o .bitmap_ & 512 != 0 {
261
+ return o .desiredVersion
262
+ }
263
+ return ""
264
+ }
265
+
266
+ // GetDesiredVersion returns the value of the 'desired_version' attribute and
267
+ // a flag indicating if the attribute has a value.
268
+ //
269
+ // Version of the next scheduled upgrade
270
+ func (o * AddonInstallation ) GetDesiredVersion () (value string , ok bool ) {
271
+ ok = o != nil && o .bitmap_ & 512 != 0
272
+ if ok {
273
+ value = o .desiredVersion
274
+ }
275
+ return
276
+ }
277
+
254
278
// OperatorVersion returns the value of the 'operator_version' attribute, or
255
279
// the zero value of the type if the attribute doesn't have a value.
256
280
//
257
281
// Version of the operator installed by the add-on.
258
282
func (o * AddonInstallation ) OperatorVersion () string {
259
- if o != nil && o .bitmap_ & 512 != 0 {
283
+ if o != nil && o .bitmap_ & 1024 != 0 {
260
284
return o .operatorVersion
261
285
}
262
286
return ""
@@ -267,7 +291,7 @@ func (o *AddonInstallation) OperatorVersion() string {
267
291
//
268
292
// Version of the operator installed by the add-on.
269
293
func (o * AddonInstallation ) GetOperatorVersion () (value string , ok bool ) {
270
- ok = o != nil && o .bitmap_ & 512 != 0
294
+ ok = o != nil && o .bitmap_ & 1024 != 0
271
295
if ok {
272
296
value = o .operatorVersion
273
297
}
@@ -279,7 +303,7 @@ func (o *AddonInstallation) GetOperatorVersion() (value string, ok bool) {
279
303
//
280
304
// Parameters in the installation
281
305
func (o * AddonInstallation ) Parameters () * AddonInstallationParameters {
282
- if o != nil && o .bitmap_ & 1024 != 0 {
306
+ if o != nil && o .bitmap_ & 2048 != 0 {
283
307
return o .parameters
284
308
}
285
309
return nil
@@ -290,7 +314,7 @@ func (o *AddonInstallation) Parameters() *AddonInstallationParameters {
290
314
//
291
315
// Parameters in the installation
292
316
func (o * AddonInstallation ) GetParameters () (value * AddonInstallationParameters , ok bool ) {
293
- ok = o != nil && o .bitmap_ & 1024 != 0
317
+ ok = o != nil && o .bitmap_ & 2048 != 0
294
318
if ok {
295
319
value = o .parameters
296
320
}
@@ -302,7 +326,7 @@ func (o *AddonInstallation) GetParameters() (value *AddonInstallationParameters,
302
326
//
303
327
// Addon Installation State
304
328
func (o * AddonInstallation ) State () AddonInstallationState {
305
- if o != nil && o .bitmap_ & 2048 != 0 {
329
+ if o != nil && o .bitmap_ & 4096 != 0 {
306
330
return o .state
307
331
}
308
332
return AddonInstallationState ("" )
@@ -313,7 +337,7 @@ func (o *AddonInstallation) State() AddonInstallationState {
313
337
//
314
338
// Addon Installation State
315
339
func (o * AddonInstallation ) GetState () (value AddonInstallationState , ok bool ) {
316
- ok = o != nil && o .bitmap_ & 2048 != 0
340
+ ok = o != nil && o .bitmap_ & 4096 != 0
317
341
if ok {
318
342
value = o .state
319
343
}
@@ -325,7 +349,7 @@ func (o *AddonInstallation) GetState() (value AddonInstallationState, ok bool) {
325
349
//
326
350
// Reason for the current State.
327
351
func (o * AddonInstallation ) StateDescription () string {
328
- if o != nil && o .bitmap_ & 4096 != 0 {
352
+ if o != nil && o .bitmap_ & 8192 != 0 {
329
353
return o .stateDescription
330
354
}
331
355
return ""
@@ -336,7 +360,7 @@ func (o *AddonInstallation) StateDescription() string {
336
360
//
337
361
// Reason for the current State.
338
362
func (o * AddonInstallation ) GetStateDescription () (value string , ok bool ) {
339
- ok = o != nil && o .bitmap_ & 4096 != 0
363
+ ok = o != nil && o .bitmap_ & 8192 != 0
340
364
if ok {
341
365
value = o .stateDescription
342
366
}
@@ -348,7 +372,7 @@ func (o *AddonInstallation) GetStateDescription() (value string, ok bool) {
348
372
//
349
373
// Subscription for the addon installation
350
374
func (o * AddonInstallation ) Subscription () * ObjectReference {
351
- if o != nil && o .bitmap_ & 8192 != 0 {
375
+ if o != nil && o .bitmap_ & 16384 != 0 {
352
376
return o .subscription
353
377
}
354
378
return nil
@@ -359,7 +383,7 @@ func (o *AddonInstallation) Subscription() *ObjectReference {
359
383
//
360
384
// Subscription for the addon installation
361
385
func (o * AddonInstallation ) GetSubscription () (value * ObjectReference , ok bool ) {
362
- ok = o != nil && o .bitmap_ & 8192 != 0
386
+ ok = o != nil && o .bitmap_ & 16384 != 0
363
387
if ok {
364
388
value = o .subscription
365
389
}
@@ -371,7 +395,7 @@ func (o *AddonInstallation) GetSubscription() (value *ObjectReference, ok bool)
371
395
//
372
396
// Date and time when the add-on installation information was last updated.
373
397
func (o * AddonInstallation ) UpdatedTimestamp () time.Time {
374
- if o != nil && o .bitmap_ & 16384 != 0 {
398
+ if o != nil && o .bitmap_ & 32768 != 0 {
375
399
return o .updatedTimestamp
376
400
}
377
401
return time.Time {}
@@ -382,7 +406,7 @@ func (o *AddonInstallation) UpdatedTimestamp() time.Time {
382
406
//
383
407
// Date and time when the add-on installation information was last updated.
384
408
func (o * AddonInstallation ) GetUpdatedTimestamp () (value time.Time , ok bool ) {
385
- ok = o != nil && o .bitmap_ & 16384 != 0
409
+ ok = o != nil && o .bitmap_ & 32768 != 0
386
410
if ok {
387
411
value = o .updatedTimestamp
388
412
}
0 commit comments