Skip to content

Commit d82ec98

Browse files
committed
Client Python update by KubeVirt Prow build 1858995003628457984
1 parent a4e3d01 commit d82ec98

8 files changed

Lines changed: 34 additions & 7 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-171-g55bde60ce1
7+
- Package version: v1.4.0-rc.0-278-g9f51c4c8d0
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/V1beta1VirtualMachineRestoreSpec.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
**patches** | **list[str]** | If the target for the restore does not exist, it will be created. Patches holds JSON patches that would be applied to the target manifest before it's created. Patches should fit the target's Kind. Example for a patch: {\"op\": \"replace\", \"path\": \"/metadata/name\", \"value\": \"new-vm-name\"} | [optional]
77
**target** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | initially only VirtualMachine type supported |
8+
**target_readiness_policy** | **str** | | [optional]
89
**virtual_machine_snapshot_name** | **str** | | [default to '']
910

1011
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.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-171-g55bde60ce1"
21+
release_note="Auto-generated client v1.4.0-rc.0-278-g9f51c4c8d0"
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-171-g55bde60ce1/python'
76+
self.user_agent = 'Swagger-Codegen/v1.4.0-rc.0-278-g9f51c4c8d0/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-171-g55bde60ce1".\
230+
"SDK Package Version: v1.4.0-rc.0-278-g9f51c4c8d0".\
231231
format(env=sys.platform, pyversion=sys.version)

kubevirt/models/v1beta1_virtual_machine_restore_spec.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,27 +33,32 @@ class V1beta1VirtualMachineRestoreSpec(object):
3333
swagger_types = {
3434
'patches': 'list[str]',
3535
'target': 'K8sIoApiCoreV1TypedLocalObjectReference',
36+
'target_readiness_policy': 'str',
3637
'virtual_machine_snapshot_name': 'str'
3738
}
3839

3940
attribute_map = {
4041
'patches': 'patches',
4142
'target': 'target',
43+
'target_readiness_policy': 'targetReadinessPolicy',
4244
'virtual_machine_snapshot_name': 'virtualMachineSnapshotName'
4345
}
4446

45-
def __init__(self, patches=None, target=None, virtual_machine_snapshot_name=''):
47+
def __init__(self, patches=None, target=None, target_readiness_policy=None, virtual_machine_snapshot_name=''):
4648
"""
4749
V1beta1VirtualMachineRestoreSpec - a model defined in Swagger
4850
"""
4951

5052
self._patches = None
5153
self._target = None
54+
self._target_readiness_policy = None
5255
self._virtual_machine_snapshot_name = None
5356

5457
if patches is not None:
5558
self.patches = patches
5659
self.target = target
60+
if target_readiness_policy is not None:
61+
self.target_readiness_policy = target_readiness_policy
5762
self.virtual_machine_snapshot_name = virtual_machine_snapshot_name
5863

5964
@property
@@ -104,6 +109,27 @@ def target(self, target):
104109

105110
self._target = target
106111

112+
@property
113+
def target_readiness_policy(self):
114+
"""
115+
Gets the target_readiness_policy of this V1beta1VirtualMachineRestoreSpec.
116+
117+
:return: The target_readiness_policy of this V1beta1VirtualMachineRestoreSpec.
118+
:rtype: str
119+
"""
120+
return self._target_readiness_policy
121+
122+
@target_readiness_policy.setter
123+
def target_readiness_policy(self, target_readiness_policy):
124+
"""
125+
Sets the target_readiness_policy of this V1beta1VirtualMachineRestoreSpec.
126+
127+
:param target_readiness_policy: The target_readiness_policy of this V1beta1VirtualMachineRestoreSpec.
128+
:type: str
129+
"""
130+
131+
self._target_readiness_policy = target_readiness_policy
132+
107133
@property
108134
def virtual_machine_snapshot_name(self):
109135
"""

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-171-g55bde60ce1"
18+
VERSION = "v1.4.0-rc.0-278-g9f51c4c8d0"
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-171-g55bde60ce1"
5+
"packageVersion": "v1.4.0-rc.0-278-g9f51c4c8d0"
66
}

0 commit comments

Comments
 (0)