Skip to content

Commit bcdf59c

Browse files
committed
Merge pull request #27 from miq-bot/openapi_generate
Update kubevirt gem
2 parents 6cb711b + fa5e073 commit bcdf59c

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

docs/V1alpha1VirtualMachinePoolSpec.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
| Name | Type | Description | Notes |
66
| ---- | ---- | ----------- | ----- |
7+
| **max_unavailable** | **String** | IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. | [optional] |
78
| **name_generation** | [**V1alpha1VirtualMachinePoolNameGeneration**](V1alpha1VirtualMachinePoolNameGeneration.md) | | [optional] |
89
| **paused** | **Boolean** | Indicates that the pool is paused. | [optional] |
910
| **replicas** | **Integer** | Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. | [optional] |
@@ -16,6 +17,7 @@
1617
require 'kubevirt'
1718

1819
instance = Kubevirt::V1alpha1VirtualMachinePoolSpec.new(
20+
max_unavailable: null,
1921
name_generation: null,
2022
paused: null,
2123
replicas: null,

lib/kubevirt/models/v1alpha1_virtual_machine_pool_spec.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515

1616
module Kubevirt
1717
class V1alpha1VirtualMachinePoolSpec
18+
# IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.
19+
attr_accessor :max_unavailable
20+
1821
attr_accessor :name_generation
1922

2023
# Indicates that the pool is paused.
@@ -30,6 +33,7 @@ class V1alpha1VirtualMachinePoolSpec
3033
# Attribute mapping from ruby-style variable name to JSON key.
3134
def self.attribute_map
3235
{
36+
:'max_unavailable' => :'maxUnavailable',
3337
:'name_generation' => :'nameGeneration',
3438
:'paused' => :'paused',
3539
:'replicas' => :'replicas',
@@ -51,6 +55,7 @@ def self.acceptable_attributes
5155
# Attribute type mapping.
5256
def self.openapi_types
5357
{
58+
:'max_unavailable' => :'String',
5459
:'name_generation' => :'V1alpha1VirtualMachinePoolNameGeneration',
5560
:'paused' => :'Boolean',
5661
:'replicas' => :'Integer',
@@ -81,6 +86,10 @@ def initialize(attributes = {})
8186
h[k.to_sym] = v
8287
}
8388

89+
if attributes.key?(:'max_unavailable')
90+
self.max_unavailable = attributes[:'max_unavailable']
91+
end
92+
8493
if attributes.key?(:'name_generation')
8594
self.name_generation = attributes[:'name_generation']
8695
end
@@ -156,6 +165,7 @@ def virtual_machine_template=(virtual_machine_template)
156165
def ==(o)
157166
return true if self.equal?(o)
158167
self.class == o.class &&
168+
max_unavailable == o.max_unavailable &&
159169
name_generation == o.name_generation &&
160170
paused == o.paused &&
161171
replicas == o.replicas &&
@@ -172,7 +182,7 @@ def eql?(o)
172182
# Calculates hash code according to all attributes.
173183
# @return [Integer] Hash code
174184
def hash
175-
[name_generation, paused, replicas, selector, virtual_machine_template].hash
185+
[max_unavailable, name_generation, paused, replicas, selector, virtual_machine_template].hash
176186
end
177187

178188
# Builds the object from hash

spec/models/v1alpha1_virtual_machine_pool_spec_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@
2727
end
2828
end
2929

30+
describe 'test attribute "max_unavailable"' do
31+
it 'should work' do
32+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33+
end
34+
end
35+
3036
describe 'test attribute "name_generation"' do
3137
it 'should work' do
3238
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/

0 commit comments

Comments
 (0)