Skip to content

Commit 2b29394

Browse files
committed
Client Python update by KubeVirt Prow build 1864252710044307456
1 parent d82ec98 commit 2b29394

10 files changed

Lines changed: 67 additions & 11 deletions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This is KubeVirt API an add-on for Kubernetes.
44
This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
55

66
- API version: 1.0.0
7-
- Package version: v1.4.0-rc.0-278-g9f51c4c8d0
7+
- Package version: v1.4.0-rc.0-508-gf6997e0f0c
88
- Build package: io.swagger.codegen.languages.PythonClientCodegen
99
For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt)
1010

docs/V1MigrationConfiguration.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**allow_auto_converge** | **bool** | AllowAutoConverge allows the platform to compromise performance/availability of VMIs to guarantee successful VMI live migrations. Defaults to false | [optional]
77
**allow_post_copy** | **bool** | AllowPostCopy enables post-copy live migrations. Such migrations allow even the busiest VMIs to successfully live-migrate. However, events like a network failure can cause a VMI crash. If set to true, migrations will still start in pre-copy, but switch to post-copy when CompletionTimeoutPerGiB triggers. Defaults to false | [optional]
8+
**allow_workload_disruption** | **bool** | AllowWorkloadDisruption indicates that the migration shouldn't be canceled after acceptableCompletionTime is exceeded. Instead, if permitted, migration will be switched to post-copy or the VMI will be paused to allow the migration to complete | [optional]
89
**bandwidth_per_migration** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | BandwidthPerMigration limits the amount of network bandwidth live migrations are allowed to use. The value is in quantity per second. Defaults to 0 (no limit) | [optional]
9-
**completion_timeout_per_gi_b** | **int** | CompletionTimeoutPerGiB is the maximum number of seconds per GiB a migration is allowed to take. If a live-migration takes longer to migrate than this value multiplied by the size of the VMI, the migration will be cancelled, unless AllowPostCopy is true. Defaults to 150 | [optional]
10+
**completion_timeout_per_gi_b** | **int** | CompletionTimeoutPerGiB is the maximum number of seconds per GiB a migration is allowed to take. If the timeout is reached, the migration will be either paused, switched to post-copy or cancelled depending on other settings. Defaults to 150 | [optional]
1011
**disable_tls** | **bool** | When set to true, DisableTLS will disable the additional layer of live migration encryption provided by KubeVirt. This is usually a bad idea. Defaults to false | [optional]
1112
**match_se_linux_level_on_migration** | **bool** | By default, the SELinux level of target virt-launcher pods is forced to the level of the source virt-launcher. When set to true, MatchSELinuxLevelOnMigration lets the CRI auto-assign a random level to the target. That will ensure the target virt-launcher doesn't share categories with another pod on the node. However, migrations will fail when using RWX volumes that don't automatically deal with SELinux levels. | [optional]
1213
**network** | **str** | Network is the name of the CNI network to use for live migrations. By default, migrations go through the pod network. | [optional]

docs/V1alpha1MigrationPolicySpec.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**allow_auto_converge** | **bool** | | [optional]
77
**allow_post_copy** | **bool** | | [optional]
8+
**allow_workload_disruption** | **bool** | | [optional]
89
**bandwidth_per_migration** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | | [optional]
910
**completion_timeout_per_gi_b** | **int** | | [optional]
1011
**selectors** | [**V1alpha1Selectors**](V1alpha1Selectors.md) | |

git_push.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then
1818
fi
1919

2020
if [ "$release_note" = "" ]; then
21-
release_note="Auto-generated client v1.4.0-rc.0-278-g9f51c4c8d0"
21+
release_note="Auto-generated client v1.4.0-rc.0-508-gf6997e0f0c"
2222
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
2323
fi
2424

kubevirt/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def __init__(self, host=None, header_name=None, header_value=None, cookie=None):
7373
self.host = host
7474
self.cookie = cookie
7575
# Set default User-Agent.
76-
self.user_agent = 'Swagger-Codegen/v1.4.0-rc.0-278-g9f51c4c8d0/python'
76+
self.user_agent = 'Swagger-Codegen/v1.4.0-rc.0-508-gf6997e0f0c/python'
7777

7878
@property
7979
def user_agent(self):

kubevirt/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,5 +227,5 @@ def to_debug_report(self):
227227
"OS: {env}\n"\
228228
"Python Version: {pyversion}\n"\
229229
"Version of the API: 1.0.0\n"\
230-
"SDK Package Version: v1.4.0-rc.0-278-g9f51c4c8d0".\
230+
"SDK Package Version: v1.4.0-rc.0-508-gf6997e0f0c".\
231231
format(env=sys.platform, pyversion=sys.version)

kubevirt/models/v1_migration_configuration.py

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class V1MigrationConfiguration(object):
3333
swagger_types = {
3434
'allow_auto_converge': 'bool',
3535
'allow_post_copy': 'bool',
36+
'allow_workload_disruption': 'bool',
3637
'bandwidth_per_migration': 'K8sIoApimachineryPkgApiResourceQuantity',
3738
'completion_timeout_per_gi_b': 'int',
3839
'disable_tls': 'bool',
@@ -48,6 +49,7 @@ class V1MigrationConfiguration(object):
4849
attribute_map = {
4950
'allow_auto_converge': 'allowAutoConverge',
5051
'allow_post_copy': 'allowPostCopy',
52+
'allow_workload_disruption': 'allowWorkloadDisruption',
5153
'bandwidth_per_migration': 'bandwidthPerMigration',
5254
'completion_timeout_per_gi_b': 'completionTimeoutPerGiB',
5355
'disable_tls': 'disableTLS',
@@ -60,13 +62,14 @@ class V1MigrationConfiguration(object):
6062
'unsafe_migration_override': 'unsafeMigrationOverride'
6163
}
6264

63-
def __init__(self, allow_auto_converge=None, allow_post_copy=None, bandwidth_per_migration=None, completion_timeout_per_gi_b=None, disable_tls=None, match_se_linux_level_on_migration=None, network=None, node_drain_taint_key=None, parallel_migrations_per_cluster=None, parallel_outbound_migrations_per_node=None, progress_timeout=None, unsafe_migration_override=None):
65+
def __init__(self, allow_auto_converge=None, allow_post_copy=None, allow_workload_disruption=None, bandwidth_per_migration=None, completion_timeout_per_gi_b=None, disable_tls=None, match_se_linux_level_on_migration=None, network=None, node_drain_taint_key=None, parallel_migrations_per_cluster=None, parallel_outbound_migrations_per_node=None, progress_timeout=None, unsafe_migration_override=None):
6466
"""
6567
V1MigrationConfiguration - a model defined in Swagger
6668
"""
6769

6870
self._allow_auto_converge = None
6971
self._allow_post_copy = None
72+
self._allow_workload_disruption = None
7073
self._bandwidth_per_migration = None
7174
self._completion_timeout_per_gi_b = None
7275
self._disable_tls = None
@@ -82,6 +85,8 @@ def __init__(self, allow_auto_converge=None, allow_post_copy=None, bandwidth_per
8285
self.allow_auto_converge = allow_auto_converge
8386
if allow_post_copy is not None:
8487
self.allow_post_copy = allow_post_copy
88+
if allow_workload_disruption is not None:
89+
self.allow_workload_disruption = allow_workload_disruption
8590
if bandwidth_per_migration is not None:
8691
self.bandwidth_per_migration = bandwidth_per_migration
8792
if completion_timeout_per_gi_b is not None:
@@ -149,6 +154,29 @@ def allow_post_copy(self, allow_post_copy):
149154

150155
self._allow_post_copy = allow_post_copy
151156

157+
@property
158+
def allow_workload_disruption(self):
159+
"""
160+
Gets the allow_workload_disruption of this V1MigrationConfiguration.
161+
AllowWorkloadDisruption indicates that the migration shouldn't be canceled after acceptableCompletionTime is exceeded. Instead, if permitted, migration will be switched to post-copy or the VMI will be paused to allow the migration to complete
162+
163+
:return: The allow_workload_disruption of this V1MigrationConfiguration.
164+
:rtype: bool
165+
"""
166+
return self._allow_workload_disruption
167+
168+
@allow_workload_disruption.setter
169+
def allow_workload_disruption(self, allow_workload_disruption):
170+
"""
171+
Sets the allow_workload_disruption of this V1MigrationConfiguration.
172+
AllowWorkloadDisruption indicates that the migration shouldn't be canceled after acceptableCompletionTime is exceeded. Instead, if permitted, migration will be switched to post-copy or the VMI will be paused to allow the migration to complete
173+
174+
:param allow_workload_disruption: The allow_workload_disruption of this V1MigrationConfiguration.
175+
:type: bool
176+
"""
177+
178+
self._allow_workload_disruption = allow_workload_disruption
179+
152180
@property
153181
def bandwidth_per_migration(self):
154182
"""
@@ -176,7 +204,7 @@ def bandwidth_per_migration(self, bandwidth_per_migration):
176204
def completion_timeout_per_gi_b(self):
177205
"""
178206
Gets the completion_timeout_per_gi_b of this V1MigrationConfiguration.
179-
CompletionTimeoutPerGiB is the maximum number of seconds per GiB a migration is allowed to take. If a live-migration takes longer to migrate than this value multiplied by the size of the VMI, the migration will be cancelled, unless AllowPostCopy is true. Defaults to 150
207+
CompletionTimeoutPerGiB is the maximum number of seconds per GiB a migration is allowed to take. If the timeout is reached, the migration will be either paused, switched to post-copy or cancelled depending on other settings. Defaults to 150
180208
181209
:return: The completion_timeout_per_gi_b of this V1MigrationConfiguration.
182210
:rtype: int
@@ -187,7 +215,7 @@ def completion_timeout_per_gi_b(self):
187215
def completion_timeout_per_gi_b(self, completion_timeout_per_gi_b):
188216
"""
189217
Sets the completion_timeout_per_gi_b of this V1MigrationConfiguration.
190-
CompletionTimeoutPerGiB is the maximum number of seconds per GiB a migration is allowed to take. If a live-migration takes longer to migrate than this value multiplied by the size of the VMI, the migration will be cancelled, unless AllowPostCopy is true. Defaults to 150
218+
CompletionTimeoutPerGiB is the maximum number of seconds per GiB a migration is allowed to take. If the timeout is reached, the migration will be either paused, switched to post-copy or cancelled depending on other settings. Defaults to 150
191219
192220
:param completion_timeout_per_gi_b: The completion_timeout_per_gi_b of this V1MigrationConfiguration.
193221
:type: int

kubevirt/models/v1alpha1_migration_policy_spec.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class V1alpha1MigrationPolicySpec(object):
3333
swagger_types = {
3434
'allow_auto_converge': 'bool',
3535
'allow_post_copy': 'bool',
36+
'allow_workload_disruption': 'bool',
3637
'bandwidth_per_migration': 'K8sIoApimachineryPkgApiResourceQuantity',
3738
'completion_timeout_per_gi_b': 'int',
3839
'selectors': 'V1alpha1Selectors'
@@ -41,18 +42,20 @@ class V1alpha1MigrationPolicySpec(object):
4142
attribute_map = {
4243
'allow_auto_converge': 'allowAutoConverge',
4344
'allow_post_copy': 'allowPostCopy',
45+
'allow_workload_disruption': 'allowWorkloadDisruption',
4446
'bandwidth_per_migration': 'bandwidthPerMigration',
4547
'completion_timeout_per_gi_b': 'completionTimeoutPerGiB',
4648
'selectors': 'selectors'
4749
}
4850

49-
def __init__(self, allow_auto_converge=None, allow_post_copy=None, bandwidth_per_migration=None, completion_timeout_per_gi_b=None, selectors=None):
51+
def __init__(self, allow_auto_converge=None, allow_post_copy=None, allow_workload_disruption=None, bandwidth_per_migration=None, completion_timeout_per_gi_b=None, selectors=None):
5052
"""
5153
V1alpha1MigrationPolicySpec - a model defined in Swagger
5254
"""
5355

5456
self._allow_auto_converge = None
5557
self._allow_post_copy = None
58+
self._allow_workload_disruption = None
5659
self._bandwidth_per_migration = None
5760
self._completion_timeout_per_gi_b = None
5861
self._selectors = None
@@ -61,6 +64,8 @@ def __init__(self, allow_auto_converge=None, allow_post_copy=None, bandwidth_per
6164
self.allow_auto_converge = allow_auto_converge
6265
if allow_post_copy is not None:
6366
self.allow_post_copy = allow_post_copy
67+
if allow_workload_disruption is not None:
68+
self.allow_workload_disruption = allow_workload_disruption
6469
if bandwidth_per_migration is not None:
6570
self.bandwidth_per_migration = bandwidth_per_migration
6671
if completion_timeout_per_gi_b is not None:
@@ -109,6 +114,27 @@ def allow_post_copy(self, allow_post_copy):
109114

110115
self._allow_post_copy = allow_post_copy
111116

117+
@property
118+
def allow_workload_disruption(self):
119+
"""
120+
Gets the allow_workload_disruption of this V1alpha1MigrationPolicySpec.
121+
122+
:return: The allow_workload_disruption of this V1alpha1MigrationPolicySpec.
123+
:rtype: bool
124+
"""
125+
return self._allow_workload_disruption
126+
127+
@allow_workload_disruption.setter
128+
def allow_workload_disruption(self, allow_workload_disruption):
129+
"""
130+
Sets the allow_workload_disruption of this V1alpha1MigrationPolicySpec.
131+
132+
:param allow_workload_disruption: The allow_workload_disruption of this V1alpha1MigrationPolicySpec.
133+
:type: bool
134+
"""
135+
136+
self._allow_workload_disruption = allow_workload_disruption
137+
112138
@property
113139
def bandwidth_per_migration(self):
114140
"""

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from setuptools import setup, find_packages
1616

1717
NAME = "kubevirt-py"
18-
VERSION = "v1.4.0-rc.0-278-g9f51c4c8d0"
18+
VERSION = "v1.4.0-rc.0-508-gf6997e0f0c"
1919
# To install the library, run the following
2020
#
2121
# python setup.py install

swagger-codegen-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"packageName": "kubevirt",
33
"projectName": "kubevirt-py",
44
"packageUrl": "https://github.com/kubevirt/client-python",
5-
"packageVersion": "v1.4.0-rc.0-278-g9f51c4c8d0"
5+
"packageVersion": "v1.4.0-rc.0-508-gf6997e0f0c"
66
}

0 commit comments

Comments
 (0)