Skip to content

Commit 5917ea9

Browse files
author
Travis CI
committed
Client Python update by Travis Build 4538
1 parent ae20108 commit 5917ea9

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: v0.7.0-222-g5ea67b28
7+
- Package version: v0.7.0-230-g0e174460
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/V1Interface.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
88
**mac_address** | **str** | Interface MAC address. For example: de:ad:00:00:be:af or DE-AD-00-00-BE-AF. | [optional]
99
**model** | **str** | Interface model. One of: e1000, e1000e, ne2k_pci, pcnet, rtl8139, virtio. Defaults to virtio. | [optional]
1010
**name** | **str** | Logical name of the interface as well as a reference to the associated networks. Must match the Name of a Network. |
11+
**pci_address** | **str** | If specified, the virtual network interface will be placed on the guests pci address with the specifed PCI address. For example: 0000:81:01.10 +optional | [optional]
1112
**ports** | [**list[V1Port]**](V1Port.md) | List of ports to be forwarded to the virtual machine. | [optional]
1213
**slirp** | [**V1InterfaceSlirp**](V1InterfaceSlirp.md) | | [optional]
1314

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 v0.7.0-222-g5ea67b28"
21+
release_note="Auto-generated client v0.7.0-230-g0e174460"
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/v0.7.0-222-g5ea67b28/python'
76+
self.user_agent = 'Swagger-Codegen/v0.7.0-230-g0e174460/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: v0.7.0-222-g5ea67b28".\
230+
"SDK Package Version: v0.7.0-230-g0e174460".\
231231
format(env=sys.platform, pyversion=sys.version)

kubevirt/models/v1_interface.py

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class V1Interface(object):
3636
'mac_address': 'str',
3737
'model': 'str',
3838
'name': 'str',
39+
'pci_address': 'str',
3940
'ports': 'list[V1Port]',
4041
'slirp': 'V1InterfaceSlirp'
4142
}
@@ -46,11 +47,12 @@ class V1Interface(object):
4647
'mac_address': 'macAddress',
4748
'model': 'model',
4849
'name': 'name',
50+
'pci_address': 'pciAddress',
4951
'ports': 'ports',
5052
'slirp': 'slirp'
5153
}
5254

53-
def __init__(self, boot_order=None, bridge=None, mac_address=None, model=None, name=None, ports=None, slirp=None):
55+
def __init__(self, boot_order=None, bridge=None, mac_address=None, model=None, name=None, pci_address=None, ports=None, slirp=None):
5456
"""
5557
V1Interface - a model defined in Swagger
5658
"""
@@ -60,6 +62,7 @@ def __init__(self, boot_order=None, bridge=None, mac_address=None, model=None, n
6062
self._mac_address = None
6163
self._model = None
6264
self._name = None
65+
self._pci_address = None
6366
self._ports = None
6467
self._slirp = None
6568

@@ -72,6 +75,8 @@ def __init__(self, boot_order=None, bridge=None, mac_address=None, model=None, n
7275
if model is not None:
7376
self.model = model
7477
self.name = name
78+
if pci_address is not None:
79+
self.pci_address = pci_address
7580
if ports is not None:
7681
self.ports = ports
7782
if slirp is not None:
@@ -192,6 +197,29 @@ def name(self, name):
192197

193198
self._name = name
194199

200+
@property
201+
def pci_address(self):
202+
"""
203+
Gets the pci_address of this V1Interface.
204+
If specified, the virtual network interface will be placed on the guests pci address with the specifed PCI address. For example: 0000:81:01.10 +optional
205+
206+
:return: The pci_address of this V1Interface.
207+
:rtype: str
208+
"""
209+
return self._pci_address
210+
211+
@pci_address.setter
212+
def pci_address(self, pci_address):
213+
"""
214+
Sets the pci_address of this V1Interface.
215+
If specified, the virtual network interface will be placed on the guests pci address with the specifed PCI address. For example: 0000:81:01.10 +optional
216+
217+
:param pci_address: The pci_address of this V1Interface.
218+
:type: str
219+
"""
220+
221+
self._pci_address = pci_address
222+
195223
@property
196224
def ports(self):
197225
"""

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 = "v0.7.0-222-g5ea67b28"
18+
VERSION = "v0.7.0-230-g0e174460"
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": "v0.7.0-222-g5ea67b28"
5+
"packageVersion": "v0.7.0-230-g0e174460"
66
}

0 commit comments

Comments
 (0)