Skip to content

Commit 4a852d3

Browse files
committed
Client Python update by KubeVirt Prow build 1927079353317855232
1 parent 868766b commit 4a852d3

File tree

8 files changed

+36
-7
lines changed

8 files changed

+36
-7
lines changed

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.6.0-alpha.0-146-gc800179aca
7+
- Package version: v1.6.0-beta.0-33-g0bb85f4fc1
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/V1alpha1VirtualMachinePoolSpec.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6+
**max_unavailable** | [**K8sIoApimachineryPkgUtilIntstrIntOrString**](K8sIoApimachineryPkgUtilIntstrIntOrString.md) | (Defaults to 100%) Integer or string pointer, that when set represents either a percentage or number of VMs in a pool that can be unavailable (ready condition false) at a time during automated update. | [optional]
67
**name_generation** | [**V1alpha1VirtualMachinePoolNameGeneration**](V1alpha1VirtualMachinePoolNameGeneration.md) | Options for the name generation in a pool. | [optional]
78
**paused** | **bool** | Indicates that the pool is paused. | [optional]
89
**replicas** | **int** | Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. | [optional]

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.6.0-alpha.0-146-gc800179aca"
21+
release_note="Auto-generated client v1.6.0-beta.0-33-g0bb85f4fc1"
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.6.0-alpha.0-146-gc800179aca/python'
76+
self.user_agent = 'Swagger-Codegen/v1.6.0-beta.0-33-g0bb85f4fc1/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.6.0-alpha.0-146-gc800179aca".\
230+
"SDK Package Version: v1.6.0-beta.0-33-g0bb85f4fc1".\
231231
format(env=sys.platform, pyversion=sys.version)

kubevirt/models/v1alpha1_virtual_machine_pool_spec.py

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class V1alpha1VirtualMachinePoolSpec(object):
3131
and the value is json key in definition.
3232
"""
3333
swagger_types = {
34+
'max_unavailable': 'K8sIoApimachineryPkgUtilIntstrIntOrString',
3435
'name_generation': 'V1alpha1VirtualMachinePoolNameGeneration',
3536
'paused': 'bool',
3637
'replicas': 'int',
@@ -39,24 +40,28 @@ class V1alpha1VirtualMachinePoolSpec(object):
3940
}
4041

4142
attribute_map = {
43+
'max_unavailable': 'maxUnavailable',
4244
'name_generation': 'nameGeneration',
4345
'paused': 'paused',
4446
'replicas': 'replicas',
4547
'selector': 'selector',
4648
'virtual_machine_template': 'virtualMachineTemplate'
4749
}
4850

49-
def __init__(self, name_generation=None, paused=None, replicas=None, selector=None, virtual_machine_template=None):
51+
def __init__(self, max_unavailable=None, name_generation=None, paused=None, replicas=None, selector=None, virtual_machine_template=None):
5052
"""
5153
V1alpha1VirtualMachinePoolSpec - a model defined in Swagger
5254
"""
5355

56+
self._max_unavailable = None
5457
self._name_generation = None
5558
self._paused = None
5659
self._replicas = None
5760
self._selector = None
5861
self._virtual_machine_template = None
5962

63+
if max_unavailable is not None:
64+
self.max_unavailable = max_unavailable
6065
if name_generation is not None:
6166
self.name_generation = name_generation
6267
if paused is not None:
@@ -66,6 +71,29 @@ def __init__(self, name_generation=None, paused=None, replicas=None, selector=No
6671
self.selector = selector
6772
self.virtual_machine_template = virtual_machine_template
6873

74+
@property
75+
def max_unavailable(self):
76+
"""
77+
Gets the max_unavailable of this V1alpha1VirtualMachinePoolSpec.
78+
(Defaults to 100%) Integer or string pointer, that when set represents either a percentage or number of VMs in a pool that can be unavailable (ready condition false) at a time during automated update.
79+
80+
:return: The max_unavailable of this V1alpha1VirtualMachinePoolSpec.
81+
:rtype: K8sIoApimachineryPkgUtilIntstrIntOrString
82+
"""
83+
return self._max_unavailable
84+
85+
@max_unavailable.setter
86+
def max_unavailable(self, max_unavailable):
87+
"""
88+
Sets the max_unavailable of this V1alpha1VirtualMachinePoolSpec.
89+
(Defaults to 100%) Integer or string pointer, that when set represents either a percentage or number of VMs in a pool that can be unavailable (ready condition false) at a time during automated update.
90+
91+
:param max_unavailable: The max_unavailable of this V1alpha1VirtualMachinePoolSpec.
92+
:type: K8sIoApimachineryPkgUtilIntstrIntOrString
93+
"""
94+
95+
self._max_unavailable = max_unavailable
96+
6997
@property
7098
def name_generation(self):
7199
"""

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.6.0-alpha.0-146-gc800179aca"
18+
VERSION = "v1.6.0-beta.0-33-g0bb85f4fc1"
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.6.0-alpha.0-146-gc800179aca"
5+
"packageVersion": "v1.6.0-beta.0-33-g0bb85f4fc1"
66
}

0 commit comments

Comments
 (0)