Skip to content

Commit f881fdb

Browse files
committed
Merge pull request #55 from miq-bot/openapi_generate
Update kubevirt gem
2 parents 83d0242 + 85f52bf commit f881fdb

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

docs/V1DomainSpec.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
| **launch_security** | [**V1LaunchSecurity**](V1LaunchSecurity.md) | | [optional] |
1616
| **machine** | [**V1Machine**](V1Machine.md) | | [optional] |
1717
| **memory** | [**V1Memory**](V1Memory.md) | | [optional] |
18+
| **reboot_policy** | **String** | RebootPolicy specifies how the guest should behave on reboot. Reboot (default): The guest is allowed to reboot silently. Terminate: The VMI will be terminated on guest reboot, allowing higher level controllers (such as the VM controller) to recreate the VMI with any updated configuration such as boot order changes. | [optional] |
1819
| **resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | | [optional] |
1920

2021
## Example
@@ -34,6 +35,7 @@ instance = Kubevirt::V1DomainSpec.new(
3435
launch_security: null,
3536
machine: null,
3637
memory: null,
38+
reboot_policy: null,
3739
resources: null
3840
)
3941
```

lib/kubevirt/models/v1_domain_spec.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ class V1DomainSpec < ApiModelBase
3838

3939
attr_accessor :memory
4040

41+
# RebootPolicy specifies how the guest should behave on reboot. Reboot (default): The guest is allowed to reboot silently. Terminate: The VMI will be terminated on guest reboot, allowing higher level controllers (such as the VM controller) to recreate the VMI with any updated configuration such as boot order changes.
42+
attr_accessor :reboot_policy
43+
4144
attr_accessor :resources
4245

4346
# Attribute mapping from ruby-style variable name to JSON key.
@@ -54,6 +57,7 @@ def self.attribute_map
5457
:'launch_security' => :'launchSecurity',
5558
:'machine' => :'machine',
5659
:'memory' => :'memory',
60+
:'reboot_policy' => :'rebootPolicy',
5761
:'resources' => :'resources'
5862
}
5963
end
@@ -82,6 +86,7 @@ def self.openapi_types
8286
:'launch_security' => :'V1LaunchSecurity',
8387
:'machine' => :'V1Machine',
8488
:'memory' => :'V1Memory',
89+
:'reboot_policy' => :'String',
8590
:'resources' => :'V1ResourceRequirements'
8691
}
8792
end
@@ -154,6 +159,10 @@ def initialize(attributes = {})
154159
self.memory = attributes[:'memory']
155160
end
156161

162+
if attributes.key?(:'reboot_policy')
163+
self.reboot_policy = attributes[:'reboot_policy']
164+
end
165+
157166
if attributes.key?(:'resources')
158167
self.resources = attributes[:'resources']
159168
end
@@ -205,6 +214,7 @@ def ==(o)
205214
launch_security == o.launch_security &&
206215
machine == o.machine &&
207216
memory == o.memory &&
217+
reboot_policy == o.reboot_policy &&
208218
resources == o.resources
209219
end
210220

@@ -217,7 +227,7 @@ def eql?(o)
217227
# Calculates hash code according to all attributes.
218228
# @return [Integer] Hash code
219229
def hash
220-
[chassis, clock, cpu, devices, features, firmware, io_threads, io_threads_policy, launch_security, machine, memory, resources].hash
230+
[chassis, clock, cpu, devices, features, firmware, io_threads, io_threads_policy, launch_security, machine, memory, reboot_policy, resources].hash
221231
end
222232

223233
# Builds the object from hash

spec/models/v1_domain_spec_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,12 @@
9393
end
9494
end
9595

96+
describe 'test attribute "reboot_policy"' do
97+
it 'should work' do
98+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
99+
end
100+
end
101+
96102
describe 'test attribute "resources"' do
97103
it 'should work' do
98104
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/

0 commit comments

Comments
 (0)