Skip to content

Commit

Permalink
Client Python update by KubeVirt Prow build 1791324382564454400
Browse files Browse the repository at this point in the history
  • Loading branch information
kubevirt-bot committed May 17, 2024
1 parent f202615 commit de45af2
Show file tree
Hide file tree
Showing 14 changed files with 28 additions and 28 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This is KubeVirt API an add-on for Kubernetes.
This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:

- API version: 1.0.0
- Package version: v1.3.0-alpha.0-67-g51fc79779
- Package version: v1.3.0-alpha.0-116-ga21104fc2
- Build package: io.swagger.codegen.languages.PythonClientCodegen
For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt)

Expand Down Expand Up @@ -426,6 +426,7 @@ Class | Method | HTTP request | Description
- [V1DataVolumeSource](docs/V1DataVolumeSource.md)
- [V1DataVolumeTemplateDummyStatus](docs/V1DataVolumeTemplateDummyStatus.md)
- [V1DataVolumeTemplateSpec](docs/V1DataVolumeTemplateSpec.md)
- [V1DeprecatedInterfaceMacvtap](docs/V1DeprecatedInterfaceMacvtap.md)
- [V1DeprecatedInterfaceSlirp](docs/V1DeprecatedInterfaceSlirp.md)
- [V1DeveloperConfiguration](docs/V1DeveloperConfiguration.md)
- [V1Devices](docs/V1Devices.md)
Expand Down Expand Up @@ -474,7 +475,6 @@ Class | Method | HTTP request | Description
- [V1InterfaceBindingMigration](docs/V1InterfaceBindingMigration.md)
- [V1InterfaceBindingPlugin](docs/V1InterfaceBindingPlugin.md)
- [V1InterfaceBridge](docs/V1InterfaceBridge.md)
- [V1InterfaceMacvtap](docs/V1InterfaceMacvtap.md)
- [V1InterfaceMasquerade](docs/V1InterfaceMasquerade.md)
- [V1InterfacePasst](docs/V1InterfacePasst.md)
- [V1InterfaceSRIOV](docs/V1InterfaceSRIOV.md)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# V1InterfaceMacvtap
# V1DeprecatedInterfaceMacvtap

## Properties
Name | Type | Description | Notes
Expand Down
2 changes: 1 addition & 1 deletion docs/V1Interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Name | Type | Description | Notes
**bridge** | [**V1InterfaceBridge**](V1InterfaceBridge.md) | | [optional]
**dhcp_options** | [**V1DHCPOptions**](V1DHCPOptions.md) | If specified the network interface will pass additional DHCP options to the VMI | [optional]
**mac_address** | **str** | Interface MAC address. For example: de:ad:00:00:be:af or DE-AD-00-00-BE-AF. | [optional]
**macvtap** | [**V1InterfaceMacvtap**](V1InterfaceMacvtap.md) | Deprecated, please refer to Kubevirt user guide for alternatives. | [optional]
**macvtap** | [**V1DeprecatedInterfaceMacvtap**](V1DeprecatedInterfaceMacvtap.md) | DeprecatedMacvtap is an alias to the deprecated Macvtap interface, please refer to Kubevirt user guide for alternatives. Deprecated: Removed in v1.3 | [optional]
**masquerade** | [**V1InterfaceMasquerade**](V1InterfaceMasquerade.md) | | [optional]
**model** | **str** | Interface model. One of: e1000, e1000e, ne2k_pci, pcnet, rtl8139, virtio. Defaults to virtio. | [optional]
**name** | **str** | Logical name of the interface as well as a reference to the associated networks. Must match the Name of a Network. | [default to '']
Expand Down
2 changes: 1 addition & 1 deletion git_push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then
fi

if [ "$release_note" = "" ]; then
release_note="Auto-generated client v1.3.0-alpha.0-67-g51fc79779"
release_note="Auto-generated client v1.3.0-alpha.0-116-ga21104fc2"
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
fi

Expand Down
6 changes: 3 additions & 3 deletions kubevirt-pysdk-codegen.log
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,9 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i
[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_data_volume_template_spec.py
[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_data_volume_template_spec.py
[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DataVolumeTemplateSpec.md
[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_deprecated_interface_macvtap.py
[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_deprecated_interface_macvtap.py
[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DeprecatedInterfaceMacvtap.md
[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_deprecated_interface_slirp.py
[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_deprecated_interface_slirp.py
[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DeprecatedInterfaceSlirp.md
Expand Down Expand Up @@ -432,9 +435,6 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i
[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_interface_bridge.py
[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_interface_bridge.py
[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1InterfaceBridge.md
[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_interface_macvtap.py
[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_interface_macvtap.py
[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1InterfaceMacvtap.md
[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_interface_masquerade.py
[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_interface_masquerade.py
[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1InterfaceMasquerade.md
Expand Down
2 changes: 1 addition & 1 deletion kubevirt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
from .models.v1_data_volume_source import V1DataVolumeSource
from .models.v1_data_volume_template_dummy_status import V1DataVolumeTemplateDummyStatus
from .models.v1_data_volume_template_spec import V1DataVolumeTemplateSpec
from .models.v1_deprecated_interface_macvtap import V1DeprecatedInterfaceMacvtap
from .models.v1_deprecated_interface_slirp import V1DeprecatedInterfaceSlirp
from .models.v1_developer_configuration import V1DeveloperConfiguration
from .models.v1_devices import V1Devices
Expand Down Expand Up @@ -151,7 +152,6 @@
from .models.v1_interface_binding_migration import V1InterfaceBindingMigration
from .models.v1_interface_binding_plugin import V1InterfaceBindingPlugin
from .models.v1_interface_bridge import V1InterfaceBridge
from .models.v1_interface_macvtap import V1InterfaceMacvtap
from .models.v1_interface_masquerade import V1InterfaceMasquerade
from .models.v1_interface_passt import V1InterfacePasst
from .models.v1_interface_sriov import V1InterfaceSRIOV
Expand Down
2 changes: 1 addition & 1 deletion kubevirt/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def __init__(self, host=None, header_name=None, header_value=None, cookie=None):
self.host = host
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'Swagger-Codegen/v1.3.0-alpha.0-67-g51fc79779/python'
self.user_agent = 'Swagger-Codegen/v1.3.0-alpha.0-116-ga21104fc2/python'

@property
def user_agent(self):
Expand Down
2 changes: 1 addition & 1 deletion kubevirt/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,5 +227,5 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 1.0.0\n"\
"SDK Package Version: v1.3.0-alpha.0-67-g51fc79779".\
"SDK Package Version: v1.3.0-alpha.0-116-ga21104fc2".\
format(env=sys.platform, pyversion=sys.version)
2 changes: 1 addition & 1 deletion kubevirt/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
from .v1_data_volume_source import V1DataVolumeSource
from .v1_data_volume_template_dummy_status import V1DataVolumeTemplateDummyStatus
from .v1_data_volume_template_spec import V1DataVolumeTemplateSpec
from .v1_deprecated_interface_macvtap import V1DeprecatedInterfaceMacvtap
from .v1_deprecated_interface_slirp import V1DeprecatedInterfaceSlirp
from .v1_developer_configuration import V1DeveloperConfiguration
from .v1_devices import V1Devices
Expand Down Expand Up @@ -151,7 +152,6 @@
from .v1_interface_binding_migration import V1InterfaceBindingMigration
from .v1_interface_binding_plugin import V1InterfaceBindingPlugin
from .v1_interface_bridge import V1InterfaceBridge
from .v1_interface_macvtap import V1InterfaceMacvtap
from .v1_interface_masquerade import V1InterfaceMasquerade
from .v1_interface_passt import V1InterfacePasst
from .v1_interface_sriov import V1InterfaceSRIOV
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import re


class V1InterfaceMacvtap(object):
class V1DeprecatedInterfaceMacvtap(object):
"""
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
Expand All @@ -40,7 +40,7 @@ class V1InterfaceMacvtap(object):

def __init__(self):
"""
V1InterfaceMacvtap - a model defined in Swagger
V1DeprecatedInterfaceMacvtap - a model defined in Swagger
"""


Expand Down Expand Up @@ -87,7 +87,7 @@ def __eq__(self, other):
"""
Returns true if both objects are equal
"""
if not isinstance(other, V1InterfaceMacvtap):
if not isinstance(other, V1DeprecatedInterfaceMacvtap):
return False

return self.__dict__ == other.__dict__
Expand Down
10 changes: 5 additions & 5 deletions kubevirt/models/v1_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class V1Interface(object):
'bridge': 'V1InterfaceBridge',
'dhcp_options': 'V1DHCPOptions',
'mac_address': 'str',
'macvtap': 'V1InterfaceMacvtap',
'macvtap': 'V1DeprecatedInterfaceMacvtap',
'masquerade': 'V1InterfaceMasquerade',
'model': 'str',
'name': 'str',
Expand Down Expand Up @@ -267,21 +267,21 @@ def mac_address(self, mac_address):
def macvtap(self):
"""
Gets the macvtap of this V1Interface.
Deprecated, please refer to Kubevirt user guide for alternatives.
DeprecatedMacvtap is an alias to the deprecated Macvtap interface, please refer to Kubevirt user guide for alternatives. Deprecated: Removed in v1.3
:return: The macvtap of this V1Interface.
:rtype: V1InterfaceMacvtap
:rtype: V1DeprecatedInterfaceMacvtap
"""
return self._macvtap

@macvtap.setter
def macvtap(self, macvtap):
"""
Sets the macvtap of this V1Interface.
Deprecated, please refer to Kubevirt user guide for alternatives.
DeprecatedMacvtap is an alias to the deprecated Macvtap interface, please refer to Kubevirt user guide for alternatives. Deprecated: Removed in v1.3
:param macvtap: The macvtap of this V1Interface.
:type: V1InterfaceMacvtap
:type: V1DeprecatedInterfaceMacvtap
"""

self._macvtap = macvtap
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from setuptools import setup, find_packages

NAME = "kubevirt-py"
VERSION = "v1.3.0-alpha.0-67-g51fc79779"
VERSION = "v1.3.0-alpha.0-116-ga21104fc2"
# To install the library, run the following
#
# python setup.py install
Expand Down
2 changes: 1 addition & 1 deletion swagger-codegen-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"packageName": "kubevirt",
"projectName": "kubevirt-py",
"packageUrl": "https://github.com/kubevirt/client-python",
"packageVersion": "v1.3.0-alpha.0-67-g51fc79779"
"packageVersion": "v1.3.0-alpha.0-116-ga21104fc2"
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,24 @@

import kubevirt
from kubevirt.rest import ApiException
from kubevirt.models.v1_interface_macvtap import V1InterfaceMacvtap
from kubevirt.models.v1_deprecated_interface_macvtap import V1DeprecatedInterfaceMacvtap


class TestV1InterfaceMacvtap(unittest.TestCase):
""" V1InterfaceMacvtap unit test stubs """
class TestV1DeprecatedInterfaceMacvtap(unittest.TestCase):
""" V1DeprecatedInterfaceMacvtap unit test stubs """

def setUp(self):
pass

def tearDown(self):
pass

def testV1InterfaceMacvtap(self):
def testV1DeprecatedInterfaceMacvtap(self):
"""
Test V1InterfaceMacvtap
Test V1DeprecatedInterfaceMacvtap
"""
# FIXME: construct object with mandatory attributes with example values
#model = kubevirt.models.v1_interface_macvtap.V1InterfaceMacvtap()
#model = kubevirt.models.v1_deprecated_interface_macvtap.V1DeprecatedInterfaceMacvtap()
pass


Expand Down

0 comments on commit de45af2

Please sign in to comment.