Skip to content

Commit eb3ab43

Browse files
committed
Merge pull request #35 from miq-bot/openapi_generate
Update kubevirt gem
2 parents 7f01e42 + cf5df6c commit eb3ab43

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

docs/V1beta1VirtualMachineRestoreSpec.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
| **target** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | | |
99
| **target_readiness_policy** | **String** | | [optional] |
1010
| **virtual_machine_snapshot_name** | **String** | | [default to ''] |
11+
| **volume_ownership_policy** | **String** | | [optional] |
1112
| **volume_restore_overrides** | [**Array<V1beta1VolumeRestoreOverride>**](V1beta1VolumeRestoreOverride.md) | VolumeRestoreOverrides gives the option to change properties of each restored volume For example, specifying the name of the restored volume, or adding labels/annotations to it | [optional] |
1213
| **volume_restore_policy** | **String** | | [optional] |
1314

@@ -21,6 +22,7 @@ instance = Kubevirt::V1beta1VirtualMachineRestoreSpec.new(
2122
target: null,
2223
target_readiness_policy: null,
2324
virtual_machine_snapshot_name: null,
25+
volume_ownership_policy: null,
2426
volume_restore_overrides: null,
2527
volume_restore_policy: null
2628
)

lib/kubevirt/models/v1beta1_virtual_machine_restore_spec.rb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ class V1beta1VirtualMachineRestoreSpec
2525

2626
attr_accessor :virtual_machine_snapshot_name
2727

28+
attr_accessor :volume_ownership_policy
29+
2830
# VolumeRestoreOverrides gives the option to change properties of each restored volume For example, specifying the name of the restored volume, or adding labels/annotations to it
2931
attr_accessor :volume_restore_overrides
3032

@@ -37,6 +39,7 @@ def self.attribute_map
3739
:'target' => :'target',
3840
:'target_readiness_policy' => :'targetReadinessPolicy',
3941
:'virtual_machine_snapshot_name' => :'virtualMachineSnapshotName',
42+
:'volume_ownership_policy' => :'volumeOwnershipPolicy',
4043
:'volume_restore_overrides' => :'volumeRestoreOverrides',
4144
:'volume_restore_policy' => :'volumeRestorePolicy'
4245
}
@@ -59,6 +62,7 @@ def self.openapi_types
5962
:'target' => :'K8sIoApiCoreV1TypedLocalObjectReference',
6063
:'target_readiness_policy' => :'String',
6164
:'virtual_machine_snapshot_name' => :'String',
65+
:'volume_ownership_policy' => :'String',
6266
:'volume_restore_overrides' => :'Array<V1beta1VolumeRestoreOverride>',
6367
:'volume_restore_policy' => :'String'
6468
}
@@ -108,6 +112,10 @@ def initialize(attributes = {})
108112
self.virtual_machine_snapshot_name = ''
109113
end
110114

115+
if attributes.key?(:'volume_ownership_policy')
116+
self.volume_ownership_policy = attributes[:'volume_ownership_policy']
117+
end
118+
111119
if attributes.key?(:'volume_restore_overrides')
112120
if (value = attributes[:'volume_restore_overrides']).is_a?(Array)
113121
self.volume_restore_overrides = value
@@ -173,6 +181,7 @@ def ==(o)
173181
target == o.target &&
174182
target_readiness_policy == o.target_readiness_policy &&
175183
virtual_machine_snapshot_name == o.virtual_machine_snapshot_name &&
184+
volume_ownership_policy == o.volume_ownership_policy &&
176185
volume_restore_overrides == o.volume_restore_overrides &&
177186
volume_restore_policy == o.volume_restore_policy
178187
end
@@ -186,7 +195,7 @@ def eql?(o)
186195
# Calculates hash code according to all attributes.
187196
# @return [Integer] Hash code
188197
def hash
189-
[patches, target, target_readiness_policy, virtual_machine_snapshot_name, volume_restore_overrides, volume_restore_policy].hash
198+
[patches, target, target_readiness_policy, virtual_machine_snapshot_name, volume_ownership_policy, volume_restore_overrides, volume_restore_policy].hash
190199
end
191200

192201
# Builds the object from hash

spec/models/v1beta1_virtual_machine_restore_spec_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@
5151
end
5252
end
5353

54+
describe 'test attribute "volume_ownership_policy"' do
55+
it 'should work' do
56+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
57+
end
58+
end
59+
5460
describe 'test attribute "volume_restore_overrides"' do
5561
it 'should work' do
5662
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/

0 commit comments

Comments
 (0)